|
|
1.1 ! root 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: moo tcltk version" ! 16: ac_help="$ac_help ! 17: moo svgalib version" ! 18: ac_help="$ac_help ! 19: moo svgalib version" ! 20: ac_help="$ac_help ! 21: --with-x use the X Window System" ! 22: ! 23: # Initialize some variables set by options. ! 24: # The variables have the same names as the options, with ! 25: # dashes changed to underlines. ! 26: build=NONE ! 27: cache_file=./config.cache ! 28: exec_prefix=NONE ! 29: host=NONE ! 30: no_create= ! 31: nonopt=NONE ! 32: no_recursion= ! 33: prefix=NONE ! 34: program_prefix=NONE ! 35: program_suffix=NONE ! 36: program_transform_name=s,x,x, ! 37: silent= ! 38: site= ! 39: srcdir= ! 40: target=NONE ! 41: verbose= ! 42: x_includes=NONE ! 43: x_libraries=NONE ! 44: bindir='${exec_prefix}/bin' ! 45: sbindir='${exec_prefix}/sbin' ! 46: libexecdir='${exec_prefix}/libexec' ! 47: datadir='${prefix}/share' ! 48: sysconfdir='${prefix}/etc' ! 49: sharedstatedir='${prefix}/com' ! 50: localstatedir='${prefix}/var' ! 51: libdir='${exec_prefix}/lib' ! 52: includedir='${prefix}/include' ! 53: oldincludedir='/usr/include' ! 54: infodir='${prefix}/info' ! 55: mandir='${prefix}/man' ! 56: ! 57: # Initialize some other variables. ! 58: subdirs= ! 59: MFLAGS= MAKEFLAGS= ! 60: SHELL=${CONFIG_SHELL-/bin/sh} ! 61: # Maximum number of lines to put in a shell here document. ! 62: ac_max_here_lines=12 ! 63: ! 64: ac_prev= ! 65: for ac_option ! 66: do ! 67: ! 68: # If the previous option needs an argument, assign it. ! 69: if test -n "$ac_prev"; then ! 70: eval "$ac_prev=\$ac_option" ! 71: ac_prev= ! 72: continue ! 73: fi ! 74: ! 75: case "$ac_option" in ! 76: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; ! 77: *) ac_optarg= ;; ! 78: esac ! 79: ! 80: # Accept the important Cygnus configure options, so we can diagnose typos. ! 81: ! 82: case "$ac_option" in ! 83: ! 84: -bindir | --bindir | --bindi | --bind | --bin | --bi) ! 85: ac_prev=bindir ;; ! 86: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ! 87: bindir="$ac_optarg" ;; ! 88: ! 89: -build | --build | --buil | --bui | --bu) ! 90: ac_prev=build ;; ! 91: -build=* | --build=* | --buil=* | --bui=* | --bu=*) ! 92: build="$ac_optarg" ;; ! 93: ! 94: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 95: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 96: ac_prev=cache_file ;; ! 97: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 98: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ! 99: cache_file="$ac_optarg" ;; ! 100: ! 101: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ! 102: ac_prev=datadir ;; ! 103: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ! 104: | --da=*) ! 105: datadir="$ac_optarg" ;; ! 106: ! 107: -disable-* | --disable-*) ! 108: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` ! 109: # Reject names that are not valid shell variable names. ! 110: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then ! 111: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ! 112: fi ! 113: ac_feature=`echo $ac_feature| sed 's/-/_/g'` ! 114: eval "enable_${ac_feature}=no" ;; ! 115: ! 116: -enable-* | --enable-*) ! 117: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` ! 118: # Reject names that are not valid shell variable names. ! 119: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then ! 120: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ! 121: fi ! 122: ac_feature=`echo $ac_feature| sed 's/-/_/g'` ! 123: case "$ac_option" in ! 124: *=*) ;; ! 125: *) ac_optarg=yes ;; ! 126: esac ! 127: eval "enable_${ac_feature}='$ac_optarg'" ;; ! 128: ! 129: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ! 130: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ! 131: | --exec | --exe | --ex) ! 132: ac_prev=exec_prefix ;; ! 133: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ! 134: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ! 135: | --exec=* | --exe=* | --ex=*) ! 136: exec_prefix="$ac_optarg" ;; ! 137: ! 138: -gas | --gas | --ga | --g) ! 139: # Obsolete; use --with-gas. ! 140: with_gas=yes ;; ! 141: ! 142: -help | --help | --hel | --he) ! 143: # Omit some internal or obsolete options to make the list less imposing. ! 144: # This message is too long to be a string in the A/UX 3.1 sh. ! 145: cat << EOF ! 146: Usage: configure [options] [host] ! 147: Options: [defaults in brackets after descriptions] ! 148: Configuration: ! 149: --cache-file=FILE cache test results in FILE ! 150: --help print this message ! 151: --no-create do not create output files ! 152: --quiet, --silent do not print \`checking...' messages ! 153: --version print the version of autoconf that created configure ! 154: Directory and file names: ! 155: --prefix=PREFIX install architecture-independent files in PREFIX ! 156: [$ac_default_prefix] ! 157: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! 158: [same as prefix] ! 159: --bindir=DIR user executables in DIR [EPREFIX/bin] ! 160: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] ! 161: --libexecdir=DIR program executables in DIR [EPREFIX/libexec] ! 162: --datadir=DIR read-only architecture-independent data in DIR ! 163: [PREFIX/share] ! 164: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] ! 165: --sharedstatedir=DIR modifiable architecture-independent data in DIR ! 166: [PREFIX/com] ! 167: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] ! 168: --libdir=DIR object code libraries in DIR [EPREFIX/lib] ! 169: --includedir=DIR C header files in DIR [PREFIX/include] ! 170: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] ! 171: --infodir=DIR info documentation in DIR [PREFIX/info] ! 172: --mandir=DIR man documentation in DIR [PREFIX/man] ! 173: --srcdir=DIR find the sources in DIR [configure dir or ..] ! 174: --program-prefix=PREFIX prepend PREFIX to installed program names ! 175: --program-suffix=SUFFIX append SUFFIX to installed program names ! 176: --program-transform-name=PROGRAM ! 177: run sed PROGRAM on installed program names ! 178: EOF ! 179: cat << EOF ! 180: Host type: ! 181: --build=BUILD configure for building on BUILD [BUILD=HOST] ! 182: --host=HOST configure for HOST [guessed] ! 183: --target=TARGET configure for TARGET [TARGET=HOST] ! 184: Features and packages: ! 185: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ! 186: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ! 187: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ! 188: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ! 189: --x-includes=DIR X include files are in DIR ! 190: --x-libraries=DIR X library files are in DIR ! 191: EOF ! 192: if test -n "$ac_help"; then ! 193: echo "--enable and --with options recognized:$ac_help" ! 194: fi ! 195: exit 0 ;; ! 196: ! 197: -host | --host | --hos | --ho) ! 198: ac_prev=host ;; ! 199: -host=* | --host=* | --hos=* | --ho=*) ! 200: host="$ac_optarg" ;; ! 201: ! 202: -includedir | --includedir | --includedi | --included | --include \ ! 203: | --includ | --inclu | --incl | --inc) ! 204: ac_prev=includedir ;; ! 205: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ! 206: | --includ=* | --inclu=* | --incl=* | --inc=*) ! 207: includedir="$ac_optarg" ;; ! 208: ! 209: -infodir | --infodir | --infodi | --infod | --info | --inf) ! 210: ac_prev=infodir ;; ! 211: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ! 212: infodir="$ac_optarg" ;; ! 213: ! 214: -libdir | --libdir | --libdi | --libd) ! 215: ac_prev=libdir ;; ! 216: -libdir=* | --libdir=* | --libdi=* | --libd=*) ! 217: libdir="$ac_optarg" ;; ! 218: ! 219: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ! 220: | --libexe | --libex | --libe) ! 221: ac_prev=libexecdir ;; ! 222: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ! 223: | --libexe=* | --libex=* | --libe=*) ! 224: libexecdir="$ac_optarg" ;; ! 225: ! 226: -localstatedir | --localstatedir | --localstatedi | --localstated \ ! 227: | --localstate | --localstat | --localsta | --localst \ ! 228: | --locals | --local | --loca | --loc | --lo) ! 229: ac_prev=localstatedir ;; ! 230: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ! 231: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ! 232: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ! 233: localstatedir="$ac_optarg" ;; ! 234: ! 235: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ! 236: ac_prev=mandir ;; ! 237: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ! 238: mandir="$ac_optarg" ;; ! 239: ! 240: -nfp | --nfp | --nf) ! 241: # Obsolete; use --without-fp. ! 242: with_fp=no ;; ! 243: ! 244: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 245: | --no-cr | --no-c) ! 246: no_create=yes ;; ! 247: ! 248: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 249: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 250: no_recursion=yes ;; ! 251: ! 252: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ! 253: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ! 254: | --oldin | --oldi | --old | --ol | --o) ! 255: ac_prev=oldincludedir ;; ! 256: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ! 257: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ! 258: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ! 259: oldincludedir="$ac_optarg" ;; ! 260: ! 261: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 262: ac_prev=prefix ;; ! 263: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 264: prefix="$ac_optarg" ;; ! 265: ! 266: -program-prefix | --program-prefix | --program-prefi | --program-pref \ ! 267: | --program-pre | --program-pr | --program-p) ! 268: ac_prev=program_prefix ;; ! 269: -program-prefix=* | --program-prefix=* | --program-prefi=* \ ! 270: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ! 271: program_prefix="$ac_optarg" ;; ! 272: ! 273: -program-suffix | --program-suffix | --program-suffi | --program-suff \ ! 274: | --program-suf | --program-su | --program-s) ! 275: ac_prev=program_suffix ;; ! 276: -program-suffix=* | --program-suffix=* | --program-suffi=* \ ! 277: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ! 278: program_suffix="$ac_optarg" ;; ! 279: ! 280: -program-transform-name | --program-transform-name \ ! 281: | --program-transform-nam | --program-transform-na \ ! 282: | --program-transform-n | --program-transform- \ ! 283: | --program-transform | --program-transfor \ ! 284: | --program-transfo | --program-transf \ ! 285: | --program-trans | --program-tran \ ! 286: | --progr-tra | --program-tr | --program-t) ! 287: ac_prev=program_transform_name ;; ! 288: -program-transform-name=* | --program-transform-name=* \ ! 289: | --program-transform-nam=* | --program-transform-na=* \ ! 290: | --program-transform-n=* | --program-transform-=* \ ! 291: | --program-transform=* | --program-transfor=* \ ! 292: | --program-transfo=* | --program-transf=* \ ! 293: | --program-trans=* | --program-tran=* \ ! 294: | --progr-tra=* | --program-tr=* | --program-t=*) ! 295: program_transform_name="$ac_optarg" ;; ! 296: ! 297: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 298: | -silent | --silent | --silen | --sile | --sil) ! 299: silent=yes ;; ! 300: ! 301: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ! 302: ac_prev=sbindir ;; ! 303: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ! 304: | --sbi=* | --sb=*) ! 305: sbindir="$ac_optarg" ;; ! 306: ! 307: -sharedstatedir | --sharedstatedir | --sharedstatedi \ ! 308: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ! 309: | --sharedst | --shareds | --shared | --share | --shar \ ! 310: | --sha | --sh) ! 311: ac_prev=sharedstatedir ;; ! 312: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ! 313: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ! 314: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ! 315: | --sha=* | --sh=*) ! 316: sharedstatedir="$ac_optarg" ;; ! 317: ! 318: -site | --site | --sit) ! 319: ac_prev=site ;; ! 320: -site=* | --site=* | --sit=*) ! 321: site="$ac_optarg" ;; ! 322: ! 323: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 324: ac_prev=srcdir ;; ! 325: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 326: srcdir="$ac_optarg" ;; ! 327: ! 328: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ! 329: | --syscon | --sysco | --sysc | --sys | --sy) ! 330: ac_prev=sysconfdir ;; ! 331: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ! 332: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ! 333: sysconfdir="$ac_optarg" ;; ! 334: ! 335: -target | --target | --targe | --targ | --tar | --ta | --t) ! 336: ac_prev=target ;; ! 337: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ! 338: target="$ac_optarg" ;; ! 339: ! 340: -v | -verbose | --verbose | --verbos | --verbo | --verb) ! 341: verbose=yes ;; ! 342: ! 343: -version | --version | --versio | --versi | --vers) ! 344: echo "configure generated by autoconf version 2.13" ! 345: exit 0 ;; ! 346: ! 347: -with-* | --with-*) ! 348: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` ! 349: # Reject names that are not valid shell variable names. ! 350: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then ! 351: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ! 352: fi ! 353: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 354: case "$ac_option" in ! 355: *=*) ;; ! 356: *) ac_optarg=yes ;; ! 357: esac ! 358: eval "with_${ac_package}='$ac_optarg'" ;; ! 359: ! 360: -without-* | --without-*) ! 361: ac_package=`echo $ac_option|sed -e 's/-*without-//'` ! 362: # Reject names that are not valid shell variable names. ! 363: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then ! 364: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ! 365: fi ! 366: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 367: eval "with_${ac_package}=no" ;; ! 368: ! 369: --x) ! 370: # Obsolete; use --with-x. ! 371: with_x=yes ;; ! 372: ! 373: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ! 374: | --x-incl | --x-inc | --x-in | --x-i) ! 375: ac_prev=x_includes ;; ! 376: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ! 377: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ! 378: x_includes="$ac_optarg" ;; ! 379: ! 380: -x-libraries | --x-libraries | --x-librarie | --x-librari \ ! 381: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ! 382: ac_prev=x_libraries ;; ! 383: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ! 384: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ! 385: x_libraries="$ac_optarg" ;; ! 386: ! 387: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ! 388: ;; ! 389: ! 390: *) ! 391: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then ! 392: echo "configure: warning: $ac_option: invalid host type" 1>&2 ! 393: fi ! 394: if test "x$nonopt" != xNONE; then ! 395: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ! 396: fi ! 397: nonopt="$ac_option" ! 398: ;; ! 399: ! 400: esac ! 401: done ! 402: ! 403: if test -n "$ac_prev"; then ! 404: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } ! 405: fi ! 406: ! 407: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ! 408: ! 409: # File descriptor usage: ! 410: # 0 standard input ! 411: # 1 file creation ! 412: # 2 errors and warnings ! 413: # 3 some systems may open it to /dev/tty ! 414: # 4 used on the Kubota Titan ! 415: # 6 checking for... messages and results ! 416: # 5 compiler messages saved in config.log ! 417: if test "$silent" = yes; then ! 418: exec 6>/dev/null ! 419: else ! 420: exec 6>&1 ! 421: fi ! 422: exec 5>./config.log ! 423: ! 424: echo "\ ! 425: This file contains any messages produced by compilers while ! 426: running configure, to aid debugging if configure makes a mistake. ! 427: " 1>&5 ! 428: ! 429: # Strip out --no-create and --no-recursion so they do not pile up. ! 430: # Also quote any args containing shell metacharacters. ! 431: ac_configure_args= ! 432: for ac_arg ! 433: do ! 434: case "$ac_arg" in ! 435: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 436: | --no-cr | --no-c) ;; ! 437: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 438: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; ! 439: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ! 440: ac_configure_args="$ac_configure_args '$ac_arg'" ;; ! 441: *) ac_configure_args="$ac_configure_args $ac_arg" ;; ! 442: esac ! 443: done ! 444: ! 445: # NLS nuisances. ! 446: # Only set these to C if already set. These must not be set unconditionally ! 447: # because not all systems understand e.g. LANG=C (notably SCO). ! 448: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ! 449: # Non-C LC_CTYPE values break the ctype check. ! 450: if test "${LANG+set}" = set; then LANG=C; export LANG; fi ! 451: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ! 452: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ! 453: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ! 454: ! 455: # confdefs.h avoids OS command line length limits that DEFS can exceed. ! 456: rm -rf conftest* confdefs.h ! 457: # AIX cpp loses on an empty file, so make sure it contains at least a newline. ! 458: echo > confdefs.h ! 459: ! 460: # A filename unique to this package, relative to the directory that ! 461: # configure is in, which we can look for to find out if srcdir is correct. ! 462: ac_unique_file=../src/generator.c ! 463: ! 464: # Find the source files, if location was not specified. ! 465: if test -z "$srcdir"; then ! 466: ac_srcdir_defaulted=yes ! 467: # Try the directory containing this script, then its parent. ! 468: ac_prog=$0 ! 469: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` ! 470: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. ! 471: srcdir=$ac_confdir ! 472: if test ! -r $srcdir/$ac_unique_file; then ! 473: srcdir=.. ! 474: fi ! 475: else ! 476: ac_srcdir_defaulted=no ! 477: fi ! 478: if test ! -r $srcdir/$ac_unique_file; then ! 479: if test "$ac_srcdir_defaulted" = yes; then ! 480: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } ! 481: else ! 482: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } ! 483: fi ! 484: fi ! 485: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` ! 486: ! 487: # Prefer explicitly selected file to automatically selected ones. ! 488: if test -z "$CONFIG_SITE"; then ! 489: if test "x$prefix" != xNONE; then ! 490: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ! 491: else ! 492: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ! 493: fi ! 494: fi ! 495: for ac_site_file in $CONFIG_SITE; do ! 496: if test -r "$ac_site_file"; then ! 497: echo "loading site script $ac_site_file" ! 498: . "$ac_site_file" ! 499: fi ! 500: done ! 501: ! 502: if test -r "$cache_file"; then ! 503: echo "loading cache $cache_file" ! 504: . $cache_file ! 505: else ! 506: echo "creating cache $cache_file" ! 507: > $cache_file ! 508: fi ! 509: ! 510: ac_ext=c ! 511: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 512: ac_cpp='$CPP $CPPFLAGS' ! 513: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 514: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 515: cross_compiling=$ac_cv_prog_cc_cross ! 516: ! 517: ac_exeext= ! 518: ac_objext=o ! 519: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then ! 520: # Stardent Vistra SVR4 grep lacks -e, says [email protected]. ! 521: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ! 522: ac_n= ac_c=' ! 523: ' ac_t=' ' ! 524: else ! 525: ac_n=-n ac_c= ac_t= ! 526: fi ! 527: else ! 528: ac_n= ac_c='\c' ac_t= ! 529: fi ! 530: ! 531: ! 532: ! 533: ! 534: ! 535: # Extract the first word of "gcc", so it can be a program name with args. ! 536: set dummy gcc; ac_word=$2 ! 537: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 538: echo "configure:539: checking for $ac_word" >&5 ! 539: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 540: echo $ac_n "(cached) $ac_c" 1>&6 ! 541: else ! 542: if test -n "$CC"; then ! 543: ac_cv_prog_CC="$CC" # Let the user override the test. ! 544: else ! 545: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 546: ac_dummy="$PATH" ! 547: for ac_dir in $ac_dummy; do ! 548: test -z "$ac_dir" && ac_dir=. ! 549: if test -f $ac_dir/$ac_word; then ! 550: ac_cv_prog_CC="gcc" ! 551: break ! 552: fi ! 553: done ! 554: IFS="$ac_save_ifs" ! 555: fi ! 556: fi ! 557: CC="$ac_cv_prog_CC" ! 558: if test -n "$CC"; then ! 559: echo "$ac_t""$CC" 1>&6 ! 560: else ! 561: echo "$ac_t""no" 1>&6 ! 562: fi ! 563: ! 564: if test -z "$CC"; then ! 565: # Extract the first word of "cc", so it can be a program name with args. ! 566: set dummy cc; ac_word=$2 ! 567: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 568: echo "configure:569: checking for $ac_word" >&5 ! 569: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 570: echo $ac_n "(cached) $ac_c" 1>&6 ! 571: else ! 572: if test -n "$CC"; then ! 573: ac_cv_prog_CC="$CC" # Let the user override the test. ! 574: else ! 575: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 576: ac_prog_rejected=no ! 577: ac_dummy="$PATH" ! 578: for ac_dir in $ac_dummy; do ! 579: test -z "$ac_dir" && ac_dir=. ! 580: if test -f $ac_dir/$ac_word; then ! 581: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ! 582: ac_prog_rejected=yes ! 583: continue ! 584: fi ! 585: ac_cv_prog_CC="cc" ! 586: break ! 587: fi ! 588: done ! 589: IFS="$ac_save_ifs" ! 590: if test $ac_prog_rejected = yes; then ! 591: # We found a bogon in the path, so make sure we never use it. ! 592: set dummy $ac_cv_prog_CC ! 593: shift ! 594: if test $# -gt 0; then ! 595: # We chose a different compiler from the bogus one. ! 596: # However, it has the same basename, so the bogon will be chosen ! 597: # first if we set CC to just the basename; use the full file name. ! 598: shift ! 599: set dummy "$ac_dir/$ac_word" "$@" ! 600: shift ! 601: ac_cv_prog_CC="$@" ! 602: fi ! 603: fi ! 604: fi ! 605: fi ! 606: CC="$ac_cv_prog_CC" ! 607: if test -n "$CC"; then ! 608: echo "$ac_t""$CC" 1>&6 ! 609: else ! 610: echo "$ac_t""no" 1>&6 ! 611: fi ! 612: ! 613: if test -z "$CC"; then ! 614: case "`uname -s`" in ! 615: *win32* | *WIN32*) ! 616: # Extract the first word of "cl", so it can be a program name with args. ! 617: set dummy cl; ac_word=$2 ! 618: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 619: echo "configure:620: checking for $ac_word" >&5 ! 620: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 621: echo $ac_n "(cached) $ac_c" 1>&6 ! 622: else ! 623: if test -n "$CC"; then ! 624: ac_cv_prog_CC="$CC" # Let the user override the test. ! 625: else ! 626: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 627: ac_dummy="$PATH" ! 628: for ac_dir in $ac_dummy; do ! 629: test -z "$ac_dir" && ac_dir=. ! 630: if test -f $ac_dir/$ac_word; then ! 631: ac_cv_prog_CC="cl" ! 632: break ! 633: fi ! 634: done ! 635: IFS="$ac_save_ifs" ! 636: fi ! 637: fi ! 638: CC="$ac_cv_prog_CC" ! 639: if test -n "$CC"; then ! 640: echo "$ac_t""$CC" 1>&6 ! 641: else ! 642: echo "$ac_t""no" 1>&6 ! 643: fi ! 644: ;; ! 645: esac ! 646: fi ! 647: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } ! 648: fi ! 649: ! 650: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! 651: echo "configure:652: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ! 652: ! 653: ac_ext=c ! 654: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 655: ac_cpp='$CPP $CPPFLAGS' ! 656: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 657: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 658: cross_compiling=$ac_cv_prog_cc_cross ! 659: ! 660: cat > conftest.$ac_ext << EOF ! 661: ! 662: #line 663 "configure" ! 663: #include "confdefs.h" ! 664: ! 665: main(){return(0);} ! 666: EOF ! 667: if { (eval echo configure:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 668: ac_cv_prog_cc_works=yes ! 669: # If we can't run a trivial program, we are probably using a cross compiler. ! 670: if (./conftest; exit) 2>/dev/null; then ! 671: ac_cv_prog_cc_cross=no ! 672: else ! 673: ac_cv_prog_cc_cross=yes ! 674: fi ! 675: else ! 676: echo "configure: failed program was:" >&5 ! 677: cat conftest.$ac_ext >&5 ! 678: ac_cv_prog_cc_works=no ! 679: fi ! 680: rm -fr conftest* ! 681: ac_ext=c ! 682: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 683: ac_cpp='$CPP $CPPFLAGS' ! 684: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 685: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 686: cross_compiling=$ac_cv_prog_cc_cross ! 687: ! 688: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 ! 689: if test $ac_cv_prog_cc_works = no; then ! 690: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } ! 691: fi ! 692: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! 693: echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 ! 694: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 ! 695: cross_compiling=$ac_cv_prog_cc_cross ! 696: ! 697: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! 698: echo "configure:699: checking whether we are using GNU C" >&5 ! 699: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then ! 700: echo $ac_n "(cached) $ac_c" 1>&6 ! 701: else ! 702: cat > conftest.c <<EOF ! 703: #ifdef __GNUC__ ! 704: yes; ! 705: #endif ! 706: EOF ! 707: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ! 708: ac_cv_prog_gcc=yes ! 709: else ! 710: ac_cv_prog_gcc=no ! 711: fi ! 712: fi ! 713: ! 714: echo "$ac_t""$ac_cv_prog_gcc" 1>&6 ! 715: ! 716: if test $ac_cv_prog_gcc = yes; then ! 717: GCC=yes ! 718: else ! 719: GCC= ! 720: fi ! 721: ! 722: ac_test_CFLAGS="${CFLAGS+set}" ! 723: ac_save_CFLAGS="$CFLAGS" ! 724: CFLAGS= ! 725: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! 726: echo "configure:727: checking whether ${CC-cc} accepts -g" >&5 ! 727: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then ! 728: echo $ac_n "(cached) $ac_c" 1>&6 ! 729: else ! 730: echo 'void f(){}' > conftest.c ! 731: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ! 732: ac_cv_prog_cc_g=yes ! 733: else ! 734: ac_cv_prog_cc_g=no ! 735: fi ! 736: rm -f conftest* ! 737: ! 738: fi ! 739: ! 740: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 ! 741: if test "$ac_test_CFLAGS" = set; then ! 742: CFLAGS="$ac_save_CFLAGS" ! 743: elif test $ac_cv_prog_cc_g = yes; then ! 744: if test "$GCC" = yes; then ! 745: CFLAGS="-g -O2" ! 746: else ! 747: CFLAGS="-g" ! 748: fi ! 749: else ! 750: if test "$GCC" = yes; then ! 751: CFLAGS="-O2" ! 752: else ! 753: CFLAGS= ! 754: fi ! 755: fi ! 756: ! 757: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! 758: echo "configure:759: checking how to run the C preprocessor" >&5 ! 759: # On Suns, sometimes $CPP names a directory. ! 760: if test -n "$CPP" && test -d "$CPP"; then ! 761: CPP= ! 762: fi ! 763: if test -z "$CPP"; then ! 764: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then ! 765: echo $ac_n "(cached) $ac_c" 1>&6 ! 766: else ! 767: # This must be in double quotes, not single quotes, because CPP may get ! 768: # substituted into the Makefile and "${CC-cc}" will confuse make. ! 769: CPP="${CC-cc} -E" ! 770: # On the NeXT, cc -E runs the code through the compiler's parser, ! 771: # not just through cpp. ! 772: cat > conftest.$ac_ext <<EOF ! 773: #line 774 "configure" ! 774: #include "confdefs.h" ! 775: #include <assert.h> ! 776: Syntax Error ! 777: EOF ! 778: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 779: { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 780: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 781: if test -z "$ac_err"; then ! 782: : ! 783: else ! 784: echo "$ac_err" >&5 ! 785: echo "configure: failed program was:" >&5 ! 786: cat conftest.$ac_ext >&5 ! 787: rm -rf conftest* ! 788: CPP="${CC-cc} -E -traditional-cpp" ! 789: cat > conftest.$ac_ext <<EOF ! 790: #line 791 "configure" ! 791: #include "confdefs.h" ! 792: #include <assert.h> ! 793: Syntax Error ! 794: EOF ! 795: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 796: { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 797: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 798: if test -z "$ac_err"; then ! 799: : ! 800: else ! 801: echo "$ac_err" >&5 ! 802: echo "configure: failed program was:" >&5 ! 803: cat conftest.$ac_ext >&5 ! 804: rm -rf conftest* ! 805: CPP="${CC-cc} -nologo -E" ! 806: cat > conftest.$ac_ext <<EOF ! 807: #line 808 "configure" ! 808: #include "confdefs.h" ! 809: #include <assert.h> ! 810: Syntax Error ! 811: EOF ! 812: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 813: { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 814: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 815: if test -z "$ac_err"; then ! 816: : ! 817: else ! 818: echo "$ac_err" >&5 ! 819: echo "configure: failed program was:" >&5 ! 820: cat conftest.$ac_ext >&5 ! 821: rm -rf conftest* ! 822: CPP=/lib/cpp ! 823: fi ! 824: rm -f conftest* ! 825: fi ! 826: rm -f conftest* ! 827: fi ! 828: rm -f conftest* ! 829: ac_cv_prog_CPP="$CPP" ! 830: fi ! 831: CPP="$ac_cv_prog_CPP" ! 832: else ! 833: ac_cv_prog_CPP="$CPP" ! 834: fi ! 835: echo "$ac_t""$CPP" 1>&6 ! 836: ! 837: ac_aux_dir= ! 838: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do ! 839: if test -f $ac_dir/install-sh; then ! 840: ac_aux_dir=$ac_dir ! 841: ac_install_sh="$ac_aux_dir/install-sh -c" ! 842: break ! 843: elif test -f $ac_dir/install.sh; then ! 844: ac_aux_dir=$ac_dir ! 845: ac_install_sh="$ac_aux_dir/install.sh -c" ! 846: break ! 847: fi ! 848: done ! 849: if test -z "$ac_aux_dir"; then ! 850: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } ! 851: fi ! 852: ac_config_guess=$ac_aux_dir/config.guess ! 853: ac_config_sub=$ac_aux_dir/config.sub ! 854: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. ! 855: ! 856: # Find a good install program. We prefer a C program (faster), ! 857: # so one script is as good as another. But avoid the broken or ! 858: # incompatible versions: ! 859: # SysV /etc/install, /usr/sbin/install ! 860: # SunOS /usr/etc/install ! 861: # IRIX /sbin/install ! 862: # AIX /bin/install ! 863: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ! 864: # AFS /usr/afsws/bin/install, which mishandles nonexistent args ! 865: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ! 866: # ./install, which can be erroneously created by make from ./install.sh. ! 867: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ! 868: echo "configure:869: checking for a BSD compatible install" >&5 ! 869: if test -z "$INSTALL"; then ! 870: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ! 871: echo $ac_n "(cached) $ac_c" 1>&6 ! 872: else ! 873: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" ! 874: for ac_dir in $PATH; do ! 875: # Account for people who put trailing slashes in PATH elements. ! 876: case "$ac_dir/" in ! 877: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; ! 878: *) ! 879: # OSF1 and SCO ODT 3.0 have their own names for install. ! 880: # Don't use installbsd from OSF since it installs stuff as root ! 881: # by default. ! 882: for ac_prog in ginstall scoinst install; do ! 883: if test -f $ac_dir/$ac_prog; then ! 884: if test $ac_prog = install && ! 885: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then ! 886: # AIX install. It has an incompatible calling convention. ! 887: : ! 888: else ! 889: ac_cv_path_install="$ac_dir/$ac_prog -c" ! 890: break 2 ! 891: fi ! 892: fi ! 893: done ! 894: ;; ! 895: esac ! 896: done ! 897: IFS="$ac_save_IFS" ! 898: ! 899: fi ! 900: if test "${ac_cv_path_install+set}" = set; then ! 901: INSTALL="$ac_cv_path_install" ! 902: else ! 903: # As a last resort, use the slow shell script. We don't cache a ! 904: # path for INSTALL within a source directory, because that will ! 905: # break other packages using the cache if that directory is ! 906: # removed, or if the path is relative. ! 907: INSTALL="$ac_install_sh" ! 908: fi ! 909: fi ! 910: echo "$ac_t""$INSTALL" 1>&6 ! 911: ! 912: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. ! 913: # It thinks the first close brace ends the variable substitution. ! 914: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ! 915: ! 916: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' ! 917: ! 918: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ! 919: ! 920: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ! 921: echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5 ! 922: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` ! 923: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then ! 924: echo $ac_n "(cached) $ac_c" 1>&6 ! 925: else ! 926: cat > conftestmake <<\EOF ! 927: all: ! 928: @echo 'ac_maketemp="${MAKE}"' ! 929: EOF ! 930: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 931: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` ! 932: if test -n "$ac_maketemp"; then ! 933: eval ac_cv_prog_make_${ac_make}_set=yes ! 934: else ! 935: eval ac_cv_prog_make_${ac_make}_set=no ! 936: fi ! 937: rm -f conftestmake ! 938: fi ! 939: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ! 940: echo "$ac_t""yes" 1>&6 ! 941: SET_MAKE= ! 942: else ! 943: echo "$ac_t""no" 1>&6 ! 944: SET_MAKE="MAKE=${MAKE-make}" ! 945: fi ! 946: ! 947: # Extract the first word of "ranlib", so it can be a program name with args. ! 948: set dummy ranlib; ac_word=$2 ! 949: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 950: echo "configure:951: checking for $ac_word" >&5 ! 951: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then ! 952: echo $ac_n "(cached) $ac_c" 1>&6 ! 953: else ! 954: if test -n "$RANLIB"; then ! 955: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ! 956: else ! 957: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 958: ac_dummy="$PATH" ! 959: for ac_dir in $ac_dummy; do ! 960: test -z "$ac_dir" && ac_dir=. ! 961: if test -f $ac_dir/$ac_word; then ! 962: ac_cv_prog_RANLIB="ranlib" ! 963: break ! 964: fi ! 965: done ! 966: IFS="$ac_save_ifs" ! 967: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" ! 968: fi ! 969: fi ! 970: RANLIB="$ac_cv_prog_RANLIB" ! 971: if test -n "$RANLIB"; then ! 972: echo "$ac_t""$RANLIB" 1>&6 ! 973: else ! 974: echo "$ac_t""no" 1>&6 ! 975: fi ! 976: ! 977: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 ! 978: echo "configure:979: checking return type of signal handlers" >&5 ! 979: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then ! 980: echo $ac_n "(cached) $ac_c" 1>&6 ! 981: else ! 982: cat > conftest.$ac_ext <<EOF ! 983: #line 984 "configure" ! 984: #include "confdefs.h" ! 985: #include <sys/types.h> ! 986: #include <signal.h> ! 987: #ifdef signal ! 988: #undef signal ! 989: #endif ! 990: #ifdef __cplusplus ! 991: extern "C" void (*signal (int, void (*)(int)))(int); ! 992: #else ! 993: void (*signal ()) (); ! 994: #endif ! 995: ! 996: int main() { ! 997: int i; ! 998: ; return 0; } ! 999: EOF ! 1000: if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 1001: rm -rf conftest* ! 1002: ac_cv_type_signal=void ! 1003: else ! 1004: echo "configure: failed program was:" >&5 ! 1005: cat conftest.$ac_ext >&5 ! 1006: rm -rf conftest* ! 1007: ac_cv_type_signal=int ! 1008: fi ! 1009: rm -f conftest* ! 1010: fi ! 1011: ! 1012: echo "$ac_t""$ac_cv_type_signal" 1>&6 ! 1013: cat >> confdefs.h <<EOF ! 1014: #define RETSIGTYPE $ac_cv_type_signal ! 1015: EOF ! 1016: ! 1017: ! 1018: ! 1019: HEADERS="-I. -Iz80 -I../hdr -I../src/snd" ! 1020: ! 1021: program="" ! 1022: # Check whether --enable-tcltk or --disable-tcltk was given. ! 1023: if test "${enable_tcltk+set}" = set; then ! 1024: enableval="$enable_tcltk" ! 1025: program="generator-tcltk" ! 1026: fi ! 1027: ! 1028: # Check whether --enable-svgalib or --disable-svgalib was given. ! 1029: if test "${enable_svgalib+set}" = set; then ! 1030: enableval="$enable_svgalib" ! 1031: program="generator-svgalib" ! 1032: fi ! 1033: ! 1034: # Check whether --enable-allegro or --disable-allegro was given. ! 1035: if test "${enable_allegro+set}" = set; then ! 1036: enableval="$enable_allegro" ! 1037: program="generator-allegro" ! 1038: fi ! 1039: ! 1040: if [ "x$program" = "x" ]; then ! 1041: { echo "configure: error: You must select the user interface type" 1>&2; exit 1; } ! 1042: fi ! 1043: ! 1044: if [ "x$program" = "xgenerator-tcltk" ]; then ! 1045: # If we find X, set shell vars x_includes and x_libraries to the ! 1046: # paths, otherwise set no_x=yes. ! 1047: # Uses ac_ vars as temps to allow command line to override cache and checks. ! 1048: # --without-x overrides everything else, but does not touch the cache. ! 1049: echo $ac_n "checking for X""... $ac_c" 1>&6 ! 1050: echo "configure:1051: checking for X" >&5 ! 1051: ! 1052: # Check whether --with-x or --without-x was given. ! 1053: if test "${with_x+set}" = set; then ! 1054: withval="$with_x" ! 1055: : ! 1056: fi ! 1057: ! 1058: # $have_x is `yes', `no', `disabled', or empty when we do not yet know. ! 1059: if test "x$with_x" = xno; then ! 1060: # The user explicitly disabled X. ! 1061: have_x=disabled ! 1062: else ! 1063: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then ! 1064: # Both variables are already set. ! 1065: have_x=yes ! 1066: else ! 1067: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then ! 1068: echo $ac_n "(cached) $ac_c" 1>&6 ! 1069: else ! 1070: # One or both of the vars are not set, and there is no cached value. ! 1071: ac_x_includes=NO ac_x_libraries=NO ! 1072: rm -fr conftestdir ! 1073: if mkdir conftestdir; then ! 1074: cd conftestdir ! 1075: # Make sure to not put "make" in the Imakefile rules, since we grep it out. ! 1076: cat > Imakefile <<'EOF' ! 1077: acfindx: ! 1078: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' ! 1079: EOF ! 1080: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then ! 1081: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 1082: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` ! 1083: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. ! 1084: for ac_extension in a so sl; do ! 1085: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && ! 1086: test -f $ac_im_libdir/libX11.$ac_extension; then ! 1087: ac_im_usrlibdir=$ac_im_libdir; break ! 1088: fi ! 1089: done ! 1090: # Screen out bogus values from the imake configuration. They are ! 1091: # bogus both because they are the default anyway, and because ! 1092: # using them would break gcc on systems where it needs fixed includes. ! 1093: case "$ac_im_incroot" in ! 1094: /usr/include) ;; ! 1095: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; ! 1096: esac ! 1097: case "$ac_im_usrlibdir" in ! 1098: /usr/lib | /lib) ;; ! 1099: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; ! 1100: esac ! 1101: fi ! 1102: cd .. ! 1103: rm -fr conftestdir ! 1104: fi ! 1105: ! 1106: if test "$ac_x_includes" = NO; then ! 1107: # Guess where to find include files, by looking for this one X11 .h file. ! 1108: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h ! 1109: ! 1110: # First, try using that file with no special directory specified. ! 1111: cat > conftest.$ac_ext <<EOF ! 1112: #line 1113 "configure" ! 1113: #include "confdefs.h" ! 1114: #include <$x_direct_test_include> ! 1115: EOF ! 1116: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1117: { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1118: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1119: if test -z "$ac_err"; then ! 1120: rm -rf conftest* ! 1121: # We can compile using X headers with no special include directory. ! 1122: ac_x_includes= ! 1123: else ! 1124: echo "$ac_err" >&5 ! 1125: echo "configure: failed program was:" >&5 ! 1126: cat conftest.$ac_ext >&5 ! 1127: rm -rf conftest* ! 1128: # Look for the header file in a standard set of common directories. ! 1129: # Check X11 before X11Rn because it is often a symlink to the current release. ! 1130: for ac_dir in \ ! 1131: /usr/X11/include \ ! 1132: /usr/X11R6/include \ ! 1133: /usr/X11R5/include \ ! 1134: /usr/X11R4/include \ ! 1135: \ ! 1136: /usr/include/X11 \ ! 1137: /usr/include/X11R6 \ ! 1138: /usr/include/X11R5 \ ! 1139: /usr/include/X11R4 \ ! 1140: \ ! 1141: /usr/local/X11/include \ ! 1142: /usr/local/X11R6/include \ ! 1143: /usr/local/X11R5/include \ ! 1144: /usr/local/X11R4/include \ ! 1145: \ ! 1146: /usr/local/include/X11 \ ! 1147: /usr/local/include/X11R6 \ ! 1148: /usr/local/include/X11R5 \ ! 1149: /usr/local/include/X11R4 \ ! 1150: \ ! 1151: /usr/X386/include \ ! 1152: /usr/x386/include \ ! 1153: /usr/XFree86/include/X11 \ ! 1154: \ ! 1155: /usr/include \ ! 1156: /usr/local/include \ ! 1157: /usr/unsupported/include \ ! 1158: /usr/athena/include \ ! 1159: /usr/local/x11r5/include \ ! 1160: /usr/lpp/Xamples/include \ ! 1161: \ ! 1162: /usr/openwin/include \ ! 1163: /usr/openwin/share/include \ ! 1164: ; \ ! 1165: do ! 1166: if test -r "$ac_dir/$x_direct_test_include"; then ! 1167: ac_x_includes=$ac_dir ! 1168: break ! 1169: fi ! 1170: done ! 1171: fi ! 1172: rm -f conftest* ! 1173: fi # $ac_x_includes = NO ! 1174: ! 1175: if test "$ac_x_libraries" = NO; then ! 1176: # Check for the libraries. ! 1177: ! 1178: test -z "$x_direct_test_library" && x_direct_test_library=Xt ! 1179: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc ! 1180: ! 1181: # See if we find them without any special options. ! 1182: # Don't add to $LIBS permanently. ! 1183: ac_save_LIBS="$LIBS" ! 1184: LIBS="-l$x_direct_test_library $LIBS" ! 1185: cat > conftest.$ac_ext <<EOF ! 1186: #line 1187 "configure" ! 1187: #include "confdefs.h" ! 1188: ! 1189: int main() { ! 1190: ${x_direct_test_function}() ! 1191: ; return 0; } ! 1192: EOF ! 1193: if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1194: rm -rf conftest* ! 1195: LIBS="$ac_save_LIBS" ! 1196: # We can link X programs with no special library path. ! 1197: ac_x_libraries= ! 1198: else ! 1199: echo "configure: failed program was:" >&5 ! 1200: cat conftest.$ac_ext >&5 ! 1201: rm -rf conftest* ! 1202: LIBS="$ac_save_LIBS" ! 1203: # First see if replacing the include by lib works. ! 1204: # Check X11 before X11Rn because it is often a symlink to the current release. ! 1205: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ ! 1206: /usr/X11/lib \ ! 1207: /usr/X11R6/lib \ ! 1208: /usr/X11R5/lib \ ! 1209: /usr/X11R4/lib \ ! 1210: \ ! 1211: /usr/lib/X11 \ ! 1212: /usr/lib/X11R6 \ ! 1213: /usr/lib/X11R5 \ ! 1214: /usr/lib/X11R4 \ ! 1215: \ ! 1216: /usr/local/X11/lib \ ! 1217: /usr/local/X11R6/lib \ ! 1218: /usr/local/X11R5/lib \ ! 1219: /usr/local/X11R4/lib \ ! 1220: \ ! 1221: /usr/local/lib/X11 \ ! 1222: /usr/local/lib/X11R6 \ ! 1223: /usr/local/lib/X11R5 \ ! 1224: /usr/local/lib/X11R4 \ ! 1225: \ ! 1226: /usr/X386/lib \ ! 1227: /usr/x386/lib \ ! 1228: /usr/XFree86/lib/X11 \ ! 1229: \ ! 1230: /usr/lib \ ! 1231: /usr/local/lib \ ! 1232: /usr/unsupported/lib \ ! 1233: /usr/athena/lib \ ! 1234: /usr/local/x11r5/lib \ ! 1235: /usr/lpp/Xamples/lib \ ! 1236: /lib/usr/lib/X11 \ ! 1237: \ ! 1238: /usr/openwin/lib \ ! 1239: /usr/openwin/share/lib \ ! 1240: ; \ ! 1241: do ! 1242: for ac_extension in a so sl; do ! 1243: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then ! 1244: ac_x_libraries=$ac_dir ! 1245: break 2 ! 1246: fi ! 1247: done ! 1248: done ! 1249: fi ! 1250: rm -f conftest* ! 1251: fi # $ac_x_libraries = NO ! 1252: ! 1253: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then ! 1254: # Didn't find X anywhere. Cache the known absence of X. ! 1255: ac_cv_have_x="have_x=no" ! 1256: else ! 1257: # Record where we found X for the cache. ! 1258: ac_cv_have_x="have_x=yes \ ! 1259: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" ! 1260: fi ! 1261: fi ! 1262: fi ! 1263: eval "$ac_cv_have_x" ! 1264: fi # $with_x != no ! 1265: ! 1266: if test "$have_x" != yes; then ! 1267: echo "$ac_t""$have_x" 1>&6 ! 1268: no_x=yes ! 1269: else ! 1270: # If each of the values was on the command line, it overrides each guess. ! 1271: test "x$x_includes" = xNONE && x_includes=$ac_x_includes ! 1272: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries ! 1273: # Update the cache value to reflect the command line values. ! 1274: ac_cv_have_x="have_x=yes \ ! 1275: ac_x_includes=$x_includes ac_x_libraries=$x_libraries" ! 1276: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 ! 1277: fi ! 1278: ! 1279: if test "$no_x" = yes; then ! 1280: # Not all programs may use this symbol, but it does not hurt to define it. ! 1281: cat >> confdefs.h <<\EOF ! 1282: #define X_DISPLAY_MISSING 1 ! 1283: EOF ! 1284: ! 1285: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= ! 1286: else ! 1287: if test -n "$x_includes"; then ! 1288: X_CFLAGS="$X_CFLAGS -I$x_includes" ! 1289: fi ! 1290: ! 1291: # It would also be nice to do this for all -L options, not just this one. ! 1292: if test -n "$x_libraries"; then ! 1293: X_LIBS="$X_LIBS -L$x_libraries" ! 1294: # For Solaris; some versions of Sun CC require a space after -R and ! 1295: # others require no space. Words are not sufficient . . . . ! 1296: case "`(uname -sr) 2>/dev/null`" in ! 1297: "SunOS 5"*) ! 1298: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 ! 1299: echo "configure:1300: checking whether -R must be followed by a space" >&5 ! 1300: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" ! 1301: cat > conftest.$ac_ext <<EOF ! 1302: #line 1303 "configure" ! 1303: #include "confdefs.h" ! 1304: ! 1305: int main() { ! 1306: ! 1307: ; return 0; } ! 1308: EOF ! 1309: if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1310: rm -rf conftest* ! 1311: ac_R_nospace=yes ! 1312: else ! 1313: echo "configure: failed program was:" >&5 ! 1314: cat conftest.$ac_ext >&5 ! 1315: rm -rf conftest* ! 1316: ac_R_nospace=no ! 1317: fi ! 1318: rm -f conftest* ! 1319: if test $ac_R_nospace = yes; then ! 1320: echo "$ac_t""no" 1>&6 ! 1321: X_LIBS="$X_LIBS -R$x_libraries" ! 1322: else ! 1323: LIBS="$ac_xsave_LIBS -R $x_libraries" ! 1324: cat > conftest.$ac_ext <<EOF ! 1325: #line 1326 "configure" ! 1326: #include "confdefs.h" ! 1327: ! 1328: int main() { ! 1329: ! 1330: ; return 0; } ! 1331: EOF ! 1332: if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1333: rm -rf conftest* ! 1334: ac_R_space=yes ! 1335: else ! 1336: echo "configure: failed program was:" >&5 ! 1337: cat conftest.$ac_ext >&5 ! 1338: rm -rf conftest* ! 1339: ac_R_space=no ! 1340: fi ! 1341: rm -f conftest* ! 1342: if test $ac_R_space = yes; then ! 1343: echo "$ac_t""yes" 1>&6 ! 1344: X_LIBS="$X_LIBS -R $x_libraries" ! 1345: else ! 1346: echo "$ac_t""neither works" 1>&6 ! 1347: fi ! 1348: fi ! 1349: LIBS="$ac_xsave_LIBS" ! 1350: esac ! 1351: fi ! 1352: ! 1353: # Check for system-dependent libraries X programs must link with. ! 1354: # Do this before checking for the system-independent R6 libraries ! 1355: # (-lICE), since we may need -lsocket or whatever for X linking. ! 1356: ! 1357: if test "$ISC" = yes; then ! 1358: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" ! 1359: else ! 1360: # [email protected] says this is needed for Ultrix, if the X ! 1361: # libraries were built with DECnet support. And [email protected] says ! 1362: # the Alpha needs dnet_stub (dnet does not exist). ! 1363: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 ! 1364: echo "configure:1365: checking for dnet_ntoa in -ldnet" >&5 ! 1365: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` ! 1366: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1367: echo $ac_n "(cached) $ac_c" 1>&6 ! 1368: else ! 1369: ac_save_LIBS="$LIBS" ! 1370: LIBS="-ldnet $LIBS" ! 1371: cat > conftest.$ac_ext <<EOF ! 1372: #line 1373 "configure" ! 1373: #include "confdefs.h" ! 1374: /* Override any gcc2 internal prototype to avoid an error. */ ! 1375: /* We use char because int might match the return type of a gcc2 ! 1376: builtin and then its argument prototype would still apply. */ ! 1377: char dnet_ntoa(); ! 1378: ! 1379: int main() { ! 1380: dnet_ntoa() ! 1381: ; return 0; } ! 1382: EOF ! 1383: if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1384: rm -rf conftest* ! 1385: eval "ac_cv_lib_$ac_lib_var=yes" ! 1386: else ! 1387: echo "configure: failed program was:" >&5 ! 1388: cat conftest.$ac_ext >&5 ! 1389: rm -rf conftest* ! 1390: eval "ac_cv_lib_$ac_lib_var=no" ! 1391: fi ! 1392: rm -f conftest* ! 1393: LIBS="$ac_save_LIBS" ! 1394: ! 1395: fi ! 1396: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1397: echo "$ac_t""yes" 1>&6 ! 1398: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" ! 1399: else ! 1400: echo "$ac_t""no" 1>&6 ! 1401: fi ! 1402: ! 1403: if test $ac_cv_lib_dnet_dnet_ntoa = no; then ! 1404: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 ! 1405: echo "configure:1406: checking for dnet_ntoa in -ldnet_stub" >&5 ! 1406: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` ! 1407: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1408: echo $ac_n "(cached) $ac_c" 1>&6 ! 1409: else ! 1410: ac_save_LIBS="$LIBS" ! 1411: LIBS="-ldnet_stub $LIBS" ! 1412: cat > conftest.$ac_ext <<EOF ! 1413: #line 1414 "configure" ! 1414: #include "confdefs.h" ! 1415: /* Override any gcc2 internal prototype to avoid an error. */ ! 1416: /* We use char because int might match the return type of a gcc2 ! 1417: builtin and then its argument prototype would still apply. */ ! 1418: char dnet_ntoa(); ! 1419: ! 1420: int main() { ! 1421: dnet_ntoa() ! 1422: ; return 0; } ! 1423: EOF ! 1424: if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1425: rm -rf conftest* ! 1426: eval "ac_cv_lib_$ac_lib_var=yes" ! 1427: else ! 1428: echo "configure: failed program was:" >&5 ! 1429: cat conftest.$ac_ext >&5 ! 1430: rm -rf conftest* ! 1431: eval "ac_cv_lib_$ac_lib_var=no" ! 1432: fi ! 1433: rm -f conftest* ! 1434: LIBS="$ac_save_LIBS" ! 1435: ! 1436: fi ! 1437: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1438: echo "$ac_t""yes" 1>&6 ! 1439: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" ! 1440: else ! 1441: echo "$ac_t""no" 1>&6 ! 1442: fi ! 1443: ! 1444: fi ! 1445: ! 1446: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, ! 1447: # to get the SysV transport functions. ! 1448: # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4) ! 1449: # needs -lnsl. ! 1450: # The nsl library prevents programs from opening the X display ! 1451: # on Irix 5.2, according to [email protected]. ! 1452: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 ! 1453: echo "configure:1454: checking for gethostbyname" >&5 ! 1454: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then ! 1455: echo $ac_n "(cached) $ac_c" 1>&6 ! 1456: else ! 1457: cat > conftest.$ac_ext <<EOF ! 1458: #line 1459 "configure" ! 1459: #include "confdefs.h" ! 1460: /* System header to define __stub macros and hopefully few prototypes, ! 1461: which can conflict with char gethostbyname(); below. */ ! 1462: #include <assert.h> ! 1463: /* Override any gcc2 internal prototype to avoid an error. */ ! 1464: /* We use char because int might match the return type of a gcc2 ! 1465: builtin and then its argument prototype would still apply. */ ! 1466: char gethostbyname(); ! 1467: ! 1468: int main() { ! 1469: ! 1470: /* The GNU C library defines this for functions which it implements ! 1471: to always fail with ENOSYS. Some functions are actually named ! 1472: something starting with __ and the normal name is an alias. */ ! 1473: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) ! 1474: choke me ! 1475: #else ! 1476: gethostbyname(); ! 1477: #endif ! 1478: ! 1479: ; return 0; } ! 1480: EOF ! 1481: if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1482: rm -rf conftest* ! 1483: eval "ac_cv_func_gethostbyname=yes" ! 1484: else ! 1485: echo "configure: failed program was:" >&5 ! 1486: cat conftest.$ac_ext >&5 ! 1487: rm -rf conftest* ! 1488: eval "ac_cv_func_gethostbyname=no" ! 1489: fi ! 1490: rm -f conftest* ! 1491: fi ! 1492: ! 1493: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then ! 1494: echo "$ac_t""yes" 1>&6 ! 1495: : ! 1496: else ! 1497: echo "$ac_t""no" 1>&6 ! 1498: fi ! 1499: ! 1500: if test $ac_cv_func_gethostbyname = no; then ! 1501: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 ! 1502: echo "configure:1503: checking for gethostbyname in -lnsl" >&5 ! 1503: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` ! 1504: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1505: echo $ac_n "(cached) $ac_c" 1>&6 ! 1506: else ! 1507: ac_save_LIBS="$LIBS" ! 1508: LIBS="-lnsl $LIBS" ! 1509: cat > conftest.$ac_ext <<EOF ! 1510: #line 1511 "configure" ! 1511: #include "confdefs.h" ! 1512: /* Override any gcc2 internal prototype to avoid an error. */ ! 1513: /* We use char because int might match the return type of a gcc2 ! 1514: builtin and then its argument prototype would still apply. */ ! 1515: char gethostbyname(); ! 1516: ! 1517: int main() { ! 1518: gethostbyname() ! 1519: ; return 0; } ! 1520: EOF ! 1521: if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1522: rm -rf conftest* ! 1523: eval "ac_cv_lib_$ac_lib_var=yes" ! 1524: else ! 1525: echo "configure: failed program was:" >&5 ! 1526: cat conftest.$ac_ext >&5 ! 1527: rm -rf conftest* ! 1528: eval "ac_cv_lib_$ac_lib_var=no" ! 1529: fi ! 1530: rm -f conftest* ! 1531: LIBS="$ac_save_LIBS" ! 1532: ! 1533: fi ! 1534: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1535: echo "$ac_t""yes" 1>&6 ! 1536: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" ! 1537: else ! 1538: echo "$ac_t""no" 1>&6 ! 1539: fi ! 1540: ! 1541: fi ! 1542: ! 1543: # [email protected] says without -lsocket, ! 1544: # socket/setsockopt and other routines are undefined under SCO ODT ! 1545: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary ! 1546: # on later versions), says [email protected]: it contains ! 1547: # gethostby* variants that don't use the nameserver (or something). ! 1548: # -lsocket must be given before -lnsl if both are needed. ! 1549: # We assume that if connect needs -lnsl, so does gethostbyname. ! 1550: echo $ac_n "checking for connect""... $ac_c" 1>&6 ! 1551: echo "configure:1552: checking for connect" >&5 ! 1552: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then ! 1553: echo $ac_n "(cached) $ac_c" 1>&6 ! 1554: else ! 1555: cat > conftest.$ac_ext <<EOF ! 1556: #line 1557 "configure" ! 1557: #include "confdefs.h" ! 1558: /* System header to define __stub macros and hopefully few prototypes, ! 1559: which can conflict with char connect(); below. */ ! 1560: #include <assert.h> ! 1561: /* Override any gcc2 internal prototype to avoid an error. */ ! 1562: /* We use char because int might match the return type of a gcc2 ! 1563: builtin and then its argument prototype would still apply. */ ! 1564: char connect(); ! 1565: ! 1566: int main() { ! 1567: ! 1568: /* The GNU C library defines this for functions which it implements ! 1569: to always fail with ENOSYS. Some functions are actually named ! 1570: something starting with __ and the normal name is an alias. */ ! 1571: #if defined (__stub_connect) || defined (__stub___connect) ! 1572: choke me ! 1573: #else ! 1574: connect(); ! 1575: #endif ! 1576: ! 1577: ; return 0; } ! 1578: EOF ! 1579: if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1580: rm -rf conftest* ! 1581: eval "ac_cv_func_connect=yes" ! 1582: else ! 1583: echo "configure: failed program was:" >&5 ! 1584: cat conftest.$ac_ext >&5 ! 1585: rm -rf conftest* ! 1586: eval "ac_cv_func_connect=no" ! 1587: fi ! 1588: rm -f conftest* ! 1589: fi ! 1590: ! 1591: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then ! 1592: echo "$ac_t""yes" 1>&6 ! 1593: : ! 1594: else ! 1595: echo "$ac_t""no" 1>&6 ! 1596: fi ! 1597: ! 1598: if test $ac_cv_func_connect = no; then ! 1599: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 ! 1600: echo "configure:1601: checking for connect in -lsocket" >&5 ! 1601: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` ! 1602: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1603: echo $ac_n "(cached) $ac_c" 1>&6 ! 1604: else ! 1605: ac_save_LIBS="$LIBS" ! 1606: LIBS="-lsocket $X_EXTRA_LIBS $LIBS" ! 1607: cat > conftest.$ac_ext <<EOF ! 1608: #line 1609 "configure" ! 1609: #include "confdefs.h" ! 1610: /* Override any gcc2 internal prototype to avoid an error. */ ! 1611: /* We use char because int might match the return type of a gcc2 ! 1612: builtin and then its argument prototype would still apply. */ ! 1613: char connect(); ! 1614: ! 1615: int main() { ! 1616: connect() ! 1617: ; return 0; } ! 1618: EOF ! 1619: if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1620: rm -rf conftest* ! 1621: eval "ac_cv_lib_$ac_lib_var=yes" ! 1622: else ! 1623: echo "configure: failed program was:" >&5 ! 1624: cat conftest.$ac_ext >&5 ! 1625: rm -rf conftest* ! 1626: eval "ac_cv_lib_$ac_lib_var=no" ! 1627: fi ! 1628: rm -f conftest* ! 1629: LIBS="$ac_save_LIBS" ! 1630: ! 1631: fi ! 1632: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1633: echo "$ac_t""yes" 1>&6 ! 1634: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" ! 1635: else ! 1636: echo "$ac_t""no" 1>&6 ! 1637: fi ! 1638: ! 1639: fi ! 1640: ! 1641: # [email protected] says -lposix is necessary on A/UX. ! 1642: echo $ac_n "checking for remove""... $ac_c" 1>&6 ! 1643: echo "configure:1644: checking for remove" >&5 ! 1644: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then ! 1645: echo $ac_n "(cached) $ac_c" 1>&6 ! 1646: else ! 1647: cat > conftest.$ac_ext <<EOF ! 1648: #line 1649 "configure" ! 1649: #include "confdefs.h" ! 1650: /* System header to define __stub macros and hopefully few prototypes, ! 1651: which can conflict with char remove(); below. */ ! 1652: #include <assert.h> ! 1653: /* Override any gcc2 internal prototype to avoid an error. */ ! 1654: /* We use char because int might match the return type of a gcc2 ! 1655: builtin and then its argument prototype would still apply. */ ! 1656: char remove(); ! 1657: ! 1658: int main() { ! 1659: ! 1660: /* The GNU C library defines this for functions which it implements ! 1661: to always fail with ENOSYS. Some functions are actually named ! 1662: something starting with __ and the normal name is an alias. */ ! 1663: #if defined (__stub_remove) || defined (__stub___remove) ! 1664: choke me ! 1665: #else ! 1666: remove(); ! 1667: #endif ! 1668: ! 1669: ; return 0; } ! 1670: EOF ! 1671: if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1672: rm -rf conftest* ! 1673: eval "ac_cv_func_remove=yes" ! 1674: else ! 1675: echo "configure: failed program was:" >&5 ! 1676: cat conftest.$ac_ext >&5 ! 1677: rm -rf conftest* ! 1678: eval "ac_cv_func_remove=no" ! 1679: fi ! 1680: rm -f conftest* ! 1681: fi ! 1682: ! 1683: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then ! 1684: echo "$ac_t""yes" 1>&6 ! 1685: : ! 1686: else ! 1687: echo "$ac_t""no" 1>&6 ! 1688: fi ! 1689: ! 1690: if test $ac_cv_func_remove = no; then ! 1691: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 ! 1692: echo "configure:1693: checking for remove in -lposix" >&5 ! 1693: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` ! 1694: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1695: echo $ac_n "(cached) $ac_c" 1>&6 ! 1696: else ! 1697: ac_save_LIBS="$LIBS" ! 1698: LIBS="-lposix $LIBS" ! 1699: cat > conftest.$ac_ext <<EOF ! 1700: #line 1701 "configure" ! 1701: #include "confdefs.h" ! 1702: /* Override any gcc2 internal prototype to avoid an error. */ ! 1703: /* We use char because int might match the return type of a gcc2 ! 1704: builtin and then its argument prototype would still apply. */ ! 1705: char remove(); ! 1706: ! 1707: int main() { ! 1708: remove() ! 1709: ; return 0; } ! 1710: EOF ! 1711: if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1712: rm -rf conftest* ! 1713: eval "ac_cv_lib_$ac_lib_var=yes" ! 1714: else ! 1715: echo "configure: failed program was:" >&5 ! 1716: cat conftest.$ac_ext >&5 ! 1717: rm -rf conftest* ! 1718: eval "ac_cv_lib_$ac_lib_var=no" ! 1719: fi ! 1720: rm -f conftest* ! 1721: LIBS="$ac_save_LIBS" ! 1722: ! 1723: fi ! 1724: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1725: echo "$ac_t""yes" 1>&6 ! 1726: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" ! 1727: else ! 1728: echo "$ac_t""no" 1>&6 ! 1729: fi ! 1730: ! 1731: fi ! 1732: ! 1733: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ! 1734: echo $ac_n "checking for shmat""... $ac_c" 1>&6 ! 1735: echo "configure:1736: checking for shmat" >&5 ! 1736: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then ! 1737: echo $ac_n "(cached) $ac_c" 1>&6 ! 1738: else ! 1739: cat > conftest.$ac_ext <<EOF ! 1740: #line 1741 "configure" ! 1741: #include "confdefs.h" ! 1742: /* System header to define __stub macros and hopefully few prototypes, ! 1743: which can conflict with char shmat(); below. */ ! 1744: #include <assert.h> ! 1745: /* Override any gcc2 internal prototype to avoid an error. */ ! 1746: /* We use char because int might match the return type of a gcc2 ! 1747: builtin and then its argument prototype would still apply. */ ! 1748: char shmat(); ! 1749: ! 1750: int main() { ! 1751: ! 1752: /* The GNU C library defines this for functions which it implements ! 1753: to always fail with ENOSYS. Some functions are actually named ! 1754: something starting with __ and the normal name is an alias. */ ! 1755: #if defined (__stub_shmat) || defined (__stub___shmat) ! 1756: choke me ! 1757: #else ! 1758: shmat(); ! 1759: #endif ! 1760: ! 1761: ; return 0; } ! 1762: EOF ! 1763: if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1764: rm -rf conftest* ! 1765: eval "ac_cv_func_shmat=yes" ! 1766: else ! 1767: echo "configure: failed program was:" >&5 ! 1768: cat conftest.$ac_ext >&5 ! 1769: rm -rf conftest* ! 1770: eval "ac_cv_func_shmat=no" ! 1771: fi ! 1772: rm -f conftest* ! 1773: fi ! 1774: ! 1775: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then ! 1776: echo "$ac_t""yes" 1>&6 ! 1777: : ! 1778: else ! 1779: echo "$ac_t""no" 1>&6 ! 1780: fi ! 1781: ! 1782: if test $ac_cv_func_shmat = no; then ! 1783: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 ! 1784: echo "configure:1785: checking for shmat in -lipc" >&5 ! 1785: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` ! 1786: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1787: echo $ac_n "(cached) $ac_c" 1>&6 ! 1788: else ! 1789: ac_save_LIBS="$LIBS" ! 1790: LIBS="-lipc $LIBS" ! 1791: cat > conftest.$ac_ext <<EOF ! 1792: #line 1793 "configure" ! 1793: #include "confdefs.h" ! 1794: /* Override any gcc2 internal prototype to avoid an error. */ ! 1795: /* We use char because int might match the return type of a gcc2 ! 1796: builtin and then its argument prototype would still apply. */ ! 1797: char shmat(); ! 1798: ! 1799: int main() { ! 1800: shmat() ! 1801: ; return 0; } ! 1802: EOF ! 1803: if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1804: rm -rf conftest* ! 1805: eval "ac_cv_lib_$ac_lib_var=yes" ! 1806: else ! 1807: echo "configure: failed program was:" >&5 ! 1808: cat conftest.$ac_ext >&5 ! 1809: rm -rf conftest* ! 1810: eval "ac_cv_lib_$ac_lib_var=no" ! 1811: fi ! 1812: rm -f conftest* ! 1813: LIBS="$ac_save_LIBS" ! 1814: ! 1815: fi ! 1816: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1817: echo "$ac_t""yes" 1>&6 ! 1818: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" ! 1819: else ! 1820: echo "$ac_t""no" 1>&6 ! 1821: fi ! 1822: ! 1823: fi ! 1824: fi ! 1825: ! 1826: # Check for libraries that X11R6 Xt/Xaw programs need. ! 1827: ac_save_LDFLAGS="$LDFLAGS" ! 1828: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" ! 1829: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to ! 1830: # check for ICE first), but we must link in the order -lSM -lICE or ! 1831: # we get undefined symbols. So assume we have SM if we have ICE. ! 1832: # These have to be linked with before -lX11, unlike the other ! 1833: # libraries we check for below, so use a different variable. ! 1834: # [email protected], [email protected]. ! 1835: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 ! 1836: echo "configure:1837: checking for IceConnectionNumber in -lICE" >&5 ! 1837: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` ! 1838: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1839: echo $ac_n "(cached) $ac_c" 1>&6 ! 1840: else ! 1841: ac_save_LIBS="$LIBS" ! 1842: LIBS="-lICE $X_EXTRA_LIBS $LIBS" ! 1843: cat > conftest.$ac_ext <<EOF ! 1844: #line 1845 "configure" ! 1845: #include "confdefs.h" ! 1846: /* Override any gcc2 internal prototype to avoid an error. */ ! 1847: /* We use char because int might match the return type of a gcc2 ! 1848: builtin and then its argument prototype would still apply. */ ! 1849: char IceConnectionNumber(); ! 1850: ! 1851: int main() { ! 1852: IceConnectionNumber() ! 1853: ; return 0; } ! 1854: EOF ! 1855: if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1856: rm -rf conftest* ! 1857: eval "ac_cv_lib_$ac_lib_var=yes" ! 1858: else ! 1859: echo "configure: failed program was:" >&5 ! 1860: cat conftest.$ac_ext >&5 ! 1861: rm -rf conftest* ! 1862: eval "ac_cv_lib_$ac_lib_var=no" ! 1863: fi ! 1864: rm -f conftest* ! 1865: LIBS="$ac_save_LIBS" ! 1866: ! 1867: fi ! 1868: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1869: echo "$ac_t""yes" 1>&6 ! 1870: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" ! 1871: else ! 1872: echo "$ac_t""no" 1>&6 ! 1873: fi ! 1874: ! 1875: LDFLAGS="$ac_save_LDFLAGS" ! 1876: ! 1877: fi ! 1878: ! 1879: if [ "$no_x" ]; then ! 1880: { echo "configure: error: X is not installed" 1>&2; exit 1; } ! 1881: fi ! 1882: HEADERS="$HEADERS -I- -I/usr/X11R6/include" ! 1883: CPPFLAGS="$HEADERS" ! 1884: CFLAGS="$CFLAGS $X_CFLAGS" ! 1885: DEPFLAGS="$HEADERS $X_CFLAGS" ! 1886: LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" ! 1887: LDFLAGS="$X_LIBS -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib/" ! 1888: fi ! 1889: ! 1890: if [ "x$program" = "xgenerator-svgalib" ]; then ! 1891: CPPFLAGS="$HEADERS" ! 1892: DEPFLAGS="$HEADERS" ! 1893: LIBS="" ! 1894: LDFLAGS="-L/usr/lib -L/usr/local/lib" ! 1895: fi ! 1896: if [ "x$program" = "xgenerator-allegro" ]; then ! 1897: HEADERS="$HEADERS" ! 1898: CPPFLAGS="$HEADERS" ! 1899: DEPFLAGS="$HEADERS" ! 1900: LIBS="" ! 1901: LDFLAGS="-L/usr/i586-pc-msdosdjgpp/lib" ! 1902: LDFLAGS="" ! 1903: CFLAGS="$CFLAGS -DALLEGRO" ! 1904: fi ! 1905: ! 1906: os=`uname -s 2>/dev/null | tr 'A-Z' 'a-z'` ! 1907: case "$os" in ! 1908: sunos) OSLDFLAGS="-R/gnu/lib -R/usr/local/lib";; ! 1909: *) OSLDFLAGS="";; ! 1910: esac ! 1911: ! 1912: LDFLAGS="$LDFLAGS $OSLDFLAGS" ! 1913: ! 1914: ! 1915: echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6 ! 1916: echo "configure:1917: checking for cos in -lm" >&5 ! 1917: ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'` ! 1918: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1919: echo $ac_n "(cached) $ac_c" 1>&6 ! 1920: else ! 1921: ac_save_LIBS="$LIBS" ! 1922: LIBS="-lm $LIBS" ! 1923: cat > conftest.$ac_ext <<EOF ! 1924: #line 1925 "configure" ! 1925: #include "confdefs.h" ! 1926: /* Override any gcc2 internal prototype to avoid an error. */ ! 1927: /* We use char because int might match the return type of a gcc2 ! 1928: builtin and then its argument prototype would still apply. */ ! 1929: char cos(); ! 1930: ! 1931: int main() { ! 1932: cos() ! 1933: ; return 0; } ! 1934: EOF ! 1935: if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1936: rm -rf conftest* ! 1937: eval "ac_cv_lib_$ac_lib_var=yes" ! 1938: else ! 1939: echo "configure: failed program was:" >&5 ! 1940: cat conftest.$ac_ext >&5 ! 1941: rm -rf conftest* ! 1942: eval "ac_cv_lib_$ac_lib_var=no" ! 1943: fi ! 1944: rm -f conftest* ! 1945: LIBS="$ac_save_LIBS" ! 1946: ! 1947: fi ! 1948: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1949: echo "$ac_t""yes" 1>&6 ! 1950: LIBS="$LIBS -lm";lib=yes ! 1951: else ! 1952: echo "$ac_t""no" 1>&6 ! 1953: lib=no ! 1954: fi ! 1955: ! 1956: if [ $lib = no ]; then ! 1957: echo "configure: warning: "No libm found!"" 1>&2 ! 1958: fi ! 1959: ! 1960: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 ! 1961: echo "configure:1962: checking for dlopen in -ldl" >&5 ! 1962: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` ! 1963: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1964: echo $ac_n "(cached) $ac_c" 1>&6 ! 1965: else ! 1966: ac_save_LIBS="$LIBS" ! 1967: LIBS="-ldl $LIBS" ! 1968: cat > conftest.$ac_ext <<EOF ! 1969: #line 1970 "configure" ! 1970: #include "confdefs.h" ! 1971: /* Override any gcc2 internal prototype to avoid an error. */ ! 1972: /* We use char because int might match the return type of a gcc2 ! 1973: builtin and then its argument prototype would still apply. */ ! 1974: char dlopen(); ! 1975: ! 1976: int main() { ! 1977: dlopen() ! 1978: ; return 0; } ! 1979: EOF ! 1980: if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1981: rm -rf conftest* ! 1982: eval "ac_cv_lib_$ac_lib_var=yes" ! 1983: else ! 1984: echo "configure: failed program was:" >&5 ! 1985: cat conftest.$ac_ext >&5 ! 1986: rm -rf conftest* ! 1987: eval "ac_cv_lib_$ac_lib_var=no" ! 1988: fi ! 1989: rm -f conftest* ! 1990: LIBS="$ac_save_LIBS" ! 1991: ! 1992: fi ! 1993: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1994: echo "$ac_t""yes" 1>&6 ! 1995: LIBS="$LIBS -ldl";lib=yes ! 1996: else ! 1997: echo "$ac_t""no" 1>&6 ! 1998: lib=no ! 1999: fi ! 2000: ! 2001: if [ $lib = no ]; then ! 2002: echo "configure: warning: "No libdl found!"" 1>&2 ! 2003: fi ! 2004: if [ "x$program" = "xgenerator-tcltk" ]; then ! 2005: echo $ac_n "checking for Tcl_DoOneEvent in -ltcl8.0""... $ac_c" 1>&6 ! 2006: echo "configure:2007: checking for Tcl_DoOneEvent in -ltcl8.0" >&5 ! 2007: ac_lib_var=`echo tcl8.0'_'Tcl_DoOneEvent | sed 'y%./+-%__p_%'` ! 2008: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2009: echo $ac_n "(cached) $ac_c" 1>&6 ! 2010: else ! 2011: ac_save_LIBS="$LIBS" ! 2012: LIBS="-ltcl8.0 $LIBS" ! 2013: cat > conftest.$ac_ext <<EOF ! 2014: #line 2015 "configure" ! 2015: #include "confdefs.h" ! 2016: /* Override any gcc2 internal prototype to avoid an error. */ ! 2017: /* We use char because int might match the return type of a gcc2 ! 2018: builtin and then its argument prototype would still apply. */ ! 2019: char Tcl_DoOneEvent(); ! 2020: ! 2021: int main() { ! 2022: Tcl_DoOneEvent() ! 2023: ; return 0; } ! 2024: EOF ! 2025: if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2026: rm -rf conftest* ! 2027: eval "ac_cv_lib_$ac_lib_var=yes" ! 2028: else ! 2029: echo "configure: failed program was:" >&5 ! 2030: cat conftest.$ac_ext >&5 ! 2031: rm -rf conftest* ! 2032: eval "ac_cv_lib_$ac_lib_var=no" ! 2033: fi ! 2034: rm -f conftest* ! 2035: LIBS="$ac_save_LIBS" ! 2036: ! 2037: fi ! 2038: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2039: echo "$ac_t""yes" 1>&6 ! 2040: LIBS="$LIBS -ltcl8.0"; lib=yes ! 2041: else ! 2042: echo "$ac_t""no" 1>&6 ! 2043: lib=no ! 2044: fi ! 2045: ! 2046: if [ $lib = no ]; then ! 2047: echo $ac_n "checking for Tcl_DoOneEvent in -ltcl""... $ac_c" 1>&6 ! 2048: echo "configure:2049: checking for Tcl_DoOneEvent in -ltcl" >&5 ! 2049: ac_lib_var=`echo tcl'_'Tcl_DoOneEvent | sed 'y%./+-%__p_%'` ! 2050: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2051: echo $ac_n "(cached) $ac_c" 1>&6 ! 2052: else ! 2053: ac_save_LIBS="$LIBS" ! 2054: LIBS="-ltcl $LIBS" ! 2055: cat > conftest.$ac_ext <<EOF ! 2056: #line 2057 "configure" ! 2057: #include "confdefs.h" ! 2058: /* Override any gcc2 internal prototype to avoid an error. */ ! 2059: /* We use char because int might match the return type of a gcc2 ! 2060: builtin and then its argument prototype would still apply. */ ! 2061: char Tcl_DoOneEvent(); ! 2062: ! 2063: int main() { ! 2064: Tcl_DoOneEvent() ! 2065: ; return 0; } ! 2066: EOF ! 2067: if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2068: rm -rf conftest* ! 2069: eval "ac_cv_lib_$ac_lib_var=yes" ! 2070: else ! 2071: echo "configure: failed program was:" >&5 ! 2072: cat conftest.$ac_ext >&5 ! 2073: rm -rf conftest* ! 2074: eval "ac_cv_lib_$ac_lib_var=no" ! 2075: fi ! 2076: rm -f conftest* ! 2077: LIBS="$ac_save_LIBS" ! 2078: ! 2079: fi ! 2080: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2081: echo "$ac_t""yes" 1>&6 ! 2082: LIBS="$LIBS -ltcl"; lib=yes ! 2083: else ! 2084: echo "$ac_t""no" 1>&6 ! 2085: lib=no ! 2086: fi ! 2087: ! 2088: fi ! 2089: if [ $lib = no ]; then ! 2090: { echo "configure: error: Could not find or link with lib tcl" 1>&2; exit 1; } ! 2091: fi ! 2092: echo $ac_n "checking for Tk_Init in -ltk8.0""... $ac_c" 1>&6 ! 2093: echo "configure:2094: checking for Tk_Init in -ltk8.0" >&5 ! 2094: ac_lib_var=`echo tk8.0'_'Tk_Init | sed 'y%./+-%__p_%'` ! 2095: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2096: echo $ac_n "(cached) $ac_c" 1>&6 ! 2097: else ! 2098: ac_save_LIBS="$LIBS" ! 2099: LIBS="-ltk8.0 $LIBS" ! 2100: cat > conftest.$ac_ext <<EOF ! 2101: #line 2102 "configure" ! 2102: #include "confdefs.h" ! 2103: /* Override any gcc2 internal prototype to avoid an error. */ ! 2104: /* We use char because int might match the return type of a gcc2 ! 2105: builtin and then its argument prototype would still apply. */ ! 2106: char Tk_Init(); ! 2107: ! 2108: int main() { ! 2109: Tk_Init() ! 2110: ; return 0; } ! 2111: EOF ! 2112: if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2113: rm -rf conftest* ! 2114: eval "ac_cv_lib_$ac_lib_var=yes" ! 2115: else ! 2116: echo "configure: failed program was:" >&5 ! 2117: cat conftest.$ac_ext >&5 ! 2118: rm -rf conftest* ! 2119: eval "ac_cv_lib_$ac_lib_var=no" ! 2120: fi ! 2121: rm -f conftest* ! 2122: LIBS="$ac_save_LIBS" ! 2123: ! 2124: fi ! 2125: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2126: echo "$ac_t""yes" 1>&6 ! 2127: LIBS="$LIBS -ltk8.0"; lib=yes ! 2128: else ! 2129: echo "$ac_t""no" 1>&6 ! 2130: lib=no ! 2131: fi ! 2132: ! 2133: if [ $lib = no ]; then ! 2134: echo $ac_n "checking for Tk_Init in -ltk""... $ac_c" 1>&6 ! 2135: echo "configure:2136: checking for Tk_Init in -ltk" >&5 ! 2136: ac_lib_var=`echo tk'_'Tk_Init | sed 'y%./+-%__p_%'` ! 2137: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2138: echo $ac_n "(cached) $ac_c" 1>&6 ! 2139: else ! 2140: ac_save_LIBS="$LIBS" ! 2141: LIBS="-ltk $LIBS" ! 2142: cat > conftest.$ac_ext <<EOF ! 2143: #line 2144 "configure" ! 2144: #include "confdefs.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 Tk_Init(); ! 2149: ! 2150: int main() { ! 2151: Tk_Init() ! 2152: ; return 0; } ! 2153: EOF ! 2154: if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2155: rm -rf conftest* ! 2156: eval "ac_cv_lib_$ac_lib_var=yes" ! 2157: else ! 2158: echo "configure: failed program was:" >&5 ! 2159: cat conftest.$ac_ext >&5 ! 2160: rm -rf conftest* ! 2161: eval "ac_cv_lib_$ac_lib_var=no" ! 2162: fi ! 2163: rm -f conftest* ! 2164: LIBS="$ac_save_LIBS" ! 2165: ! 2166: fi ! 2167: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2168: echo "$ac_t""yes" 1>&6 ! 2169: LIBS="$LIBS -ltk"; lib=yes ! 2170: else ! 2171: echo "$ac_t""no" 1>&6 ! 2172: lib=no ! 2173: fi ! 2174: ! 2175: if [ $lib = no ]; then ! 2176: { echo "configure: error: Could not find or link with lib tk" 1>&2; exit 1; } ! 2177: fi ! 2178: fi ! 2179: OLDLIBS=$LIBS ! 2180: LIBS="$LIBS -lXext"; ! 2181: echo $ac_n "checking for XF86DGAQueryVersion in -lXxf86dga""... $ac_c" 1>&6 ! 2182: echo "configure:2183: checking for XF86DGAQueryVersion in -lXxf86dga" >&5 ! 2183: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryVersion | sed 'y%./+-%__p_%'` ! 2184: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2185: echo $ac_n "(cached) $ac_c" 1>&6 ! 2186: else ! 2187: ac_save_LIBS="$LIBS" ! 2188: LIBS="-lXxf86dga $LIBS" ! 2189: cat > conftest.$ac_ext <<EOF ! 2190: #line 2191 "configure" ! 2191: #include "confdefs.h" ! 2192: /* Override any gcc2 internal prototype to avoid an error. */ ! 2193: /* We use char because int might match the return type of a gcc2 ! 2194: builtin and then its argument prototype would still apply. */ ! 2195: char XF86DGAQueryVersion(); ! 2196: ! 2197: int main() { ! 2198: XF86DGAQueryVersion() ! 2199: ; return 0; } ! 2200: EOF ! 2201: if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2202: rm -rf conftest* ! 2203: eval "ac_cv_lib_$ac_lib_var=yes" ! 2204: else ! 2205: echo "configure: failed program was:" >&5 ! 2206: cat conftest.$ac_ext >&5 ! 2207: rm -rf conftest* ! 2208: eval "ac_cv_lib_$ac_lib_var=no" ! 2209: fi ! 2210: rm -f conftest* ! 2211: LIBS="$ac_save_LIBS" ! 2212: ! 2213: fi ! 2214: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2215: echo "$ac_t""yes" 1>&6 ! 2216: ! 2217: LIBS="$LIBS -lXxf86dga";CFLAGS="$CFLAGS -DXF86DGA"; ! 2218: lib=yes ! 2219: else ! 2220: echo "$ac_t""no" 1>&6 ! 2221: LIBS=$OLDLIBS;lib=no ! 2222: fi ! 2223: ! 2224: fi ! 2225: ! 2226: if [ "x$program" = "xgenerator-svgalib" ]; then ! 2227: if [ $cross_compiling = no ]; then ! 2228: echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6 ! 2229: echo "configure:2230: checking for vga_init in -lvga" >&5 ! 2230: ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'` ! 2231: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2232: echo $ac_n "(cached) $ac_c" 1>&6 ! 2233: else ! 2234: ac_save_LIBS="$LIBS" ! 2235: LIBS="-lvga $LIBS" ! 2236: cat > conftest.$ac_ext <<EOF ! 2237: #line 2238 "configure" ! 2238: #include "confdefs.h" ! 2239: /* Override any gcc2 internal prototype to avoid an error. */ ! 2240: /* We use char because int might match the return type of a gcc2 ! 2241: builtin and then its argument prototype would still apply. */ ! 2242: char vga_init(); ! 2243: ! 2244: int main() { ! 2245: vga_init() ! 2246: ; return 0; } ! 2247: EOF ! 2248: if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2249: rm -rf conftest* ! 2250: eval "ac_cv_lib_$ac_lib_var=yes" ! 2251: else ! 2252: echo "configure: failed program was:" >&5 ! 2253: cat conftest.$ac_ext >&5 ! 2254: rm -rf conftest* ! 2255: eval "ac_cv_lib_$ac_lib_var=no" ! 2256: fi ! 2257: rm -f conftest* ! 2258: LIBS="$ac_save_LIBS" ! 2259: ! 2260: fi ! 2261: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2262: echo "$ac_t""yes" 1>&6 ! 2263: LIBS="$LIBS -lvga";lib=yes ! 2264: else ! 2265: echo "$ac_t""no" 1>&6 ! 2266: lib=no ! 2267: fi ! 2268: ! 2269: else ! 2270: echo $ac_n "checking for vga_init in -ldosvga""... $ac_c" 1>&6 ! 2271: echo "configure:2272: checking for vga_init in -ldosvga" >&5 ! 2272: ac_lib_var=`echo dosvga'_'vga_init | sed 'y%./+-%__p_%'` ! 2273: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2274: echo $ac_n "(cached) $ac_c" 1>&6 ! 2275: else ! 2276: ac_save_LIBS="$LIBS" ! 2277: LIBS="-ldosvga $LIBS" ! 2278: cat > conftest.$ac_ext <<EOF ! 2279: #line 2280 "configure" ! 2280: #include "confdefs.h" ! 2281: /* Override any gcc2 internal prototype to avoid an error. */ ! 2282: /* We use char because int might match the return type of a gcc2 ! 2283: builtin and then its argument prototype would still apply. */ ! 2284: char vga_init(); ! 2285: ! 2286: int main() { ! 2287: vga_init() ! 2288: ; return 0; } ! 2289: EOF ! 2290: if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2291: rm -rf conftest* ! 2292: eval "ac_cv_lib_$ac_lib_var=yes" ! 2293: else ! 2294: echo "configure: failed program was:" >&5 ! 2295: cat conftest.$ac_ext >&5 ! 2296: rm -rf conftest* ! 2297: eval "ac_cv_lib_$ac_lib_var=no" ! 2298: fi ! 2299: rm -f conftest* ! 2300: LIBS="$ac_save_LIBS" ! 2301: ! 2302: fi ! 2303: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2304: echo "$ac_t""yes" 1>&6 ! 2305: LIBS="$LIBS -ldosvga";lib=yes ! 2306: else ! 2307: echo "$ac_t""no" 1>&6 ! 2308: lib=no ! 2309: fi ! 2310: ! 2311: fi ! 2312: if [ $lib = no ]; then ! 2313: { echo "configure: error: Could not find or link with lib vga" 1>&2; exit 1; } ! 2314: fi ! 2315: fi ! 2316: ! 2317: if [ "x$program" = "xgenerator-allegro" ]; then ! 2318: echo $ac_n "checking for allegro_exit in -lalleg""... $ac_c" 1>&6 ! 2319: echo "configure:2320: checking for allegro_exit in -lalleg" >&5 ! 2320: ac_lib_var=`echo alleg'_'allegro_exit | sed 'y%./+-%__p_%'` ! 2321: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 2322: echo $ac_n "(cached) $ac_c" 1>&6 ! 2323: else ! 2324: ac_save_LIBS="$LIBS" ! 2325: LIBS="-lalleg $LIBS" ! 2326: cat > conftest.$ac_ext <<EOF ! 2327: #line 2328 "configure" ! 2328: #include "confdefs.h" ! 2329: /* Override any gcc2 internal prototype to avoid an error. */ ! 2330: /* We use char because int might match the return type of a gcc2 ! 2331: builtin and then its argument prototype would still apply. */ ! 2332: char allegro_exit(); ! 2333: ! 2334: int main() { ! 2335: allegro_exit() ! 2336: ; return 0; } ! 2337: EOF ! 2338: if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2339: rm -rf conftest* ! 2340: eval "ac_cv_lib_$ac_lib_var=yes" ! 2341: else ! 2342: echo "configure: failed program was:" >&5 ! 2343: cat conftest.$ac_ext >&5 ! 2344: rm -rf conftest* ! 2345: eval "ac_cv_lib_$ac_lib_var=no" ! 2346: fi ! 2347: rm -f conftest* ! 2348: LIBS="$ac_save_LIBS" ! 2349: ! 2350: fi ! 2351: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 2352: echo "$ac_t""yes" 1>&6 ! 2353: LIBS="$LIBS -lalleg";lib=yes ! 2354: else ! 2355: echo "$ac_t""no" 1>&6 ! 2356: lib=no ! 2357: fi ! 2358: ! 2359: if [ $lib = no ]; then ! 2360: { echo "configure: error: Could not find or link with lib alleg (allegro)" 1>&2; exit 1; } ! 2361: fi ! 2362: fi ! 2363: ! 2364: ! 2365: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 ! 2366: echo "configure:2367: checking for ANSI C header files" >&5 ! 2367: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then ! 2368: echo $ac_n "(cached) $ac_c" 1>&6 ! 2369: else ! 2370: cat > conftest.$ac_ext <<EOF ! 2371: #line 2372 "configure" ! 2372: #include "confdefs.h" ! 2373: #include <stdlib.h> ! 2374: #include <stdarg.h> ! 2375: #include <string.h> ! 2376: #include <float.h> ! 2377: EOF ! 2378: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2379: { (eval echo configure:2380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2380: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2381: if test -z "$ac_err"; then ! 2382: rm -rf conftest* ! 2383: ac_cv_header_stdc=yes ! 2384: else ! 2385: echo "$ac_err" >&5 ! 2386: echo "configure: failed program was:" >&5 ! 2387: cat conftest.$ac_ext >&5 ! 2388: rm -rf conftest* ! 2389: ac_cv_header_stdc=no ! 2390: fi ! 2391: rm -f conftest* ! 2392: ! 2393: if test $ac_cv_header_stdc = yes; then ! 2394: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 2395: cat > conftest.$ac_ext <<EOF ! 2396: #line 2397 "configure" ! 2397: #include "confdefs.h" ! 2398: #include <string.h> ! 2399: EOF ! 2400: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2401: egrep "memchr" >/dev/null 2>&1; then ! 2402: : ! 2403: else ! 2404: rm -rf conftest* ! 2405: ac_cv_header_stdc=no ! 2406: fi ! 2407: rm -f conftest* ! 2408: ! 2409: fi ! 2410: ! 2411: if test $ac_cv_header_stdc = yes; then ! 2412: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! 2413: cat > conftest.$ac_ext <<EOF ! 2414: #line 2415 "configure" ! 2415: #include "confdefs.h" ! 2416: #include <stdlib.h> ! 2417: EOF ! 2418: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2419: egrep "free" >/dev/null 2>&1; then ! 2420: : ! 2421: else ! 2422: rm -rf conftest* ! 2423: ac_cv_header_stdc=no ! 2424: fi ! 2425: rm -f conftest* ! 2426: ! 2427: fi ! 2428: ! 2429: if test $ac_cv_header_stdc = yes; then ! 2430: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 2431: if test "$cross_compiling" = yes; then ! 2432: : ! 2433: else ! 2434: cat > conftest.$ac_ext <<EOF ! 2435: #line 2436 "configure" ! 2436: #include "confdefs.h" ! 2437: #include <ctype.h> ! 2438: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 2439: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 2440: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! 2441: int main () { int i; for (i = 0; i < 256; i++) ! 2442: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); ! 2443: exit (0); } ! 2444: ! 2445: EOF ! 2446: if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2447: then ! 2448: : ! 2449: else ! 2450: echo "configure: failed program was:" >&5 ! 2451: cat conftest.$ac_ext >&5 ! 2452: rm -fr conftest* ! 2453: ac_cv_header_stdc=no ! 2454: fi ! 2455: rm -fr conftest* ! 2456: fi ! 2457: ! 2458: fi ! 2459: fi ! 2460: ! 2461: echo "$ac_t""$ac_cv_header_stdc" 1>&6 ! 2462: if test $ac_cv_header_stdc = yes; then ! 2463: cat >> confdefs.h <<\EOF ! 2464: #define STDC_HEADERS 1 ! 2465: EOF ! 2466: ! 2467: fi ! 2468: ! 2469: ! 2470: ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` ! 2471: echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 ! 2472: echo "configure:2473: checking for fcntl.h" >&5 ! 2473: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2474: echo $ac_n "(cached) $ac_c" 1>&6 ! 2475: else ! 2476: cat > conftest.$ac_ext <<EOF ! 2477: #line 2478 "configure" ! 2478: #include "confdefs.h" ! 2479: #include <fcntl.h> ! 2480: EOF ! 2481: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2482: { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2483: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2484: if test -z "$ac_err"; then ! 2485: rm -rf conftest* ! 2486: eval "ac_cv_header_$ac_safe=yes" ! 2487: else ! 2488: echo "$ac_err" >&5 ! 2489: echo "configure: failed program was:" >&5 ! 2490: cat conftest.$ac_ext >&5 ! 2491: rm -rf conftest* ! 2492: eval "ac_cv_header_$ac_safe=no" ! 2493: fi ! 2494: rm -f conftest* ! 2495: fi ! 2496: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2497: echo "$ac_t""yes" 1>&6 ! 2498: hdr=yes ! 2499: else ! 2500: echo "$ac_t""no" 1>&6 ! 2501: hdr=no ! 2502: fi ! 2503: ! 2504: if [ $hdr = no ]; then ! 2505: { echo "configure: error: Could not find fcntl.h" 1>&2; exit 1; } ! 2506: fi ! 2507: ! 2508: ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` ! 2509: echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 ! 2510: echo "configure:2511: checking for unistd.h" >&5 ! 2511: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2512: echo $ac_n "(cached) $ac_c" 1>&6 ! 2513: else ! 2514: cat > conftest.$ac_ext <<EOF ! 2515: #line 2516 "configure" ! 2516: #include "confdefs.h" ! 2517: #include <unistd.h> ! 2518: EOF ! 2519: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2520: { (eval echo configure:2521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2521: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2522: if test -z "$ac_err"; then ! 2523: rm -rf conftest* ! 2524: eval "ac_cv_header_$ac_safe=yes" ! 2525: else ! 2526: echo "$ac_err" >&5 ! 2527: echo "configure: failed program was:" >&5 ! 2528: cat conftest.$ac_ext >&5 ! 2529: rm -rf conftest* ! 2530: eval "ac_cv_header_$ac_safe=no" ! 2531: fi ! 2532: rm -f conftest* ! 2533: fi ! 2534: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2535: echo "$ac_t""yes" 1>&6 ! 2536: hdr=yes ! 2537: else ! 2538: echo "$ac_t""no" 1>&6 ! 2539: hdr=no ! 2540: fi ! 2541: ! 2542: if [ $hdr = no ]; then ! 2543: { echo "configure: error: Could not find unistd.h" 1>&2; exit 1; } ! 2544: fi ! 2545: ! 2546: if [ "x$program" = "xgenerator-tcltk" ]; then ! 2547: for ac_hdr in tk8.0.h ! 2548: do ! 2549: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2550: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2551: echo "configure:2552: checking for $ac_hdr" >&5 ! 2552: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2553: echo $ac_n "(cached) $ac_c" 1>&6 ! 2554: else ! 2555: cat > conftest.$ac_ext <<EOF ! 2556: #line 2557 "configure" ! 2557: #include "confdefs.h" ! 2558: #include <$ac_hdr> ! 2559: EOF ! 2560: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2561: { (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2562: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2563: if test -z "$ac_err"; then ! 2564: rm -rf conftest* ! 2565: eval "ac_cv_header_$ac_safe=yes" ! 2566: else ! 2567: echo "$ac_err" >&5 ! 2568: echo "configure: failed program was:" >&5 ! 2569: cat conftest.$ac_ext >&5 ! 2570: rm -rf conftest* ! 2571: eval "ac_cv_header_$ac_safe=no" ! 2572: fi ! 2573: rm -f conftest* ! 2574: fi ! 2575: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2576: echo "$ac_t""yes" 1>&6 ! 2577: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2578: cat >> confdefs.h <<EOF ! 2579: #define $ac_tr_hdr 1 ! 2580: EOF ! 2581: hdr=yes ! 2582: else ! 2583: echo "$ac_t""no" 1>&6 ! 2584: hdr=no ! 2585: fi ! 2586: done ! 2587: ! 2588: if [ $hdr = no ]; then ! 2589: for ac_hdr in tk.h ! 2590: do ! 2591: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2592: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2593: echo "configure:2594: checking for $ac_hdr" >&5 ! 2594: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2595: echo $ac_n "(cached) $ac_c" 1>&6 ! 2596: else ! 2597: cat > conftest.$ac_ext <<EOF ! 2598: #line 2599 "configure" ! 2599: #include "confdefs.h" ! 2600: #include <$ac_hdr> ! 2601: EOF ! 2602: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2603: { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2604: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2605: if test -z "$ac_err"; then ! 2606: rm -rf conftest* ! 2607: eval "ac_cv_header_$ac_safe=yes" ! 2608: else ! 2609: echo "$ac_err" >&5 ! 2610: echo "configure: failed program was:" >&5 ! 2611: cat conftest.$ac_ext >&5 ! 2612: rm -rf conftest* ! 2613: eval "ac_cv_header_$ac_safe=no" ! 2614: fi ! 2615: rm -f conftest* ! 2616: fi ! 2617: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2618: echo "$ac_t""yes" 1>&6 ! 2619: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2620: cat >> confdefs.h <<EOF ! 2621: #define $ac_tr_hdr 1 ! 2622: EOF ! 2623: hdr=yes ! 2624: else ! 2625: echo "$ac_t""no" 1>&6 ! 2626: hdr=no ! 2627: fi ! 2628: done ! 2629: ! 2630: if [ $hdr = no ]; then ! 2631: { echo "configure: error: Could not find tk.h" 1>&2; exit 1; } ! 2632: fi ! 2633: fi ! 2634: for ac_hdr in tcl8.0.h ! 2635: do ! 2636: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2637: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2638: echo "configure:2639: checking for $ac_hdr" >&5 ! 2639: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2640: echo $ac_n "(cached) $ac_c" 1>&6 ! 2641: else ! 2642: cat > conftest.$ac_ext <<EOF ! 2643: #line 2644 "configure" ! 2644: #include "confdefs.h" ! 2645: #include <$ac_hdr> ! 2646: EOF ! 2647: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2648: { (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2649: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2650: if test -z "$ac_err"; then ! 2651: rm -rf conftest* ! 2652: eval "ac_cv_header_$ac_safe=yes" ! 2653: else ! 2654: echo "$ac_err" >&5 ! 2655: echo "configure: failed program was:" >&5 ! 2656: cat conftest.$ac_ext >&5 ! 2657: rm -rf conftest* ! 2658: eval "ac_cv_header_$ac_safe=no" ! 2659: fi ! 2660: rm -f conftest* ! 2661: fi ! 2662: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2663: echo "$ac_t""yes" 1>&6 ! 2664: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2665: cat >> confdefs.h <<EOF ! 2666: #define $ac_tr_hdr 1 ! 2667: EOF ! 2668: hdr=yes ! 2669: else ! 2670: echo "$ac_t""no" 1>&6 ! 2671: hdr=no ! 2672: fi ! 2673: done ! 2674: ! 2675: if [ $hdr = no ]; then ! 2676: for ac_hdr in tcl.h ! 2677: do ! 2678: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2679: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2680: echo "configure:2681: checking for $ac_hdr" >&5 ! 2681: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2682: echo $ac_n "(cached) $ac_c" 1>&6 ! 2683: else ! 2684: cat > conftest.$ac_ext <<EOF ! 2685: #line 2686 "configure" ! 2686: #include "confdefs.h" ! 2687: #include <$ac_hdr> ! 2688: EOF ! 2689: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2690: { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2691: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2692: if test -z "$ac_err"; then ! 2693: rm -rf conftest* ! 2694: eval "ac_cv_header_$ac_safe=yes" ! 2695: else ! 2696: echo "$ac_err" >&5 ! 2697: echo "configure: failed program was:" >&5 ! 2698: cat conftest.$ac_ext >&5 ! 2699: rm -rf conftest* ! 2700: eval "ac_cv_header_$ac_safe=no" ! 2701: fi ! 2702: rm -f conftest* ! 2703: fi ! 2704: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2705: echo "$ac_t""yes" 1>&6 ! 2706: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2707: cat >> confdefs.h <<EOF ! 2708: #define $ac_tr_hdr 1 ! 2709: EOF ! 2710: hdr=yes ! 2711: else ! 2712: echo "$ac_t""no" 1>&6 ! 2713: hdr=no ! 2714: fi ! 2715: done ! 2716: ! 2717: if [ $hdr = no ]; then ! 2718: { echo "configure: error: Could not find tcl.h" 1>&2; exit 1; } ! 2719: fi ! 2720: fi ! 2721: fi ! 2722: ! 2723: ! 2724: if [ $cross_compiling = no ]; then ! 2725: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 ! 2726: echo "configure:2727: checking whether byte ordering is bigendian" >&5 ! 2727: if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then ! 2728: echo $ac_n "(cached) $ac_c" 1>&6 ! 2729: else ! 2730: ac_cv_c_bigendian=unknown ! 2731: # See if sys/param.h defines the BYTE_ORDER macro. ! 2732: cat > conftest.$ac_ext <<EOF ! 2733: #line 2734 "configure" ! 2734: #include "confdefs.h" ! 2735: #include <sys/types.h> ! 2736: #include <sys/param.h> ! 2737: int main() { ! 2738: ! 2739: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN ! 2740: bogus endian macros ! 2741: #endif ! 2742: ; return 0; } ! 2743: EOF ! 2744: if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2745: rm -rf conftest* ! 2746: # It does; now see whether it defined to BIG_ENDIAN or not. ! 2747: cat > conftest.$ac_ext <<EOF ! 2748: #line 2749 "configure" ! 2749: #include "confdefs.h" ! 2750: #include <sys/types.h> ! 2751: #include <sys/param.h> ! 2752: int main() { ! 2753: ! 2754: #if BYTE_ORDER != BIG_ENDIAN ! 2755: not big endian ! 2756: #endif ! 2757: ; return 0; } ! 2758: EOF ! 2759: if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2760: rm -rf conftest* ! 2761: ac_cv_c_bigendian=yes ! 2762: else ! 2763: echo "configure: failed program was:" >&5 ! 2764: cat conftest.$ac_ext >&5 ! 2765: rm -rf conftest* ! 2766: ac_cv_c_bigendian=no ! 2767: fi ! 2768: rm -f conftest* ! 2769: else ! 2770: echo "configure: failed program was:" >&5 ! 2771: cat conftest.$ac_ext >&5 ! 2772: fi ! 2773: rm -f conftest* ! 2774: if test $ac_cv_c_bigendian = unknown; then ! 2775: if test "$cross_compiling" = yes; then ! 2776: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } ! 2777: else ! 2778: cat > conftest.$ac_ext <<EOF ! 2779: #line 2780 "configure" ! 2780: #include "confdefs.h" ! 2781: main () { ! 2782: /* Are we little or big endian? From Harbison&Steele. */ ! 2783: union ! 2784: { ! 2785: long l; ! 2786: char c[sizeof (long)]; ! 2787: } u; ! 2788: u.l = 1; ! 2789: exit (u.c[sizeof (long) - 1] == 1); ! 2790: } ! 2791: EOF ! 2792: if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2793: then ! 2794: ac_cv_c_bigendian=no ! 2795: else ! 2796: echo "configure: failed program was:" >&5 ! 2797: cat conftest.$ac_ext >&5 ! 2798: rm -fr conftest* ! 2799: ac_cv_c_bigendian=yes ! 2800: fi ! 2801: rm -fr conftest* ! 2802: fi ! 2803: ! 2804: fi ! 2805: fi ! 2806: ! 2807: echo "$ac_t""$ac_cv_c_bigendian" 1>&6 ! 2808: if test $ac_cv_c_bigendian = yes; then ! 2809: cat >> confdefs.h <<\EOF ! 2810: #define WORDS_BIGENDIAN 1 ! 2811: EOF ! 2812: ! 2813: fi ! 2814: ! 2815: else ! 2816: echo '** ASSUMING LITTLE ENDIAN' ! 2817: # AC_DEFINE(WORDS_BIGENDIAN, 1) ! 2818: fi ! 2819: echo $ac_n "checking for working const""... $ac_c" 1>&6 ! 2820: echo "configure:2821: checking for working const" >&5 ! 2821: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then ! 2822: echo $ac_n "(cached) $ac_c" 1>&6 ! 2823: else ! 2824: cat > conftest.$ac_ext <<EOF ! 2825: #line 2826 "configure" ! 2826: #include "confdefs.h" ! 2827: ! 2828: int main() { ! 2829: ! 2830: /* Ultrix mips cc rejects this. */ ! 2831: typedef int charset[2]; const charset x; ! 2832: /* SunOS 4.1.1 cc rejects this. */ ! 2833: char const *const *ccp; ! 2834: char **p; ! 2835: /* NEC SVR4.0.2 mips cc rejects this. */ ! 2836: struct point {int x, y;}; ! 2837: static struct point const zero = {0,0}; ! 2838: /* AIX XL C 1.02.0.0 rejects this. ! 2839: It does not let you subtract one const X* pointer from another in an arm ! 2840: of an if-expression whose if-part is not a constant expression */ ! 2841: const char *g = "string"; ! 2842: ccp = &g + (g ? g-g : 0); ! 2843: /* HPUX 7.0 cc rejects these. */ ! 2844: ++ccp; ! 2845: p = (char**) ccp; ! 2846: ccp = (char const *const *) p; ! 2847: { /* SCO 3.2v4 cc rejects this. */ ! 2848: char *t; ! 2849: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 2850: ! 2851: *t++ = 0; ! 2852: } ! 2853: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 2854: int x[] = {25, 17}; ! 2855: const int *foo = &x[0]; ! 2856: ++foo; ! 2857: } ! 2858: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 2859: typedef const int *iptr; ! 2860: iptr p = 0; ! 2861: ++p; ! 2862: } ! 2863: { /* AIX XL C 1.02.0.0 rejects this saying ! 2864: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 2865: struct s { int j; const int *ap[3]; }; ! 2866: struct s *b; b->j = 5; ! 2867: } ! 2868: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! 2869: const int foo = 10; ! 2870: } ! 2871: ! 2872: ; return 0; } ! 2873: EOF ! 2874: if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2875: rm -rf conftest* ! 2876: ac_cv_c_const=yes ! 2877: else ! 2878: echo "configure: failed program was:" >&5 ! 2879: cat conftest.$ac_ext >&5 ! 2880: rm -rf conftest* ! 2881: ac_cv_c_const=no ! 2882: fi ! 2883: rm -f conftest* ! 2884: fi ! 2885: ! 2886: echo "$ac_t""$ac_cv_c_const" 1>&6 ! 2887: if test $ac_cv_c_const = no; then ! 2888: cat >> confdefs.h <<\EOF ! 2889: #define const ! 2890: EOF ! 2891: ! 2892: fi ! 2893: ! 2894: echo $ac_n "checking for inline""... $ac_c" 1>&6 ! 2895: echo "configure:2896: checking for inline" >&5 ! 2896: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then ! 2897: echo $ac_n "(cached) $ac_c" 1>&6 ! 2898: else ! 2899: ac_cv_c_inline=no ! 2900: for ac_kw in inline __inline__ __inline; do ! 2901: cat > conftest.$ac_ext <<EOF ! 2902: #line 2903 "configure" ! 2903: #include "confdefs.h" ! 2904: ! 2905: int main() { ! 2906: } $ac_kw foo() { ! 2907: ; return 0; } ! 2908: EOF ! 2909: if { (eval echo configure:2910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2910: rm -rf conftest* ! 2911: ac_cv_c_inline=$ac_kw; break ! 2912: else ! 2913: echo "configure: failed program was:" >&5 ! 2914: cat conftest.$ac_ext >&5 ! 2915: fi ! 2916: rm -f conftest* ! 2917: done ! 2918: ! 2919: fi ! 2920: ! 2921: echo "$ac_t""$ac_cv_c_inline" 1>&6 ! 2922: case "$ac_cv_c_inline" in ! 2923: inline | yes) ;; ! 2924: no) cat >> confdefs.h <<\EOF ! 2925: #define inline ! 2926: EOF ! 2927: ;; ! 2928: *) cat >> confdefs.h <<EOF ! 2929: #define inline $ac_cv_c_inline ! 2930: EOF ! 2931: ;; ! 2932: esac ! 2933: ! 2934: echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6 ! 2935: echo "configure:2936: checking size of unsigned char" >&5 ! 2936: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then ! 2937: echo $ac_n "(cached) $ac_c" 1>&6 ! 2938: else ! 2939: if test "$cross_compiling" = yes; then ! 2940: ac_cv_sizeof_unsigned_char=1 ! 2941: else ! 2942: cat > conftest.$ac_ext <<EOF ! 2943: #line 2944 "configure" ! 2944: #include "confdefs.h" ! 2945: #include <stdio.h> ! 2946: main() ! 2947: { ! 2948: FILE *f=fopen("conftestval", "w"); ! 2949: if (!f) exit(1); ! 2950: fprintf(f, "%d\n", sizeof(unsigned char)); ! 2951: exit(0); ! 2952: } ! 2953: EOF ! 2954: if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2955: then ! 2956: ac_cv_sizeof_unsigned_char=`cat conftestval` ! 2957: else ! 2958: echo "configure: failed program was:" >&5 ! 2959: cat conftest.$ac_ext >&5 ! 2960: rm -fr conftest* ! 2961: ac_cv_sizeof_unsigned_char=0 ! 2962: fi ! 2963: rm -fr conftest* ! 2964: fi ! 2965: ! 2966: fi ! 2967: echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6 ! 2968: cat >> confdefs.h <<EOF ! 2969: #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char ! 2970: EOF ! 2971: ! 2972: ! 2973: echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6 ! 2974: echo "configure:2975: checking size of unsigned short" >&5 ! 2975: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then ! 2976: echo $ac_n "(cached) $ac_c" 1>&6 ! 2977: else ! 2978: if test "$cross_compiling" = yes; then ! 2979: ac_cv_sizeof_unsigned_short=2 ! 2980: else ! 2981: cat > conftest.$ac_ext <<EOF ! 2982: #line 2983 "configure" ! 2983: #include "confdefs.h" ! 2984: #include <stdio.h> ! 2985: main() ! 2986: { ! 2987: FILE *f=fopen("conftestval", "w"); ! 2988: if (!f) exit(1); ! 2989: fprintf(f, "%d\n", sizeof(unsigned short)); ! 2990: exit(0); ! 2991: } ! 2992: EOF ! 2993: if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2994: then ! 2995: ac_cv_sizeof_unsigned_short=`cat conftestval` ! 2996: else ! 2997: echo "configure: failed program was:" >&5 ! 2998: cat conftest.$ac_ext >&5 ! 2999: rm -fr conftest* ! 3000: ac_cv_sizeof_unsigned_short=0 ! 3001: fi ! 3002: rm -fr conftest* ! 3003: fi ! 3004: ! 3005: fi ! 3006: echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6 ! 3007: cat >> confdefs.h <<EOF ! 3008: #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short ! 3009: EOF ! 3010: ! 3011: ! 3012: echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6 ! 3013: echo "configure:3014: checking size of unsigned int" >&5 ! 3014: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then ! 3015: echo $ac_n "(cached) $ac_c" 1>&6 ! 3016: else ! 3017: if test "$cross_compiling" = yes; then ! 3018: ac_cv_sizeof_unsigned_int=4 ! 3019: else ! 3020: cat > conftest.$ac_ext <<EOF ! 3021: #line 3022 "configure" ! 3022: #include "confdefs.h" ! 3023: #include <stdio.h> ! 3024: main() ! 3025: { ! 3026: FILE *f=fopen("conftestval", "w"); ! 3027: if (!f) exit(1); ! 3028: fprintf(f, "%d\n", sizeof(unsigned int)); ! 3029: exit(0); ! 3030: } ! 3031: EOF ! 3032: if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 3033: then ! 3034: ac_cv_sizeof_unsigned_int=`cat conftestval` ! 3035: else ! 3036: echo "configure: failed program was:" >&5 ! 3037: cat conftest.$ac_ext >&5 ! 3038: rm -fr conftest* ! 3039: ac_cv_sizeof_unsigned_int=0 ! 3040: fi ! 3041: rm -fr conftest* ! 3042: fi ! 3043: ! 3044: fi ! 3045: echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6 ! 3046: cat >> confdefs.h <<EOF ! 3047: #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int ! 3048: EOF ! 3049: ! 3050: ! 3051: echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6 ! 3052: echo "configure:3053: checking size of unsigned long" >&5 ! 3053: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then ! 3054: echo $ac_n "(cached) $ac_c" 1>&6 ! 3055: else ! 3056: if test "$cross_compiling" = yes; then ! 3057: ac_cv_sizeof_unsigned_long=4 ! 3058: else ! 3059: cat > conftest.$ac_ext <<EOF ! 3060: #line 3061 "configure" ! 3061: #include "confdefs.h" ! 3062: #include <stdio.h> ! 3063: main() ! 3064: { ! 3065: FILE *f=fopen("conftestval", "w"); ! 3066: if (!f) exit(1); ! 3067: fprintf(f, "%d\n", sizeof(unsigned long)); ! 3068: exit(0); ! 3069: } ! 3070: EOF ! 3071: if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 3072: then ! 3073: ac_cv_sizeof_unsigned_long=`cat conftestval` ! 3074: else ! 3075: echo "configure: failed program was:" >&5 ! 3076: cat conftest.$ac_ext >&5 ! 3077: rm -fr conftest* ! 3078: ac_cv_sizeof_unsigned_long=0 ! 3079: fi ! 3080: rm -fr conftest* ! 3081: fi ! 3082: ! 3083: fi ! 3084: echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6 ! 3085: cat >> confdefs.h <<EOF ! 3086: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long ! 3087: EOF ! 3088: ! 3089: ! 3090: echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6 ! 3091: echo "configure:3092: checking size of unsigned long long" >&5 ! 3092: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then ! 3093: echo $ac_n "(cached) $ac_c" 1>&6 ! 3094: else ! 3095: if test "$cross_compiling" = yes; then ! 3096: ac_cv_sizeof_unsigned_long_long=8 ! 3097: else ! 3098: cat > conftest.$ac_ext <<EOF ! 3099: #line 3100 "configure" ! 3100: #include "confdefs.h" ! 3101: #include <stdio.h> ! 3102: main() ! 3103: { ! 3104: FILE *f=fopen("conftestval", "w"); ! 3105: if (!f) exit(1); ! 3106: fprintf(f, "%d\n", sizeof(unsigned long long)); ! 3107: exit(0); ! 3108: } ! 3109: EOF ! 3110: if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 3111: then ! 3112: ac_cv_sizeof_unsigned_long_long=`cat conftestval` ! 3113: else ! 3114: echo "configure: failed program was:" >&5 ! 3115: cat conftest.$ac_ext >&5 ! 3116: rm -fr conftest* ! 3117: ac_cv_sizeof_unsigned_long_long=0 ! 3118: fi ! 3119: rm -fr conftest* ! 3120: fi ! 3121: ! 3122: fi ! 3123: echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 ! 3124: cat >> confdefs.h <<EOF ! 3125: #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long ! 3126: EOF ! 3127: ! 3128: ! 3129: ! 3130: ! 3131: if [ "x$GCC" = "xyes" ]; then ! 3132: CFLAGS="$CFLAGS -Wall -Wno-unused -Wno-format -W" ! 3133: # CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes" ! 3134: CFLAGS="$CFLAGS -Wstrict-prototypes" ! 3135: # CFLAGS="$CFLAGS -fomit-frame-pointer ! 3136: fi ! 3137: CFLAGS="-c $CFLAGS" ! 3138: if [ "x$ac_cv_c_bigendian" = "xyes" ]; then ! 3139: cat >> confdefs.h <<\EOF ! 3140: #define BYTES_HIGHFIRST 1 ! 3141: EOF ! 3142: ! 3143: fi ! 3144: ! 3145: ! 3146: ! 3147: ! 3148: ! 3149: ! 3150: trap '' 1 2 15 ! 3151: cat > confcache <<\EOF ! 3152: # This file is a shell script that caches the results of configure ! 3153: # tests run on this system so they can be shared between configure ! 3154: # scripts and configure runs. It is not useful on other systems. ! 3155: # If it contains results you don't want to keep, you may remove or edit it. ! 3156: # ! 3157: # By default, configure uses ./config.cache as the cache file, ! 3158: # creating it if it does not exist already. You can give configure ! 3159: # the --cache-file=FILE option to use a different cache file; that is ! 3160: # what configure does when it calls configure scripts in ! 3161: # subdirectories, so they share the cache. ! 3162: # Giving --cache-file=/dev/null disables caching, for debugging configure. ! 3163: # config.status only pays attention to the cache file if you give it the ! 3164: # --recheck option to rerun configure. ! 3165: # ! 3166: EOF ! 3167: # The following way of writing the cache mishandles newlines in values, ! 3168: # but we know of no workaround that is simple, portable, and efficient. ! 3169: # So, don't put newlines in cache variables' values. ! 3170: # Ultrix sh set writes to stderr and can't be redirected directly, ! 3171: # and sets the high bit in the cache file unless we assign to the vars. ! 3172: (set) 2>&1 | ! 3173: case `(ac_space=' '; set | grep ac_space) 2>&1` in ! 3174: *ac_space=\ *) ! 3175: # `set' does not quote correctly, so add quotes (double-quote substitution ! 3176: # turns \\\\ into \\, and sed turns \\ into \). ! 3177: sed -n \ ! 3178: -e "s/'/'\\\\''/g" \ ! 3179: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ! 3180: ;; ! 3181: *) ! 3182: # `set' quotes correctly as required by POSIX, so do not add quotes. ! 3183: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ! 3184: ;; ! 3185: esac >> confcache ! 3186: if cmp -s $cache_file confcache; then ! 3187: : ! 3188: else ! 3189: if test -w $cache_file; then ! 3190: echo "updating cache $cache_file" ! 3191: cat confcache > $cache_file ! 3192: else ! 3193: echo "not updating unwritable cache $cache_file" ! 3194: fi ! 3195: fi ! 3196: rm -f confcache ! 3197: ! 3198: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ! 3199: ! 3200: test "x$prefix" = xNONE && prefix=$ac_default_prefix ! 3201: # Let make expand exec_prefix. ! 3202: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ! 3203: ! 3204: # Any assignment to VPATH causes Sun make to only execute ! 3205: # the first set of double-colon rules, so remove it if not needed. ! 3206: # If there is a colon in the path, we need to keep it. ! 3207: if test "x$srcdir" = x.; then ! 3208: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' ! 3209: fi ! 3210: ! 3211: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 ! 3212: ! 3213: DEFS=-DHAVE_CONFIG_H ! 3214: ! 3215: # Without the "./", some shells look in PATH for config.status. ! 3216: : ${CONFIG_STATUS=./config.status} ! 3217: ! 3218: echo creating $CONFIG_STATUS ! 3219: rm -f $CONFIG_STATUS ! 3220: cat > $CONFIG_STATUS <<EOF ! 3221: #! /bin/sh ! 3222: # Generated automatically by configure. ! 3223: # Run this file to recreate the current configuration. ! 3224: # This directory was configured as follows, ! 3225: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 3226: # ! 3227: # $0 $ac_configure_args ! 3228: # ! 3229: # Compiler output produced by configure, useful for debugging ! 3230: # configure, is in ./config.log if it exists. ! 3231: ! 3232: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" ! 3233: for ac_option ! 3234: do ! 3235: case "\$ac_option" in ! 3236: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 3237: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" ! 3238: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; ! 3239: -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ! 3240: echo "$CONFIG_STATUS generated by autoconf version 2.13" ! 3241: exit 0 ;; ! 3242: -help | --help | --hel | --he | --h) ! 3243: echo "\$ac_cs_usage"; exit 0 ;; ! 3244: *) echo "\$ac_cs_usage"; exit 1 ;; ! 3245: esac ! 3246: done ! 3247: ! 3248: ac_given_srcdir=$srcdir ! 3249: ac_given_INSTALL="$INSTALL" ! 3250: ! 3251: trap 'rm -fr `echo "Makefile ../src/Makefile ../hdr/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 ! 3252: EOF ! 3253: cat >> $CONFIG_STATUS <<EOF ! 3254: ! 3255: # Protect against being on the right side of a sed subst in config.status. ! 3256: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; ! 3257: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF ! 3258: $ac_vpsub ! 3259: $extrasub ! 3260: s%@SHELL@%$SHELL%g ! 3261: s%@CFLAGS@%$CFLAGS%g ! 3262: s%@CPPFLAGS@%$CPPFLAGS%g ! 3263: s%@CXXFLAGS@%$CXXFLAGS%g ! 3264: s%@FFLAGS@%$FFLAGS%g ! 3265: s%@DEFS@%$DEFS%g ! 3266: s%@LDFLAGS@%$LDFLAGS%g ! 3267: s%@LIBS@%$LIBS%g ! 3268: s%@exec_prefix@%$exec_prefix%g ! 3269: s%@prefix@%$prefix%g ! 3270: s%@program_transform_name@%$program_transform_name%g ! 3271: s%@bindir@%$bindir%g ! 3272: s%@sbindir@%$sbindir%g ! 3273: s%@libexecdir@%$libexecdir%g ! 3274: s%@datadir@%$datadir%g ! 3275: s%@sysconfdir@%$sysconfdir%g ! 3276: s%@sharedstatedir@%$sharedstatedir%g ! 3277: s%@localstatedir@%$localstatedir%g ! 3278: s%@libdir@%$libdir%g ! 3279: s%@includedir@%$includedir%g ! 3280: s%@oldincludedir@%$oldincludedir%g ! 3281: s%@infodir@%$infodir%g ! 3282: s%@mandir@%$mandir%g ! 3283: s%@CC@%$CC%g ! 3284: s%@CPP@%$CPP%g ! 3285: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g ! 3286: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g ! 3287: s%@INSTALL_DATA@%$INSTALL_DATA%g ! 3288: s%@SET_MAKE@%$SET_MAKE%g ! 3289: s%@RANLIB@%$RANLIB%g ! 3290: s%@X_CFLAGS@%$X_CFLAGS%g ! 3291: s%@X_PRE_LIBS@%$X_PRE_LIBS%g ! 3292: s%@X_LIBS@%$X_LIBS%g ! 3293: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g ! 3294: s%@DEPFLAGS@%$DEPFLAGS%g ! 3295: s%@program@%$program%g ! 3296: ! 3297: CEOF ! 3298: EOF ! 3299: ! 3300: cat >> $CONFIG_STATUS <<\EOF ! 3301: ! 3302: # Split the substitutions into bite-sized pieces for seds with ! 3303: # small command number limits, like on Digital OSF/1 and HP-UX. ! 3304: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ! 3305: ac_file=1 # Number of current file. ! 3306: ac_beg=1 # First line for current file. ! 3307: ac_end=$ac_max_sed_cmds # Line after last line for current file. ! 3308: ac_more_lines=: ! 3309: ac_sed_cmds="" ! 3310: while $ac_more_lines; do ! 3311: if test $ac_beg -gt 1; then ! 3312: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file ! 3313: else ! 3314: sed "${ac_end}q" conftest.subs > conftest.s$ac_file ! 3315: fi ! 3316: if test ! -s conftest.s$ac_file; then ! 3317: ac_more_lines=false ! 3318: rm -f conftest.s$ac_file ! 3319: else ! 3320: if test -z "$ac_sed_cmds"; then ! 3321: ac_sed_cmds="sed -f conftest.s$ac_file" ! 3322: else ! 3323: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" ! 3324: fi ! 3325: ac_file=`expr $ac_file + 1` ! 3326: ac_beg=$ac_end ! 3327: ac_end=`expr $ac_end + $ac_max_sed_cmds` ! 3328: fi ! 3329: done ! 3330: if test -z "$ac_sed_cmds"; then ! 3331: ac_sed_cmds=cat ! 3332: fi ! 3333: EOF ! 3334: ! 3335: cat >> $CONFIG_STATUS <<EOF ! 3336: ! 3337: CONFIG_FILES=\${CONFIG_FILES-"Makefile ../src/Makefile"} ! 3338: EOF ! 3339: cat >> $CONFIG_STATUS <<\EOF ! 3340: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then ! 3341: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 3342: case "$ac_file" in ! 3343: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ! 3344: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ! 3345: *) ac_file_in="${ac_file}.in" ;; ! 3346: esac ! 3347: ! 3348: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. ! 3349: ! 3350: # Remove last slash and all that follows it. Not all systems have dirname. ! 3351: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ! 3352: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ! 3353: # The file is in a subdirectory. ! 3354: test ! -d "$ac_dir" && mkdir "$ac_dir" ! 3355: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" ! 3356: # A "../" for each directory in $ac_dir_suffix. ! 3357: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` ! 3358: else ! 3359: ac_dir_suffix= ac_dots= ! 3360: fi ! 3361: ! 3362: case "$ac_given_srcdir" in ! 3363: .) srcdir=. ! 3364: if test -z "$ac_dots"; then top_srcdir=. ! 3365: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; ! 3366: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; ! 3367: *) # Relative path. ! 3368: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" ! 3369: top_srcdir="$ac_dots$ac_given_srcdir" ;; ! 3370: esac ! 3371: ! 3372: case "$ac_given_INSTALL" in ! 3373: [/$]*) INSTALL="$ac_given_INSTALL" ;; ! 3374: *) INSTALL="$ac_dots$ac_given_INSTALL" ;; ! 3375: esac ! 3376: ! 3377: echo creating "$ac_file" ! 3378: rm -f "$ac_file" ! 3379: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." ! 3380: case "$ac_file" in ! 3381: *Makefile*) ac_comsub="1i\\ ! 3382: # $configure_input" ;; ! 3383: *) ac_comsub= ;; ! 3384: esac ! 3385: ! 3386: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ! 3387: sed -e "$ac_comsub ! 3388: s%@configure_input@%$configure_input%g ! 3389: s%@srcdir@%$srcdir%g ! 3390: s%@top_srcdir@%$top_srcdir%g ! 3391: s%@INSTALL@%$INSTALL%g ! 3392: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file ! 3393: fi; done ! 3394: rm -f conftest.s* ! 3395: ! 3396: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where ! 3397: # NAME is the cpp macro being defined and VALUE is the value it is being given. ! 3398: # ! 3399: # ac_d sets the value in "#define NAME VALUE" lines. ! 3400: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ! 3401: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ! 3402: ac_dC='\3' ! 3403: ac_dD='%g' ! 3404: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ! 3405: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 3406: ac_uB='\([ ]\)%\1#\2define\3' ! 3407: ac_uC=' ' ! 3408: ac_uD='\4%g' ! 3409: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ! 3410: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 3411: ac_eB='$%\1#\2define\3' ! 3412: ac_eC=' ' ! 3413: ac_eD='%g' ! 3414: ! 3415: if test "${CONFIG_HEADERS+set}" != set; then ! 3416: EOF ! 3417: cat >> $CONFIG_STATUS <<EOF ! 3418: CONFIG_HEADERS="../hdr/config.h" ! 3419: EOF ! 3420: cat >> $CONFIG_STATUS <<\EOF ! 3421: fi ! 3422: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then ! 3423: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 3424: case "$ac_file" in ! 3425: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ! 3426: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ! 3427: *) ac_file_in="${ac_file}.in" ;; ! 3428: esac ! 3429: ! 3430: echo creating $ac_file ! 3431: ! 3432: rm -f conftest.frag conftest.in conftest.out ! 3433: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ! 3434: cat $ac_file_inputs > conftest.in ! 3435: ! 3436: EOF ! 3437: ! 3438: # Transform confdefs.h into a sed script conftest.vals that substitutes ! 3439: # the proper values into config.h.in to produce config.h. And first: ! 3440: # Protect against being on the right side of a sed subst in config.status. ! 3441: # Protect against being in an unquoted here document in config.status. ! 3442: rm -f conftest.vals ! 3443: cat > conftest.hdr <<\EOF ! 3444: s/[\\&%]/\\&/g ! 3445: s%[\\$`]%\\&%g ! 3446: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp ! 3447: s%ac_d%ac_u%gp ! 3448: s%ac_u%ac_e%gp ! 3449: EOF ! 3450: sed -n -f conftest.hdr confdefs.h > conftest.vals ! 3451: rm -f conftest.hdr ! 3452: ! 3453: # This sed command replaces #undef with comments. This is necessary, for ! 3454: # example, in the case of _POSIX_SOURCE, which is predefined and required ! 3455: # on some systems where configure will not decide to define it. ! 3456: cat >> conftest.vals <<\EOF ! 3457: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% ! 3458: EOF ! 3459: ! 3460: # Break up conftest.vals because some shells have a limit on ! 3461: # the size of here documents, and old seds have small limits too. ! 3462: ! 3463: rm -f conftest.tail ! 3464: while : ! 3465: do ! 3466: ac_lines=`grep -c . conftest.vals` ! 3467: # grep -c gives empty output for an empty file on some AIX systems. ! 3468: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi ! 3469: # Write a limited-size here document to conftest.frag. ! 3470: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS ! 3471: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS ! 3472: echo 'CEOF ! 3473: sed -f conftest.frag conftest.in > conftest.out ! 3474: rm -f conftest.in ! 3475: mv conftest.out conftest.in ! 3476: ' >> $CONFIG_STATUS ! 3477: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail ! 3478: rm -f conftest.vals ! 3479: mv conftest.tail conftest.vals ! 3480: done ! 3481: rm -f conftest.vals ! 3482: ! 3483: cat >> $CONFIG_STATUS <<\EOF ! 3484: rm -f conftest.frag conftest.h ! 3485: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h ! 3486: cat conftest.in >> conftest.h ! 3487: rm -f conftest.in ! 3488: if cmp -s $ac_file conftest.h 2>/dev/null; then ! 3489: echo "$ac_file is unchanged" ! 3490: rm -f conftest.h ! 3491: else ! 3492: # Remove last slash and all that follows it. Not all systems have dirname. ! 3493: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ! 3494: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ! 3495: # The file is in a subdirectory. ! 3496: test ! -d "$ac_dir" && mkdir "$ac_dir" ! 3497: fi ! 3498: rm -f $ac_file ! 3499: mv conftest.h $ac_file ! 3500: fi ! 3501: fi; done ! 3502: ! 3503: EOF ! 3504: cat >> $CONFIG_STATUS <<EOF ! 3505: ! 3506: EOF ! 3507: cat >> $CONFIG_STATUS <<\EOF ! 3508: ! 3509: exit 0 ! 3510: EOF ! 3511: chmod +x $CONFIG_STATUS ! 3512: rm -fr confdefs* $ac_clean_files ! 3513: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 ! 3514: ! 3515: ! 3516: echo "Configuration was successful." ! 3517: echo "Now type: make" ! 3518:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.