3 # $Id: configure,v 3.0.1.1 1995/07/25 14:16:21 ram Exp $
5 # GNU configure-like front end to metaconfig's Configure.
7 # Written by Andy Dougherty <doughera@lafayette.edu>
8 # and Matthew Green <mrg@mame.mu.oz.au>.
10 # Reformatted and modified for inclusion in the dist-3.0 package by
11 # Raphael Manfredi <ram@hptnos02.grenoble.hp.com>.
13 # This script belongs to the public domain and may be freely redistributed.
15 # The remaining of this leading shell comment may be removed if you
16 # include this script in your own package.
19 # Revision 3.0.1.1 1995/07/25 14:16:21 ram
23 (exit $?0) || exec sh $0 $argv:q
27 if cmp $0 `echo $0 | sed -e s/configure/Configure/` >/dev/null; then
28 echo "Your configure and Configure scripts seem to be identical."
29 echo "This can happen on filesystems that aren't fully case sensitive."
30 echo "You'll have to explicitly extract Configure and run that."
39 while test $# -gt 0; do
43 Usage: configure.gnu [options]
44 This is GNU configure-like front end for a metaconfig-generated Configure.
45 It emulates the following GNU configure options (must be fully spelled out):
49 --cache-file (ignored)
55 And it honours these environment variables: CC, CFLAGS and DEFS.
64 arg=`echo $1 | sed 's/--prefix=/-Dprefix=/'`
75 shift # Just ignore it.
90 opt=`echo $1 | sed 's/=.*//'`
91 echo "This GNU configure front end does not understand $opt"
103 *) opts="$opts -Dcc='$CC'";;
106 # Join DEFS and CFLAGS together.
114 *) ccflags="$ccflags $CFLAGS";;
118 *) opts="$opts -Dccflags='$ccflags'";;
122 *) ldflags="$ldflags $LDFLAGS";;
126 *) opts="$opts -Dldflags='$ldflags'";;
129 # Don't use -s if they want verbose mode
131 '') copt="$copt -ds";;
135 eval "set X sh Configure $copt $create $opts"