Skip to contentSkip to conversation

show usage and abort if unknown option is passed to configure

PATCH RESEND New Carlo Marcelo Arenas Belon 1 participant 1 message Nov 9, 2007

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 show usage and abort if unknown option is passed to configure

Any comments on this?, is ignoring unknown parameters to configure a feature as I suspect to prevent build failures on users that assume that it is autoconf based and try to enforce the defaults with an unknown option like --enable-sdl?

Carlo

----- Forwarded message from Carlo Marcelo Arenas Belon <[email protected]> -----

Date: Mon, 22 Oct 2007 20:31:35 -0500
From: Carlo Marcelo Arenas Belon <[email protected]>
To: [email protected]
Subject: [PATCH] show usage and abort if unknown option is passed to configure
User-Agent: Mutt/1.4.1i

The following patch prints an error if an unknown option is passed to configure and directs the script to show usage information.

Carlo

---
Index: configure
===================================================================
RCS file: /sources/qemu/qemu/configure,v
retrieving revision 1.165

configure +2 -0
diff -u -r1.165 configure
@@ -306,6 +303,8 @@
         *)     echo "undefined SPARC architecture. Exiting";exit 1;;
       esac
   ;;
+  *) echo "ERROR: unknown option $opt"; show_help="yes"
+  ;;
   esac
 done
 

----- End forwarded message -----