3 # GNU configure-like front end to metaconfig's Configure.
8 # Reformatted and modified for inclusion in the dist-3.0 package by
11 # This script belongs to the public domain and may be freely redistributed.
13 # The remaining of this leading shell comment may be removed if you
14 # include this script in your own package.
17 # Revision 3.0.1.1 1995/07/25 14:16:21 ram
21 (exit $?0) || exec sh $0 $argv:q
25 if cmp $0 `echo $0 | sed -e s/configure/Configure/` >/dev/null; then
26 echo "Your configure and Configure scripts seem to be identical."
27 echo "This can happen on filesystems that aren't fully case sensitive."
28 echo "You'll have to explicitly extract Configure and run that."
37 while test $# -gt 0; do
41 Usage: configure.gnu [options]
42 This is GNU configure-like front end for a metaconfig-generated Configure.
43 It emulates the following GNU configure options (must be fully spelled out):
47 --cache-file (ignored)
53 And it honours these environment variables: CC, CFLAGS and DEFS.
62 arg=`echo $1 | sed 's/--prefix=/-Dprefix=/'`
73 shift # Just ignore it.
88 opt=`echo $1 | sed 's/=.*//'`
89 echo "This GNU configure front end does not understand $opt"
101 *) opts="$opts -Dcc='$CC'";;
104 # Join DEFS and CFLAGS together.
112 *) ccflags="$ccflags $CFLAGS";;
116 *) opts="$opts -Dccflags='$ccflags'";;
120 *) ldflags="$ldflags $LDFLAGS";;
124 *) opts="$opts -Dldflags='$ldflags'";;
127 # Don't use -s if they want verbose mode
129 '') copt="$copt -ds";;
133 eval "set X sh Configure $copt $create $opts"