|
|
1.1 ! root 1: #!/bin/sh ! 2: # Guess values for system-dependent variables and create Makefiles. ! 3: # Generated automatically using autoconf. ! 4: # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. ! 5: ! 6: # This program is free software; you can redistribute it and/or modify ! 7: # it under the terms of the GNU General Public License as published by ! 8: # the Free Software Foundation; either version 2, or (at your option) ! 9: # any later version. ! 10: ! 11: # This program is distributed in the hope that it will be useful, ! 12: # but WITHOUT ANY WARRANTY; without even the implied warranty of ! 13: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 14: # GNU General Public License for more details. ! 15: ! 16: # You should have received a copy of the GNU General Public License ! 17: # along with this program; if not, write to the Free Software ! 18: # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! 19: ! 20: # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create] ! 21: # [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET] ! 22: # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and ! 23: # --with-PACKAGE unless this script has special code to handle it. ! 24: ! 25: ! 26: for arg ! 27: do ! 28: # Handle --exec-prefix with a space before the argument. ! 29: if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix= ! 30: # Handle --host with a space before the argument. ! 31: elif test x$next_host = xyes; then next_host= ! 32: # Handle --prefix with a space before the argument. ! 33: elif test x$next_prefix = xyes; then prefix=$arg; next_prefix= ! 34: # Handle --srcdir with a space before the argument. ! 35: elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir= ! 36: else ! 37: case $arg in ! 38: # For backward compatibility, also recognize exact --exec_prefix. ! 39: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*) ! 40: exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;; ! 41: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e) ! 42: next_exec_prefix=yes ;; ! 43: ! 44: -gas | --gas | --ga | --g) ;; ! 45: ! 46: -host=* | --host=* | --hos=* | --ho=* | --h=*) ;; ! 47: -host | --host | --hos | --ho | --h) ! 48: next_host=yes ;; ! 49: ! 50: -nfp | --nfp | --nf) ;; ! 51: ! 52: -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no) ! 53: no_create=1 ;; ! 54: ! 55: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 56: prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;; ! 57: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 58: next_prefix=yes ;; ! 59: ! 60: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*) ! 61: srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;; ! 62: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s) ! 63: next_srcdir=yes ;; ! 64: ! 65: -with-* | --with-*) ! 66: package=`echo $arg|sed 's/-*with-//'` ! 67: # Delete all the valid chars; see if any are left. ! 68: if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then ! 69: echo "configure: $package: invalid package name" >&2; exit 1 ! 70: fi ! 71: eval "with_`echo $package|sed s/-/_/g`=1" ;; ! 72: ! 73: *) ;; ! 74: esac ! 75: fi ! 76: done ! 77: ! 78: trap 'rm -f conftest* core; exit 1' 1 3 15 ! 79: ! 80: rm -f conftest* ! 81: compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1' ! 82: ! 83: # A filename unique to this package, relative to the directory that ! 84: # configure is in, which we can look for to find out if srcdir is correct. ! 85: unique_file=gzip.c ! 86: ! 87: # Find the source files, if location was not specified. ! 88: if test -z "$srcdir"; then ! 89: srcdirdefaulted=yes ! 90: # Try the directory containing this script, then `..'. ! 91: prog=$0 ! 92: confdir=`echo $prog|sed 's%/[^/][^/]*$%%'` ! 93: test "X$confdir" = "X$prog" && confdir=. ! 94: srcdir=$confdir ! 95: if test ! -r $srcdir/$unique_file; then ! 96: srcdir=.. ! 97: fi ! 98: fi ! 99: if test ! -r $srcdir/$unique_file; then ! 100: if test x$srcdirdefaulted = xyes; then ! 101: echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2 ! 102: else ! 103: echo "configure: Can not find sources in \`${srcdir}'." 1>&2 ! 104: fi ! 105: exit 1 ! 106: fi ! 107: # Preserve a srcdir of `.' to avoid automounter screwups with pwd. ! 108: # But we can't avoid them for `..', to make subdirectories work. ! 109: case $srcdir in ! 110: .|/*|~*) ;; ! 111: *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute. ! 112: esac ! 113: ! 114: if test -z "$CC"; then ! 115: echo checking for gcc ! 116: saveifs="$IFS"; IFS="${IFS}:" ! 117: for dir in $PATH; do ! 118: test -z "$dir" && dir=. ! 119: if test -f $dir/gcc; then ! 120: CC="gcc" ! 121: break ! 122: fi ! 123: done ! 124: IFS="$saveifs" ! 125: fi ! 126: test -z "$CC" && CC="cc" ! 127: ! 128: # Find out if we are using GNU C, under whatever name. ! 129: cat > conftest.c <<EOF ! 130: #ifdef __GNUC__ ! 131: yes ! 132: #endif ! 133: EOF ! 134: ${CC-cc} -E conftest.c > conftest.out 2>&1 ! 135: if egrep yes conftest.out >/dev/null 2>&1; then ! 136: GCC=1 # For later tests. ! 137: CC="$CC -O" ! 138: fi ! 139: rm -f conftest* ! 140: ! 141: echo checking for underline in external names ! 142: test -z "$CPP" -a -f /lib/cpp && CPP=/lib/cpp ! 143: test -z "$CPP" && CPP="$CC -E" ! 144: cat > conftest.c <<EOF ! 145: int foo() {return 0;} ! 146: EOF ! 147: $CC -c conftest.c > /dev/null 2>&1 ! 148: if nm conftest.o | grep _foo > /dev/null 2>&1 ; then ! 149: : ! 150: else ! 151: CPP="${CPP} -DNO_UNDERLINE" ! 152: fi ! 153: echo checking for assembler ! 154: rm -f _match.o conftest.co ! 155: $CPP $srcdir/match.S > _match.s ! 156: if grep error < _match.s > /dev/null; then ! 157: OBJA="" ! 158: elif $CC -c _match.s >/dev/null 2>&1 && test -f _match.o; then ! 159: DEFS="${DEFS} -DASMV" ! 160: OBJA=match.o ! 161: fi ! 162: rm -f _match.s _match.o ! 163: # Make sure to not get the incompatible SysV /etc/install and ! 164: # /usr/sbin/install, which might be in PATH before a BSD-like install, ! 165: # or the SunOS /usr/etc/install directory, or the AIX /bin/install, ! 166: # or the AFS install, which mishandles nonexistent args. (Sigh.) ! 167: if test -z "$INSTALL"; then ! 168: echo checking for install ! 169: saveifs="$IFS"; IFS="${IFS}:" ! 170: for dir in $PATH; do ! 171: test -z "$dir" && dir=. ! 172: case $dir in ! 173: /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;; ! 174: *) ! 175: if test -f $dir/install; then ! 176: if grep dspmsg $dir/install >/dev/null 2>&1; then ! 177: : # AIX ! 178: else ! 179: INSTALL="$dir/install -c" ! 180: INSTALL_PROGRAM='$(INSTALL)' ! 181: INSTALL_DATA='$(INSTALL) -m 644' ! 182: break ! 183: fi ! 184: fi ! 185: ;; ! 186: esac ! 187: done ! 188: IFS="$saveifs" ! 189: fi ! 190: INSTALL=${INSTALL-cp} ! 191: INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'} ! 192: INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'} ! 193: ! 194: echo checking for AIX ! 195: echo checking how to run the C preprocessor ! 196: if test -z "$CPP"; then ! 197: CPP='${CC-cc} -E' ! 198: cat > conftest.c <<EOF ! 199: #include <stdio.h> ! 200: EOF ! 201: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 202: if test -z "$err"; then ! 203: : ! 204: else ! 205: CPP=/lib/cpp ! 206: fi ! 207: rm -f conftest* ! 208: fi ! 209: ! 210: cat > conftest.c <<EOF ! 211: #ifdef _AIX ! 212: yes ! 213: #endif ! 214: ! 215: EOF ! 216: eval "$CPP $DEFS conftest.c > conftest.out 2>&1" ! 217: if egrep "yes" conftest.out >/dev/null 2>&1; then ! 218: DEFS="$DEFS -D_ALL_SOURCE=1" ! 219: fi ! 220: rm -f conftest* ! 221: ! 222: ! 223: echo checking for minix/config.h ! 224: cat > conftest.c <<EOF ! 225: #include <minix/config.h> ! 226: EOF ! 227: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 228: if test -z "$err"; then ! 229: MINIX=1 ! 230: fi ! 231: rm -f conftest* ! 232: ! 233: # The Minix shell can't assign to the same variable on the same line! ! 234: if test -n "$MINIX"; then ! 235: DEFS="$DEFS -D_POSIX_SOURCE=1" ! 236: DEFS="$DEFS -D_POSIX_1_SOURCE=2" ! 237: DEFS="$DEFS -D_MINIX=1" ! 238: fi ! 239: ! 240: echo checking for POSIXized ISC ! 241: if test -d /etc/conf/kconfig.d && ! 242: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 ! 243: then ! 244: ISC=1 # If later tests want to check for ISC. ! 245: DEFS="$DEFS -D_POSIX_SOURCE=1" ! 246: if test -n "$GCC"; then ! 247: CC="$CC -posix" ! 248: else ! 249: CC="$CC -Xp" ! 250: fi ! 251: fi ! 252: ! 253: echo checking for DYNIX/ptx libseq ! 254: cat > conftest.c <<EOF ! 255: #if defined(_SEQUENT_) ! 256: yes ! 257: #endif ! 258: ! 259: EOF ! 260: eval "$CPP $DEFS conftest.c > conftest.out 2>&1" ! 261: if egrep "yes" conftest.out >/dev/null 2>&1; then ! 262: SEQUENT=1 ! 263: fi ! 264: rm -f conftest* ! 265: ! 266: test -n "$SEQUENT" && test -f /usr/lib/libseq.a && ! 267: LIBS="$LIBS -lseq" ! 268: ! 269: echo checking for ANSI C header files ! 270: cat > conftest.c <<EOF ! 271: #include <stdlib.h> ! 272: #include <stdarg.h> ! 273: #include <string.h> ! 274: #include <float.h> ! 275: EOF ! 276: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 277: if test -z "$err"; then ! 278: # SunOS string.h does not declare mem*, contrary to ANSI. ! 279: echo '#include <string.h>' > conftest.c ! 280: eval "$CPP $DEFS conftest.c > conftest.out 2>&1" ! 281: if egrep "memchr" conftest.out >/dev/null 2>&1; then ! 282: # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 283: cat > conftest.c <<EOF ! 284: #include <ctype.h> ! 285: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 286: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 287: #define XOR(e,f) (((e) && !(f)) || (!(e) && (f))) ! 288: int main () { int i; for (i = 0; i < 256; i++) ! 289: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); ! 290: exit (0); } ! 291: ! 292: EOF ! 293: eval $compile ! 294: if test -s conftest && (./conftest; exit) 2>/dev/null; then ! 295: DEFS="$DEFS -DSTDC_HEADERS=1" ! 296: fi ! 297: rm -f conftest* ! 298: fi ! 299: rm -f conftest* ! 300: ! 301: fi ! 302: rm -f conftest* ! 303: ! 304: echo checking for string.h ! 305: cat > conftest.c <<EOF ! 306: #include <string.h> ! 307: EOF ! 308: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 309: if test -z "$err"; then ! 310: : ! 311: else ! 312: DEFS="$DEFS -DNO_STRING_H=1" ! 313: fi ! 314: rm -f conftest* ! 315: ! 316: echo checking for stdlib.h ! 317: cat > conftest.c <<EOF ! 318: #include <stdlib.h> ! 319: EOF ! 320: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 321: if test -z "$err"; then ! 322: : ! 323: else ! 324: DEFS="$DEFS -DNO_STDLIB_H=1" ! 325: fi ! 326: rm -f conftest* ! 327: ! 328: echo checking for memory.h ! 329: cat > conftest.c <<EOF ! 330: #include <memory.h> ! 331: EOF ! 332: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 333: if test -z "$err"; then ! 334: : ! 335: else ! 336: DEFS="$DEFS -DNO_MEMORY_H=1" ! 337: fi ! 338: rm -f conftest* ! 339: ! 340: echo checking for fcntl.h ! 341: cat > conftest.c <<EOF ! 342: #include <fcntl.h> ! 343: EOF ! 344: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 345: if test -z "$err"; then ! 346: : ! 347: else ! 348: DEFS="$DEFS -DNO_FCNTL_H=1" ! 349: fi ! 350: rm -f conftest* ! 351: ! 352: for hdr in unistd.h ! 353: do ! 354: trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'` ! 355: echo checking for ${hdr} ! 356: cat > conftest.c <<EOF ! 357: #include <${hdr}> ! 358: EOF ! 359: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 360: if test -z "$err"; then ! 361: DEFS="$DEFS -D${trhdr}=1" ! 362: fi ! 363: rm -f conftest* ! 364: done ! 365: ! 366: utime=0 ! 367: echo checking for utime.h ! 368: cat > conftest.c <<EOF ! 369: #include <utime.h> ! 370: EOF ! 371: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 372: if test -z "$err"; then ! 373: utime=1 ! 374: else ! 375: DEFS="$DEFS -DNO_UTIME_H=1" ! 376: fi ! 377: rm -f conftest* ! 378: ! 379: if test $utime -eq 0; then ! 380: for hdr in sys/utime.h ! 381: do ! 382: trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'` ! 383: echo checking for ${hdr} ! 384: cat > conftest.c <<EOF ! 385: #include <${hdr}> ! 386: EOF ! 387: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 388: if test -z "$err"; then ! 389: DEFS="$DEFS -D${trhdr}=1" ! 390: fi ! 391: rm -f conftest* ! 392: done ! 393: ! 394: fi ! 395: echo checking for directory library header ! 396: echo checking for dirent.h ! 397: cat > conftest.c <<EOF ! 398: #include <dirent.h> ! 399: EOF ! 400: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 401: if test -z "$err"; then ! 402: DEFS="$DEFS -DDIRENT=1" dirheader=dirent.h ! 403: fi ! 404: rm -f conftest* ! 405: ! 406: if test -z "$dirheader"; then ! 407: echo checking for sys/ndir.h ! 408: cat > conftest.c <<EOF ! 409: #include <sys/ndir.h> ! 410: EOF ! 411: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 412: if test -z "$err"; then ! 413: DEFS="$DEFS -DSYSNDIR=1" dirheader=sys/ndir.h ! 414: fi ! 415: rm -f conftest* ! 416: ! 417: fi ! 418: if test -z "$dirheader"; then ! 419: echo checking for sys/dir.h ! 420: cat > conftest.c <<EOF ! 421: #include <sys/dir.h> ! 422: EOF ! 423: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 424: if test -z "$err"; then ! 425: DEFS="$DEFS -DSYSDIR=1" dirheader=sys/dir.h ! 426: fi ! 427: rm -f conftest* ! 428: ! 429: fi ! 430: if test -z "$dirheader"; then ! 431: echo checking for ndir.h ! 432: cat > conftest.c <<EOF ! 433: #include <ndir.h> ! 434: EOF ! 435: err=`eval "($CPP $DEFS conftest.c >/dev/null) 2>&1"` ! 436: if test -z "$err"; then ! 437: DEFS="$DEFS -DNDIR=1" dirheader=ndir.h ! 438: fi ! 439: rm -f conftest* ! 440: ! 441: fi ! 442: ! 443: echo checking for closedir return value ! 444: cat > conftest.c <<EOF ! 445: #include <sys/types.h> ! 446: #include <$dirheader> ! 447: int closedir(); main() { exit(0); } ! 448: EOF ! 449: eval $compile ! 450: if test -s conftest && (./conftest; exit) 2>/dev/null; then ! 451: : ! 452: else ! 453: DEFS="$DEFS -DVOID_CLOSEDIR=1" ! 454: fi ! 455: rm -f conftest* ! 456: ! 457: if test -f /usr/bin/hostinfo && /usr/bin/hostinfo | grep NeXT > /dev/null; then ! 458: if /usr/bin/hostinfo | grep -s "Mach 12"; then ! 459: DEFS="`echo $DEFS | sed 's/-DDIRENT=1/-DSYSDIR=1/'`" ! 460: fi ! 461: fi ! 462: echo checking for Xenix ! 463: cat > conftest.c <<EOF ! 464: #if defined(M_XENIX) && !defined(M_UNIX) ! 465: yes ! 466: #endif ! 467: ! 468: EOF ! 469: eval "$CPP $DEFS conftest.c > conftest.out 2>&1" ! 470: if egrep "yes" conftest.out >/dev/null 2>&1; then ! 471: XENIX=1 ! 472: fi ! 473: rm -f conftest* ! 474: ! 475: if test -n "$XENIX"; then ! 476: DEFS="$DEFS -DVOID_CLOSEDIR=1" ! 477: LIBS="$LIBS -lx" ! 478: case "$DEFS" in ! 479: *SYSNDIR*) ;; ! 480: *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx. ! 481: esac ! 482: fi ! 483: ! 484: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works ! 485: # for constant arguments. Useless! ! 486: echo checking for working alloca.h ! 487: cat > conftest.c <<EOF ! 488: #include <alloca.h> ! 489: main() { exit(0); } ! 490: t() { char *p = alloca(2 * sizeof(int)); } ! 491: EOF ! 492: if eval $compile; then ! 493: DEFS="$DEFS -DHAVE_ALLOCA_H=1" ! 494: fi ! 495: rm -f conftest* ! 496: ! 497: decl="#ifdef __GNUC__ ! 498: #define alloca __builtin_alloca ! 499: #else ! 500: #if HAVE_ALLOCA_H ! 501: #include <alloca.h> ! 502: #else ! 503: #ifdef _AIX ! 504: #pragma alloca ! 505: #else ! 506: char *alloca (); ! 507: #endif ! 508: #endif ! 509: #endif ! 510: " ! 511: echo checking for alloca ! 512: cat > conftest.c <<EOF ! 513: $decl ! 514: main() { exit(0); } ! 515: t() { char *p = (char *) alloca(1); } ! 516: EOF ! 517: if eval $compile; then ! 518: : ! 519: else ! 520: alloca_missing=1 ! 521: fi ! 522: rm -f conftest* ! 523: ! 524: if test -n "$alloca_missing"; then ! 525: # The SVR3 libPW and SVR4 libucb both contain incompatible functions ! 526: # that cause trouble. Some versions do not even contain alloca or ! 527: # contain a buggy version. If you still want to use their alloca, ! 528: # use ar to extract alloca.o from them instead of compiling alloca.c. ! 529: ALLOCA=alloca.o ! 530: fi ! 531: ! 532: echo checking for return type of signal handlers ! 533: cat > conftest.c <<EOF ! 534: #include <sys/types.h> ! 535: #include <signal.h> ! 536: #ifdef signal ! 537: #undef signal ! 538: #endif ! 539: extern int (*signal ()) (); ! 540: main() { exit(0); } ! 541: t() { int i; } ! 542: EOF ! 543: if eval $compile; then ! 544: DEFS="$DEFS -DRETSIGTYPE=int" ! 545: fi ! 546: rm -f conftest* ! 547: ! 548: ! 549: echo "checking for #! kernel hack" ! 550: cat <<'__EOF__' > conftest.csh ! 551: #!/bin/csh -f ! 552: setenv SHELL /bin/csh ! 553: # Avoid tcsh bug 'Bad Hertz Value': ! 554: setenv HZ 60 ! 555: # Make sure foo doesn't get exported into the environment ! 556: # Astoundingly, some versions of csh don't have unsetenv. ! 557: unsetenv foo >& /dev/null ! 558: unset foo ! 559: set output="`./conftest.sh`" ! 560: if ( "$output" == "foo=bar" ) then ! 561: exit 0 ! 562: endif ! 563: exit 1 ! 564: __EOF__ ! 565: cat <<'__EOF__' > conftest.sh ! 566: #!/bin/sh ! 567: # If this is really run with sh, then 1st positional arg will be "foo=bar". ! 568: # If this script was executed by csh, then a shell variable "foo" will have ! 569: # the value "var". ! 570: set foo=bar ! 571: echo "$*" ! 572: __EOF__ ! 573: chmod 777 conftest.csh conftest.sh ! 574: (csh -f ./conftest.csh) 2> /dev/null ! 575: if test $? = 0 ; then ! 576: :; SEDCMD="1d" ! 577: else ! 578: :; SEDCMD="" ! 579: fi ! 580: rm -f conftest.csh conftest.sh ! 581: ! 582: if test -z "$prefix" ! 583: then ! 584: echo checking for gzip to derive installation directory prefix ! 585: saveifs="$IFS"; IFS="$IFS:" ! 586: for dir in $PATH; do ! 587: test -z "$dir" && dir=. ! 588: if test $dir != . && test -f $dir/gzip; then ! 589: # Not all systems have dirname. ! 590: prefix=`echo $dir|sed 's%/[^/][^/]*$%%'` ! 591: break ! 592: fi ! 593: done ! 594: IFS="$saveifs" ! 595: fi ! 596: ! 597: if test -n "$prefix"; then ! 598: test -z "$exec_prefix" && exec_prefix='${prefix}' ! 599: prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%" ! 600: fi ! 601: if test -n "$exec_prefix"; then ! 602: prsub="$prsub ! 603: s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%\ ! 604: exec_prefix\\1=\\2$exec_prefix%" ! 605: fi ! 606: ! 607: trap 'rm -f config.status; exit 1' 1 3 15 ! 608: echo creating config.status ! 609: rm -f config.status ! 610: cat > config.status <<EOF ! 611: #!/bin/sh ! 612: # Generated automatically by configure. ! 613: # Run this file to recreate the current configuration. ! 614: # This directory was configured as follows, ! 615: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 616: # ! 617: # $0 $* ! 618: ! 619: for arg ! 620: do ! 621: case "\$arg" in ! 622: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 623: exec /bin/sh $0 $* ;; ! 624: *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;; ! 625: esac ! 626: done ! 627: ! 628: trap 'rm -f Makefile; exit 1' 1 3 15 ! 629: CC='$CC' ! 630: INSTALL='$INSTALL' ! 631: INSTALL_PROGRAM='$INSTALL_PROGRAM' ! 632: INSTALL_DATA='$INSTALL_DATA' ! 633: CPP='$CPP' ! 634: ALLOCA='$ALLOCA' ! 635: OBJA='$OBJA' ! 636: SEDCMD='$SEDCMD' ! 637: LIBS='$LIBS' ! 638: srcdir='$srcdir' ! 639: DEFS='$DEFS' ! 640: prefix='$prefix' ! 641: exec_prefix='$exec_prefix' ! 642: prsub='$prsub' ! 643: EOF ! 644: cat >> config.status <<\EOF ! 645: ! 646: top_srcdir=$srcdir ! 647: for file in .. Makefile; do if [ "x$file" != "x.." ]; then ! 648: srcdir=$top_srcdir ! 649: # Remove last slash and all that follows it. Not all systems have dirname. ! 650: dir=`echo $file|sed 's%/[^/][^/]*$%%'` ! 651: if test "$dir" != "$file"; then ! 652: test "$top_srcdir" != . && srcdir=$top_srcdir/$dir ! 653: test ! -d $dir && mkdir $dir ! 654: fi ! 655: echo creating $file ! 656: rm -f $file ! 657: echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file ! 658: sed -e " ! 659: $prsub ! 660: s%@CC@%$CC%g ! 661: s%@INSTALL@%$INSTALL%g ! 662: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g ! 663: s%@INSTALL_DATA@%$INSTALL_DATA%g ! 664: s%@CPP@%$CPP%g ! 665: s%@ALLOCA@%$ALLOCA%g ! 666: s%@OBJA@%$OBJA%g ! 667: s%@SEDCMD@%$SEDCMD%g ! 668: s%@LIBS@%$LIBS%g ! 669: s%@srcdir@%$srcdir%g ! 670: s%@DEFS@%$DEFS% ! 671: " $top_srcdir/${file}.in >> $file ! 672: fi; done ! 673: ! 674: EOF ! 675: chmod +x config.status ! 676: test -n "$no_create" || ./config.status ! 677:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.