|
|
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[=VALUE]] ! 22: # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and ! 23: # --with-PACKAGE[=VALUE] 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 -e 's/-*with-//' -e 's/=.*//'` ! 67: # Reject names that aren't valid shell variable names. ! 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: package=`echo $package| sed 's/-/_/g'` ! 72: case "$arg" in ! 73: *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;; ! 74: *) val=1 ;; ! 75: esac ! 76: eval "with_$package='$val'" ;; ! 77: ! 78: -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v) ! 79: verbose=yes ;; ! 80: ! 81: *) ;; ! 82: esac ! 83: fi ! 84: done ! 85: ! 86: trap 'rm -fr conftest* core; exit 1' 1 3 15 ! 87: ! 88: # NLS nuisances. ! 89: # These must not be set unconditionally because not all systems understand ! 90: # e.g. LANG=C (notably SCO). ! 91: if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi ! 92: if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi ! 93: ! 94: rm -f conftest* ! 95: compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1' ! 96: ! 97: # A filename unique to this package, relative to the directory that ! 98: # configure is in, which we can look for to find out if srcdir is correct. ! 99: unique_file=reduce.c ! 100: ! 101: # Find the source files, if location was not specified. ! 102: if test -z "$srcdir"; then ! 103: srcdirdefaulted=yes ! 104: # Try the directory containing this script, then `..'. ! 105: prog=$0 ! 106: confdir=`echo $prog|sed 's%/[^/][^/]*$%%'` ! 107: test "X$confdir" = "X$prog" && confdir=. ! 108: srcdir=$confdir ! 109: if test ! -r $srcdir/$unique_file; then ! 110: srcdir=.. ! 111: fi ! 112: fi ! 113: if test ! -r $srcdir/$unique_file; then ! 114: if test x$srcdirdefaulted = xyes; then ! 115: echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2 ! 116: else ! 117: echo "configure: Can not find sources in \`${srcdir}'." 1>&2 ! 118: fi ! 119: exit 1 ! 120: fi ! 121: # Preserve a srcdir of `.' to avoid automounter screwups with pwd. ! 122: # But we can't avoid them for `..', to make subdirectories work. ! 123: case $srcdir in ! 124: .|/*|~*) ;; ! 125: *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute. ! 126: esac ! 127: ! 128: # Save the original args to write them into config.status later. ! 129: configure_args="$*" ! 130: ! 131: if test -z "$CC"; then ! 132: # Extract the first word of `gcc', so it can be a program name with args. ! 133: set dummy gcc; word=$2 ! 134: echo checking for $word ! 135: IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" ! 136: for dir in $PATH; do ! 137: test -z "$dir" && dir=. ! 138: if test -f $dir/$word; then ! 139: CC="gcc" ! 140: break ! 141: fi ! 142: done ! 143: IFS="$saveifs" ! 144: fi ! 145: test -z "$CC" && CC="cc" ! 146: test -n "$CC" -a -n "$verbose" && echo " setting CC to $CC" ! 147: ! 148: # Find out if we are using GNU C, under whatever name. ! 149: cat > conftest.c <<EOF ! 150: #ifdef __GNUC__ ! 151: yes ! 152: #endif ! 153: EOF ! 154: ${CC-cc} -E conftest.c > conftest.out 2>&1 ! 155: if egrep yes conftest.out >/dev/null 2>&1; then ! 156: GCC=1 # For later tests. ! 157: fi ! 158: rm -f conftest* ! 159: ! 160: echo checking how to run the C preprocessor ! 161: if test -z "$CPP"; then ! 162: # This must be in double quotes, not single quotes, because CPP may get ! 163: # substituted into the Makefile and ``${CC-cc}'' will simply confuse ! 164: # make. It must be expanded now. ! 165: CPP="${CC-cc} -E" ! 166: cat > conftest.c <<EOF ! 167: #include <stdio.h> ! 168: Syntax Error ! 169: EOF ! 170: err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"` ! 171: if test -z "$err"; then ! 172: : ! 173: else ! 174: CPP=/lib/cpp ! 175: fi ! 176: rm -f conftest* ! 177: fi ! 178: test ".${verbose}" != "." && echo " setting CPP to $CPP" ! 179: ! 180: # Make sure to not get the incompatible SysV /etc/install and ! 181: # /usr/sbin/install, which might be in PATH before a BSD-like install, ! 182: # or the SunOS /usr/etc/install directory, or the AIX /bin/install, ! 183: # or the AFS install, which mishandles nonexistent args, or ! 184: # /usr/ucb/install on SVR4, which tries to use the nonexistent group ! 185: # `staff'. On most BSDish systems install is in /usr/bin, not /usr/ucb ! 186: # anyway. Sigh. ! 187: if test "z${INSTALL}" = "z" ; then ! 188: echo checking for install ! 189: IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" ! 190: for dir in $PATH; do ! 191: test -z "$dir" && dir=. ! 192: case $dir in ! 193: /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;; ! 194: *) ! 195: if test -f $dir/installbsd; then ! 196: INSTALL="$dir/installbsd -c" # OSF1 ! 197: INSTALL_PROGRAM='$(INSTALL)' ! 198: INSTALL_DATA='$(INSTALL) -m 644' ! 199: break ! 200: fi ! 201: if test -f $dir/install; then ! 202: if grep dspmsg $dir/install >/dev/null 2>&1; then ! 203: : # AIX ! 204: else ! 205: INSTALL="$dir/install -c" ! 206: INSTALL_PROGRAM='$(INSTALL)' ! 207: INSTALL_DATA='$(INSTALL) -m 644' ! 208: break ! 209: fi ! 210: fi ! 211: ;; ! 212: esac ! 213: done ! 214: IFS="$saveifs" ! 215: fi ! 216: INSTALL=${INSTALL-cp} ! 217: test -n "$verbose" && echo " setting INSTALL to $INSTALL" ! 218: INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'} ! 219: test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM" ! 220: INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'} ! 221: test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA" ! 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: ! 236: { ! 237: test -n "$verbose" && \ ! 238: echo " defining _POSIX_SOURCE" ! 239: DEFS="$DEFS -D_POSIX_SOURCE=1" ! 240: } ! 241: ! 242: ! 243: { ! 244: test -n "$verbose" && \ ! 245: echo " defining _POSIX_1_SOURCE to be 2" ! 246: DEFS="$DEFS -D_POSIX_1_SOURCE=2" ! 247: } ! 248: ! 249: ! 250: { ! 251: test -n "$verbose" && \ ! 252: echo " defining _MINIX" ! 253: DEFS="$DEFS -D_MINIX=1" ! 254: } ! 255: ! 256: fi ! 257: ! 258: echo checking for POSIXized ISC ! 259: if test -d /etc/conf/kconfig.d && ! 260: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 ! 261: then ! 262: ISC=1 # If later tests want to check for ISC. ! 263: ! 264: { ! 265: test -n "$verbose" && \ ! 266: echo " defining _POSIX_SOURCE" ! 267: DEFS="$DEFS -D_POSIX_SOURCE=1" ! 268: } ! 269: ! 270: if test -n "$GCC"; then ! 271: CC="$CC -posix" ! 272: else ! 273: CC="$CC -Xp" ! 274: fi ! 275: fi ! 276: ! 277: prog='/* Ultrix mips cc rejects this. */ ! 278: typedef int charset[2]; const charset x; ! 279: /* SunOS 4.1.1 cc rejects this. */ ! 280: char const *const *ccp; ! 281: char **p; ! 282: /* AIX XL C 1.02.0.0 rejects this. ! 283: It does not let you subtract one const X* pointer from another in an arm ! 284: of an if-expression whose if-part is not a constant expression */ ! 285: const char *g = "string"; ! 286: ccp = &g + (g ? g-g : 0); ! 287: /* HPUX 7.0 cc rejects these. */ ! 288: ++ccp; ! 289: p = (char**) ccp; ! 290: ccp = (char const *const *) p; ! 291: { /* SCO 3.2v4 cc rejects this. */ ! 292: char *t; ! 293: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 294: ! 295: *t++ = 0; ! 296: } ! 297: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 298: int x[] = {25,17}; ! 299: const int *foo = &x[0]; ! 300: ++foo; ! 301: } ! 302: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 303: typedef const int *iptr; ! 304: iptr p = 0; ! 305: ++p; ! 306: } ! 307: { /* AIX XL C 1.02.0.0 rejects this saying ! 308: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 309: struct s { int j; const int *ap[3]; }; ! 310: struct s *b; b->j = 5; ! 311: }' ! 312: echo checking for working const ! 313: cat > conftest.c <<EOF ! 314: ! 315: int main() { exit(0); } ! 316: int t() { $prog } ! 317: EOF ! 318: if eval $compile; then ! 319: : ! 320: else ! 321: ! 322: { ! 323: test -n "$verbose" && \ ! 324: echo " defining const to be empty" ! 325: DEFS="$DEFS -Dconst=" ! 326: } ! 327: ! 328: fi ! 329: rm -f conftest* ! 330: ! 331: echo checking for ANSI C header files ! 332: cat > conftest.c <<EOF ! 333: #include <stdlib.h> ! 334: #include <stdarg.h> ! 335: #include <string.h> ! 336: #include <float.h> ! 337: EOF ! 338: err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"` ! 339: if test -z "$err"; then ! 340: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 341: echo '#include <string.h>' > conftest.c ! 342: eval "$CPP \$DEFS conftest.c > conftest.out 2>&1" ! 343: if egrep "memchr" conftest.out >/dev/null 2>&1; then ! 344: # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 345: cat > conftest.c <<EOF ! 346: #include <ctype.h> ! 347: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 348: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 349: #define XOR(e,f) (((e) && !(f)) || (!(e) && (f))) ! 350: int main () { int i; for (i = 0; i < 256; i++) ! 351: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); ! 352: exit (0); } ! 353: ! 354: EOF ! 355: eval $compile ! 356: if test -s conftest && (./conftest; exit) 2>/dev/null; then ! 357: ! 358: { ! 359: test -n "$verbose" && \ ! 360: echo " defining STDC_HEADERS" ! 361: DEFS="$DEFS -DSTDC_HEADERS=1" ! 362: } ! 363: ! 364: fi ! 365: rm -f conftest* ! 366: fi ! 367: rm -f conftest* ! 368: ! 369: fi ! 370: rm -f conftest* ! 371: ! 372: for hdr in string.h stdlib.h memory.h ! 373: do ! 374: trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'` ! 375: echo checking for ${hdr} ! 376: cat > conftest.c <<EOF ! 377: #include <${hdr}> ! 378: EOF ! 379: err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"` ! 380: if test -z "$err"; then ! 381: ! 382: { ! 383: test -n "$verbose" && \ ! 384: echo " defining ${trhdr}" ! 385: DEFS="$DEFS -D${trhdr}=1" ! 386: } ! 387: ! 388: fi ! 389: rm -f conftest* ! 390: done ! 391: ! 392: for func in strerror ! 393: do ! 394: trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'` ! 395: echo checking for ${func} ! 396: cat > conftest.c <<EOF ! 397: #include <ctype.h> ! 398: int main() { exit(0); } ! 399: int t() { ! 400: /* The GNU C library defines this for functions which it implements ! 401: to always fail with ENOSYS. Some functions are actually named ! 402: something starting with __ and the normal name is an alias. */ ! 403: #if defined (__stub_${func}) || defined (__stub___${func}) ! 404: choke me ! 405: #else ! 406: /* Override any gcc2 internal prototype to avoid an error. */ ! 407: extern char ${func}(); ${func}(); ! 408: #endif ! 409: } ! 410: EOF ! 411: if eval $compile; then ! 412: { ! 413: test -n "$verbose" && \ ! 414: echo " defining ${trfunc}" ! 415: DEFS="$DEFS -D${trfunc}=1" ! 416: } ! 417: ! 418: fi ! 419: rm -f conftest* ! 420: done ! 421: ! 422: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works ! 423: # for constant arguments. Useless! ! 424: echo checking for working alloca.h ! 425: cat > conftest.c <<EOF ! 426: #include <alloca.h> ! 427: int main() { exit(0); } ! 428: int t() { char *p = alloca(2 * sizeof(int)); } ! 429: EOF ! 430: if eval $compile; then ! 431: ! 432: { ! 433: test -n "$verbose" && \ ! 434: echo " defining HAVE_ALLOCA_H" ! 435: DEFS="$DEFS -DHAVE_ALLOCA_H=1" ! 436: } ! 437: ! 438: fi ! 439: rm -f conftest* ! 440: ! 441: decl="#ifdef __GNUC__ ! 442: #define alloca __builtin_alloca ! 443: #else ! 444: #if HAVE_ALLOCA_H ! 445: #include <alloca.h> ! 446: #else ! 447: #ifdef _AIX ! 448: #pragma alloca ! 449: #else ! 450: char *alloca (); ! 451: #endif ! 452: #endif ! 453: #endif ! 454: " ! 455: echo checking for alloca ! 456: cat > conftest.c <<EOF ! 457: $decl ! 458: int main() { exit(0); } ! 459: int t() { char *p = (char *) alloca(1); } ! 460: EOF ! 461: if eval $compile; then ! 462: : ! 463: else ! 464: alloca_missing=1 ! 465: cat > conftest.c <<EOF ! 466: ! 467: #if defined(CRAY) && ! defined(CRAY2) ! 468: winnitude ! 469: #else ! 470: lossage ! 471: #endif ! 472: ! 473: EOF ! 474: eval "$CPP \$DEFS conftest.c > conftest.out 2>&1" ! 475: if egrep "winnitude" conftest.out >/dev/null 2>&1; then ! 476: echo checking for _getb67 ! 477: cat > conftest.c <<EOF ! 478: #include <ctype.h> ! 479: int main() { exit(0); } ! 480: int t() { ! 481: /* The GNU C library defines this for functions which it implements ! 482: to always fail with ENOSYS. Some functions are actually named ! 483: something starting with __ and the normal name is an alias. */ ! 484: #if defined (__stub__getb67) || defined (__stub____getb67) ! 485: choke me ! 486: #else ! 487: /* Override any gcc2 internal prototype to avoid an error. */ ! 488: extern char _getb67(); _getb67(); ! 489: #endif ! 490: } ! 491: EOF ! 492: if eval $compile; then ! 493: { ! 494: test -n "$verbose" && \ ! 495: echo " defining CRAY_STACKSEG_END to be _getb67" ! 496: DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67" ! 497: } ! 498: ! 499: else ! 500: echo checking for GETB67 ! 501: cat > conftest.c <<EOF ! 502: #include <ctype.h> ! 503: int main() { exit(0); } ! 504: int t() { ! 505: /* The GNU C library defines this for functions which it implements ! 506: to always fail with ENOSYS. Some functions are actually named ! 507: something starting with __ and the normal name is an alias. */ ! 508: #if defined (__stub_GETB67) || defined (__stub___GETB67) ! 509: choke me ! 510: #else ! 511: /* Override any gcc2 internal prototype to avoid an error. */ ! 512: extern char GETB67(); GETB67(); ! 513: #endif ! 514: } ! 515: EOF ! 516: if eval $compile; then ! 517: { ! 518: test -n "$verbose" && \ ! 519: echo " defining CRAY_STACKSEG_END to be GETB67" ! 520: DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67" ! 521: } ! 522: ! 523: else ! 524: echo checking for getb67 ! 525: cat > conftest.c <<EOF ! 526: #include <ctype.h> ! 527: int main() { exit(0); } ! 528: int t() { ! 529: /* The GNU C library defines this for functions which it implements ! 530: to always fail with ENOSYS. Some functions are actually named ! 531: something starting with __ and the normal name is an alias. */ ! 532: #if defined (__stub_getb67) || defined (__stub___getb67) ! 533: choke me ! 534: #else ! 535: /* Override any gcc2 internal prototype to avoid an error. */ ! 536: extern char getb67(); getb67(); ! 537: #endif ! 538: } ! 539: EOF ! 540: if eval $compile; then ! 541: { ! 542: test -n "$verbose" && \ ! 543: echo " defining CRAY_STACKSEG_END to be getb67" ! 544: DEFS="$DEFS -DCRAY_STACKSEG_END=getb67" ! 545: } ! 546: ! 547: fi ! 548: rm -f conftest* ! 549: ! 550: fi ! 551: rm -f conftest* ! 552: ! 553: fi ! 554: rm -f conftest* ! 555: ! 556: fi ! 557: rm -f conftest* ! 558: ! 559: ! 560: fi ! 561: rm -f conftest* ! 562: ! 563: if test -n "$alloca_missing"; then ! 564: # The SVR3 libPW and SVR4 libucb both contain incompatible functions ! 565: # that cause trouble. Some versions do not even contain alloca or ! 566: # contain a buggy version. If you still want to use their alloca, ! 567: # use ar to extract alloca.o from them instead of compiling alloca.c. ! 568: ALLOCA=alloca.o ! 569: ! 570: echo 'checking stack direction for C alloca' ! 571: echo checking whether cross-compiling ! 572: # If we cannot run a trivial program, we must be cross compiling. ! 573: cat > conftest.c <<EOF ! 574: main(){exit(0);} ! 575: EOF ! 576: eval $compile ! 577: if test -s conftest && (./conftest; exit) 2>/dev/null; then ! 578: : ! 579: else ! 580: cross_compiling=1 ! 581: fi ! 582: rm -f conftest* ! 583: ! 584: if test -n "$cross_compiling" ! 585: then ! 586: ! 587: { ! 588: test -n "$verbose" && \ ! 589: echo " defining STACK_DIRECTION to be 0" ! 590: DEFS="$DEFS -DSTACK_DIRECTION=0" ! 591: } ! 592: ! 593: else ! 594: cat > conftest.c <<EOF ! 595: find_stack_direction () ! 596: { ! 597: static char *addr = 0; ! 598: auto char dummy; ! 599: if (addr == 0) ! 600: { ! 601: addr = &dummy; ! 602: return find_stack_direction (); ! 603: } ! 604: else ! 605: return (&dummy > addr) ? 1 : -1; ! 606: } ! 607: main () ! 608: { ! 609: exit (find_stack_direction() < 0); ! 610: } ! 611: EOF ! 612: eval $compile ! 613: if test -s conftest && (./conftest; exit) 2>/dev/null; then ! 614: ! 615: { ! 616: test -n "$verbose" && \ ! 617: echo " defining STACK_DIRECTION to be 1" ! 618: DEFS="$DEFS -DSTACK_DIRECTION=1" ! 619: } ! 620: ! 621: else ! 622: ! 623: { ! 624: test -n "$verbose" && \ ! 625: echo " defining STACK_DIRECTION to be -1" ! 626: DEFS="$DEFS -DSTACK_DIRECTION=-1" ! 627: } ! 628: ! 629: fi ! 630: fi ! 631: rm -f conftest* ! 632: fi ! 633: ! 634: if test -n "$prefix"; then ! 635: test -z "$exec_prefix" && exec_prefix='${prefix}' ! 636: prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%" ! 637: fi ! 638: if test -n "$exec_prefix"; then ! 639: prsub="$prsub ! 640: s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%" ! 641: fi ! 642: cat >conftest.def <<EOF ! 643: $DEFS ! 644: EOF ! 645: escape_ampersand_and_backslash='s%[&\\]%\\&%g' ! 646: DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def` ! 647: rm -f conftest.def ! 648: ! 649: trap 'rm -f config.status; exit 1' 1 3 15 ! 650: echo creating config.status ! 651: rm -f config.status ! 652: cat > config.status <<EOF ! 653: #!/bin/sh ! 654: # Generated automatically by configure. ! 655: # Run this file to recreate the current configuration. ! 656: # This directory was configured as follows, ! 657: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 658: # ! 659: # $0 $configure_args ! 660: ! 661: for arg ! 662: do ! 663: case "\$arg" in ! 664: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 665: echo running /bin/sh $0 $configure_args ! 666: exec /bin/sh $0 $configure_args ;; ! 667: *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;; ! 668: esac ! 669: done ! 670: ! 671: trap 'rm -f Makefile; exit 1' 1 3 15 ! 672: CC='$CC' ! 673: CPP='$CPP' ! 674: INSTALL='$INSTALL' ! 675: INSTALL_PROGRAM='$INSTALL_PROGRAM' ! 676: INSTALL_DATA='$INSTALL_DATA' ! 677: ALLOCA='$ALLOCA' ! 678: LIBS='$LIBS' ! 679: srcdir='$srcdir' ! 680: DEFS='$DEFS' ! 681: prefix='$prefix' ! 682: exec_prefix='$exec_prefix' ! 683: prsub='$prsub' ! 684: EOF ! 685: cat >> config.status <<\EOF ! 686: ! 687: top_srcdir=$srcdir ! 688: ! 689: # Allow make-time overrides of the generated file list. ! 690: test -n "$gen_files" || gen_files="Makefile" ! 691: ! 692: for file in .. $gen_files; do if [ "x$file" != "x.." ]; then ! 693: srcdir=$top_srcdir ! 694: # Remove last slash and all that follows it. Not all systems have dirname. ! 695: dir=`echo $file|sed 's%/[^/][^/]*$%%'` ! 696: if test "$dir" != "$file"; then ! 697: test "$top_srcdir" != . && srcdir=$top_srcdir/$dir ! 698: test ! -d $dir && mkdir $dir ! 699: fi ! 700: echo creating $file ! 701: rm -f $file ! 702: echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file ! 703: sed -e " ! 704: $prsub ! 705: s%@CC@%$CC%g ! 706: s%@CPP@%$CPP%g ! 707: s%@INSTALL@%$INSTALL%g ! 708: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g ! 709: s%@INSTALL_DATA@%$INSTALL_DATA%g ! 710: s%@ALLOCA@%$ALLOCA%g ! 711: s%@LIBS@%$LIBS%g ! 712: s%@srcdir@%$srcdir%g ! 713: s%@DEFS@%$DEFS% ! 714: " $top_srcdir/${file}.in >> $file ! 715: fi; done ! 716: ! 717: exit 0 ! 718: EOF ! 719: chmod +x config.status ! 720: test -n "$no_create" || ./config.status ! 721:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.