Annotation of parser3/src/sql/pgsql/libltdl/configure, revision 1.1
1.1 ! parser 1: #! /bin/sh
! 2:
! 3: # Guess values for system-dependent variables and create Makefiles.
! 4: # Generated automatically using autoconf version 2.13
! 5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
! 6: #
! 7: # This configure script is free software; the Free Software Foundation
! 8: # gives unlimited permission to copy, distribute and modify it.
! 9:
! 10: # Defaults:
! 11: ac_help=
! 12: ac_default_prefix=/usr/local
! 13: # Any additions from configure.in:
! 14: ac_help="$ac_help
! 15: --enable-maintainer-mode enable make rules and dependencies not useful
! 16: (and sometimes confusing) to the casual installer"
! 17: ac_help="$ac_help
! 18: --enable-shared[=PKGS] build shared libraries [default=yes]"
! 19: ac_help="$ac_help
! 20: --enable-static[=PKGS] build static libraries [default=yes]"
! 21: ac_help="$ac_help
! 22: --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
! 23: ac_help="$ac_help
! 24: --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
! 25: ac_help="$ac_help
! 26: --disable-libtool-lock avoid locking (might break parallel builds)"
! 27: ac_help="$ac_help
! 28: --enable-ltdl-install install libltdl"
! 29:
! 30: # Initialize some variables set by options.
! 31: # The variables have the same names as the options, with
! 32: # dashes changed to underlines.
! 33: build=NONE
! 34: cache_file=./config.cache
! 35: exec_prefix=NONE
! 36: host=NONE
! 37: no_create=
! 38: nonopt=NONE
! 39: no_recursion=
! 40: prefix=NONE
! 41: program_prefix=NONE
! 42: program_suffix=NONE
! 43: program_transform_name=s,x,x,
! 44: silent=
! 45: site=
! 46: srcdir=
! 47: target=NONE
! 48: verbose=
! 49: x_includes=NONE
! 50: x_libraries=NONE
! 51: bindir='${exec_prefix}/bin'
! 52: sbindir='${exec_prefix}/sbin'
! 53: libexecdir='${exec_prefix}/libexec'
! 54: datadir='${prefix}/share'
! 55: sysconfdir='${prefix}/etc'
! 56: sharedstatedir='${prefix}/com'
! 57: localstatedir='${prefix}/var'
! 58: libdir='${exec_prefix}/lib'
! 59: includedir='${prefix}/include'
! 60: oldincludedir='/usr/include'
! 61: infodir='${prefix}/info'
! 62: mandir='${prefix}/man'
! 63:
! 64: # Initialize some other variables.
! 65: subdirs=
! 66: MFLAGS= MAKEFLAGS=
! 67: SHELL=${CONFIG_SHELL-/bin/sh}
! 68: # Maximum number of lines to put in a shell here document.
! 69: ac_max_here_lines=12
! 70:
! 71: ac_prev=
! 72: for ac_option
! 73: do
! 74:
! 75: # If the previous option needs an argument, assign it.
! 76: if test -n "$ac_prev"; then
! 77: eval "$ac_prev=\$ac_option"
! 78: ac_prev=
! 79: continue
! 80: fi
! 81:
! 82: case "$ac_option" in
! 83: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
! 84: *) ac_optarg= ;;
! 85: esac
! 86:
! 87: # Accept the important Cygnus configure options, so we can diagnose typos.
! 88:
! 89: case "$ac_option" in
! 90:
! 91: -bindir | --bindir | --bindi | --bind | --bin | --bi)
! 92: ac_prev=bindir ;;
! 93: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
! 94: bindir="$ac_optarg" ;;
! 95:
! 96: -build | --build | --buil | --bui | --bu)
! 97: ac_prev=build ;;
! 98: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
! 99: build="$ac_optarg" ;;
! 100:
! 101: -cache-file | --cache-file | --cache-fil | --cache-fi \
! 102: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
! 103: ac_prev=cache_file ;;
! 104: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
! 105: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
! 106: cache_file="$ac_optarg" ;;
! 107:
! 108: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
! 109: ac_prev=datadir ;;
! 110: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
! 111: | --da=*)
! 112: datadir="$ac_optarg" ;;
! 113:
! 114: -disable-* | --disable-*)
! 115: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
! 116: # Reject names that are not valid shell variable names.
! 117: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 118: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 119: fi
! 120: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 121: eval "enable_${ac_feature}=no" ;;
! 122:
! 123: -enable-* | --enable-*)
! 124: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
! 125: # Reject names that are not valid shell variable names.
! 126: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 127: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 128: fi
! 129: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 130: case "$ac_option" in
! 131: *=*) ;;
! 132: *) ac_optarg=yes ;;
! 133: esac
! 134: eval "enable_${ac_feature}='$ac_optarg'" ;;
! 135:
! 136: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
! 137: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
! 138: | --exec | --exe | --ex)
! 139: ac_prev=exec_prefix ;;
! 140: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
! 141: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
! 142: | --exec=* | --exe=* | --ex=*)
! 143: exec_prefix="$ac_optarg" ;;
! 144:
! 145: -gas | --gas | --ga | --g)
! 146: # Obsolete; use --with-gas.
! 147: with_gas=yes ;;
! 148:
! 149: -help | --help | --hel | --he)
! 150: # Omit some internal or obsolete options to make the list less imposing.
! 151: # This message is too long to be a string in the A/UX 3.1 sh.
! 152: cat << EOF
! 153: Usage: configure [options] [host]
! 154: Options: [defaults in brackets after descriptions]
! 155: Configuration:
! 156: --cache-file=FILE cache test results in FILE
! 157: --help print this message
! 158: --no-create do not create output files
! 159: --quiet, --silent do not print \`checking...' messages
! 160: --version print the version of autoconf that created configure
! 161: Directory and file names:
! 162: --prefix=PREFIX install architecture-independent files in PREFIX
! 163: [$ac_default_prefix]
! 164: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 165: [same as prefix]
! 166: --bindir=DIR user executables in DIR [EPREFIX/bin]
! 167: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
! 168: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
! 169: --datadir=DIR read-only architecture-independent data in DIR
! 170: [PREFIX/share]
! 171: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
! 172: --sharedstatedir=DIR modifiable architecture-independent data in DIR
! 173: [PREFIX/com]
! 174: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
! 175: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
! 176: --includedir=DIR C header files in DIR [PREFIX/include]
! 177: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
! 178: --infodir=DIR info documentation in DIR [PREFIX/info]
! 179: --mandir=DIR man documentation in DIR [PREFIX/man]
! 180: --srcdir=DIR find the sources in DIR [configure dir or ..]
! 181: --program-prefix=PREFIX prepend PREFIX to installed program names
! 182: --program-suffix=SUFFIX append SUFFIX to installed program names
! 183: --program-transform-name=PROGRAM
! 184: run sed PROGRAM on installed program names
! 185: EOF
! 186: cat << EOF
! 187: Host type:
! 188: --build=BUILD configure for building on BUILD [BUILD=HOST]
! 189: --host=HOST configure for HOST [guessed]
! 190: --target=TARGET configure for TARGET [TARGET=HOST]
! 191: Features and packages:
! 192: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 193: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 194: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
! 195: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
! 196: --x-includes=DIR X include files are in DIR
! 197: --x-libraries=DIR X library files are in DIR
! 198: EOF
! 199: if test -n "$ac_help"; then
! 200: echo "--enable and --with options recognized:$ac_help"
! 201: fi
! 202: exit 0 ;;
! 203:
! 204: -host | --host | --hos | --ho)
! 205: ac_prev=host ;;
! 206: -host=* | --host=* | --hos=* | --ho=*)
! 207: host="$ac_optarg" ;;
! 208:
! 209: -includedir | --includedir | --includedi | --included | --include \
! 210: | --includ | --inclu | --incl | --inc)
! 211: ac_prev=includedir ;;
! 212: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
! 213: | --includ=* | --inclu=* | --incl=* | --inc=*)
! 214: includedir="$ac_optarg" ;;
! 215:
! 216: -infodir | --infodir | --infodi | --infod | --info | --inf)
! 217: ac_prev=infodir ;;
! 218: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
! 219: infodir="$ac_optarg" ;;
! 220:
! 221: -libdir | --libdir | --libdi | --libd)
! 222: ac_prev=libdir ;;
! 223: -libdir=* | --libdir=* | --libdi=* | --libd=*)
! 224: libdir="$ac_optarg" ;;
! 225:
! 226: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
! 227: | --libexe | --libex | --libe)
! 228: ac_prev=libexecdir ;;
! 229: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
! 230: | --libexe=* | --libex=* | --libe=*)
! 231: libexecdir="$ac_optarg" ;;
! 232:
! 233: -localstatedir | --localstatedir | --localstatedi | --localstated \
! 234: | --localstate | --localstat | --localsta | --localst \
! 235: | --locals | --local | --loca | --loc | --lo)
! 236: ac_prev=localstatedir ;;
! 237: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
! 238: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
! 239: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
! 240: localstatedir="$ac_optarg" ;;
! 241:
! 242: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
! 243: ac_prev=mandir ;;
! 244: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
! 245: mandir="$ac_optarg" ;;
! 246:
! 247: -nfp | --nfp | --nf)
! 248: # Obsolete; use --without-fp.
! 249: with_fp=no ;;
! 250:
! 251: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 252: | --no-cr | --no-c)
! 253: no_create=yes ;;
! 254:
! 255: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 256: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
! 257: no_recursion=yes ;;
! 258:
! 259: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
! 260: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
! 261: | --oldin | --oldi | --old | --ol | --o)
! 262: ac_prev=oldincludedir ;;
! 263: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
! 264: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
! 265: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
! 266: oldincludedir="$ac_optarg" ;;
! 267:
! 268: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
! 269: ac_prev=prefix ;;
! 270: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
! 271: prefix="$ac_optarg" ;;
! 272:
! 273: -program-prefix | --program-prefix | --program-prefi | --program-pref \
! 274: | --program-pre | --program-pr | --program-p)
! 275: ac_prev=program_prefix ;;
! 276: -program-prefix=* | --program-prefix=* | --program-prefi=* \
! 277: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
! 278: program_prefix="$ac_optarg" ;;
! 279:
! 280: -program-suffix | --program-suffix | --program-suffi | --program-suff \
! 281: | --program-suf | --program-su | --program-s)
! 282: ac_prev=program_suffix ;;
! 283: -program-suffix=* | --program-suffix=* | --program-suffi=* \
! 284: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
! 285: program_suffix="$ac_optarg" ;;
! 286:
! 287: -program-transform-name | --program-transform-name \
! 288: | --program-transform-nam | --program-transform-na \
! 289: | --program-transform-n | --program-transform- \
! 290: | --program-transform | --program-transfor \
! 291: | --program-transfo | --program-transf \
! 292: | --program-trans | --program-tran \
! 293: | --progr-tra | --program-tr | --program-t)
! 294: ac_prev=program_transform_name ;;
! 295: -program-transform-name=* | --program-transform-name=* \
! 296: | --program-transform-nam=* | --program-transform-na=* \
! 297: | --program-transform-n=* | --program-transform-=* \
! 298: | --program-transform=* | --program-transfor=* \
! 299: | --program-transfo=* | --program-transf=* \
! 300: | --program-trans=* | --program-tran=* \
! 301: | --progr-tra=* | --program-tr=* | --program-t=*)
! 302: program_transform_name="$ac_optarg" ;;
! 303:
! 304: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 305: | -silent | --silent | --silen | --sile | --sil)
! 306: silent=yes ;;
! 307:
! 308: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
! 309: ac_prev=sbindir ;;
! 310: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
! 311: | --sbi=* | --sb=*)
! 312: sbindir="$ac_optarg" ;;
! 313:
! 314: -sharedstatedir | --sharedstatedir | --sharedstatedi \
! 315: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
! 316: | --sharedst | --shareds | --shared | --share | --shar \
! 317: | --sha | --sh)
! 318: ac_prev=sharedstatedir ;;
! 319: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
! 320: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
! 321: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
! 322: | --sha=* | --sh=*)
! 323: sharedstatedir="$ac_optarg" ;;
! 324:
! 325: -site | --site | --sit)
! 326: ac_prev=site ;;
! 327: -site=* | --site=* | --sit=*)
! 328: site="$ac_optarg" ;;
! 329:
! 330: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
! 331: ac_prev=srcdir ;;
! 332: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
! 333: srcdir="$ac_optarg" ;;
! 334:
! 335: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
! 336: | --syscon | --sysco | --sysc | --sys | --sy)
! 337: ac_prev=sysconfdir ;;
! 338: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
! 339: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
! 340: sysconfdir="$ac_optarg" ;;
! 341:
! 342: -target | --target | --targe | --targ | --tar | --ta | --t)
! 343: ac_prev=target ;;
! 344: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
! 345: target="$ac_optarg" ;;
! 346:
! 347: -v | -verbose | --verbose | --verbos | --verbo | --verb)
! 348: verbose=yes ;;
! 349:
! 350: -version | --version | --versio | --versi | --vers)
! 351: echo "configure generated by autoconf version 2.13"
! 352: exit 0 ;;
! 353:
! 354: -with-* | --with-*)
! 355: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
! 356: # Reject names that are not valid shell variable names.
! 357: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 358: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 359: fi
! 360: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 361: case "$ac_option" in
! 362: *=*) ;;
! 363: *) ac_optarg=yes ;;
! 364: esac
! 365: eval "with_${ac_package}='$ac_optarg'" ;;
! 366:
! 367: -without-* | --without-*)
! 368: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
! 369: # Reject names that are not valid shell variable names.
! 370: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 371: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 372: fi
! 373: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 374: eval "with_${ac_package}=no" ;;
! 375:
! 376: --x)
! 377: # Obsolete; use --with-x.
! 378: with_x=yes ;;
! 379:
! 380: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
! 381: | --x-incl | --x-inc | --x-in | --x-i)
! 382: ac_prev=x_includes ;;
! 383: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
! 384: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
! 385: x_includes="$ac_optarg" ;;
! 386:
! 387: -x-libraries | --x-libraries | --x-librarie | --x-librari \
! 388: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
! 389: ac_prev=x_libraries ;;
! 390: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
! 391: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
! 392: x_libraries="$ac_optarg" ;;
! 393:
! 394: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
! 395: ;;
! 396:
! 397: *)
! 398: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
! 399: echo "configure: warning: $ac_option: invalid host type" 1>&2
! 400: fi
! 401: if test "x$nonopt" != xNONE; then
! 402: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
! 403: fi
! 404: nonopt="$ac_option"
! 405: ;;
! 406:
! 407: esac
! 408: done
! 409:
! 410: if test -n "$ac_prev"; then
! 411: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
! 412: fi
! 413:
! 414: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 415:
! 416: # File descriptor usage:
! 417: # 0 standard input
! 418: # 1 file creation
! 419: # 2 errors and warnings
! 420: # 3 some systems may open it to /dev/tty
! 421: # 4 used on the Kubota Titan
! 422: # 6 checking for... messages and results
! 423: # 5 compiler messages saved in config.log
! 424: if test "$silent" = yes; then
! 425: exec 6>/dev/null
! 426: else
! 427: exec 6>&1
! 428: fi
! 429: exec 5>./config.log
! 430:
! 431: echo "\
! 432: This file contains any messages produced by compilers while
! 433: running configure, to aid debugging if configure makes a mistake.
! 434: " 1>&5
! 435:
! 436: # Strip out --no-create and --no-recursion so they do not pile up.
! 437: # Also quote any args containing shell metacharacters.
! 438: ac_configure_args=
! 439: for ac_arg
! 440: do
! 441: case "$ac_arg" in
! 442: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 443: | --no-cr | --no-c) ;;
! 444: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 445: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
! 446: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
! 447: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
! 448: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
! 449: esac
! 450: done
! 451:
! 452: # NLS nuisances.
! 453: # Only set these to C if already set. These must not be set unconditionally
! 454: # because not all systems understand e.g. LANG=C (notably SCO).
! 455: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! 456: # Non-C LC_CTYPE values break the ctype check.
! 457: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
! 458: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
! 459: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
! 460: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
! 461:
! 462: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 463: rm -rf conftest* confdefs.h
! 464: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 465: echo > confdefs.h
! 466:
! 467: # A filename unique to this package, relative to the directory that
! 468: # configure is in, which we can look for to find out if srcdir is correct.
! 469: ac_unique_file=ltdl.c
! 470:
! 471: # Find the source files, if location was not specified.
! 472: if test -z "$srcdir"; then
! 473: ac_srcdir_defaulted=yes
! 474: # Try the directory containing this script, then its parent.
! 475: ac_prog=$0
! 476: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
! 477: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
! 478: srcdir=$ac_confdir
! 479: if test ! -r $srcdir/$ac_unique_file; then
! 480: srcdir=..
! 481: fi
! 482: else
! 483: ac_srcdir_defaulted=no
! 484: fi
! 485: if test ! -r $srcdir/$ac_unique_file; then
! 486: if test "$ac_srcdir_defaulted" = yes; then
! 487: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
! 488: else
! 489: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
! 490: fi
! 491: fi
! 492: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
! 493:
! 494: # Prefer explicitly selected file to automatically selected ones.
! 495: if test -z "$CONFIG_SITE"; then
! 496: if test "x$prefix" != xNONE; then
! 497: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
! 498: else
! 499: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
! 500: fi
! 501: fi
! 502: for ac_site_file in $CONFIG_SITE; do
! 503: if test -r "$ac_site_file"; then
! 504: echo "loading site script $ac_site_file"
! 505: . "$ac_site_file"
! 506: fi
! 507: done
! 508:
! 509: if test -r "$cache_file"; then
! 510: echo "loading cache $cache_file"
! 511: . $cache_file
! 512: else
! 513: echo "creating cache $cache_file"
! 514: > $cache_file
! 515: fi
! 516:
! 517: ac_ext=c
! 518: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 519: ac_cpp='$CPP $CPPFLAGS'
! 520: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 521: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 522: cross_compiling=$ac_cv_prog_cc_cross
! 523:
! 524: ac_exeext=
! 525: ac_objext=o
! 526: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
! 527: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
! 528: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
! 529: ac_n= ac_c='
! 530: ' ac_t=' '
! 531: else
! 532: ac_n=-n ac_c= ac_t=
! 533: fi
! 534: else
! 535: ac_n= ac_c='\c' ac_t=
! 536: fi
! 537:
! 538:
! 539:
! 540: enable_ltdl_install=yes
! 541:
! 542: ac_aux_dir=
! 543: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
! 544: if test -f $ac_dir/install-sh; then
! 545: ac_aux_dir=$ac_dir
! 546: ac_install_sh="$ac_aux_dir/install-sh -c"
! 547: break
! 548: elif test -f $ac_dir/install.sh; then
! 549: ac_aux_dir=$ac_dir
! 550: ac_install_sh="$ac_aux_dir/install.sh -c"
! 551: break
! 552: fi
! 553: done
! 554: if test -z "$ac_aux_dir"; then
! 555: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
! 556: fi
! 557: ac_config_guess=$ac_aux_dir/config.guess
! 558: ac_config_sub=$ac_aux_dir/config.sub
! 559: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
! 560:
! 561: # Find a good install program. We prefer a C program (faster),
! 562: # so one script is as good as another. But avoid the broken or
! 563: # incompatible versions:
! 564: # SysV /etc/install, /usr/sbin/install
! 565: # SunOS /usr/etc/install
! 566: # IRIX /sbin/install
! 567: # AIX /bin/install
! 568: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
! 569: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 570: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 571: # ./install, which can be erroneously created by make from ./install.sh.
! 572: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! 573: echo "configure:574: checking for a BSD compatible install" >&5
! 574: if test -z "$INSTALL"; then
! 575: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
! 576: echo $ac_n "(cached) $ac_c" 1>&6
! 577: else
! 578: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
! 579: for ac_dir in $PATH; do
! 580: # Account for people who put trailing slashes in PATH elements.
! 581: case "$ac_dir/" in
! 582: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
! 583: *)
! 584: # OSF1 and SCO ODT 3.0 have their own names for install.
! 585: # Don't use installbsd from OSF since it installs stuff as root
! 586: # by default.
! 587: for ac_prog in ginstall scoinst install; do
! 588: if test -f $ac_dir/$ac_prog; then
! 589: if test $ac_prog = install &&
! 590: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
! 591: # AIX install. It has an incompatible calling convention.
! 592: :
! 593: else
! 594: ac_cv_path_install="$ac_dir/$ac_prog -c"
! 595: break 2
! 596: fi
! 597: fi
! 598: done
! 599: ;;
! 600: esac
! 601: done
! 602: IFS="$ac_save_IFS"
! 603:
! 604: fi
! 605: if test "${ac_cv_path_install+set}" = set; then
! 606: INSTALL="$ac_cv_path_install"
! 607: else
! 608: # As a last resort, use the slow shell script. We don't cache a
! 609: # path for INSTALL within a source directory, because that will
! 610: # break other packages using the cache if that directory is
! 611: # removed, or if the path is relative.
! 612: INSTALL="$ac_install_sh"
! 613: fi
! 614: fi
! 615: echo "$ac_t""$INSTALL" 1>&6
! 616:
! 617: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
! 618: # It thinks the first close brace ends the variable substitution.
! 619: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
! 620:
! 621: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
! 622:
! 623: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
! 624:
! 625: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
! 626: echo "configure:627: checking whether build environment is sane" >&5
! 627: # Just in case
! 628: sleep 1
! 629: echo timestamp > conftestfile
! 630: # Do `set' in a subshell so we don't clobber the current shell's
! 631: # arguments. Must try -L first in case configure is actually a
! 632: # symlink; some systems play weird games with the mod time of symlinks
! 633: # (eg FreeBSD returns the mod time of the symlink's containing
! 634: # directory).
! 635: if (
! 636: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
! 637: if test "$*" = "X"; then
! 638: # -L didn't work.
! 639: set X `ls -t $srcdir/configure conftestfile`
! 640: fi
! 641: if test "$*" != "X $srcdir/configure conftestfile" \
! 642: && test "$*" != "X conftestfile $srcdir/configure"; then
! 643:
! 644: # If neither matched, then we have a broken ls. This can happen
! 645: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 646: # broken ls alias from the environment. This has actually
! 647: # happened. Such a system could not be considered "sane".
! 648: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
! 649: alias in your environment" 1>&2; exit 1; }
! 650: fi
! 651:
! 652: test "$2" = conftestfile
! 653: )
! 654: then
! 655: # Ok.
! 656: :
! 657: else
! 658: { echo "configure: error: newly created file is older than distributed files!
! 659: Check your system clock" 1>&2; exit 1; }
! 660: fi
! 661: rm -f conftest*
! 662: echo "$ac_t""yes" 1>&6
! 663: if test "$program_transform_name" = s,x,x,; then
! 664: program_transform_name=
! 665: else
! 666: # Double any \ or $. echo might interpret backslashes.
! 667: cat <<\EOF_SED > conftestsed
! 668: s,\\,\\\\,g; s,\$,$$,g
! 669: EOF_SED
! 670: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
! 671: rm -f conftestsed
! 672: fi
! 673: test "$program_prefix" != NONE &&
! 674: program_transform_name="s,^,${program_prefix},; $program_transform_name"
! 675: # Use a double $ so make ignores it.
! 676: test "$program_suffix" != NONE &&
! 677: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
! 678:
! 679: # sed with no file args requires a program.
! 680: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
! 681:
! 682: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! 683: echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
! 684: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
! 685: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
! 686: echo $ac_n "(cached) $ac_c" 1>&6
! 687: else
! 688: cat > conftestmake <<\EOF
! 689: all:
! 690: @echo 'ac_maketemp="${MAKE}"'
! 691: EOF
! 692: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 693: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
! 694: if test -n "$ac_maketemp"; then
! 695: eval ac_cv_prog_make_${ac_make}_set=yes
! 696: else
! 697: eval ac_cv_prog_make_${ac_make}_set=no
! 698: fi
! 699: rm -f conftestmake
! 700: fi
! 701: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
! 702: echo "$ac_t""yes" 1>&6
! 703: SET_MAKE=
! 704: else
! 705: echo "$ac_t""no" 1>&6
! 706: SET_MAKE="MAKE=${MAKE-make}"
! 707: fi
! 708:
! 709:
! 710: PACKAGE=libltdl
! 711:
! 712: VERSION=1.0
! 713:
! 714: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
! 715: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
! 716: fi
! 717:
! 718:
! 719:
! 720: missing_dir=`cd $ac_aux_dir && pwd`
! 721: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
! 722: echo "configure:723: checking for working aclocal" >&5
! 723: # Run test in a subshell; some versions of sh will print an error if
! 724: # an executable is not found, even if stderr is redirected.
! 725: # Redirect stdin to placate older versions of autoconf. Sigh.
! 726: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
! 727: ACLOCAL=aclocal
! 728: echo "$ac_t""found" 1>&6
! 729: else
! 730: ACLOCAL="$missing_dir/missing aclocal"
! 731: echo "$ac_t""missing" 1>&6
! 732: fi
! 733:
! 734: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
! 735: echo "configure:736: checking for working autoconf" >&5
! 736: # Run test in a subshell; some versions of sh will print an error if
! 737: # an executable is not found, even if stderr is redirected.
! 738: # Redirect stdin to placate older versions of autoconf. Sigh.
! 739: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
! 740: AUTOCONF=autoconf
! 741: echo "$ac_t""found" 1>&6
! 742: else
! 743: AUTOCONF="$missing_dir/missing autoconf"
! 744: echo "$ac_t""missing" 1>&6
! 745: fi
! 746:
! 747: echo $ac_n "checking for working automake""... $ac_c" 1>&6
! 748: echo "configure:749: checking for working automake" >&5
! 749: # Run test in a subshell; some versions of sh will print an error if
! 750: # an executable is not found, even if stderr is redirected.
! 751: # Redirect stdin to placate older versions of autoconf. Sigh.
! 752: if (automake --version) < /dev/null > /dev/null 2>&1; then
! 753: AUTOMAKE=automake
! 754: echo "$ac_t""found" 1>&6
! 755: else
! 756: AUTOMAKE="$missing_dir/missing automake"
! 757: echo "$ac_t""missing" 1>&6
! 758: fi
! 759:
! 760: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
! 761: echo "configure:762: checking for working autoheader" >&5
! 762: # Run test in a subshell; some versions of sh will print an error if
! 763: # an executable is not found, even if stderr is redirected.
! 764: # Redirect stdin to placate older versions of autoconf. Sigh.
! 765: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
! 766: AUTOHEADER=autoheader
! 767: echo "$ac_t""found" 1>&6
! 768: else
! 769: AUTOHEADER="$missing_dir/missing autoheader"
! 770: echo "$ac_t""missing" 1>&6
! 771: fi
! 772:
! 773: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
! 774: echo "configure:775: checking for working makeinfo" >&5
! 775: # Run test in a subshell; some versions of sh will print an error if
! 776: # an executable is not found, even if stderr is redirected.
! 777: # Redirect stdin to placate older versions of autoconf. Sigh.
! 778: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
! 779: MAKEINFO=makeinfo
! 780: echo "$ac_t""found" 1>&6
! 781: else
! 782: MAKEINFO="$missing_dir/missing makeinfo"
! 783: echo "$ac_t""missing" 1>&6
! 784: fi
! 785:
! 786:
! 787:
! 788:
! 789:
! 790: echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
! 791: echo "configure:792: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 792: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
! 793: if test "${enable_maintainer_mode+set}" = set; then
! 794: enableval="$enable_maintainer_mode"
! 795: USE_MAINTAINER_MODE=$enableval
! 796: else
! 797: USE_MAINTAINER_MODE=no
! 798: fi
! 799:
! 800: echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
! 801:
! 802:
! 803: if test $USE_MAINTAINER_MODE = yes; then
! 804: MAINTAINER_MODE_TRUE=
! 805: MAINTAINER_MODE_FALSE='#'
! 806: else
! 807: MAINTAINER_MODE_TRUE='#'
! 808: MAINTAINER_MODE_FALSE=
! 809: fi
! 810: MAINT=$MAINTAINER_MODE_TRUE
! 811:
! 812:
! 813:
! 814: # Extract the first word of "gcc", so it can be a program name with args.
! 815: set dummy gcc; ac_word=$2
! 816: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 817: echo "configure:818: checking for $ac_word" >&5
! 818: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 819: echo $ac_n "(cached) $ac_c" 1>&6
! 820: else
! 821: if test -n "$CC"; then
! 822: ac_cv_prog_CC="$CC" # Let the user override the test.
! 823: else
! 824: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 825: ac_dummy="$PATH"
! 826: for ac_dir in $ac_dummy; do
! 827: test -z "$ac_dir" && ac_dir=.
! 828: if test -f $ac_dir/$ac_word; then
! 829: ac_cv_prog_CC="gcc"
! 830: break
! 831: fi
! 832: done
! 833: IFS="$ac_save_ifs"
! 834: fi
! 835: fi
! 836: CC="$ac_cv_prog_CC"
! 837: if test -n "$CC"; then
! 838: echo "$ac_t""$CC" 1>&6
! 839: else
! 840: echo "$ac_t""no" 1>&6
! 841: fi
! 842:
! 843: if test -z "$CC"; then
! 844: # Extract the first word of "cc", so it can be a program name with args.
! 845: set dummy cc; ac_word=$2
! 846: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 847: echo "configure:848: checking for $ac_word" >&5
! 848: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 849: echo $ac_n "(cached) $ac_c" 1>&6
! 850: else
! 851: if test -n "$CC"; then
! 852: ac_cv_prog_CC="$CC" # Let the user override the test.
! 853: else
! 854: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 855: ac_prog_rejected=no
! 856: ac_dummy="$PATH"
! 857: for ac_dir in $ac_dummy; do
! 858: test -z "$ac_dir" && ac_dir=.
! 859: if test -f $ac_dir/$ac_word; then
! 860: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
! 861: ac_prog_rejected=yes
! 862: continue
! 863: fi
! 864: ac_cv_prog_CC="cc"
! 865: break
! 866: fi
! 867: done
! 868: IFS="$ac_save_ifs"
! 869: if test $ac_prog_rejected = yes; then
! 870: # We found a bogon in the path, so make sure we never use it.
! 871: set dummy $ac_cv_prog_CC
! 872: shift
! 873: if test $# -gt 0; then
! 874: # We chose a different compiler from the bogus one.
! 875: # However, it has the same basename, so the bogon will be chosen
! 876: # first if we set CC to just the basename; use the full file name.
! 877: shift
! 878: set dummy "$ac_dir/$ac_word" "$@"
! 879: shift
! 880: ac_cv_prog_CC="$@"
! 881: fi
! 882: fi
! 883: fi
! 884: fi
! 885: CC="$ac_cv_prog_CC"
! 886: if test -n "$CC"; then
! 887: echo "$ac_t""$CC" 1>&6
! 888: else
! 889: echo "$ac_t""no" 1>&6
! 890: fi
! 891:
! 892: if test -z "$CC"; then
! 893: case "`uname -s`" in
! 894: *win32* | *WIN32*)
! 895: # Extract the first word of "cl", so it can be a program name with args.
! 896: set dummy cl; ac_word=$2
! 897: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 898: echo "configure:899: checking for $ac_word" >&5
! 899: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 900: echo $ac_n "(cached) $ac_c" 1>&6
! 901: else
! 902: if test -n "$CC"; then
! 903: ac_cv_prog_CC="$CC" # Let the user override the test.
! 904: else
! 905: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 906: ac_dummy="$PATH"
! 907: for ac_dir in $ac_dummy; do
! 908: test -z "$ac_dir" && ac_dir=.
! 909: if test -f $ac_dir/$ac_word; then
! 910: ac_cv_prog_CC="cl"
! 911: break
! 912: fi
! 913: done
! 914: IFS="$ac_save_ifs"
! 915: fi
! 916: fi
! 917: CC="$ac_cv_prog_CC"
! 918: if test -n "$CC"; then
! 919: echo "$ac_t""$CC" 1>&6
! 920: else
! 921: echo "$ac_t""no" 1>&6
! 922: fi
! 923: ;;
! 924: esac
! 925: fi
! 926: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
! 927: fi
! 928:
! 929: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! 930: echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
! 931:
! 932: ac_ext=c
! 933: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 934: ac_cpp='$CPP $CPPFLAGS'
! 935: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 936: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 937: cross_compiling=$ac_cv_prog_cc_cross
! 938:
! 939: cat > conftest.$ac_ext << EOF
! 940:
! 941: #line 942 "configure"
! 942: #include "confdefs.h"
! 943:
! 944: main(){return(0);}
! 945: EOF
! 946: if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 947: ac_cv_prog_cc_works=yes
! 948: # If we can't run a trivial program, we are probably using a cross compiler.
! 949: if (./conftest; exit) 2>/dev/null; then
! 950: ac_cv_prog_cc_cross=no
! 951: else
! 952: ac_cv_prog_cc_cross=yes
! 953: fi
! 954: else
! 955: echo "configure: failed program was:" >&5
! 956: cat conftest.$ac_ext >&5
! 957: ac_cv_prog_cc_works=no
! 958: fi
! 959: rm -fr conftest*
! 960: ac_ext=c
! 961: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 962: ac_cpp='$CPP $CPPFLAGS'
! 963: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 964: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 965: cross_compiling=$ac_cv_prog_cc_cross
! 966:
! 967: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
! 968: if test $ac_cv_prog_cc_works = no; then
! 969: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
! 970: fi
! 971: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! 972: echo "configure:973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
! 973: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
! 974: cross_compiling=$ac_cv_prog_cc_cross
! 975:
! 976: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! 977: echo "configure:978: checking whether we are using GNU C" >&5
! 978: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
! 979: echo $ac_n "(cached) $ac_c" 1>&6
! 980: else
! 981: cat > conftest.c <<EOF
! 982: #ifdef __GNUC__
! 983: yes;
! 984: #endif
! 985: EOF
! 986: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
! 987: ac_cv_prog_gcc=yes
! 988: else
! 989: ac_cv_prog_gcc=no
! 990: fi
! 991: fi
! 992:
! 993: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
! 994:
! 995: if test $ac_cv_prog_gcc = yes; then
! 996: GCC=yes
! 997: else
! 998: GCC=
! 999: fi
! 1000:
! 1001: ac_test_CFLAGS="${CFLAGS+set}"
! 1002: ac_save_CFLAGS="$CFLAGS"
! 1003: CFLAGS=
! 1004: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! 1005: echo "configure:1006: checking whether ${CC-cc} accepts -g" >&5
! 1006: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
! 1007: echo $ac_n "(cached) $ac_c" 1>&6
! 1008: else
! 1009: echo 'void f(){}' > conftest.c
! 1010: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
! 1011: ac_cv_prog_cc_g=yes
! 1012: else
! 1013: ac_cv_prog_cc_g=no
! 1014: fi
! 1015: rm -f conftest*
! 1016:
! 1017: fi
! 1018:
! 1019: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
! 1020: if test "$ac_test_CFLAGS" = set; then
! 1021: CFLAGS="$ac_save_CFLAGS"
! 1022: elif test $ac_cv_prog_cc_g = yes; then
! 1023: if test "$GCC" = yes; then
! 1024: CFLAGS="-g -O2"
! 1025: else
! 1026: CFLAGS="-g"
! 1027: fi
! 1028: else
! 1029: if test "$GCC" = yes; then
! 1030: CFLAGS="-O2"
! 1031: else
! 1032: CFLAGS=
! 1033: fi
! 1034: fi
! 1035:
! 1036: echo $ac_n "checking for working const""... $ac_c" 1>&6
! 1037: echo "configure:1038: checking for working const" >&5
! 1038: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
! 1039: echo $ac_n "(cached) $ac_c" 1>&6
! 1040: else
! 1041: cat > conftest.$ac_ext <<EOF
! 1042: #line 1043 "configure"
! 1043: #include "confdefs.h"
! 1044:
! 1045: int main() {
! 1046:
! 1047: /* Ultrix mips cc rejects this. */
! 1048: typedef int charset[2]; const charset x;
! 1049: /* SunOS 4.1.1 cc rejects this. */
! 1050: char const *const *ccp;
! 1051: char **p;
! 1052: /* NEC SVR4.0.2 mips cc rejects this. */
! 1053: struct point {int x, y;};
! 1054: static struct point const zero = {0,0};
! 1055: /* AIX XL C 1.02.0.0 rejects this.
! 1056: It does not let you subtract one const X* pointer from another in an arm
! 1057: of an if-expression whose if-part is not a constant expression */
! 1058: const char *g = "string";
! 1059: ccp = &g + (g ? g-g : 0);
! 1060: /* HPUX 7.0 cc rejects these. */
! 1061: ++ccp;
! 1062: p = (char**) ccp;
! 1063: ccp = (char const *const *) p;
! 1064: { /* SCO 3.2v4 cc rejects this. */
! 1065: char *t;
! 1066: char const *s = 0 ? (char *) 0 : (char const *) 0;
! 1067:
! 1068: *t++ = 0;
! 1069: }
! 1070: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
! 1071: int x[] = {25, 17};
! 1072: const int *foo = &x[0];
! 1073: ++foo;
! 1074: }
! 1075: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
! 1076: typedef const int *iptr;
! 1077: iptr p = 0;
! 1078: ++p;
! 1079: }
! 1080: { /* AIX XL C 1.02.0.0 rejects this saying
! 1081: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
! 1082: struct s { int j; const int *ap[3]; };
! 1083: struct s *b; b->j = 5;
! 1084: }
! 1085: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
! 1086: const int foo = 10;
! 1087: }
! 1088:
! 1089: ; return 0; }
! 1090: EOF
! 1091: if { (eval echo configure:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1092: rm -rf conftest*
! 1093: ac_cv_c_const=yes
! 1094: else
! 1095: echo "configure: failed program was:" >&5
! 1096: cat conftest.$ac_ext >&5
! 1097: rm -rf conftest*
! 1098: ac_cv_c_const=no
! 1099: fi
! 1100: rm -f conftest*
! 1101: fi
! 1102:
! 1103: echo "$ac_t""$ac_cv_c_const" 1>&6
! 1104: if test $ac_cv_c_const = no; then
! 1105: cat >> confdefs.h <<\EOF
! 1106: #define const
! 1107: EOF
! 1108:
! 1109: fi
! 1110:
! 1111: echo $ac_n "checking for inline""... $ac_c" 1>&6
! 1112: echo "configure:1113: checking for inline" >&5
! 1113: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
! 1114: echo $ac_n "(cached) $ac_c" 1>&6
! 1115: else
! 1116: ac_cv_c_inline=no
! 1117: for ac_kw in inline __inline__ __inline; do
! 1118: cat > conftest.$ac_ext <<EOF
! 1119: #line 1120 "configure"
! 1120: #include "confdefs.h"
! 1121:
! 1122: int main() {
! 1123: } $ac_kw foo() {
! 1124: ; return 0; }
! 1125: EOF
! 1126: if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1127: rm -rf conftest*
! 1128: ac_cv_c_inline=$ac_kw; break
! 1129: else
! 1130: echo "configure: failed program was:" >&5
! 1131: cat conftest.$ac_ext >&5
! 1132: fi
! 1133: rm -f conftest*
! 1134: done
! 1135:
! 1136: fi
! 1137:
! 1138: echo "$ac_t""$ac_cv_c_inline" 1>&6
! 1139: case "$ac_cv_c_inline" in
! 1140: inline | yes) ;;
! 1141: no) cat >> confdefs.h <<\EOF
! 1142: #define inline
! 1143: EOF
! 1144: ;;
! 1145: *) cat >> confdefs.h <<EOF
! 1146: #define inline $ac_cv_c_inline
! 1147: EOF
! 1148: ;;
! 1149: esac
! 1150:
! 1151: # Check whether --enable-shared or --disable-shared was given.
! 1152: if test "${enable_shared+set}" = set; then
! 1153: enableval="$enable_shared"
! 1154: p=${PACKAGE-default}
! 1155: case "$enableval" in
! 1156: yes) enable_shared=yes ;;
! 1157: no) enable_shared=no ;;
! 1158: *)
! 1159: enable_shared=no
! 1160: # Look at the argument we got. We use all the common list separators.
! 1161: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 1162: for pkg in $enableval; do
! 1163: if test "X$pkg" = "X$p"; then
! 1164: enable_shared=yes
! 1165: fi
! 1166: done
! 1167: IFS="$ac_save_ifs"
! 1168: ;;
! 1169: esac
! 1170: else
! 1171: enable_shared=yes
! 1172: fi
! 1173:
! 1174: # Check whether --enable-static or --disable-static was given.
! 1175: if test "${enable_static+set}" = set; then
! 1176: enableval="$enable_static"
! 1177: p=${PACKAGE-default}
! 1178: case "$enableval" in
! 1179: yes) enable_static=yes ;;
! 1180: no) enable_static=no ;;
! 1181: *)
! 1182: enable_static=no
! 1183: # Look at the argument we got. We use all the common list separators.
! 1184: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 1185: for pkg in $enableval; do
! 1186: if test "X$pkg" = "X$p"; then
! 1187: enable_static=yes
! 1188: fi
! 1189: done
! 1190: IFS="$ac_save_ifs"
! 1191: ;;
! 1192: esac
! 1193: else
! 1194: enable_static=yes
! 1195: fi
! 1196:
! 1197: # Check whether --enable-fast-install or --disable-fast-install was given.
! 1198: if test "${enable_fast_install+set}" = set; then
! 1199: enableval="$enable_fast_install"
! 1200: p=${PACKAGE-default}
! 1201: case "$enableval" in
! 1202: yes) enable_fast_install=yes ;;
! 1203: no) enable_fast_install=no ;;
! 1204: *)
! 1205: enable_fast_install=no
! 1206: # Look at the argument we got. We use all the common list separators.
! 1207: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
! 1208: for pkg in $enableval; do
! 1209: if test "X$pkg" = "X$p"; then
! 1210: enable_fast_install=yes
! 1211: fi
! 1212: done
! 1213: IFS="$ac_save_ifs"
! 1214: ;;
! 1215: esac
! 1216: else
! 1217: enable_fast_install=yes
! 1218: fi
! 1219:
! 1220:
! 1221: # Make sure we can run config.sub.
! 1222: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
! 1223: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
! 1224: fi
! 1225:
! 1226: echo $ac_n "checking host system type""... $ac_c" 1>&6
! 1227: echo "configure:1228: checking host system type" >&5
! 1228:
! 1229: host_alias=$host
! 1230: case "$host_alias" in
! 1231: NONE)
! 1232: case $nonopt in
! 1233: NONE)
! 1234: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
! 1235: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
! 1236: fi ;;
! 1237: *) host_alias=$nonopt ;;
! 1238: esac ;;
! 1239: esac
! 1240:
! 1241: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
! 1242: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1243: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1244: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 1245: echo "$ac_t""$host" 1>&6
! 1246:
! 1247: echo $ac_n "checking build system type""... $ac_c" 1>&6
! 1248: echo "configure:1249: checking build system type" >&5
! 1249:
! 1250: build_alias=$build
! 1251: case "$build_alias" in
! 1252: NONE)
! 1253: case $nonopt in
! 1254: NONE) build_alias=$host_alias ;;
! 1255: *) build_alias=$nonopt ;;
! 1256: esac ;;
! 1257: esac
! 1258:
! 1259: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
! 1260: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1261: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1262: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 1263: echo "$ac_t""$build" 1>&6
! 1264:
! 1265: # Extract the first word of "ranlib", so it can be a program name with args.
! 1266: set dummy ranlib; ac_word=$2
! 1267: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 1268: echo "configure:1269: checking for $ac_word" >&5
! 1269: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
! 1270: echo $ac_n "(cached) $ac_c" 1>&6
! 1271: else
! 1272: if test -n "$RANLIB"; then
! 1273: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 1274: else
! 1275: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 1276: ac_dummy="$PATH"
! 1277: for ac_dir in $ac_dummy; do
! 1278: test -z "$ac_dir" && ac_dir=.
! 1279: if test -f $ac_dir/$ac_word; then
! 1280: ac_cv_prog_RANLIB="ranlib"
! 1281: break
! 1282: fi
! 1283: done
! 1284: IFS="$ac_save_ifs"
! 1285: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
! 1286: fi
! 1287: fi
! 1288: RANLIB="$ac_cv_prog_RANLIB"
! 1289: if test -n "$RANLIB"; then
! 1290: echo "$ac_t""$RANLIB" 1>&6
! 1291: else
! 1292: echo "$ac_t""no" 1>&6
! 1293: fi
! 1294:
! 1295: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 1296: if test "${with_gnu_ld+set}" = set; then
! 1297: withval="$with_gnu_ld"
! 1298: test "$withval" = no || with_gnu_ld=yes
! 1299: else
! 1300: with_gnu_ld=no
! 1301: fi
! 1302:
! 1303: ac_prog=ld
! 1304: if test "$ac_cv_prog_gcc" = yes; then
! 1305: # Check if gcc -print-prog-name=ld gives a path.
! 1306: echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
! 1307: echo "configure:1308: checking for ld used by GCC" >&5
! 1308: ac_prog=`($CC -print-prog-name=ld) 2>&5`
! 1309: case "$ac_prog" in
! 1310: # Accept absolute paths.
! 1311: [\\/]* | [A-Za-z]:[\\/]*)
! 1312: re_direlt='/[^/][^/]*/\.\./'
! 1313: # Canonicalize the path of ld
! 1314: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
! 1315: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 1316: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
! 1317: done
! 1318: test -z "$LD" && LD="$ac_prog"
! 1319: ;;
! 1320: "")
! 1321: # If it fails, then pretend we aren't using GCC.
! 1322: ac_prog=ld
! 1323: ;;
! 1324: *)
! 1325: # If it is relative, then search for the first ld in PATH.
! 1326: with_gnu_ld=unknown
! 1327: ;;
! 1328: esac
! 1329: elif test "$with_gnu_ld" = yes; then
! 1330: echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
! 1331: echo "configure:1332: checking for GNU ld" >&5
! 1332: else
! 1333: echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
! 1334: echo "configure:1335: checking for non-GNU ld" >&5
! 1335: fi
! 1336: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
! 1337: echo $ac_n "(cached) $ac_c" 1>&6
! 1338: else
! 1339: if test -z "$LD"; then
! 1340: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
! 1341: for ac_dir in $PATH; do
! 1342: test -z "$ac_dir" && ac_dir=.
! 1343: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 1344: ac_cv_path_LD="$ac_dir/$ac_prog"
! 1345: # Check to see if the program is GNU ld. I'd rather use --version,
! 1346: # but apparently some GNU ld's only accept -v.
! 1347: # Break only if it was the GNU/non-GNU ld that we prefer.
! 1348: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
! 1349: test "$with_gnu_ld" != no && break
! 1350: else
! 1351: test "$with_gnu_ld" != yes && break
! 1352: fi
! 1353: fi
! 1354: done
! 1355: IFS="$ac_save_ifs"
! 1356: else
! 1357: ac_cv_path_LD="$LD" # Let the user override the test with a path.
! 1358: fi
! 1359: fi
! 1360:
! 1361: LD="$ac_cv_path_LD"
! 1362: if test -n "$LD"; then
! 1363: echo "$ac_t""$LD" 1>&6
! 1364: else
! 1365: echo "$ac_t""no" 1>&6
! 1366: fi
! 1367: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
! 1368: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
! 1369: echo "configure:1370: checking if the linker ($LD) is GNU ld" >&5
! 1370: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
! 1371: echo $ac_n "(cached) $ac_c" 1>&6
! 1372: else
! 1373: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
! 1374: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
! 1375: ac_cv_prog_gnu_ld=yes
! 1376: else
! 1377: ac_cv_prog_gnu_ld=no
! 1378: fi
! 1379: fi
! 1380:
! 1381: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
! 1382:
! 1383:
! 1384: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
! 1385: echo "configure:1386: checking for BSD-compatible nm" >&5
! 1386: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
! 1387: echo $ac_n "(cached) $ac_c" 1>&6
! 1388: else
! 1389: if test -n "$NM"; then
! 1390: # Let the user override the test.
! 1391: ac_cv_path_NM="$NM"
! 1392: else
! 1393: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
! 1394: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
! 1395: test -z "$ac_dir" && ac_dir=.
! 1396: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
! 1397: # Check to see if the nm accepts a BSD-compat flag.
! 1398: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 1399: # nm: unknown option "B" ignored
! 1400: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 1401: ac_cv_path_NM="$ac_dir/nm -B"
! 1402: break
! 1403: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
! 1404: ac_cv_path_NM="$ac_dir/nm -p"
! 1405: break
! 1406: else
! 1407: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
! 1408: continue # so that we can try to find one that supports BSD flags
! 1409: fi
! 1410: fi
! 1411: done
! 1412: IFS="$ac_save_ifs"
! 1413: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
! 1414: fi
! 1415: fi
! 1416:
! 1417: NM="$ac_cv_path_NM"
! 1418: echo "$ac_t""$NM" 1>&6
! 1419:
! 1420: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
! 1421: echo "configure:1422: checking whether ln -s works" >&5
! 1422: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
! 1423: echo $ac_n "(cached) $ac_c" 1>&6
! 1424: else
! 1425: rm -f conftestdata
! 1426: if ln -s X conftestdata 2>/dev/null
! 1427: then
! 1428: rm -f conftestdata
! 1429: ac_cv_prog_LN_S="ln -s"
! 1430: else
! 1431: ac_cv_prog_LN_S=ln
! 1432: fi
! 1433: fi
! 1434: LN_S="$ac_cv_prog_LN_S"
! 1435: if test "$ac_cv_prog_LN_S" = "ln -s"; then
! 1436: echo "$ac_t""yes" 1>&6
! 1437: else
! 1438: echo "$ac_t""no" 1>&6
! 1439: fi
! 1440:
! 1441:
! 1442: case "$target" in
! 1443: NONE) lt_target="$host" ;;
! 1444: *) lt_target="$target" ;;
! 1445: esac
! 1446:
! 1447: # Check for any special flags to pass to ltconfig.
! 1448: libtool_flags="--cache-file=$cache_file"
! 1449: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
! 1450: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
! 1451: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
! 1452: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
! 1453: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
! 1454:
! 1455:
! 1456: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 1457: if test "${enable_libtool_lock+set}" = set; then
! 1458: enableval="$enable_libtool_lock"
! 1459: :
! 1460: fi
! 1461:
! 1462: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
! 1463: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
! 1464:
! 1465: # Some flags need to be propagated to the compiler or linker for good
! 1466: # libtool support.
! 1467: case "$lt_target" in
! 1468: *-*-irix6*)
! 1469: # Find out which ABI we are using.
! 1470: echo '#line 1471 "configure"' > conftest.$ac_ext
! 1471: if { (eval echo configure:1472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1472: case "`/usr/bin/file conftest.o`" in
! 1473: *32-bit*)
! 1474: LD="${LD-ld} -32"
! 1475: ;;
! 1476: *N32*)
! 1477: LD="${LD-ld} -n32"
! 1478: ;;
! 1479: *64-bit*)
! 1480: LD="${LD-ld} -64"
! 1481: ;;
! 1482: esac
! 1483: fi
! 1484: rm -rf conftest*
! 1485: ;;
! 1486:
! 1487: *-*-sco3.2v5*)
! 1488: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 1489: SAVE_CFLAGS="$CFLAGS"
! 1490: CFLAGS="$CFLAGS -belf"
! 1491: echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
! 1492: echo "configure:1493: checking whether the C compiler needs -belf" >&5
! 1493: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
! 1494: echo $ac_n "(cached) $ac_c" 1>&6
! 1495: else
! 1496: cat > conftest.$ac_ext <<EOF
! 1497: #line 1498 "configure"
! 1498: #include "confdefs.h"
! 1499:
! 1500: int main() {
! 1501:
! 1502: ; return 0; }
! 1503: EOF
! 1504: if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1505: rm -rf conftest*
! 1506: lt_cv_cc_needs_belf=yes
! 1507: else
! 1508: echo "configure: failed program was:" >&5
! 1509: cat conftest.$ac_ext >&5
! 1510: rm -rf conftest*
! 1511: lt_cv_cc_needs_belf=no
! 1512: fi
! 1513: rm -f conftest*
! 1514: fi
! 1515:
! 1516: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
! 1517: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 1518: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 1519: CFLAGS="$SAVE_CFLAGS"
! 1520: fi
! 1521: ;;
! 1522:
! 1523:
! 1524: esac
! 1525:
! 1526:
! 1527: # Save cache, so that ltconfig can load it
! 1528: cat > confcache <<\EOF
! 1529: # This file is a shell script that caches the results of configure
! 1530: # tests run on this system so they can be shared between configure
! 1531: # scripts and configure runs. It is not useful on other systems.
! 1532: # If it contains results you don't want to keep, you may remove or edit it.
! 1533: #
! 1534: # By default, configure uses ./config.cache as the cache file,
! 1535: # creating it if it does not exist already. You can give configure
! 1536: # the --cache-file=FILE option to use a different cache file; that is
! 1537: # what configure does when it calls configure scripts in
! 1538: # subdirectories, so they share the cache.
! 1539: # Giving --cache-file=/dev/null disables caching, for debugging configure.
! 1540: # config.status only pays attention to the cache file if you give it the
! 1541: # --recheck option to rerun configure.
! 1542: #
! 1543: EOF
! 1544: # The following way of writing the cache mishandles newlines in values,
! 1545: # but we know of no workaround that is simple, portable, and efficient.
! 1546: # So, don't put newlines in cache variables' values.
! 1547: # Ultrix sh set writes to stderr and can't be redirected directly,
! 1548: # and sets the high bit in the cache file unless we assign to the vars.
! 1549: (set) 2>&1 |
! 1550: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 1551: *ac_space=\ *)
! 1552: # `set' does not quote correctly, so add quotes (double-quote substitution
! 1553: # turns \\\\ into \\, and sed turns \\ into \).
! 1554: sed -n \
! 1555: -e "s/'/'\\\\''/g" \
! 1556: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
! 1557: ;;
! 1558: *)
! 1559: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 1560: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
! 1561: ;;
! 1562: esac >> confcache
! 1563: if cmp -s $cache_file confcache; then
! 1564: :
! 1565: else
! 1566: if test -w $cache_file; then
! 1567: echo "updating cache $cache_file"
! 1568: cat confcache > $cache_file
! 1569: else
! 1570: echo "not updating unwritable cache $cache_file"
! 1571: fi
! 1572: fi
! 1573: rm -f confcache
! 1574:
! 1575:
! 1576: # Actually configure libtool. ac_aux_dir is where install-sh is found.
! 1577: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
! 1578: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
! 1579: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
! 1580: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
! 1581: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
! 1582: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
! 1583: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
! 1584:
! 1585: # Reload cache, that may have been modified by ltconfig
! 1586: if test -r "$cache_file"; then
! 1587: echo "loading cache $cache_file"
! 1588: . $cache_file
! 1589: else
! 1590: echo "creating cache $cache_file"
! 1591: > $cache_file
! 1592: fi
! 1593:
! 1594:
! 1595: # This can be used to rebuild libtool when needed
! 1596: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
! 1597:
! 1598: # Always use our own libtool.
! 1599: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
! 1600:
! 1601: # Redirect the config.log output again, so that the ltconfig log is not
! 1602: # clobbered by the next message.
! 1603: exec 5>>./config.log
! 1604:
! 1605:
! 1606:
! 1607: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
! 1608: if test "${enable_ltdl_install+set}" = set; then
! 1609: enableval="$enable_ltdl_install"
! 1610: :
! 1611: fi
! 1612:
! 1613:
! 1614:
! 1615:
! 1616: if test x"${enable_ltdl_install-no}" != xno; then
! 1617: INSTALL_LTDL_TRUE=
! 1618: INSTALL_LTDL_FALSE='#'
! 1619: else
! 1620: INSTALL_LTDL_TRUE='#'
! 1621: INSTALL_LTDL_FALSE=
! 1622: fi
! 1623:
! 1624:
! 1625: if test x"${enable_ltdl_convenience-no}" != xno; then
! 1626: CONVENIENCE_LTDL_TRUE=
! 1627: CONVENIENCE_LTDL_FALSE='#'
! 1628: else
! 1629: CONVENIENCE_LTDL_TRUE='#'
! 1630: CONVENIENCE_LTDL_FALSE=
! 1631: fi
! 1632:
! 1633: rm -f conftest
! 1634: ./libtool --config > conftest
! 1635: . ./conftest
! 1636: rm -f conftest
! 1637:
! 1638: echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
! 1639: echo "configure:1640: checking which extension is used for shared libraries" >&5
! 1640: if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
! 1641: echo $ac_n "(cached) $ac_c" 1>&6
! 1642: else
! 1643: (
! 1644: last=
! 1645: for spec in $library_names_spec; do
! 1646: last="$spec"
! 1647: done
! 1648:
! 1649: echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
! 1650:
! 1651: )
! 1652: libltdl_cv_shlibext=`cat conftest`
! 1653: rm -f conftest
! 1654:
! 1655: fi
! 1656:
! 1657: echo "$ac_t""$libltdl_cv_shlibext" 1>&6
! 1658: if test -n "$libltdl_cv_shlibext"; then
! 1659: cat >> confdefs.h <<EOF
! 1660: #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
! 1661: EOF
! 1662:
! 1663: fi
! 1664:
! 1665: echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
! 1666: echo "configure:1667: checking which variable specifies run-time library path" >&5
! 1667: if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
! 1668: echo $ac_n "(cached) $ac_c" 1>&6
! 1669: else
! 1670: libltdl_cv_shlibpath_var="$shlibpath_var"
! 1671: fi
! 1672:
! 1673: echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
! 1674: if test -n "$libltdl_cv_shlibpath_var"; then
! 1675: cat >> confdefs.h <<EOF
! 1676: #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
! 1677: EOF
! 1678:
! 1679: fi
! 1680:
! 1681: echo $ac_n "checking for objdir""... $ac_c" 1>&6
! 1682: echo "configure:1683: checking for objdir" >&5
! 1683: if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
! 1684: echo $ac_n "(cached) $ac_c" 1>&6
! 1685: else
! 1686: libltdl_cv_objdir="$objdir"
! 1687: fi
! 1688:
! 1689: echo "$ac_t""$libltdl_cv_objdir" 1>&6
! 1690: test -z "$libltdl_cv_objdir" && libltdl_cv_objdir=".libs"
! 1691: cat >> confdefs.h <<EOF
! 1692: #define LTDL_OBJDIR "$libltdl_cv_objdir/"
! 1693: EOF
! 1694:
! 1695:
! 1696: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! 1697: echo "configure:1698: checking how to run the C preprocessor" >&5
! 1698: # On Suns, sometimes $CPP names a directory.
! 1699: if test -n "$CPP" && test -d "$CPP"; then
! 1700: CPP=
! 1701: fi
! 1702: if test -z "$CPP"; then
! 1703: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
! 1704: echo $ac_n "(cached) $ac_c" 1>&6
! 1705: else
! 1706: # This must be in double quotes, not single quotes, because CPP may get
! 1707: # substituted into the Makefile and "${CC-cc}" will confuse make.
! 1708: CPP="${CC-cc} -E"
! 1709: # On the NeXT, cc -E runs the code through the compiler's parser,
! 1710: # not just through cpp.
! 1711: cat > conftest.$ac_ext <<EOF
! 1712: #line 1713 "configure"
! 1713: #include "confdefs.h"
! 1714: #include <assert.h>
! 1715: Syntax Error
! 1716: EOF
! 1717: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1718: { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1719: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1720: if test -z "$ac_err"; then
! 1721: :
! 1722: else
! 1723: echo "$ac_err" >&5
! 1724: echo "configure: failed program was:" >&5
! 1725: cat conftest.$ac_ext >&5
! 1726: rm -rf conftest*
! 1727: CPP="${CC-cc} -E -traditional-cpp"
! 1728: cat > conftest.$ac_ext <<EOF
! 1729: #line 1730 "configure"
! 1730: #include "confdefs.h"
! 1731: #include <assert.h>
! 1732: Syntax Error
! 1733: EOF
! 1734: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1735: { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1736: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1737: if test -z "$ac_err"; then
! 1738: :
! 1739: else
! 1740: echo "$ac_err" >&5
! 1741: echo "configure: failed program was:" >&5
! 1742: cat conftest.$ac_ext >&5
! 1743: rm -rf conftest*
! 1744: CPP="${CC-cc} -nologo -E"
! 1745: cat > conftest.$ac_ext <<EOF
! 1746: #line 1747 "configure"
! 1747: #include "confdefs.h"
! 1748: #include <assert.h>
! 1749: Syntax Error
! 1750: EOF
! 1751: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1752: { (eval echo configure:1753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1753: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1754: if test -z "$ac_err"; then
! 1755: :
! 1756: else
! 1757: echo "$ac_err" >&5
! 1758: echo "configure: failed program was:" >&5
! 1759: cat conftest.$ac_ext >&5
! 1760: rm -rf conftest*
! 1761: CPP=/lib/cpp
! 1762: fi
! 1763: rm -f conftest*
! 1764: fi
! 1765: rm -f conftest*
! 1766: fi
! 1767: rm -f conftest*
! 1768: ac_cv_prog_CPP="$CPP"
! 1769: fi
! 1770: CPP="$ac_cv_prog_CPP"
! 1771: else
! 1772: ac_cv_prog_CPP="$CPP"
! 1773: fi
! 1774: echo "$ac_t""$CPP" 1>&6
! 1775:
! 1776: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! 1777: echo "configure:1778: checking for ANSI C header files" >&5
! 1778: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
! 1779: echo $ac_n "(cached) $ac_c" 1>&6
! 1780: else
! 1781: cat > conftest.$ac_ext <<EOF
! 1782: #line 1783 "configure"
! 1783: #include "confdefs.h"
! 1784: #include <stdlib.h>
! 1785: #include <stdarg.h>
! 1786: #include <string.h>
! 1787: #include <float.h>
! 1788: EOF
! 1789: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1790: { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1791: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1792: if test -z "$ac_err"; then
! 1793: rm -rf conftest*
! 1794: ac_cv_header_stdc=yes
! 1795: else
! 1796: echo "$ac_err" >&5
! 1797: echo "configure: failed program was:" >&5
! 1798: cat conftest.$ac_ext >&5
! 1799: rm -rf conftest*
! 1800: ac_cv_header_stdc=no
! 1801: fi
! 1802: rm -f conftest*
! 1803:
! 1804: if test $ac_cv_header_stdc = yes; then
! 1805: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 1806: cat > conftest.$ac_ext <<EOF
! 1807: #line 1808 "configure"
! 1808: #include "confdefs.h"
! 1809: #include <string.h>
! 1810: EOF
! 1811: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1812: egrep "memchr" >/dev/null 2>&1; then
! 1813: :
! 1814: else
! 1815: rm -rf conftest*
! 1816: ac_cv_header_stdc=no
! 1817: fi
! 1818: rm -f conftest*
! 1819:
! 1820: fi
! 1821:
! 1822: if test $ac_cv_header_stdc = yes; then
! 1823: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 1824: cat > conftest.$ac_ext <<EOF
! 1825: #line 1826 "configure"
! 1826: #include "confdefs.h"
! 1827: #include <stdlib.h>
! 1828: EOF
! 1829: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1830: egrep "free" >/dev/null 2>&1; then
! 1831: :
! 1832: else
! 1833: rm -rf conftest*
! 1834: ac_cv_header_stdc=no
! 1835: fi
! 1836: rm -f conftest*
! 1837:
! 1838: fi
! 1839:
! 1840: if test $ac_cv_header_stdc = yes; then
! 1841: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 1842: if test "$cross_compiling" = yes; then
! 1843: :
! 1844: else
! 1845: cat > conftest.$ac_ext <<EOF
! 1846: #line 1847 "configure"
! 1847: #include "confdefs.h"
! 1848: #include <ctype.h>
! 1849: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 1850: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 1851: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 1852: int main () { int i; for (i = 0; i < 256; i++)
! 1853: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
! 1854: exit (0); }
! 1855:
! 1856: EOF
! 1857: if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
! 1858: then
! 1859: :
! 1860: else
! 1861: echo "configure: failed program was:" >&5
! 1862: cat conftest.$ac_ext >&5
! 1863: rm -fr conftest*
! 1864: ac_cv_header_stdc=no
! 1865: fi
! 1866: rm -fr conftest*
! 1867: fi
! 1868:
! 1869: fi
! 1870: fi
! 1871:
! 1872: echo "$ac_t""$ac_cv_header_stdc" 1>&6
! 1873: if test $ac_cv_header_stdc = yes; then
! 1874: cat >> confdefs.h <<\EOF
! 1875: #define STDC_HEADERS 1
! 1876: EOF
! 1877:
! 1878: fi
! 1879:
! 1880: for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
! 1881: do
! 1882: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 1883: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 1884: echo "configure:1885: checking for $ac_hdr" >&5
! 1885: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1886: echo $ac_n "(cached) $ac_c" 1>&6
! 1887: else
! 1888: cat > conftest.$ac_ext <<EOF
! 1889: #line 1890 "configure"
! 1890: #include "confdefs.h"
! 1891: #include <$ac_hdr>
! 1892: EOF
! 1893: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1894: { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1895: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1896: if test -z "$ac_err"; then
! 1897: rm -rf conftest*
! 1898: eval "ac_cv_header_$ac_safe=yes"
! 1899: else
! 1900: echo "$ac_err" >&5
! 1901: echo "configure: failed program was:" >&5
! 1902: cat conftest.$ac_ext >&5
! 1903: rm -rf conftest*
! 1904: eval "ac_cv_header_$ac_safe=no"
! 1905: fi
! 1906: rm -f conftest*
! 1907: fi
! 1908: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 1909: echo "$ac_t""yes" 1>&6
! 1910: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 1911: cat >> confdefs.h <<EOF
! 1912: #define $ac_tr_hdr 1
! 1913: EOF
! 1914:
! 1915: else
! 1916: echo "$ac_t""no" 1>&6
! 1917: fi
! 1918: done
! 1919:
! 1920: for ac_hdr in string.h strings.h
! 1921: do
! 1922: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 1923: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 1924: echo "configure:1925: checking for $ac_hdr" >&5
! 1925: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1926: echo $ac_n "(cached) $ac_c" 1>&6
! 1927: else
! 1928: cat > conftest.$ac_ext <<EOF
! 1929: #line 1930 "configure"
! 1930: #include "confdefs.h"
! 1931: #include <$ac_hdr>
! 1932: EOF
! 1933: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1934: { (eval echo configure:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1935: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 1936: if test -z "$ac_err"; then
! 1937: rm -rf conftest*
! 1938: eval "ac_cv_header_$ac_safe=yes"
! 1939: else
! 1940: echo "$ac_err" >&5
! 1941: echo "configure: failed program was:" >&5
! 1942: cat conftest.$ac_ext >&5
! 1943: rm -rf conftest*
! 1944: eval "ac_cv_header_$ac_safe=no"
! 1945: fi
! 1946: rm -f conftest*
! 1947: fi
! 1948: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 1949: echo "$ac_t""yes" 1>&6
! 1950: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 1951: cat >> confdefs.h <<EOF
! 1952: #define $ac_tr_hdr 1
! 1953: EOF
! 1954: break
! 1955: else
! 1956: echo "$ac_t""no" 1>&6
! 1957: fi
! 1958: done
! 1959:
! 1960: for ac_func in strchr index
! 1961: do
! 1962: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 1963: echo "configure:1964: checking for $ac_func" >&5
! 1964: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 1965: echo $ac_n "(cached) $ac_c" 1>&6
! 1966: else
! 1967: cat > conftest.$ac_ext <<EOF
! 1968: #line 1969 "configure"
! 1969: #include "confdefs.h"
! 1970: /* System header to define __stub macros and hopefully few prototypes,
! 1971: which can conflict with char $ac_func(); below. */
! 1972: #include <assert.h>
! 1973: /* Override any gcc2 internal prototype to avoid an error. */
! 1974: /* We use char because int might match the return type of a gcc2
! 1975: builtin and then its argument prototype would still apply. */
! 1976: char $ac_func();
! 1977:
! 1978: int main() {
! 1979:
! 1980: /* The GNU C library defines this for functions which it implements
! 1981: to always fail with ENOSYS. Some functions are actually named
! 1982: something starting with __ and the normal name is an alias. */
! 1983: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 1984: choke me
! 1985: #else
! 1986: $ac_func();
! 1987: #endif
! 1988:
! 1989: ; return 0; }
! 1990: EOF
! 1991: if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1992: rm -rf conftest*
! 1993: eval "ac_cv_func_$ac_func=yes"
! 1994: else
! 1995: echo "configure: failed program was:" >&5
! 1996: cat conftest.$ac_ext >&5
! 1997: rm -rf conftest*
! 1998: eval "ac_cv_func_$ac_func=no"
! 1999: fi
! 2000: rm -f conftest*
! 2001: fi
! 2002:
! 2003: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 2004: echo "$ac_t""yes" 1>&6
! 2005: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 2006: cat >> confdefs.h <<EOF
! 2007: #define $ac_tr_func 1
! 2008: EOF
! 2009: break
! 2010: else
! 2011: echo "$ac_t""no" 1>&6
! 2012: fi
! 2013: done
! 2014:
! 2015: for ac_func in strrchr rindex
! 2016: do
! 2017: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 2018: echo "configure:2019: checking for $ac_func" >&5
! 2019: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 2020: echo $ac_n "(cached) $ac_c" 1>&6
! 2021: else
! 2022: cat > conftest.$ac_ext <<EOF
! 2023: #line 2024 "configure"
! 2024: #include "confdefs.h"
! 2025: /* System header to define __stub macros and hopefully few prototypes,
! 2026: which can conflict with char $ac_func(); below. */
! 2027: #include <assert.h>
! 2028: /* Override any gcc2 internal prototype to avoid an error. */
! 2029: /* We use char because int might match the return type of a gcc2
! 2030: builtin and then its argument prototype would still apply. */
! 2031: char $ac_func();
! 2032:
! 2033: int main() {
! 2034:
! 2035: /* The GNU C library defines this for functions which it implements
! 2036: to always fail with ENOSYS. Some functions are actually named
! 2037: something starting with __ and the normal name is an alias. */
! 2038: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 2039: choke me
! 2040: #else
! 2041: $ac_func();
! 2042: #endif
! 2043:
! 2044: ; return 0; }
! 2045: EOF
! 2046: if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2047: rm -rf conftest*
! 2048: eval "ac_cv_func_$ac_func=yes"
! 2049: else
! 2050: echo "configure: failed program was:" >&5
! 2051: cat conftest.$ac_ext >&5
! 2052: rm -rf conftest*
! 2053: eval "ac_cv_func_$ac_func=no"
! 2054: fi
! 2055: rm -f conftest*
! 2056: fi
! 2057:
! 2058: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 2059: echo "$ac_t""yes" 1>&6
! 2060: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 2061: cat >> confdefs.h <<EOF
! 2062: #define $ac_tr_func 1
! 2063: EOF
! 2064: break
! 2065: else
! 2066: echo "$ac_t""no" 1>&6
! 2067: fi
! 2068: done
! 2069:
! 2070:
! 2071: echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
! 2072: echo "configure:2073: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 2073: if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
! 2074: echo $ac_n "(cached) $ac_c" 1>&6
! 2075: else
! 2076: if test -n "$global_symbol_pipe"; then
! 2077: libltdl_cv_preloaded_symbols=yes
! 2078: else
! 2079: libltdl_cv_preloaded_symbols=no
! 2080: fi
! 2081:
! 2082: fi
! 2083:
! 2084: echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
! 2085: if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
! 2086: cat >> confdefs.h <<\EOF
! 2087: #define HAVE_PRELOADED_SYMBOLS 1
! 2088: EOF
! 2089:
! 2090: fi
! 2091:
! 2092: LIBADD_DL=
! 2093: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! 2094: echo "configure:2095: checking for dlopen in -ldl" >&5
! 2095: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
! 2096: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 2097: echo $ac_n "(cached) $ac_c" 1>&6
! 2098: else
! 2099: ac_save_LIBS="$LIBS"
! 2100: LIBS="-ldl $LIBS"
! 2101: cat > conftest.$ac_ext <<EOF
! 2102: #line 2103 "configure"
! 2103: #include "confdefs.h"
! 2104: /* Override any gcc2 internal prototype to avoid an error. */
! 2105: /* We use char because int might match the return type of a gcc2
! 2106: builtin and then its argument prototype would still apply. */
! 2107: char dlopen();
! 2108:
! 2109: int main() {
! 2110: dlopen()
! 2111: ; return 0; }
! 2112: EOF
! 2113: if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2114: rm -rf conftest*
! 2115: eval "ac_cv_lib_$ac_lib_var=yes"
! 2116: else
! 2117: echo "configure: failed program was:" >&5
! 2118: cat conftest.$ac_ext >&5
! 2119: rm -rf conftest*
! 2120: eval "ac_cv_lib_$ac_lib_var=no"
! 2121: fi
! 2122: rm -f conftest*
! 2123: LIBS="$ac_save_LIBS"
! 2124:
! 2125: fi
! 2126: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 2127: echo "$ac_t""yes" 1>&6
! 2128: cat >> confdefs.h <<\EOF
! 2129: #define HAVE_LIBDL 1
! 2130: EOF
! 2131: LIBADD_DL="-ldl"
! 2132: else
! 2133: echo "$ac_t""no" 1>&6
! 2134: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
! 2135: echo "configure:2136: checking for dlopen" >&5
! 2136: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
! 2137: echo $ac_n "(cached) $ac_c" 1>&6
! 2138: else
! 2139: cat > conftest.$ac_ext <<EOF
! 2140: #line 2141 "configure"
! 2141: #include "confdefs.h"
! 2142: /* System header to define __stub macros and hopefully few prototypes,
! 2143: which can conflict with char dlopen(); below. */
! 2144: #include <assert.h>
! 2145: /* Override any gcc2 internal prototype to avoid an error. */
! 2146: /* We use char because int might match the return type of a gcc2
! 2147: builtin and then its argument prototype would still apply. */
! 2148: char dlopen();
! 2149:
! 2150: int main() {
! 2151:
! 2152: /* The GNU C library defines this for functions which it implements
! 2153: to always fail with ENOSYS. Some functions are actually named
! 2154: something starting with __ and the normal name is an alias. */
! 2155: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 2156: choke me
! 2157: #else
! 2158: dlopen();
! 2159: #endif
! 2160:
! 2161: ; return 0; }
! 2162: EOF
! 2163: if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2164: rm -rf conftest*
! 2165: eval "ac_cv_func_dlopen=yes"
! 2166: else
! 2167: echo "configure: failed program was:" >&5
! 2168: cat conftest.$ac_ext >&5
! 2169: rm -rf conftest*
! 2170: eval "ac_cv_func_dlopen=no"
! 2171: fi
! 2172: rm -f conftest*
! 2173: fi
! 2174:
! 2175: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
! 2176: echo "$ac_t""yes" 1>&6
! 2177: cat >> confdefs.h <<\EOF
! 2178: #define HAVE_LIBDL 1
! 2179: EOF
! 2180:
! 2181: else
! 2182: echo "$ac_t""no" 1>&6
! 2183: fi
! 2184:
! 2185: fi
! 2186:
! 2187: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
! 2188: echo "configure:2189: checking for shl_load" >&5
! 2189: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
! 2190: echo $ac_n "(cached) $ac_c" 1>&6
! 2191: else
! 2192: cat > conftest.$ac_ext <<EOF
! 2193: #line 2194 "configure"
! 2194: #include "confdefs.h"
! 2195: /* System header to define __stub macros and hopefully few prototypes,
! 2196: which can conflict with char shl_load(); below. */
! 2197: #include <assert.h>
! 2198: /* Override any gcc2 internal prototype to avoid an error. */
! 2199: /* We use char because int might match the return type of a gcc2
! 2200: builtin and then its argument prototype would still apply. */
! 2201: char shl_load();
! 2202:
! 2203: int main() {
! 2204:
! 2205: /* The GNU C library defines this for functions which it implements
! 2206: to always fail with ENOSYS. Some functions are actually named
! 2207: something starting with __ and the normal name is an alias. */
! 2208: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 2209: choke me
! 2210: #else
! 2211: shl_load();
! 2212: #endif
! 2213:
! 2214: ; return 0; }
! 2215: EOF
! 2216: if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2217: rm -rf conftest*
! 2218: eval "ac_cv_func_shl_load=yes"
! 2219: else
! 2220: echo "configure: failed program was:" >&5
! 2221: cat conftest.$ac_ext >&5
! 2222: rm -rf conftest*
! 2223: eval "ac_cv_func_shl_load=no"
! 2224: fi
! 2225: rm -f conftest*
! 2226: fi
! 2227:
! 2228: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
! 2229: echo "$ac_t""yes" 1>&6
! 2230: cat >> confdefs.h <<\EOF
! 2231: #define HAVE_SHL_LOAD 1
! 2232: EOF
! 2233:
! 2234: else
! 2235: echo "$ac_t""no" 1>&6
! 2236: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! 2237: echo "configure:2238: checking for shl_load in -ldld" >&5
! 2238: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
! 2239: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 2240: echo $ac_n "(cached) $ac_c" 1>&6
! 2241: else
! 2242: ac_save_LIBS="$LIBS"
! 2243: LIBS="-ldld $LIBS"
! 2244: cat > conftest.$ac_ext <<EOF
! 2245: #line 2246 "configure"
! 2246: #include "confdefs.h"
! 2247: /* Override any gcc2 internal prototype to avoid an error. */
! 2248: /* We use char because int might match the return type of a gcc2
! 2249: builtin and then its argument prototype would still apply. */
! 2250: char shl_load();
! 2251:
! 2252: int main() {
! 2253: shl_load()
! 2254: ; return 0; }
! 2255: EOF
! 2256: if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2257: rm -rf conftest*
! 2258: eval "ac_cv_lib_$ac_lib_var=yes"
! 2259: else
! 2260: echo "configure: failed program was:" >&5
! 2261: cat conftest.$ac_ext >&5
! 2262: rm -rf conftest*
! 2263: eval "ac_cv_lib_$ac_lib_var=no"
! 2264: fi
! 2265: rm -f conftest*
! 2266: LIBS="$ac_save_LIBS"
! 2267:
! 2268: fi
! 2269: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 2270: echo "$ac_t""yes" 1>&6
! 2271: cat >> confdefs.h <<\EOF
! 2272: #define HAVE_SHL_LOAD 1
! 2273: EOF
! 2274: LIBADD_DL="$LIBADD_DL -ldld"
! 2275: else
! 2276: echo "$ac_t""no" 1>&6
! 2277: fi
! 2278:
! 2279: fi
! 2280:
! 2281: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
! 2282: echo "configure:2283: checking for dld_link in -ldld" >&5
! 2283: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
! 2284: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 2285: echo $ac_n "(cached) $ac_c" 1>&6
! 2286: else
! 2287: ac_save_LIBS="$LIBS"
! 2288: LIBS="-ldld $LIBS"
! 2289: cat > conftest.$ac_ext <<EOF
! 2290: #line 2291 "configure"
! 2291: #include "confdefs.h"
! 2292: /* Override any gcc2 internal prototype to avoid an error. */
! 2293: /* We use char because int might match the return type of a gcc2
! 2294: builtin and then its argument prototype would still apply. */
! 2295: char dld_link();
! 2296:
! 2297: int main() {
! 2298: dld_link()
! 2299: ; return 0; }
! 2300: EOF
! 2301: if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2302: rm -rf conftest*
! 2303: eval "ac_cv_lib_$ac_lib_var=yes"
! 2304: else
! 2305: echo "configure: failed program was:" >&5
! 2306: cat conftest.$ac_ext >&5
! 2307: rm -rf conftest*
! 2308: eval "ac_cv_lib_$ac_lib_var=no"
! 2309: fi
! 2310: rm -f conftest*
! 2311: LIBS="$ac_save_LIBS"
! 2312:
! 2313: fi
! 2314: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 2315: echo "$ac_t""yes" 1>&6
! 2316: cat >> confdefs.h <<\EOF
! 2317: #define HAVE_DLD 1
! 2318: EOF
! 2319: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
! 2320: else
! 2321: echo "$ac_t""no" 1>&6
! 2322: fi
! 2323:
! 2324:
! 2325:
! 2326: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
! 2327: LIBS_SAVE="$LIBS"
! 2328: LIBS="$LIBS $LIBADD_DL"
! 2329: for ac_func in dlerror
! 2330: do
! 2331: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 2332: echo "configure:2333: checking for $ac_func" >&5
! 2333: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 2334: echo $ac_n "(cached) $ac_c" 1>&6
! 2335: else
! 2336: cat > conftest.$ac_ext <<EOF
! 2337: #line 2338 "configure"
! 2338: #include "confdefs.h"
! 2339: /* System header to define __stub macros and hopefully few prototypes,
! 2340: which can conflict with char $ac_func(); below. */
! 2341: #include <assert.h>
! 2342: /* Override any gcc2 internal prototype to avoid an error. */
! 2343: /* We use char because int might match the return type of a gcc2
! 2344: builtin and then its argument prototype would still apply. */
! 2345: char $ac_func();
! 2346:
! 2347: int main() {
! 2348:
! 2349: /* The GNU C library defines this for functions which it implements
! 2350: to always fail with ENOSYS. Some functions are actually named
! 2351: something starting with __ and the normal name is an alias. */
! 2352: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 2353: choke me
! 2354: #else
! 2355: $ac_func();
! 2356: #endif
! 2357:
! 2358: ; return 0; }
! 2359: EOF
! 2360: if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 2361: rm -rf conftest*
! 2362: eval "ac_cv_func_$ac_func=yes"
! 2363: else
! 2364: echo "configure: failed program was:" >&5
! 2365: cat conftest.$ac_ext >&5
! 2366: rm -rf conftest*
! 2367: eval "ac_cv_func_$ac_func=no"
! 2368: fi
! 2369: rm -f conftest*
! 2370: fi
! 2371:
! 2372: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 2373: echo "$ac_t""yes" 1>&6
! 2374: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 2375: cat >> confdefs.h <<EOF
! 2376: #define $ac_tr_func 1
! 2377: EOF
! 2378:
! 2379: else
! 2380: echo "$ac_t""no" 1>&6
! 2381: fi
! 2382: done
! 2383:
! 2384: LIBS="$LIBS_SAVE"
! 2385: fi
! 2386:
! 2387: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 2388: echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
! 2389: echo "configure:2390: checking command to parse $NM output" >&5
! 2390: if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
! 2391: echo $ac_n "(cached) $ac_c" 1>&6
! 2392: else
! 2393: # These are sane defaults that work on at least a few old systems.
! 2394: # {They come from Ultrix. What could be older than Ultrix?!! ;)}
! 2395:
! 2396: # Character class describing NM global symbol codes.
! 2397: ac_symcode='[BCDEGRST]'
! 2398:
! 2399: # Regexp to match symbols that can be accessed directly from C.
! 2400: ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 2401:
! 2402: # Transform the above into a raw symbol and a C symbol.
! 2403: ac_symxfrm='\1 \2\3 \3'
! 2404:
! 2405: # Transform an extracted symbol line into a proper C declaration
! 2406: ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
! 2407:
! 2408: # Define system-specific variables.
! 2409: case "$host_os" in
! 2410: aix*)
! 2411: ac_symcode='[BCDT]'
! 2412: ;;
! 2413: cygwin* | mingw*)
! 2414: ac_symcode='[ABCDGISTW]'
! 2415: ;;
! 2416: hpux*)
! 2417: ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
! 2418: ;;
! 2419: irix*)
! 2420: ac_symcode='[BCDEGRST]'
! 2421: ;;
! 2422: solaris*)
! 2423: ac_symcode='[BDT]'
! 2424: ;;
! 2425: esac
! 2426:
! 2427: # If we're using GNU nm, then use its standard symbol codes.
! 2428: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
! 2429: ac_symcode='[ABCDGISTW]'
! 2430: fi
! 2431:
! 2432: # Try without a prefix undercore, then with it.
! 2433: for ac_symprfx in "" "_"; do
! 2434:
! 2435: ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
! 2436:
! 2437: # Check to see that the pipe works correctly.
! 2438: ac_pipe_works=no
! 2439: rm -f conftest.$ac_ext
! 2440: cat > conftest.$ac_ext <<EOF
! 2441: #ifdef __cplusplus
! 2442: extern "C" {
! 2443: #endif
! 2444: char nm_test_var;
! 2445: void nm_test_func(){}
! 2446: #ifdef __cplusplus
! 2447: }
! 2448: #endif
! 2449: int main(){nm_test_var='a';nm_test_func;return 0;}
! 2450: EOF
! 2451:
! 2452: if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2453: # Now try to grab the symbols.
! 2454: ac_nlist=conftest.nm
! 2455:
! 2456: if { (eval echo configure:2457: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
! 2457:
! 2458: # Try sorting and uniquifying the output.
! 2459: if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
! 2460: mv -f "$ac_nlist"T "$ac_nlist"
! 2461: else
! 2462: rm -f "$ac_nlist"T
! 2463: fi
! 2464:
! 2465: # Make sure that we snagged all the symbols we need.
! 2466: if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
! 2467: if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
! 2468: cat <<EOF > conftest.c
! 2469: #ifdef __cplusplus
! 2470: extern "C" {
! 2471: #endif
! 2472:
! 2473: EOF
! 2474: # Now generate the symbol file.
! 2475: eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
! 2476:
! 2477: cat <<EOF >> conftest.c
! 2478: #if defined (__STDC__) && __STDC__
! 2479: # define lt_ptr_t void *
! 2480: #else
! 2481: # define lt_ptr_t char *
! 2482: # define const
! 2483: #endif
! 2484:
! 2485: /* The mapping between symbol names and symbols. */
! 2486: const struct {
! 2487: const char *name;
! 2488: lt_ptr_t address;
! 2489: }
! 2490: lt_preloaded_symbols[] =
! 2491: {
! 2492: EOF
! 2493: sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
! 2494: cat <<\EOF >> conftest.c
! 2495: {0, (lt_ptr_t) 0}
! 2496: };
! 2497:
! 2498: #ifdef __cplusplus
! 2499: }
! 2500: #endif
! 2501: EOF
! 2502: # Now try linking the two files.
! 2503: mv conftest.$ac_objext conftstm.$ac_objext
! 2504: ac_save_LIBS="$LIBS"
! 2505: ac_save_CFLAGS="$CFLAGS"
! 2506: LIBS="conftstm.$ac_objext"
! 2507: CFLAGS="$CFLAGS$no_builtin_flag"
! 2508: if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 2509: ac_pipe_works=yes
! 2510: else
! 2511: echo "configure: failed program was:" >&5
! 2512: cat conftest.c >&5
! 2513: fi
! 2514: LIBS="$ac_save_LIBS"
! 2515: CFLAGS="$ac_save_CFLAGS"
! 2516: else
! 2517: echo "cannot find nm_test_func in $ac_nlist" >&5
! 2518: fi
! 2519: else
! 2520: echo "cannot find nm_test_var in $ac_nlist" >&5
! 2521: fi
! 2522: else
! 2523: echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
! 2524: fi
! 2525: else
! 2526: echo "$progname: failed program was:" >&5
! 2527: cat conftest.c >&5
! 2528: fi
! 2529: rm -rf conftest* conftst*
! 2530:
! 2531: # Do not use the global_symbol_pipe unless it works.
! 2532: if test "$ac_pipe_works" = yes; then
! 2533: if test x"$ac_symprfx" = x"_"; then
! 2534: ac_cv_sys_symbol_underscore=yes
! 2535: else
! 2536: ac_cv_sys_symbol_underscore=no
! 2537: fi
! 2538: break
! 2539: else
! 2540: ac_cv_sys_global_symbol_pipe=
! 2541: fi
! 2542: done
! 2543:
! 2544: fi
! 2545:
! 2546:
! 2547: ac_result=yes
! 2548: if test -z "$ac_cv_sys_global_symbol_pipe"; then
! 2549: ac_result=no
! 2550: fi
! 2551: echo "$ac_t""$ac_result" 1>&6
! 2552:
! 2553: echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
! 2554: echo "configure:2555: checking for _ prefix in compiled symbols" >&5
! 2555: if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
! 2556: echo $ac_n "(cached) $ac_c" 1>&6
! 2557: else
! 2558: ac_cv_sys_symbol_underscore=no
! 2559: cat > conftest.$ac_ext <<EOF
! 2560: void nm_test_func(){}
! 2561: int main(){nm_test_func;return 0;}
! 2562: EOF
! 2563: if { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2564: # Now try to grab the symbols.
! 2565: ac_nlist=conftest.nm
! 2566: if { (eval echo configure:2567: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
! 2567: # See whether the symbols have a leading underscore.
! 2568: if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
! 2569: ac_cv_sys_symbol_underscore=yes
! 2570: else
! 2571: if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
! 2572: :
! 2573: else
! 2574: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
! 2575: fi
! 2576: fi
! 2577: else
! 2578: echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
! 2579: fi
! 2580: else
! 2581: echo "configure: failed program was:" >&5
! 2582: cat conftest.c >&5
! 2583: fi
! 2584: rm -rf conftest*
! 2585:
! 2586: fi
! 2587:
! 2588: echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
! 2589:
! 2590: if test x"$ac_cv_sys_symbol_underscore" = xyes; then
! 2591: if test x"$ac_cv_func_dlopen" = xyes ||
! 2592: test x"$ac_cv_lib_dl_dlopen" = xyes ; then
! 2593: echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
! 2594: echo "configure:2595: checking whether we have to add an underscore for dlsym" >&5
! 2595: if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
! 2596: echo $ac_n "(cached) $ac_c" 1>&6
! 2597: else
! 2598: if test "$cross_compiling" = yes; then
! 2599: libltdl_cv_need_uscore=cross
! 2600:
! 2601: else
! 2602: cat > conftest.$ac_ext <<EOF
! 2603: #line 2604 "configure"
! 2604: #include "confdefs.h"
! 2605:
! 2606: #if HAVE_DLFCN_H
! 2607: #include <dlfcn.h>
! 2608: #endif
! 2609:
! 2610: #include <stdio.h>
! 2611:
! 2612: #ifdef RTLD_GLOBAL
! 2613: # define LTDL_GLOBAL RTLD_GLOBAL
! 2614: #else
! 2615: # ifdef DL_GLOBAL
! 2616: # define LTDL_GLOBAL DL_GLOBAL
! 2617: # else
! 2618: # define LTDL_GLOBAL 0
! 2619: # endif
! 2620: #endif
! 2621:
! 2622: /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
! 2623: find out it does not work in some platform. */
! 2624: #ifndef LTDL_LAZY_OR_NOW
! 2625: # ifdef RTLD_LAZY
! 2626: # define LTDL_LAZY_OR_NOW RTLD_LAZY
! 2627: # else
! 2628: # ifdef DL_LAZY
! 2629: # define LTDL_LAZY_OR_NOW DL_LAZY
! 2630: # else
! 2631: # ifdef RTLD_NOW
! 2632: # define LTDL_LAZY_OR_NOW RTLD_NOW
! 2633: # else
! 2634: # ifdef DL_NOW
! 2635: # define LTDL_LAZY_OR_NOW DL_NOW
! 2636: # else
! 2637: # define LTDL_LAZY_OR_NOW 0
! 2638: # endif
! 2639: # endif
! 2640: # endif
! 2641: # endif
! 2642: #endif
! 2643:
! 2644: fnord() { int i=42;}
! 2645: main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
! 2646: if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
! 2647: if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
! 2648:
! 2649: EOF
! 2650: if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
! 2651: then
! 2652: libltdl_cv_need_uscore=no
! 2653: else
! 2654: echo "configure: failed program was:" >&5
! 2655: cat conftest.$ac_ext >&5
! 2656: rm -fr conftest*
! 2657: libltdl_cv_need_uscore=yes
! 2658: fi
! 2659: rm -fr conftest*
! 2660: fi
! 2661:
! 2662: fi
! 2663:
! 2664: echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
! 2665: fi
! 2666: fi
! 2667:
! 2668: if test x"$libltdl_cv_need_uscore" = xyes; then
! 2669: cat >> confdefs.h <<\EOF
! 2670: #define NEED_USCORE 1
! 2671: EOF
! 2672:
! 2673: fi
! 2674:
! 2675: trap '' 1 2 15
! 2676: cat > confcache <<\EOF
! 2677: # This file is a shell script that caches the results of configure
! 2678: # tests run on this system so they can be shared between configure
! 2679: # scripts and configure runs. It is not useful on other systems.
! 2680: # If it contains results you don't want to keep, you may remove or edit it.
! 2681: #
! 2682: # By default, configure uses ./config.cache as the cache file,
! 2683: # creating it if it does not exist already. You can give configure
! 2684: # the --cache-file=FILE option to use a different cache file; that is
! 2685: # what configure does when it calls configure scripts in
! 2686: # subdirectories, so they share the cache.
! 2687: # Giving --cache-file=/dev/null disables caching, for debugging configure.
! 2688: # config.status only pays attention to the cache file if you give it the
! 2689: # --recheck option to rerun configure.
! 2690: #
! 2691: EOF
! 2692: # The following way of writing the cache mishandles newlines in values,
! 2693: # but we know of no workaround that is simple, portable, and efficient.
! 2694: # So, don't put newlines in cache variables' values.
! 2695: # Ultrix sh set writes to stderr and can't be redirected directly,
! 2696: # and sets the high bit in the cache file unless we assign to the vars.
! 2697: (set) 2>&1 |
! 2698: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 2699: *ac_space=\ *)
! 2700: # `set' does not quote correctly, so add quotes (double-quote substitution
! 2701: # turns \\\\ into \\, and sed turns \\ into \).
! 2702: sed -n \
! 2703: -e "s/'/'\\\\''/g" \
! 2704: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
! 2705: ;;
! 2706: *)
! 2707: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 2708: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
! 2709: ;;
! 2710: esac >> confcache
! 2711: if cmp -s $cache_file confcache; then
! 2712: :
! 2713: else
! 2714: if test -w $cache_file; then
! 2715: echo "updating cache $cache_file"
! 2716: cat confcache > $cache_file
! 2717: else
! 2718: echo "not updating unwritable cache $cache_file"
! 2719: fi
! 2720: fi
! 2721: rm -f confcache
! 2722:
! 2723: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 2724:
! 2725: test "x$prefix" = xNONE && prefix=$ac_default_prefix
! 2726: # Let make expand exec_prefix.
! 2727: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
! 2728:
! 2729: # Any assignment to VPATH causes Sun make to only execute
! 2730: # the first set of double-colon rules, so remove it if not needed.
! 2731: # If there is a colon in the path, we need to keep it.
! 2732: if test "x$srcdir" = x.; then
! 2733: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
! 2734: fi
! 2735:
! 2736: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
! 2737:
! 2738: DEFS=-DHAVE_CONFIG_H
! 2739:
! 2740: # Without the "./", some shells look in PATH for config.status.
! 2741: : ${CONFIG_STATUS=./config.status}
! 2742:
! 2743: echo creating $CONFIG_STATUS
! 2744: rm -f $CONFIG_STATUS
! 2745: cat > $CONFIG_STATUS <<EOF
! 2746: #! /bin/sh
! 2747: # Generated automatically by configure.
! 2748: # Run this file to recreate the current configuration.
! 2749: # This directory was configured as follows,
! 2750: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 2751: #
! 2752: # $0 $ac_configure_args
! 2753: #
! 2754: # Compiler output produced by configure, useful for debugging
! 2755: # configure, is in ./config.log if it exists.
! 2756:
! 2757: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
! 2758: for ac_option
! 2759: do
! 2760: case "\$ac_option" in
! 2761: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 2762: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
! 2763: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
! 2764: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! 2765: echo "$CONFIG_STATUS generated by autoconf version 2.13"
! 2766: exit 0 ;;
! 2767: -help | --help | --hel | --he | --h)
! 2768: echo "\$ac_cs_usage"; exit 0 ;;
! 2769: *) echo "\$ac_cs_usage"; exit 1 ;;
! 2770: esac
! 2771: done
! 2772:
! 2773: ac_given_srcdir=$srcdir
! 2774: ac_given_INSTALL="$INSTALL"
! 2775:
! 2776: trap 'rm -fr `echo "Makefile config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
! 2777: EOF
! 2778: cat >> $CONFIG_STATUS <<EOF
! 2779:
! 2780: # Protect against being on the right side of a sed subst in config.status.
! 2781: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
! 2782: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
! 2783: $ac_vpsub
! 2784: $extrasub
! 2785: s%@SHELL@%$SHELL%g
! 2786: s%@CFLAGS@%$CFLAGS%g
! 2787: s%@CPPFLAGS@%$CPPFLAGS%g
! 2788: s%@CXXFLAGS@%$CXXFLAGS%g
! 2789: s%@FFLAGS@%$FFLAGS%g
! 2790: s%@DEFS@%$DEFS%g
! 2791: s%@LDFLAGS@%$LDFLAGS%g
! 2792: s%@LIBS@%$LIBS%g
! 2793: s%@exec_prefix@%$exec_prefix%g
! 2794: s%@prefix@%$prefix%g
! 2795: s%@program_transform_name@%$program_transform_name%g
! 2796: s%@bindir@%$bindir%g
! 2797: s%@sbindir@%$sbindir%g
! 2798: s%@libexecdir@%$libexecdir%g
! 2799: s%@datadir@%$datadir%g
! 2800: s%@sysconfdir@%$sysconfdir%g
! 2801: s%@sharedstatedir@%$sharedstatedir%g
! 2802: s%@localstatedir@%$localstatedir%g
! 2803: s%@libdir@%$libdir%g
! 2804: s%@includedir@%$includedir%g
! 2805: s%@oldincludedir@%$oldincludedir%g
! 2806: s%@infodir@%$infodir%g
! 2807: s%@mandir@%$mandir%g
! 2808: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
! 2809: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
! 2810: s%@INSTALL_DATA@%$INSTALL_DATA%g
! 2811: s%@PACKAGE@%$PACKAGE%g
! 2812: s%@VERSION@%$VERSION%g
! 2813: s%@ACLOCAL@%$ACLOCAL%g
! 2814: s%@AUTOCONF@%$AUTOCONF%g
! 2815: s%@AUTOMAKE@%$AUTOMAKE%g
! 2816: s%@AUTOHEADER@%$AUTOHEADER%g
! 2817: s%@MAKEINFO@%$MAKEINFO%g
! 2818: s%@SET_MAKE@%$SET_MAKE%g
! 2819: s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
! 2820: s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
! 2821: s%@MAINT@%$MAINT%g
! 2822: s%@CC@%$CC%g
! 2823: s%@host@%$host%g
! 2824: s%@host_alias@%$host_alias%g
! 2825: s%@host_cpu@%$host_cpu%g
! 2826: s%@host_vendor@%$host_vendor%g
! 2827: s%@host_os@%$host_os%g
! 2828: s%@build@%$build%g
! 2829: s%@build_alias@%$build_alias%g
! 2830: s%@build_cpu@%$build_cpu%g
! 2831: s%@build_vendor@%$build_vendor%g
! 2832: s%@build_os@%$build_os%g
! 2833: s%@RANLIB@%$RANLIB%g
! 2834: s%@LN_S@%$LN_S%g
! 2835: s%@LIBTOOL@%$LIBTOOL%g
! 2836: s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
! 2837: s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
! 2838: s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
! 2839: s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
! 2840: s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
! 2841: s%@CPP@%$CPP%g
! 2842: s%@LIBADD_DL@%$LIBADD_DL%g
! 2843:
! 2844: CEOF
! 2845: EOF
! 2846:
! 2847: cat >> $CONFIG_STATUS <<\EOF
! 2848:
! 2849: # Split the substitutions into bite-sized pieces for seds with
! 2850: # small command number limits, like on Digital OSF/1 and HP-UX.
! 2851: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
! 2852: ac_file=1 # Number of current file.
! 2853: ac_beg=1 # First line for current file.
! 2854: ac_end=$ac_max_sed_cmds # Line after last line for current file.
! 2855: ac_more_lines=:
! 2856: ac_sed_cmds=""
! 2857: while $ac_more_lines; do
! 2858: if test $ac_beg -gt 1; then
! 2859: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
! 2860: else
! 2861: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
! 2862: fi
! 2863: if test ! -s conftest.s$ac_file; then
! 2864: ac_more_lines=false
! 2865: rm -f conftest.s$ac_file
! 2866: else
! 2867: if test -z "$ac_sed_cmds"; then
! 2868: ac_sed_cmds="sed -f conftest.s$ac_file"
! 2869: else
! 2870: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
! 2871: fi
! 2872: ac_file=`expr $ac_file + 1`
! 2873: ac_beg=$ac_end
! 2874: ac_end=`expr $ac_end + $ac_max_sed_cmds`
! 2875: fi
! 2876: done
! 2877: if test -z "$ac_sed_cmds"; then
! 2878: ac_sed_cmds=cat
! 2879: fi
! 2880: EOF
! 2881:
! 2882: cat >> $CONFIG_STATUS <<EOF
! 2883:
! 2884: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
! 2885: EOF
! 2886: cat >> $CONFIG_STATUS <<\EOF
! 2887: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
! 2888: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 2889: case "$ac_file" in
! 2890: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
! 2891: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
! 2892: *) ac_file_in="${ac_file}.in" ;;
! 2893: esac
! 2894:
! 2895: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
! 2896:
! 2897: # Remove last slash and all that follows it. Not all systems have dirname.
! 2898: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
! 2899: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 2900: # The file is in a subdirectory.
! 2901: test ! -d "$ac_dir" && mkdir "$ac_dir"
! 2902: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
! 2903: # A "../" for each directory in $ac_dir_suffix.
! 2904: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
! 2905: else
! 2906: ac_dir_suffix= ac_dots=
! 2907: fi
! 2908:
! 2909: case "$ac_given_srcdir" in
! 2910: .) srcdir=.
! 2911: if test -z "$ac_dots"; then top_srcdir=.
! 2912: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
! 2913: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
! 2914: *) # Relative path.
! 2915: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
! 2916: top_srcdir="$ac_dots$ac_given_srcdir" ;;
! 2917: esac
! 2918:
! 2919: case "$ac_given_INSTALL" in
! 2920: [/$]*) INSTALL="$ac_given_INSTALL" ;;
! 2921: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
! 2922: esac
! 2923:
! 2924: echo creating "$ac_file"
! 2925: rm -f "$ac_file"
! 2926: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
! 2927: case "$ac_file" in
! 2928: *Makefile*) ac_comsub="1i\\
! 2929: # $configure_input" ;;
! 2930: *) ac_comsub= ;;
! 2931: esac
! 2932:
! 2933: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! 2934: sed -e "$ac_comsub
! 2935: s%@configure_input@%$configure_input%g
! 2936: s%@srcdir@%$srcdir%g
! 2937: s%@top_srcdir@%$top_srcdir%g
! 2938: s%@INSTALL@%$INSTALL%g
! 2939: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
! 2940: fi; done
! 2941: rm -f conftest.s*
! 2942:
! 2943: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
! 2944: # NAME is the cpp macro being defined and VALUE is the value it is being given.
! 2945: #
! 2946: # ac_d sets the value in "#define NAME VALUE" lines.
! 2947: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 2948: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
! 2949: ac_dC='\3'
! 2950: ac_dD='%g'
! 2951: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
! 2952: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 2953: ac_uB='\([ ]\)%\1#\2define\3'
! 2954: ac_uC=' '
! 2955: ac_uD='\4%g'
! 2956: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 2957: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 2958: ac_eB='$%\1#\2define\3'
! 2959: ac_eC=' '
! 2960: ac_eD='%g'
! 2961:
! 2962: if test "${CONFIG_HEADERS+set}" != set; then
! 2963: EOF
! 2964: cat >> $CONFIG_STATUS <<EOF
! 2965: CONFIG_HEADERS="config_auto.h"
! 2966: EOF
! 2967: cat >> $CONFIG_STATUS <<\EOF
! 2968: fi
! 2969: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
! 2970: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 2971: case "$ac_file" in
! 2972: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
! 2973: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
! 2974: *) ac_file_in="${ac_file}.in" ;;
! 2975: esac
! 2976:
! 2977: echo creating $ac_file
! 2978:
! 2979: rm -f conftest.frag conftest.in conftest.out
! 2980: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! 2981: cat $ac_file_inputs > conftest.in
! 2982:
! 2983: EOF
! 2984:
! 2985: # Transform confdefs.h into a sed script conftest.vals that substitutes
! 2986: # the proper values into config.h.in to produce config.h. And first:
! 2987: # Protect against being on the right side of a sed subst in config.status.
! 2988: # Protect against being in an unquoted here document in config.status.
! 2989: rm -f conftest.vals
! 2990: cat > conftest.hdr <<\EOF
! 2991: s/[\\&%]/\\&/g
! 2992: s%[\\$`]%\\&%g
! 2993: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
! 2994: s%ac_d%ac_u%gp
! 2995: s%ac_u%ac_e%gp
! 2996: EOF
! 2997: sed -n -f conftest.hdr confdefs.h > conftest.vals
! 2998: rm -f conftest.hdr
! 2999:
! 3000: # This sed command replaces #undef with comments. This is necessary, for
! 3001: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 3002: # on some systems where configure will not decide to define it.
! 3003: cat >> conftest.vals <<\EOF
! 3004: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
! 3005: EOF
! 3006:
! 3007: # Break up conftest.vals because some shells have a limit on
! 3008: # the size of here documents, and old seds have small limits too.
! 3009:
! 3010: rm -f conftest.tail
! 3011: while :
! 3012: do
! 3013: ac_lines=`grep -c . conftest.vals`
! 3014: # grep -c gives empty output for an empty file on some AIX systems.
! 3015: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
! 3016: # Write a limited-size here document to conftest.frag.
! 3017: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
! 3018: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
! 3019: echo 'CEOF
! 3020: sed -f conftest.frag conftest.in > conftest.out
! 3021: rm -f conftest.in
! 3022: mv conftest.out conftest.in
! 3023: ' >> $CONFIG_STATUS
! 3024: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
! 3025: rm -f conftest.vals
! 3026: mv conftest.tail conftest.vals
! 3027: done
! 3028: rm -f conftest.vals
! 3029:
! 3030: cat >> $CONFIG_STATUS <<\EOF
! 3031: rm -f conftest.frag conftest.h
! 3032: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
! 3033: cat conftest.in >> conftest.h
! 3034: rm -f conftest.in
! 3035: if cmp -s $ac_file conftest.h 2>/dev/null; then
! 3036: echo "$ac_file is unchanged"
! 3037: rm -f conftest.h
! 3038: else
! 3039: # Remove last slash and all that follows it. Not all systems have dirname.
! 3040: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
! 3041: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 3042: # The file is in a subdirectory.
! 3043: test ! -d "$ac_dir" && mkdir "$ac_dir"
! 3044: fi
! 3045: rm -f $ac_file
! 3046: mv conftest.h $ac_file
! 3047: fi
! 3048: fi; done
! 3049:
! 3050: EOF
! 3051: cat >> $CONFIG_STATUS <<EOF
! 3052:
! 3053:
! 3054: EOF
! 3055: cat >> $CONFIG_STATUS <<\EOF
! 3056: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
! 3057:
! 3058: exit 0
! 3059: EOF
! 3060: chmod +x $CONFIG_STATUS
! 3061: rm -fr confdefs* $ac_clean_files
! 3062: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
! 3063:
! 3064:
! 3065: # Local Variables:
! 3066: # mode:shell-script
! 3067: # sh-indentation:2
! 3068: # End:
E-mail: