Annotation of uae/configure, revision 1.1.1.12

1.1       root        1: #! /bin/sh
                      2: 
                      3: # Guess values for system-dependent variables and create Makefiles.
1.1.1.9   root        4: # Generated automatically using autoconf version 2.13 
1.1       root        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:   --with-x                use the X Window System"
1.1.1.2   root       16: ac_help="$ac_help
1.1.1.4   root       17:   --enable-profiling      Build a profiling (SLOW!) version"
1.1.1.2   root       18: ac_help="$ac_help
1.1.1.4   root       19:   --with-svgalib          Use SVGAlib for graphics output"
1.1.1.3   root       20: ac_help="$ac_help
1.1.1.4   root       21:   --with-ggi              Use GGI for graphics output"
1.1.1.3   root       22: ac_help="$ac_help
1.1.1.4   root       23:   --with-asciiart         Use ncurses ascii art for graphics output"
                     24: ac_help="$ac_help
                     25:   --enable-dga            X11 version: Use the DGA extension"
                     26: ac_help="$ac_help
                     27:   --enable-vidmode        X11 version: Use the XF86VidMode extension"
                     28: ac_help="$ac_help
                     29:   --enable-ui             Use a user interface if possible (default on)"
                     30: ac_help="$ac_help
                     31:   --with-elf              Explicitly state that this system is ELF"
                     32: ac_help="$ac_help
                     33:   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
                     34: ac_help="$ac_help
                     35:   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
                     36: ac_help="$ac_help
                     37:   --disable-gtktest       Do not try to compile and run a test GTK program"
                     38: ac_help="$ac_help
1.1.1.10  root       39:   --enable-threads        Enable some generally useful thread support"
1.1.1.4   root       40: ac_help="$ac_help
1.1.1.10  root       41:   --enable-file-sound     Enable sound output to file"
                     42: ac_help="$ac_help
                     43:   --enable-scsi-device   Disable the uaescsi.device"
1.1       root       44: 
                     45: # Initialize some variables set by options.
                     46: # The variables have the same names as the options, with
                     47: # dashes changed to underlines.
                     48: build=NONE
                     49: cache_file=./config.cache
                     50: exec_prefix=NONE
                     51: host=NONE
                     52: no_create=
                     53: nonopt=NONE
                     54: no_recursion=
                     55: prefix=NONE
                     56: program_prefix=NONE
                     57: program_suffix=NONE
                     58: program_transform_name=s,x,x,
                     59: silent=
                     60: site=
                     61: srcdir=
                     62: target=NONE
                     63: verbose=
                     64: x_includes=NONE
                     65: x_libraries=NONE
                     66: bindir='${exec_prefix}/bin'
                     67: sbindir='${exec_prefix}/sbin'
                     68: libexecdir='${exec_prefix}/libexec'
                     69: datadir='${prefix}/share'
                     70: sysconfdir='${prefix}/etc'
                     71: sharedstatedir='${prefix}/com'
                     72: localstatedir='${prefix}/var'
                     73: libdir='${exec_prefix}/lib'
                     74: includedir='${prefix}/include'
                     75: oldincludedir='/usr/include'
                     76: infodir='${prefix}/info'
                     77: mandir='${prefix}/man'
                     78: 
                     79: # Initialize some other variables.
                     80: subdirs=
                     81: MFLAGS= MAKEFLAGS=
1.1.1.9   root       82: SHELL=${CONFIG_SHELL-/bin/sh}
1.1.1.4   root       83: # Maximum number of lines to put in a shell here document.
                     84: ac_max_here_lines=12
1.1       root       85: 
                     86: ac_prev=
                     87: for ac_option
                     88: do
                     89: 
                     90:   # If the previous option needs an argument, assign it.
                     91:   if test -n "$ac_prev"; then
                     92:     eval "$ac_prev=\$ac_option"
                     93:     ac_prev=
                     94:     continue
                     95:   fi
                     96: 
                     97:   case "$ac_option" in
                     98:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     99:   *) ac_optarg= ;;
                    100:   esac
                    101: 
                    102:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    103: 
                    104:   case "$ac_option" in
                    105: 
                    106:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    107:     ac_prev=bindir ;;
                    108:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    109:     bindir="$ac_optarg" ;;
                    110: 
                    111:   -build | --build | --buil | --bui | --bu)
                    112:     ac_prev=build ;;
                    113:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    114:     build="$ac_optarg" ;;
                    115: 
                    116:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    117:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    118:     ac_prev=cache_file ;;
                    119:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    120:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    121:     cache_file="$ac_optarg" ;;
                    122: 
                    123:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    124:     ac_prev=datadir ;;
                    125:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    126:   | --da=*)
                    127:     datadir="$ac_optarg" ;;
                    128: 
                    129:   -disable-* | --disable-*)
                    130:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    131:     # Reject names that are not valid shell variable names.
                    132:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    133:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    134:     fi
                    135:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    136:     eval "enable_${ac_feature}=no" ;;
                    137: 
                    138:   -enable-* | --enable-*)
                    139:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    140:     # Reject names that are not valid shell variable names.
                    141:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    142:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    143:     fi
                    144:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    145:     case "$ac_option" in
                    146:       *=*) ;;
                    147:       *) ac_optarg=yes ;;
                    148:     esac
                    149:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    150: 
                    151:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    152:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    153:   | --exec | --exe | --ex)
                    154:     ac_prev=exec_prefix ;;
                    155:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    156:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    157:   | --exec=* | --exe=* | --ex=*)
                    158:     exec_prefix="$ac_optarg" ;;
                    159: 
                    160:   -gas | --gas | --ga | --g)
                    161:     # Obsolete; use --with-gas.
                    162:     with_gas=yes ;;
                    163: 
                    164:   -help | --help | --hel | --he)
                    165:     # Omit some internal or obsolete options to make the list less imposing.
                    166:     # This message is too long to be a string in the A/UX 3.1 sh.
                    167:     cat << EOF
                    168: Usage: configure [options] [host]
                    169: Options: [defaults in brackets after descriptions]
                    170: Configuration:
                    171:   --cache-file=FILE       cache test results in FILE
                    172:   --help                  print this message
                    173:   --no-create             do not create output files
                    174:   --quiet, --silent       do not print \`checking...' messages
                    175:   --version               print the version of autoconf that created configure
                    176: Directory and file names:
                    177:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    178:                           [$ac_default_prefix]
                    179:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    180:                           [same as prefix]
                    181:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    182:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    183:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    184:   --datadir=DIR           read-only architecture-independent data in DIR
                    185:                           [PREFIX/share]
                    186:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    187:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    188:                           [PREFIX/com]
                    189:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    190:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    191:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    192:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    193:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    194:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    195:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    196:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    197:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    198:   --program-transform-name=PROGRAM
                    199:                           run sed PROGRAM on installed program names
                    200: EOF
                    201:     cat << EOF
                    202: Host type:
                    203:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    204:   --host=HOST             configure for HOST [guessed]
                    205:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    206: Features and packages:
                    207:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    208:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    209:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    210:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    211:   --x-includes=DIR        X include files are in DIR
                    212:   --x-libraries=DIR       X library files are in DIR
                    213: EOF
                    214:     if test -n "$ac_help"; then
                    215:       echo "--enable and --with options recognized:$ac_help"
                    216:     fi
                    217:     exit 0 ;;
                    218: 
                    219:   -host | --host | --hos | --ho)
                    220:     ac_prev=host ;;
                    221:   -host=* | --host=* | --hos=* | --ho=*)
                    222:     host="$ac_optarg" ;;
                    223: 
                    224:   -includedir | --includedir | --includedi | --included | --include \
                    225:   | --includ | --inclu | --incl | --inc)
                    226:     ac_prev=includedir ;;
                    227:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    228:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    229:     includedir="$ac_optarg" ;;
                    230: 
                    231:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    232:     ac_prev=infodir ;;
                    233:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    234:     infodir="$ac_optarg" ;;
                    235: 
                    236:   -libdir | --libdir | --libdi | --libd)
                    237:     ac_prev=libdir ;;
                    238:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    239:     libdir="$ac_optarg" ;;
                    240: 
                    241:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    242:   | --libexe | --libex | --libe)
                    243:     ac_prev=libexecdir ;;
                    244:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    245:   | --libexe=* | --libex=* | --libe=*)
                    246:     libexecdir="$ac_optarg" ;;
                    247: 
                    248:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    249:   | --localstate | --localstat | --localsta | --localst \
                    250:   | --locals | --local | --loca | --loc | --lo)
                    251:     ac_prev=localstatedir ;;
                    252:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    253:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    254:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    255:     localstatedir="$ac_optarg" ;;
                    256: 
                    257:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    258:     ac_prev=mandir ;;
                    259:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    260:     mandir="$ac_optarg" ;;
                    261: 
                    262:   -nfp | --nfp | --nf)
                    263:     # Obsolete; use --without-fp.
                    264:     with_fp=no ;;
                    265: 
                    266:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    267:   | --no-cr | --no-c)
                    268:     no_create=yes ;;
                    269: 
                    270:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    271:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    272:     no_recursion=yes ;;
                    273: 
                    274:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    275:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    276:   | --oldin | --oldi | --old | --ol | --o)
                    277:     ac_prev=oldincludedir ;;
                    278:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    279:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    280:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    281:     oldincludedir="$ac_optarg" ;;
                    282: 
                    283:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    284:     ac_prev=prefix ;;
                    285:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    286:     prefix="$ac_optarg" ;;
                    287: 
                    288:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    289:   | --program-pre | --program-pr | --program-p)
                    290:     ac_prev=program_prefix ;;
                    291:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    292:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    293:     program_prefix="$ac_optarg" ;;
                    294: 
                    295:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    296:   | --program-suf | --program-su | --program-s)
                    297:     ac_prev=program_suffix ;;
                    298:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    299:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    300:     program_suffix="$ac_optarg" ;;
                    301: 
                    302:   -program-transform-name | --program-transform-name \
                    303:   | --program-transform-nam | --program-transform-na \
                    304:   | --program-transform-n | --program-transform- \
                    305:   | --program-transform | --program-transfor \
                    306:   | --program-transfo | --program-transf \
                    307:   | --program-trans | --program-tran \
                    308:   | --progr-tra | --program-tr | --program-t)
                    309:     ac_prev=program_transform_name ;;
                    310:   -program-transform-name=* | --program-transform-name=* \
                    311:   | --program-transform-nam=* | --program-transform-na=* \
                    312:   | --program-transform-n=* | --program-transform-=* \
                    313:   | --program-transform=* | --program-transfor=* \
                    314:   | --program-transfo=* | --program-transf=* \
                    315:   | --program-trans=* | --program-tran=* \
                    316:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    317:     program_transform_name="$ac_optarg" ;;
                    318: 
                    319:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    320:   | -silent | --silent | --silen | --sile | --sil)
                    321:     silent=yes ;;
                    322: 
                    323:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    324:     ac_prev=sbindir ;;
                    325:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    326:   | --sbi=* | --sb=*)
                    327:     sbindir="$ac_optarg" ;;
                    328: 
                    329:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    330:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    331:   | --sharedst | --shareds | --shared | --share | --shar \
                    332:   | --sha | --sh)
                    333:     ac_prev=sharedstatedir ;;
                    334:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    335:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    336:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    337:   | --sha=* | --sh=*)
                    338:     sharedstatedir="$ac_optarg" ;;
                    339: 
                    340:   -site | --site | --sit)
                    341:     ac_prev=site ;;
                    342:   -site=* | --site=* | --sit=*)
                    343:     site="$ac_optarg" ;;
                    344: 
                    345:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    346:     ac_prev=srcdir ;;
                    347:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    348:     srcdir="$ac_optarg" ;;
                    349: 
                    350:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    351:   | --syscon | --sysco | --sysc | --sys | --sy)
                    352:     ac_prev=sysconfdir ;;
                    353:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    354:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    355:     sysconfdir="$ac_optarg" ;;
                    356: 
                    357:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    358:     ac_prev=target ;;
                    359:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    360:     target="$ac_optarg" ;;
                    361: 
                    362:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    363:     verbose=yes ;;
                    364: 
                    365:   -version | --version | --versio | --versi | --vers)
1.1.1.9   root      366:     echo "configure generated by autoconf version 2.13"
1.1       root      367:     exit 0 ;;
                    368: 
                    369:   -with-* | --with-*)
                    370:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    371:     # Reject names that are not valid shell variable names.
                    372:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    373:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    374:     fi
                    375:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    376:     case "$ac_option" in
                    377:       *=*) ;;
                    378:       *) ac_optarg=yes ;;
                    379:     esac
                    380:     eval "with_${ac_package}='$ac_optarg'" ;;
                    381: 
                    382:   -without-* | --without-*)
                    383:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    384:     # Reject names that are not valid shell variable names.
                    385:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    386:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    387:     fi
                    388:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    389:     eval "with_${ac_package}=no" ;;
                    390: 
                    391:   --x)
                    392:     # Obsolete; use --with-x.
                    393:     with_x=yes ;;
                    394: 
                    395:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    396:   | --x-incl | --x-inc | --x-in | --x-i)
                    397:     ac_prev=x_includes ;;
                    398:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    399:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    400:     x_includes="$ac_optarg" ;;
                    401: 
                    402:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    403:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    404:     ac_prev=x_libraries ;;
                    405:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    406:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    407:     x_libraries="$ac_optarg" ;;
                    408: 
                    409:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    410:     ;;
                    411: 
                    412:   *)
                    413:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    414:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    415:     fi
                    416:     if test "x$nonopt" != xNONE; then
                    417:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    418:     fi
                    419:     nonopt="$ac_option"
                    420:     ;;
                    421: 
                    422:   esac
                    423: done
                    424: 
                    425: if test -n "$ac_prev"; then
                    426:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    427: fi
                    428: 
                    429: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    430: 
                    431: # File descriptor usage:
                    432: # 0 standard input
                    433: # 1 file creation
                    434: # 2 errors and warnings
                    435: # 3 some systems may open it to /dev/tty
                    436: # 4 used on the Kubota Titan
                    437: # 6 checking for... messages and results
                    438: # 5 compiler messages saved in config.log
                    439: if test "$silent" = yes; then
                    440:   exec 6>/dev/null
                    441: else
                    442:   exec 6>&1
                    443: fi
                    444: exec 5>./config.log
                    445: 
                    446: echo "\
                    447: This file contains any messages produced by compilers while
                    448: running configure, to aid debugging if configure makes a mistake.
                    449: " 1>&5
                    450: 
                    451: # Strip out --no-create and --no-recursion so they do not pile up.
                    452: # Also quote any args containing shell metacharacters.
                    453: ac_configure_args=
                    454: for ac_arg
                    455: do
                    456:   case "$ac_arg" in
                    457:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    458:   | --no-cr | --no-c) ;;
                    459:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    460:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    461:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    462:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    463:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    464:   esac
                    465: done
                    466: 
                    467: # NLS nuisances.
1.1.1.4   root      468: # Only set these to C if already set.  These must not be set unconditionally
                    469: # because not all systems understand e.g. LANG=C (notably SCO).
                    470: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    471: # Non-C LC_CTYPE values break the ctype check.
1.1       root      472: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
1.1.1.4   root      473: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    474: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    475: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
1.1       root      476: 
                    477: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    478: rm -rf conftest* confdefs.h
                    479: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    480: echo > confdefs.h
                    481: 
                    482: # A filename unique to this package, relative to the directory that
                    483: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2   root      484: ac_unique_file=amiga/source/transdisk.c
1.1       root      485: 
                    486: # Find the source files, if location was not specified.
                    487: if test -z "$srcdir"; then
                    488:   ac_srcdir_defaulted=yes
                    489:   # Try the directory containing this script, then its parent.
                    490:   ac_prog=$0
                    491:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    492:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    493:   srcdir=$ac_confdir
                    494:   if test ! -r $srcdir/$ac_unique_file; then
                    495:     srcdir=..
                    496:   fi
                    497: else
                    498:   ac_srcdir_defaulted=no
                    499: fi
                    500: if test ! -r $srcdir/$ac_unique_file; then
                    501:   if test "$ac_srcdir_defaulted" = yes; then
                    502:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    503:   else
                    504:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    505:   fi
                    506: fi
                    507: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    508: 
                    509: # Prefer explicitly selected file to automatically selected ones.
                    510: if test -z "$CONFIG_SITE"; then
                    511:   if test "x$prefix" != xNONE; then
                    512:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    513:   else
                    514:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    515:   fi
                    516: fi
                    517: for ac_site_file in $CONFIG_SITE; do
                    518:   if test -r "$ac_site_file"; then
                    519:     echo "loading site script $ac_site_file"
                    520:     . "$ac_site_file"
                    521:   fi
                    522: done
                    523: 
                    524: if test -r "$cache_file"; then
                    525:   echo "loading cache $cache_file"
                    526:   . $cache_file
                    527: else
                    528:   echo "creating cache $cache_file"
                    529:   > $cache_file
                    530: fi
                    531: 
                    532: ac_ext=c
                    533: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    534: ac_cpp='$CPP $CPPFLAGS'
                    535: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1.1.1.9   root      536: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4   root      537: cross_compiling=$ac_cv_prog_cc_cross
1.1       root      538: 
1.1.1.9   root      539: ac_exeext=
                    540: ac_objext=o
1.1       root      541: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    542:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    543:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    544:     ac_n= ac_c='
                    545: ' ac_t='       '
                    546:   else
                    547:     ac_n=-n ac_c= ac_t=
                    548:   fi
                    549: else
                    550:   ac_n= ac_c='\c' ac_t=
                    551: fi
                    552: 
                    553: 
                    554: 
1.1.1.4   root      555: 
1.1       root      556: # Extract the first word of "gcc", so it can be a program name with args.
                    557: set dummy gcc; ac_word=$2
                    558: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      559: echo "configure:560: checking for $ac_word" >&5
1.1       root      560: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    561:   echo $ac_n "(cached) $ac_c" 1>&6
                    562: else
                    563:   if test -n "$CC"; then
                    564:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    565: else
1.1.1.9   root      566:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    567:   ac_dummy="$PATH"
                    568:   for ac_dir in $ac_dummy; do
1.1       root      569:     test -z "$ac_dir" && ac_dir=.
                    570:     if test -f $ac_dir/$ac_word; then
                    571:       ac_cv_prog_CC="gcc"
                    572:       break
                    573:     fi
                    574:   done
                    575:   IFS="$ac_save_ifs"
                    576: fi
                    577: fi
                    578: CC="$ac_cv_prog_CC"
                    579: if test -n "$CC"; then
                    580:   echo "$ac_t""$CC" 1>&6
                    581: else
                    582:   echo "$ac_t""no" 1>&6
                    583: fi
                    584: 
                    585: if test -z "$CC"; then
                    586:   # Extract the first word of "cc", so it can be a program name with args.
                    587: set dummy cc; ac_word=$2
                    588: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      589: echo "configure:590: checking for $ac_word" >&5
1.1       root      590: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    591:   echo $ac_n "(cached) $ac_c" 1>&6
                    592: else
                    593:   if test -n "$CC"; then
                    594:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    595: else
1.1.1.9   root      596:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1.1       root      597:   ac_prog_rejected=no
1.1.1.9   root      598:   ac_dummy="$PATH"
                    599:   for ac_dir in $ac_dummy; do
1.1       root      600:     test -z "$ac_dir" && ac_dir=.
                    601:     if test -f $ac_dir/$ac_word; then
                    602:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    603:         ac_prog_rejected=yes
                    604:        continue
                    605:       fi
                    606:       ac_cv_prog_CC="cc"
                    607:       break
                    608:     fi
                    609:   done
                    610:   IFS="$ac_save_ifs"
                    611: if test $ac_prog_rejected = yes; then
                    612:   # We found a bogon in the path, so make sure we never use it.
                    613:   set dummy $ac_cv_prog_CC
                    614:   shift
                    615:   if test $# -gt 0; then
                    616:     # We chose a different compiler from the bogus one.
                    617:     # However, it has the same basename, so the bogon will be chosen
                    618:     # first if we set CC to just the basename; use the full file name.
                    619:     shift
                    620:     set dummy "$ac_dir/$ac_word" "$@"
                    621:     shift
                    622:     ac_cv_prog_CC="$@"
                    623:   fi
                    624: fi
                    625: fi
                    626: fi
                    627: CC="$ac_cv_prog_CC"
                    628: if test -n "$CC"; then
                    629:   echo "$ac_t""$CC" 1>&6
                    630: else
                    631:   echo "$ac_t""no" 1>&6
                    632: fi
                    633: 
1.1.1.9   root      634:   if test -z "$CC"; then
                    635:     case "`uname -s`" in
                    636:     *win32* | *WIN32*)
                    637:       # Extract the first word of "cl", so it can be a program name with args.
                    638: set dummy cl; ac_word=$2
                    639: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      640: echo "configure:641: checking for $ac_word" >&5
1.1.1.9   root      641: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    642:   echo $ac_n "(cached) $ac_c" 1>&6
                    643: else
                    644:   if test -n "$CC"; then
                    645:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    646: else
                    647:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    648:   ac_dummy="$PATH"
                    649:   for ac_dir in $ac_dummy; do
                    650:     test -z "$ac_dir" && ac_dir=.
                    651:     if test -f $ac_dir/$ac_word; then
                    652:       ac_cv_prog_CC="cl"
                    653:       break
                    654:     fi
                    655:   done
                    656:   IFS="$ac_save_ifs"
                    657: fi
                    658: fi
                    659: CC="$ac_cv_prog_CC"
                    660: if test -n "$CC"; then
                    661:   echo "$ac_t""$CC" 1>&6
                    662: else
                    663:   echo "$ac_t""no" 1>&6
                    664: fi
                    665:  ;;
                    666:     esac
                    667:   fi
1.1       root      668:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    669: fi
                    670: 
1.1.1.4   root      671: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.1.1.12! root      672: echo "configure:673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1.1.4   root      673: 
                    674: ac_ext=c
                    675: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    676: ac_cpp='$CPP $CPPFLAGS'
                    677: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1.1.1.9   root      678: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4   root      679: cross_compiling=$ac_cv_prog_cc_cross
                    680: 
1.1.1.9   root      681: cat > conftest.$ac_ext << EOF
                    682: 
1.1.1.12! root      683: #line 684 "configure"
1.1.1.4   root      684: #include "confdefs.h"
1.1.1.9   root      685: 
1.1.1.4   root      686: main(){return(0);}
                    687: EOF
1.1.1.12! root      688: if { (eval echo configure:689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root      689:   ac_cv_prog_cc_works=yes
                    690:   # If we can't run a trivial program, we are probably using a cross compiler.
                    691:   if (./conftest; exit) 2>/dev/null; then
                    692:     ac_cv_prog_cc_cross=no
                    693:   else
                    694:     ac_cv_prog_cc_cross=yes
                    695:   fi
                    696: else
                    697:   echo "configure: failed program was:" >&5
                    698:   cat conftest.$ac_ext >&5
                    699:   ac_cv_prog_cc_works=no
                    700: fi
                    701: rm -fr conftest*
1.1.1.9   root      702: ac_ext=c
                    703: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    704: ac_cpp='$CPP $CPPFLAGS'
                    705: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    706: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    707: cross_compiling=$ac_cv_prog_cc_cross
1.1.1.4   root      708: 
                    709: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                    710: if test $ac_cv_prog_cc_works = no; then
                    711:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                    712: fi
                    713: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.1.1.12! root      714: echo "configure:715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1.1.4   root      715: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                    716: cross_compiling=$ac_cv_prog_cc_cross
                    717: 
1.1       root      718: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.12! root      719: echo "configure:720: checking whether we are using GNU C" >&5
1.1       root      720: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                    721:   echo $ac_n "(cached) $ac_c" 1>&6
                    722: else
                    723:   cat > conftest.c <<EOF
                    724: #ifdef __GNUC__
                    725:   yes;
                    726: #endif
                    727: EOF
1.1.1.12! root      728: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       root      729:   ac_cv_prog_gcc=yes
                    730: else
                    731:   ac_cv_prog_gcc=no
                    732: fi
                    733: fi
                    734: 
                    735: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.1.1.4   root      736: 
1.1       root      737: if test $ac_cv_prog_gcc = yes; then
                    738:   GCC=yes
1.1.1.9   root      739: else
                    740:   GCC=
                    741: fi
                    742: 
                    743: ac_test_CFLAGS="${CFLAGS+set}"
                    744: ac_save_CFLAGS="$CFLAGS"
                    745: CFLAGS=
                    746: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.1.1.12! root      747: echo "configure:748: checking whether ${CC-cc} accepts -g" >&5
1.1.1.4   root      748: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.1       root      749:   echo $ac_n "(cached) $ac_c" 1>&6
                    750: else
                    751:   echo 'void f(){}' > conftest.c
                    752: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.1.1.4   root      753:   ac_cv_prog_cc_g=yes
1.1       root      754: else
1.1.1.4   root      755:   ac_cv_prog_cc_g=no
1.1       root      756: fi
                    757: rm -f conftest*
                    758: 
                    759: fi
                    760: 
1.1.1.4   root      761: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1.1.1.9   root      762: if test "$ac_test_CFLAGS" = set; then
                    763:   CFLAGS="$ac_save_CFLAGS"
                    764: elif test $ac_cv_prog_cc_g = yes; then
                    765:   if test "$GCC" = yes; then
1.1.1.4   root      766:     CFLAGS="-g -O2"
                    767:   else
1.1.1.9   root      768:     CFLAGS="-g"
1.1       root      769:   fi
                    770: else
1.1.1.9   root      771:   if test "$GCC" = yes; then
                    772:     CFLAGS="-O2"
                    773:   else
                    774:     CFLAGS=
                    775:   fi
1.1       root      776: fi
                    777: 
                    778: 
                    779: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.12! root      780: echo "configure:781: checking how to run the C preprocessor" >&5
1.1       root      781: # On Suns, sometimes $CPP names a directory.
                    782: if test -n "$CPP" && test -d "$CPP"; then
                    783:   CPP=
                    784: fi
                    785: if test -z "$CPP"; then
                    786: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                    787:   echo $ac_n "(cached) $ac_c" 1>&6
                    788: else
                    789:     # This must be in double quotes, not single quotes, because CPP may get
                    790:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                    791:   CPP="${CC-cc} -E"
                    792:   # On the NeXT, cc -E runs the code through the compiler's parser,
                    793:   # not just through cpp.
                    794:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root      795: #line 796 "configure"
1.1       root      796: #include "confdefs.h"
                    797: #include <assert.h>
                    798: Syntax Error
                    799: EOF
                    800: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root      801: { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      802: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root      803: if test -z "$ac_err"; then
                    804:   :
                    805: else
                    806:   echo "$ac_err" >&5
1.1.1.4   root      807:   echo "configure: failed program was:" >&5
                    808:   cat conftest.$ac_ext >&5
1.1       root      809:   rm -rf conftest*
                    810:   CPP="${CC-cc} -E -traditional-cpp"
                    811:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root      812: #line 813 "configure"
1.1.1.9   root      813: #include "confdefs.h"
                    814: #include <assert.h>
                    815: Syntax Error
                    816: EOF
                    817: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root      818: { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      819: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    820: if test -z "$ac_err"; then
                    821:   :
                    822: else
                    823:   echo "$ac_err" >&5
                    824:   echo "configure: failed program was:" >&5
                    825:   cat conftest.$ac_ext >&5
                    826:   rm -rf conftest*
                    827:   CPP="${CC-cc} -nologo -E"
                    828:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root      829: #line 830 "configure"
1.1       root      830: #include "confdefs.h"
                    831: #include <assert.h>
                    832: Syntax Error
                    833: EOF
                    834: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root      835: { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      836: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root      837: if test -z "$ac_err"; then
                    838:   :
                    839: else
                    840:   echo "$ac_err" >&5
1.1.1.4   root      841:   echo "configure: failed program was:" >&5
                    842:   cat conftest.$ac_ext >&5
1.1       root      843:   rm -rf conftest*
                    844:   CPP=/lib/cpp
                    845: fi
                    846: rm -f conftest*
                    847: fi
                    848: rm -f conftest*
1.1.1.9   root      849: fi
                    850: rm -f conftest*
1.1       root      851:   ac_cv_prog_CPP="$CPP"
                    852: fi
                    853:   CPP="$ac_cv_prog_CPP"
                    854: else
                    855:   ac_cv_prog_CPP="$CPP"
                    856: fi
                    857: echo "$ac_t""$CPP" 1>&6
                    858: 
                    859: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.12! root      860: echo "configure:861: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1.1.4   root      861: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.1       root      862: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    863:   echo $ac_n "(cached) $ac_c" 1>&6
                    864: else
                    865:   cat > conftestmake <<\EOF
                    866: all:
                    867:        @echo 'ac_maketemp="${MAKE}"'
                    868: EOF
                    869: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    870: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    871: if test -n "$ac_maketemp"; then
                    872:   eval ac_cv_prog_make_${ac_make}_set=yes
                    873: else
                    874:   eval ac_cv_prog_make_${ac_make}_set=no
                    875: fi
                    876: rm -f conftestmake
                    877: fi
                    878: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    879:   echo "$ac_t""yes" 1>&6
                    880:   SET_MAKE=
                    881: else
                    882:   echo "$ac_t""no" 1>&6
                    883:   SET_MAKE="MAKE=${MAKE-make}"
                    884: fi
                    885: 
1.1.1.11  root      886: # Extract the first word of "makedepend", so it can be a program name with args.
                    887: set dummy makedepend; ac_word=$2
                    888: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      889: echo "configure:890: checking for $ac_word" >&5
1.1.1.11  root      890: if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPPRG'+set}'`\" = set"; then
                    891:   echo $ac_n "(cached) $ac_c" 1>&6
                    892: else
                    893:   case "$MAKEDEPPRG" in
                    894:   /*)
                    895:   ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a path.
                    896:   ;;
                    897:   ?:/*)                         
                    898:   ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a dos path.
                    899:   ;;
                    900:   *)
                    901:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    902:   ac_dummy="$PATH"
                    903:   for ac_dir in $ac_dummy; do 
                    904:     test -z "$ac_dir" && ac_dir=.
                    905:     if test -f $ac_dir/$ac_word; then
                    906:       ac_cv_path_MAKEDEPPRG="$ac_dir/$ac_word"
                    907:       break
                    908:     fi
                    909:   done
                    910:   IFS="$ac_save_ifs"
                    911:   test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found"
                    912:   ;;
                    913: esac
                    914: fi
                    915: MAKEDEPPRG="$ac_cv_path_MAKEDEPPRG"
                    916: if test -n "$MAKEDEPPRG"; then
                    917:   echo "$ac_t""$MAKEDEPPRG" 1>&6
                    918: else
                    919:   echo "$ac_t""no" 1>&6
                    920: fi
                    921: 
1.1.1.4   root      922: # Extract the first word of "file", so it can be a program name with args.
                    923: set dummy file; ac_word=$2
                    924: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      925: echo "configure:926: checking for $ac_word" >&5
1.1.1.4   root      926: if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then
                    927:   echo $ac_n "(cached) $ac_c" 1>&6
                    928: else
                    929:   case "$FILEPRG" in
                    930:   /*)
                    931:   ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
                    932:   ;;
1.1.1.9   root      933:   ?:/*)                         
                    934:   ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a dos path.
                    935:   ;;
1.1.1.4   root      936:   *)
1.1.1.9   root      937:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    938:   ac_dummy="$PATH"
                    939:   for ac_dir in $ac_dummy; do 
1.1.1.4   root      940:     test -z "$ac_dir" && ac_dir=.
                    941:     if test -f $ac_dir/$ac_word; then
                    942:       ac_cv_path_FILEPRG="$ac_dir/$ac_word"
                    943:       break
                    944:     fi
                    945:   done
                    946:   IFS="$ac_save_ifs"
                    947:   test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
                    948:   ;;
                    949: esac
                    950: fi
                    951: FILEPRG="$ac_cv_path_FILEPRG"
                    952: if test -n "$FILEPRG"; then
                    953:   echo "$ac_t""$FILEPRG" 1>&6
                    954: else
                    955:   echo "$ac_t""no" 1>&6
                    956: fi
                    957: 
1.1.1.6   root      958: # Extract the first word of "wrc", so it can be a program name with args.
                    959: set dummy wrc; ac_word=$2
                    960: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      961: echo "configure:962: checking for $ac_word" >&5
1.1.1.6   root      962: if eval "test \"`echo '$''{'ac_cv_path_WRCPRG'+set}'`\" = set"; then
                    963:   echo $ac_n "(cached) $ac_c" 1>&6
                    964: else
                    965:   case "$WRCPRG" in
                    966:   /*)
                    967:   ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
                    968:   ;;
1.1.1.9   root      969:   ?:/*)                         
                    970:   ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a dos path.
                    971:   ;;
1.1.1.6   root      972:   *)
1.1.1.9   root      973:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    974:   ac_dummy="$PATH"
                    975:   for ac_dir in $ac_dummy; do 
1.1.1.6   root      976:     test -z "$ac_dir" && ac_dir=.
                    977:     if test -f $ac_dir/$ac_word; then
                    978:       ac_cv_path_WRCPRG="$ac_dir/$ac_word"
                    979:       break
                    980:     fi
                    981:   done
                    982:   IFS="$ac_save_ifs"
                    983:   test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
                    984:   ;;
                    985: esac
                    986: fi
                    987: WRCPRG="$ac_cv_path_WRCPRG"
                    988: if test -n "$WRCPRG"; then
                    989:   echo "$ac_t""$WRCPRG" 1>&6
                    990: else
                    991:   echo "$ac_t""no" 1>&6
                    992: fi
                    993: 
                    994: # Extract the first word of "rcl", so it can be a program name with args.
                    995: set dummy rcl; ac_word=$2
                    996: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root      997: echo "configure:998: checking for $ac_word" >&5
1.1.1.6   root      998: if eval "test \"`echo '$''{'ac_cv_path_RCLPRG'+set}'`\" = set"; then
                    999:   echo $ac_n "(cached) $ac_c" 1>&6
                   1000: else
                   1001:   case "$RCLPRG" in
                   1002:   /*)
                   1003:   ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
                   1004:   ;;
1.1.1.9   root     1005:   ?:/*)                         
                   1006:   ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a dos path.
                   1007:   ;;
1.1.1.6   root     1008:   *)
1.1.1.9   root     1009:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1010:   ac_dummy="$PATH"
                   1011:   for ac_dir in $ac_dummy; do 
1.1.1.6   root     1012:     test -z "$ac_dir" && ac_dir=.
                   1013:     if test -f $ac_dir/$ac_word; then
                   1014:       ac_cv_path_RCLPRG="$ac_dir/$ac_word"
                   1015:       break
                   1016:     fi
                   1017:   done
                   1018:   IFS="$ac_save_ifs"
                   1019:   test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
                   1020:   ;;
                   1021: esac
                   1022: fi
                   1023: RCLPRG="$ac_cv_path_RCLPRG"
                   1024: if test -n "$RCLPRG"; then
                   1025:   echo "$ac_t""$RCLPRG" 1>&6
                   1026: else
                   1027:   echo "$ac_t""no" 1>&6
                   1028: fi
                   1029: 
1.1       root     1030: 
                   1031: echo $ac_n "checking for AIX""... $ac_c" 1>&6
1.1.1.12! root     1032: echo "configure:1033: checking for AIX" >&5
1.1       root     1033: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1034: #line 1035 "configure"
1.1       root     1035: #include "confdefs.h"
                   1036: #ifdef _AIX
                   1037:   yes
                   1038: #endif
                   1039: 
                   1040: EOF
                   1041: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1042:   egrep "yes" >/dev/null 2>&1; then
                   1043:   rm -rf conftest*
                   1044:   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
                   1045: #define _ALL_SOURCE 1
                   1046: EOF
                   1047: 
                   1048: else
                   1049:   rm -rf conftest*
                   1050:   echo "$ac_t""no" 1>&6
                   1051: fi
                   1052: rm -f conftest*
                   1053: 
                   1054: 
                   1055: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.1.1.12! root     1056: echo "configure:1057: checking for POSIXized ISC" >&5
1.1       root     1057: if test -d /etc/conf/kconfig.d &&
                   1058:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                   1059: then
                   1060:   echo "$ac_t""yes" 1>&6
                   1061:   ISC=yes # If later tests want to check for ISC.
                   1062:   cat >> confdefs.h <<\EOF
                   1063: #define _POSIX_SOURCE 1
                   1064: EOF
                   1065: 
                   1066:   if test "$GCC" = yes; then
                   1067:     CC="$CC -posix"
                   1068:   else
                   1069:     CC="$CC -Xp"
                   1070:   fi
                   1071: else
                   1072:   echo "$ac_t""no" 1>&6
                   1073:   ISC=
                   1074: fi
                   1075: 
                   1076: 
1.1.1.6   root     1077: echo $ac_n "checking for Watcom C""... $ac_c" 1>&6
1.1.1.12! root     1078: echo "configure:1079: checking for Watcom C" >&5
1.1.1.6   root     1079: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1080: #line 1081 "configure"
1.1.1.6   root     1081: #include "confdefs.h"
                   1082: #ifdef __WATCOMC__
                   1083:   yes
                   1084: #endif
                   1085: 
                   1086: EOF
                   1087: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1088:   egrep "yes" >/dev/null 2>&1; then
                   1089:   rm -rf conftest*
                   1090:   uae_cv_prog_cc_watcom=yes
                   1091: else
                   1092:   rm -rf conftest*
                   1093:   uae_cv_prog_cc_watcom=no
                   1094: fi
                   1095: rm -f conftest*
                   1096: 
                   1097: echo "$ac_t""$uae_cv_prog_cc_watcom" 1>&6
                   1098: 
                   1099: echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1.1.1.12! root     1100: echo "configure:1101: checking for Cygwin32 environment" >&5
1.1.1.6   root     1101: if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
                   1102:   echo $ac_n "(cached) $ac_c" 1>&6
                   1103: else
                   1104:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1105: #line 1106 "configure"
1.1.1.6   root     1106: #include "confdefs.h"
                   1107: 
                   1108: int main() {
                   1109: return __CYGWIN32__;
                   1110: ; return 0; }
                   1111: EOF
1.1.1.12! root     1112: if { (eval echo configure:1113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6   root     1113:   rm -rf conftest*
                   1114:   am_cv_cygwin32=yes
                   1115: else
                   1116:   echo "configure: failed program was:" >&5
                   1117:   cat conftest.$ac_ext >&5
                   1118:   rm -rf conftest*
                   1119:   am_cv_cygwin32=no
                   1120: fi
                   1121: rm -f conftest*
                   1122: rm -f conftest*
                   1123: fi
                   1124: 
                   1125: echo "$ac_t""$am_cv_cygwin32" 1>&6
                   1126: CYGWIN32=
                   1127: test "$am_cv_cygwin32" = yes && CYGWIN32=yes
                   1128: echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1.1.1.12! root     1129: echo "configure:1130: checking for Mingw32 environment" >&5
1.1.1.6   root     1130: if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
                   1131:   echo $ac_n "(cached) $ac_c" 1>&6
                   1132: else
                   1133:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1134: #line 1135 "configure"
1.1.1.6   root     1135: #include "confdefs.h"
                   1136: 
                   1137: int main() {
                   1138: return __MINGW32__;
                   1139: ; return 0; }
                   1140: EOF
1.1.1.12! root     1141: if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6   root     1142:   rm -rf conftest*
                   1143:   am_cv_mingw32=yes
                   1144: else
                   1145:   echo "configure: failed program was:" >&5
                   1146:   cat conftest.$ac_ext >&5
                   1147:   rm -rf conftest*
                   1148:   am_cv_mingw32=no
                   1149: fi
                   1150: rm -f conftest*
                   1151: rm -f conftest*
                   1152: fi
                   1153: 
                   1154: echo "$ac_t""$am_cv_mingw32" 1>&6
                   1155: MINGW32=
                   1156: test "$am_cv_mingw32" = yes && MINGW32=yes
                   1157: 
                   1158: 
                   1159: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.1.1.12! root     1160: echo "configure:1161: checking for executable suffix" >&5
1.1.1.6   root     1161: if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
                   1162:   echo $ac_n "(cached) $ac_c" 1>&6
                   1163: else
                   1164:   if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
                   1165: am_cv_exeext=.exe
                   1166: else
                   1167: cat > am_c_test.c << 'EOF'
                   1168: int main() {
                   1169: /* Nothing needed here */
                   1170: }
                   1171: EOF
                   1172: ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
                   1173: am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
                   1174: rm -f am_c_test*
                   1175: fi
                   1176: 
                   1177: test x"${am_cv_exeext}" = x && am_cv_exeext=no
                   1178: fi
                   1179: EXEEXT=""
                   1180: test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
                   1181: echo "$ac_t""${am_cv_exeext}" 1>&6
                   1182: 
                   1183: 
1.1.1.4   root     1184: NR_WARNINGS=0
                   1185: NR_ERRORS=0
                   1186: 
1.1.1.6   root     1187: tmp_save_dir=`pwd`
                   1188: cd $srcdir
                   1189: abssrcdir=`pwd`
                   1190: cd $tmp_save_dir
                   1191: 
1.1.1.4   root     1192: NEED_THREAD_SUPPORT=no
                   1193: 
                   1194: ADDITIONAL_CFLAGS=
                   1195: OPTIMIZE_CFLAGS=
                   1196: WARNING_CFLAGS=
                   1197: DEBUG_CFLAGS=
                   1198: NO_SCHED_CFLAGS=
                   1199: 
                   1200: HAVE_BEOS=no
                   1201: HAVE_POS=no
                   1202: echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6
1.1.1.12! root     1203: echo "configure:1204: checking for main in -lMedia_s" >&5
1.1.1.4   root     1204: ac_lib_var=`echo Media_s'_'main | sed 'y%./+-%__p_%'`
1.1       root     1205: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1206:   echo $ac_n "(cached) $ac_c" 1>&6
                   1207: else
                   1208:   ac_save_LIBS="$LIBS"
                   1209: LIBS="-lMedia_s  $LIBS"
                   1210: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1211: #line 1212 "configure"
1.1       root     1212: #include "confdefs.h"
                   1213: 
1.1.1.4   root     1214: int main() {
1.1       root     1215: main()
                   1216: ; return 0; }
                   1217: EOF
1.1.1.12! root     1218: if { (eval echo configure:1219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1219:   rm -rf conftest*
                   1220:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1221: else
1.1.1.4   root     1222:   echo "configure: failed program was:" >&5
                   1223:   cat conftest.$ac_ext >&5
1.1       root     1224:   rm -rf conftest*
                   1225:   eval "ac_cv_lib_$ac_lib_var=no"
                   1226: fi
                   1227: rm -f conftest*
                   1228: LIBS="$ac_save_LIBS"
                   1229: 
                   1230: fi
                   1231: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1232:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1233:   HAVE_MEDIA_LIB=yes
1.1       root     1234: else
                   1235:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1236: HAVE_MEDIA_LIB=no
1.1       root     1237: fi
                   1238: 
1.1.1.4   root     1239: echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6
1.1.1.12! root     1240: echo "configure:1241: checking for main in -lNeXT_s" >&5
1.1.1.4   root     1241: ac_lib_var=`echo NeXT_s'_'main | sed 'y%./+-%__p_%'`
1.1       root     1242: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1243:   echo $ac_n "(cached) $ac_c" 1>&6
                   1244: else
                   1245:   ac_save_LIBS="$LIBS"
                   1246: LIBS="-lNeXT_s  $LIBS"
                   1247: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1248: #line 1249 "configure"
1.1       root     1249: #include "confdefs.h"
                   1250: 
1.1.1.4   root     1251: int main() {
1.1       root     1252: main()
                   1253: ; return 0; }
                   1254: EOF
1.1.1.12! root     1255: if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1256:   rm -rf conftest*
                   1257:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1258: else
1.1.1.4   root     1259:   echo "configure: failed program was:" >&5
                   1260:   cat conftest.$ac_ext >&5
1.1       root     1261:   rm -rf conftest*
                   1262:   eval "ac_cv_lib_$ac_lib_var=no"
                   1263: fi
                   1264: rm -f conftest*
                   1265: LIBS="$ac_save_LIBS"
                   1266: 
                   1267: fi
                   1268: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1269:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1270:   HAVE_NEXT_LIB=yes
1.1       root     1271: else
                   1272:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1273: HAVE_NEXT_LIB=no
1.1       root     1274: fi
                   1275: 
1.1.1.11  root     1276: echo $ac_n "checking for cos in -lmoto""... $ac_c" 1>&6
1.1.1.12! root     1277: echo "configure:1278: checking for cos in -lmoto" >&5
1.1.1.11  root     1278: ac_lib_var=`echo moto'_'cos | sed 'y%./+-%__p_%'`
                   1279: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1280:   echo $ac_n "(cached) $ac_c" 1>&6
                   1281: else
                   1282:   ac_save_LIBS="$LIBS"
                   1283: LIBS="-lmoto  $LIBS"
                   1284: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1285: #line 1286 "configure"
1.1.1.11  root     1286: #include "confdefs.h"
                   1287: /* Override any gcc2 internal prototype to avoid an error.  */
                   1288: /* We use char because int might match the return type of a gcc2
                   1289:     builtin and then its argument prototype would still apply.  */
                   1290: char cos();
                   1291: 
                   1292: int main() {
                   1293: cos()
                   1294: ; return 0; }
                   1295: EOF
1.1.1.12! root     1296: if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.11  root     1297:   rm -rf conftest*
                   1298:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1299: else
                   1300:   echo "configure: failed program was:" >&5
                   1301:   cat conftest.$ac_ext >&5
                   1302:   rm -rf conftest*
                   1303:   eval "ac_cv_lib_$ac_lib_var=no"
                   1304: fi
                   1305: rm -f conftest*
                   1306: LIBS="$ac_save_LIBS"
                   1307: 
                   1308: fi
                   1309: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1310:   echo "$ac_t""yes" 1>&6
                   1311:   HAVE_MOTO_LIB=yes
                   1312: else
                   1313:   echo "$ac_t""no" 1>&6
                   1314: HAVE_MOTO_LIB=no
                   1315: fi
                   1316: 
1.1.1.4   root     1317: echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6
1.1.1.12! root     1318: echo "configure:1319: checking for OpenLibrary in -lamiga" >&5
1.1.1.4   root     1319: ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'`
1.1.1.3   root     1320: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1321:   echo $ac_n "(cached) $ac_c" 1>&6
                   1322: else
                   1323:   ac_save_LIBS="$LIBS"
                   1324: LIBS="-lamiga  $LIBS"
                   1325: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1326: #line 1327 "configure"
1.1.1.3   root     1327: #include "confdefs.h"
                   1328: /* Override any gcc2 internal prototype to avoid an error.  */
                   1329: /* We use char because int might match the return type of a gcc2
                   1330:     builtin and then its argument prototype would still apply.  */
                   1331: char OpenLibrary();
                   1332: 
1.1.1.4   root     1333: int main() {
1.1.1.3   root     1334: OpenLibrary()
                   1335: ; return 0; }
                   1336: EOF
1.1.1.12! root     1337: if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.3   root     1338:   rm -rf conftest*
                   1339:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1340: else
1.1.1.4   root     1341:   echo "configure: failed program was:" >&5
                   1342:   cat conftest.$ac_ext >&5
1.1.1.3   root     1343:   rm -rf conftest*
                   1344:   eval "ac_cv_lib_$ac_lib_var=no"
                   1345: fi
                   1346: rm -f conftest*
                   1347: LIBS="$ac_save_LIBS"
                   1348: 
                   1349: fi
                   1350: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1351:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1352:   HAVE_AMIGA_LIB=yes
1.1.1.3   root     1353: else
                   1354:   echo "$ac_t""no" 1>&6
                   1355: HAVE_AMIGA_LIB=n
                   1356: fi
                   1357: 
1.1.1.4   root     1358: echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
1.1.1.12! root     1359: echo "configure:1360: checking for vga_setmode in -lvga" >&5
1.1.1.4   root     1360: ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
1.1       root     1361: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1362:   echo $ac_n "(cached) $ac_c" 1>&6
                   1363: else
                   1364:   ac_save_LIBS="$LIBS"
                   1365: LIBS="-lvga  $LIBS"
                   1366: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1367: #line 1368 "configure"
1.1       root     1368: #include "confdefs.h"
                   1369: /* Override any gcc2 internal prototype to avoid an error.  */
                   1370: /* We use char because int might match the return type of a gcc2
                   1371:     builtin and then its argument prototype would still apply.  */
                   1372: char vga_setmode();
                   1373: 
1.1.1.4   root     1374: int main() {
1.1       root     1375: vga_setmode()
                   1376: ; return 0; }
                   1377: EOF
1.1.1.12! root     1378: if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1379:   rm -rf conftest*
                   1380:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1381: else
1.1.1.4   root     1382:   echo "configure: failed program was:" >&5
                   1383:   cat conftest.$ac_ext >&5
1.1       root     1384:   rm -rf conftest*
                   1385:   eval "ac_cv_lib_$ac_lib_var=no"
                   1386: fi
                   1387: rm -f conftest*
                   1388: LIBS="$ac_save_LIBS"
                   1389: 
                   1390: fi
                   1391: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1392:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1393:   HAVE_SVGA_LIB=yes
1.1       root     1394: else
                   1395:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1396: HAVE_SVGA_LIB=no
1.1       root     1397: fi
                   1398: 
1.1.1.4   root     1399: echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6
1.1.1.12! root     1400: echo "configure:1401: checking for AFOpenAudioConn in -lAF" >&5
1.1.1.4   root     1401: ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'`
1.1       root     1402: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1403:   echo $ac_n "(cached) $ac_c" 1>&6
                   1404: else
                   1405:   ac_save_LIBS="$LIBS"
                   1406: LIBS="-lAF  $LIBS"
                   1407: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1408: #line 1409 "configure"
1.1       root     1409: #include "confdefs.h"
                   1410: /* Override any gcc2 internal prototype to avoid an error.  */
                   1411: /* We use char because int might match the return type of a gcc2
                   1412:     builtin and then its argument prototype would still apply.  */
                   1413: char AFOpenAudioConn();
                   1414: 
1.1.1.4   root     1415: int main() {
1.1       root     1416: AFOpenAudioConn()
                   1417: ; return 0; }
                   1418: EOF
1.1.1.12! root     1419: if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1420:   rm -rf conftest*
                   1421:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1422: else
                   1423:   echo "configure: failed program was:" >&5
                   1424:   cat conftest.$ac_ext >&5
                   1425:   rm -rf conftest*
                   1426:   eval "ac_cv_lib_$ac_lib_var=no"
                   1427: fi
                   1428: rm -f conftest*
                   1429: LIBS="$ac_save_LIBS"
                   1430: 
                   1431: fi
                   1432: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1433:   echo "$ac_t""yes" 1>&6
                   1434:   HAVE_AF_LIB=yes
                   1435: else
                   1436:   echo "$ac_t""no" 1>&6
                   1437: HAVE_AF_LIB=no
                   1438: fi
                   1439: 
1.1.1.6   root     1440: echo $ac_n "checking for waveOutGetNumDevs in -lmme""... $ac_c" 1>&6
1.1.1.12! root     1441: echo "configure:1442: checking for waveOutGetNumDevs in -lmme" >&5
1.1.1.6   root     1442: ac_lib_var=`echo mme'_'waveOutGetNumDevs | sed 'y%./+-%__p_%'`
                   1443: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1444:   echo $ac_n "(cached) $ac_c" 1>&6
                   1445: else
                   1446:   ac_save_LIBS="$LIBS"
                   1447: LIBS="-lmme  $LIBS"
                   1448: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1449: #line 1450 "configure"
1.1.1.6   root     1450: #include "confdefs.h"
                   1451: /* Override any gcc2 internal prototype to avoid an error.  */
                   1452: /* We use char because int might match the return type of a gcc2
                   1453:     builtin and then its argument prototype would still apply.  */
                   1454: char waveOutGetNumDevs();
                   1455: 
                   1456: int main() {
                   1457: waveOutGetNumDevs()
                   1458: ; return 0; }
                   1459: EOF
1.1.1.12! root     1460: if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     1461:   rm -rf conftest*
                   1462:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1463: else
                   1464:   echo "configure: failed program was:" >&5
                   1465:   cat conftest.$ac_ext >&5
                   1466:   rm -rf conftest*
                   1467:   eval "ac_cv_lib_$ac_lib_var=no"
                   1468: fi
                   1469: rm -f conftest*
                   1470: LIBS="$ac_save_LIBS"
                   1471: 
                   1472: fi
                   1473: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1474:   echo "$ac_t""yes" 1>&6
                   1475:   HAVE_MME_LIB=yes
                   1476: else
                   1477:   echo "$ac_t""no" 1>&6
                   1478: HAVE_MME_LIB=no
                   1479: fi
                   1480: 
1.1.1.4   root     1481: echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
1.1.1.12! root     1482: echo "configure:1483: checking for waddch in -lncurses" >&5
1.1.1.4   root     1483: ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
                   1484: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1485:   echo $ac_n "(cached) $ac_c" 1>&6
                   1486: else
                   1487:   ac_save_LIBS="$LIBS"
                   1488: LIBS="-lncurses  $LIBS"
                   1489: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1490: #line 1491 "configure"
1.1.1.4   root     1491: #include "confdefs.h"
                   1492: /* Override any gcc2 internal prototype to avoid an error.  */
                   1493: /* We use char because int might match the return type of a gcc2
                   1494:     builtin and then its argument prototype would still apply.  */
                   1495: char waddch();
                   1496: 
                   1497: int main() {
                   1498: waddch()
                   1499: ; return 0; }
                   1500: EOF
1.1.1.12! root     1501: if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1502:   rm -rf conftest*
                   1503:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1504: else
                   1505:   echo "configure: failed program was:" >&5
                   1506:   cat conftest.$ac_ext >&5
                   1507:   rm -rf conftest*
                   1508:   eval "ac_cv_lib_$ac_lib_var=no"
                   1509: fi
                   1510: rm -f conftest*
                   1511: LIBS="$ac_save_LIBS"
                   1512: 
                   1513: fi
                   1514: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1515:   echo "$ac_t""yes" 1>&6
                   1516:   HAVE_NCURSES_LIB=yes
                   1517: else
                   1518:   echo "$ac_t""no" 1>&6
                   1519: HAVE_NCURSES_LIB=no
                   1520: fi
                   1521: 
1.1.1.6   root     1522: echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1.1.1.12! root     1523: echo "configure:1524: checking for sem_init in -lposix4" >&5
1.1.1.6   root     1524: ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4   root     1525: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1526:   echo $ac_n "(cached) $ac_c" 1>&6
                   1527: else
                   1528:   ac_save_LIBS="$LIBS"
1.1.1.6   root     1529: LIBS="-lposix4  $LIBS"
1.1.1.4   root     1530: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1531: #line 1532 "configure"
1.1.1.4   root     1532: #include "confdefs.h"
                   1533: /* Override any gcc2 internal prototype to avoid an error.  */
                   1534: /* We use char because int might match the return type of a gcc2
                   1535:     builtin and then its argument prototype would still apply.  */
1.1.1.6   root     1536: char sem_init();
1.1.1.4   root     1537: 
                   1538: int main() {
1.1.1.6   root     1539: sem_init()
1.1.1.4   root     1540: ; return 0; }
                   1541: EOF
1.1.1.12! root     1542: if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1543:   rm -rf conftest*
                   1544:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1545: else
                   1546:   echo "configure: failed program was:" >&5
                   1547:   cat conftest.$ac_ext >&5
                   1548:   rm -rf conftest*
                   1549:   eval "ac_cv_lib_$ac_lib_var=no"
                   1550: fi
                   1551: rm -f conftest*
                   1552: LIBS="$ac_save_LIBS"
                   1553: 
                   1554: fi
                   1555: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1556:   echo "$ac_t""yes" 1>&6
1.1.1.6   root     1557:   HAVE_POSIX4_LIB=yes
1.1.1.4   root     1558: else
                   1559:   echo "$ac_t""no" 1>&6
1.1.1.6   root     1560: HAVE_POSIX4_LIB=no
1.1.1.4   root     1561: fi
                   1562: 
1.1.1.6   root     1563: echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
1.1.1.12! root     1564: echo "configure:1565: checking for sem_init in -lrt" >&5
1.1.1.6   root     1565: ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4   root     1566: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1567:   echo $ac_n "(cached) $ac_c" 1>&6
                   1568: else
                   1569:   ac_save_LIBS="$LIBS"
1.1.1.6   root     1570: LIBS="-lrt  $LIBS"
1.1.1.4   root     1571: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1572: #line 1573 "configure"
1.1.1.4   root     1573: #include "confdefs.h"
                   1574: /* Override any gcc2 internal prototype to avoid an error.  */
                   1575: /* We use char because int might match the return type of a gcc2
                   1576:     builtin and then its argument prototype would still apply.  */
                   1577: char sem_init();
                   1578: 
                   1579: int main() {
                   1580: sem_init()
                   1581: ; return 0; }
                   1582: EOF
1.1.1.12! root     1583: if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1584:   rm -rf conftest*
                   1585:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1586: else
                   1587:   echo "configure: failed program was:" >&5
                   1588:   cat conftest.$ac_ext >&5
                   1589:   rm -rf conftest*
                   1590:   eval "ac_cv_lib_$ac_lib_var=no"
                   1591: fi
                   1592: rm -f conftest*
                   1593: LIBS="$ac_save_LIBS"
                   1594: 
                   1595: fi
                   1596: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1597:   echo "$ac_t""yes" 1>&6
1.1.1.6   root     1598:   HAVE_RT_LIB=yes
1.1.1.4   root     1599: else
                   1600:   echo "$ac_t""no" 1>&6
1.1.1.6   root     1601: HAVE_RT_LIB=no
1.1.1.4   root     1602: fi
                   1603: 
                   1604: echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
1.1.1.12! root     1605: echo "configure:1606: checking for ggiInit in -lggi" >&5
1.1.1.4   root     1606: ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
                   1607: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1608:   echo $ac_n "(cached) $ac_c" 1>&6
                   1609: else
                   1610:   ac_save_LIBS="$LIBS"
                   1611: LIBS="-lggi  $LIBS"
                   1612: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1613: #line 1614 "configure"
1.1.1.4   root     1614: #include "confdefs.h"
                   1615: /* Override any gcc2 internal prototype to avoid an error.  */
                   1616: /* We use char because int might match the return type of a gcc2
                   1617:     builtin and then its argument prototype would still apply.  */
                   1618: char ggiInit();
                   1619: 
                   1620: int main() {
                   1621: ggiInit()
                   1622: ; return 0; }
                   1623: EOF
1.1.1.12! root     1624: if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1625:   rm -rf conftest*
                   1626:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1627: else
1.1.1.4   root     1628:   echo "configure: failed program was:" >&5
                   1629:   cat conftest.$ac_ext >&5
1.1       root     1630:   rm -rf conftest*
                   1631:   eval "ac_cv_lib_$ac_lib_var=no"
                   1632: fi
                   1633: rm -f conftest*
                   1634: LIBS="$ac_save_LIBS"
                   1635: 
                   1636: fi
                   1637: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1638:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1639:   HAVE_GGI_LIB=yes
1.1       root     1640: else
                   1641:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1642: HAVE_GGI_LIB=no
1.1       root     1643: fi
                   1644: 
1.1.1.8   root     1645: echo $ac_n "checking for alOpenPort in -laudio""... $ac_c" 1>&6
1.1.1.12! root     1646: echo "configure:1647: checking for alOpenPort in -laudio" >&5
1.1.1.8   root     1647: ac_lib_var=`echo audio'_'alOpenPort | sed 'y%./+-%__p_%'`
                   1648: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1649:   echo $ac_n "(cached) $ac_c" 1>&6
                   1650: else
                   1651:   ac_save_LIBS="$LIBS"
                   1652: LIBS="-laudio  $LIBS"
                   1653: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1654: #line 1655 "configure"
1.1.1.8   root     1655: #include "confdefs.h"
                   1656: /* Override any gcc2 internal prototype to avoid an error.  */
                   1657: /* We use char because int might match the return type of a gcc2
                   1658:     builtin and then its argument prototype would still apply.  */
                   1659: char alOpenPort();
                   1660: 
                   1661: int main() {
                   1662: alOpenPort()
                   1663: ; return 0; }
                   1664: EOF
1.1.1.12! root     1665: if { (eval echo configure:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.8   root     1666:   rm -rf conftest*
                   1667:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1668: else
                   1669:   echo "configure: failed program was:" >&5
                   1670:   cat conftest.$ac_ext >&5
                   1671:   rm -rf conftest*
                   1672:   eval "ac_cv_lib_$ac_lib_var=no"
                   1673: fi
                   1674: rm -f conftest*
                   1675: LIBS="$ac_save_LIBS"
                   1676: 
                   1677: fi
                   1678: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1679:   echo "$ac_t""yes" 1>&6
                   1680:   HAVE_SGIAUDIO_LIB=yes
                   1681: else
                   1682:   echo "$ac_t""no" 1>&6
                   1683: HAVE_SGIAUDIO_LIB=no
                   1684: fi
                   1685: 
1.1       root     1686: 
                   1687: # If we find X, set shell vars x_includes and x_libraries to the
                   1688: # paths, otherwise set no_x=yes.
                   1689: # Uses ac_ vars as temps to allow command line to override cache and checks.
                   1690: # --without-x overrides everything else, but does not touch the cache.
                   1691: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.12! root     1692: echo "configure:1693: checking for X" >&5
1.1       root     1693: 
                   1694: # Check whether --with-x or --without-x was given.
                   1695: if test "${with_x+set}" = set; then
                   1696:   withval="$with_x"
                   1697:   :
                   1698: fi
                   1699: 
                   1700: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   1701: if test "x$with_x" = xno; then
                   1702:   # The user explicitly disabled X.
                   1703:   have_x=disabled
                   1704: else
                   1705:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                   1706:     # Both variables are already set.
                   1707:     have_x=yes
                   1708:   else
                   1709: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
                   1710:   echo $ac_n "(cached) $ac_c" 1>&6
                   1711: else
                   1712:   # One or both of the vars are not set, and there is no cached value.
                   1713: ac_x_includes=NO ac_x_libraries=NO
                   1714: rm -fr conftestdir
                   1715: if mkdir conftestdir; then
                   1716:   cd conftestdir
                   1717:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
                   1718:   cat > Imakefile <<'EOF'
                   1719: acfindx:
                   1720:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
                   1721: EOF
                   1722:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                   1723:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1724:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                   1725:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   1726:     for ac_extension in a so sl; do
                   1727:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
                   1728:         test -f $ac_im_libdir/libX11.$ac_extension; then
                   1729:         ac_im_usrlibdir=$ac_im_libdir; break
                   1730:       fi
                   1731:     done
1.1.1.4   root     1732:     # Screen out bogus values from the imake configuration.  They are
                   1733:     # bogus both because they are the default anyway, and because
                   1734:     # using them would break gcc on systems where it needs fixed includes.
1.1       root     1735:     case "$ac_im_incroot" in
                   1736:        /usr/include) ;;
                   1737:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
                   1738:     esac
                   1739:     case "$ac_im_usrlibdir" in
                   1740:        /usr/lib | /lib) ;;
                   1741:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
                   1742:     esac
                   1743:   fi
                   1744:   cd ..
                   1745:   rm -fr conftestdir
                   1746: fi
                   1747: 
                   1748: if test "$ac_x_includes" = NO; then
                   1749:   # Guess where to find include files, by looking for this one X11 .h file.
                   1750:   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
                   1751: 
                   1752:   # First, try using that file with no special directory specified.
                   1753: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1754: #line 1755 "configure"
1.1       root     1755: #include "confdefs.h"
                   1756: #include <$x_direct_test_include>
                   1757: EOF
                   1758: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     1759: { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     1760: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     1761: if test -z "$ac_err"; then
                   1762:   rm -rf conftest*
                   1763:   # We can compile using X headers with no special include directory.
                   1764: ac_x_includes=
                   1765: else
                   1766:   echo "$ac_err" >&5
1.1.1.4   root     1767:   echo "configure: failed program was:" >&5
                   1768:   cat conftest.$ac_ext >&5
1.1       root     1769:   rm -rf conftest*
                   1770:   # Look for the header file in a standard set of common directories.
1.1.1.4   root     1771: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1772:   for ac_dir in               \
1.1.1.4   root     1773:     /usr/X11/include          \
1.1       root     1774:     /usr/X11R6/include        \
                   1775:     /usr/X11R5/include        \
                   1776:     /usr/X11R4/include        \
                   1777:                               \
1.1.1.4   root     1778:     /usr/include/X11          \
1.1       root     1779:     /usr/include/X11R6        \
                   1780:     /usr/include/X11R5        \
                   1781:     /usr/include/X11R4        \
                   1782:                               \
1.1.1.4   root     1783:     /usr/local/X11/include    \
1.1       root     1784:     /usr/local/X11R6/include  \
                   1785:     /usr/local/X11R5/include  \
                   1786:     /usr/local/X11R4/include  \
                   1787:                               \
1.1.1.4   root     1788:     /usr/local/include/X11    \
1.1       root     1789:     /usr/local/include/X11R6  \
                   1790:     /usr/local/include/X11R5  \
                   1791:     /usr/local/include/X11R4  \
                   1792:                               \
                   1793:     /usr/X386/include         \
                   1794:     /usr/x386/include         \
                   1795:     /usr/XFree86/include/X11  \
                   1796:                               \
                   1797:     /usr/include              \
                   1798:     /usr/local/include        \
                   1799:     /usr/unsupported/include  \
                   1800:     /usr/athena/include       \
                   1801:     /usr/local/x11r5/include  \
                   1802:     /usr/lpp/Xamples/include  \
                   1803:                               \
                   1804:     /usr/openwin/include      \
                   1805:     /usr/openwin/share/include \
                   1806:     ; \
                   1807:   do
                   1808:     if test -r "$ac_dir/$x_direct_test_include"; then
                   1809:       ac_x_includes=$ac_dir
                   1810:       break
                   1811:     fi
                   1812:   done
                   1813: fi
                   1814: rm -f conftest*
                   1815: fi # $ac_x_includes = NO
                   1816: 
                   1817: if test "$ac_x_libraries" = NO; then
                   1818:   # Check for the libraries.
                   1819: 
                   1820:   test -z "$x_direct_test_library" && x_direct_test_library=Xt
                   1821:   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
                   1822: 
                   1823:   # See if we find them without any special options.
                   1824:   # Don't add to $LIBS permanently.
                   1825:   ac_save_LIBS="$LIBS"
                   1826:   LIBS="-l$x_direct_test_library $LIBS"
                   1827: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1828: #line 1829 "configure"
1.1       root     1829: #include "confdefs.h"
                   1830: 
1.1.1.4   root     1831: int main() {
1.1       root     1832: ${x_direct_test_function}()
                   1833: ; return 0; }
                   1834: EOF
1.1.1.12! root     1835: if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1836:   rm -rf conftest*
                   1837:   LIBS="$ac_save_LIBS"
                   1838: # We can link X programs with no special library path.
                   1839: ac_x_libraries=
                   1840: else
1.1.1.4   root     1841:   echo "configure: failed program was:" >&5
                   1842:   cat conftest.$ac_ext >&5
1.1       root     1843:   rm -rf conftest*
                   1844:   LIBS="$ac_save_LIBS"
                   1845: # First see if replacing the include by lib works.
1.1.1.4   root     1846: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1847: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1.1.1.4   root     1848:     /usr/X11/lib          \
1.1       root     1849:     /usr/X11R6/lib        \
                   1850:     /usr/X11R5/lib        \
                   1851:     /usr/X11R4/lib        \
                   1852:                           \
1.1.1.4   root     1853:     /usr/lib/X11          \
1.1       root     1854:     /usr/lib/X11R6        \
                   1855:     /usr/lib/X11R5        \
                   1856:     /usr/lib/X11R4        \
                   1857:                           \
1.1.1.4   root     1858:     /usr/local/X11/lib    \
1.1       root     1859:     /usr/local/X11R6/lib  \
                   1860:     /usr/local/X11R5/lib  \
                   1861:     /usr/local/X11R4/lib  \
                   1862:                           \
1.1.1.4   root     1863:     /usr/local/lib/X11    \
1.1       root     1864:     /usr/local/lib/X11R6  \
                   1865:     /usr/local/lib/X11R5  \
                   1866:     /usr/local/lib/X11R4  \
                   1867:                           \
                   1868:     /usr/X386/lib         \
                   1869:     /usr/x386/lib         \
                   1870:     /usr/XFree86/lib/X11  \
                   1871:                           \
                   1872:     /usr/lib              \
                   1873:     /usr/local/lib        \
                   1874:     /usr/unsupported/lib  \
                   1875:     /usr/athena/lib       \
                   1876:     /usr/local/x11r5/lib  \
                   1877:     /usr/lpp/Xamples/lib  \
1.1.1.4   root     1878:     /lib/usr/lib/X11     \
1.1       root     1879:                           \
                   1880:     /usr/openwin/lib      \
                   1881:     /usr/openwin/share/lib \
                   1882:     ; \
                   1883: do
                   1884:   for ac_extension in a so sl; do
                   1885:     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
                   1886:       ac_x_libraries=$ac_dir
                   1887:       break 2
                   1888:     fi
                   1889:   done
                   1890: done
                   1891: fi
                   1892: rm -f conftest*
                   1893: fi # $ac_x_libraries = NO
                   1894: 
                   1895: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
                   1896:   # Didn't find X anywhere.  Cache the known absence of X.
                   1897:   ac_cv_have_x="have_x=no"
                   1898: else
                   1899:   # Record where we found X for the cache.
                   1900:   ac_cv_have_x="have_x=yes \
                   1901:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   1902: fi
                   1903: fi
                   1904:   fi
                   1905:   eval "$ac_cv_have_x"
                   1906: fi # $with_x != no
                   1907: 
                   1908: if test "$have_x" != yes; then
                   1909:   echo "$ac_t""$have_x" 1>&6
                   1910:   no_x=yes
                   1911: else
                   1912:   # If each of the values was on the command line, it overrides each guess.
                   1913:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   1914:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   1915:   # Update the cache value to reflect the command line values.
                   1916:   ac_cv_have_x="have_x=yes \
                   1917:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                   1918:   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
                   1919: fi
                   1920: 
                   1921: if test "$no_x" = yes; then
                   1922:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.4   root     1923:   cat >> confdefs.h <<\EOF
                   1924: #define X_DISPLAY_MISSING 1
                   1925: EOF
                   1926: 
                   1927:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       root     1928: else
                   1929:   if test -n "$x_includes"; then
                   1930:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   1931:   fi
                   1932: 
                   1933:   # It would also be nice to do this for all -L options, not just this one.
                   1934:   if test -n "$x_libraries"; then
                   1935:     X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4   root     1936:     # For Solaris; some versions of Sun CC require a space after -R and
                   1937:     # others require no space.  Words are not sufficient . . . .
                   1938:     case "`(uname -sr) 2>/dev/null`" in
                   1939:     "SunOS 5"*)
                   1940:       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.1.1.12! root     1941: echo "configure:1942: checking whether -R must be followed by a space" >&5
1.1.1.4   root     1942:       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
                   1943:       cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1944: #line 1945 "configure"
1.1.1.4   root     1945: #include "confdefs.h"
1.1       root     1946: 
1.1.1.4   root     1947: int main() {
1.1       root     1948: 
1.1.1.4   root     1949: ; return 0; }
                   1950: EOF
1.1.1.12! root     1951: if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1952:   rm -rf conftest*
                   1953:   ac_R_nospace=yes
1.1       root     1954: else
1.1.1.4   root     1955:   echo "configure: failed program was:" >&5
                   1956:   cat conftest.$ac_ext >&5
                   1957:   rm -rf conftest*
                   1958:   ac_R_nospace=no
                   1959: fi
                   1960: rm -f conftest*
                   1961:       if test $ac_R_nospace = yes; then
                   1962:        echo "$ac_t""no" 1>&6
                   1963:        X_LIBS="$X_LIBS -R$x_libraries"
                   1964:       else
                   1965:        LIBS="$ac_xsave_LIBS -R $x_libraries"
                   1966:        cat > conftest.$ac_ext <<EOF
1.1.1.12! root     1967: #line 1968 "configure"
1.1       root     1968: #include "confdefs.h"
                   1969: 
1.1.1.4   root     1970: int main() {
                   1971: 
1.1       root     1972: ; return 0; }
                   1973: EOF
1.1.1.12! root     1974: if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1975:   rm -rf conftest*
1.1.1.4   root     1976:   ac_R_space=yes
1.1       root     1977: else
1.1.1.4   root     1978:   echo "configure: failed program was:" >&5
                   1979:   cat conftest.$ac_ext >&5
1.1       root     1980:   rm -rf conftest*
1.1.1.4   root     1981:   ac_R_space=no
1.1       root     1982: fi
                   1983: rm -f conftest*
1.1.1.4   root     1984:        if test $ac_R_space = yes; then
                   1985:          echo "$ac_t""yes" 1>&6
                   1986:          X_LIBS="$X_LIBS -R $x_libraries"
                   1987:        else
                   1988:          echo "$ac_t""neither works" 1>&6
                   1989:        fi
                   1990:       fi
                   1991:       LIBS="$ac_xsave_LIBS"
                   1992:     esac
                   1993:   fi
1.1       root     1994: 
                   1995:   # Check for system-dependent libraries X programs must link with.
1.1.1.4   root     1996:   # Do this before checking for the system-independent R6 libraries
                   1997:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       root     1998: 
                   1999:   if test "$ISC" = yes; then
                   2000:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   2001:   else
                   2002:     # [email protected] says this is needed for Ultrix, if the X
                   2003:     # libraries were built with DECnet support.  And [email protected] says
                   2004:     # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.4   root     2005:     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.1.1.12! root     2006: echo "configure:2007: checking for dnet_ntoa in -ldnet" >&5
1.1.1.4   root     2007: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     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="-ldnet  $LIBS"
                   2013: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2014: #line 2015 "configure"
1.1       root     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 dnet_ntoa();
                   2020: 
1.1.1.4   root     2021: int main() {
1.1       root     2022: dnet_ntoa()
                   2023: ; return 0; }
                   2024: EOF
1.1.1.12! root     2025: if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2026:   rm -rf conftest*
                   2027:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2028: else
1.1.1.4   root     2029:   echo "configure: failed program was:" >&5
                   2030:   cat conftest.$ac_ext >&5
1.1       root     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:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   2041: else
                   2042:   echo "$ac_t""no" 1>&6
                   2043: fi
                   2044: 
                   2045:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.4   root     2046:       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.1.1.12! root     2047: echo "configure:2048: checking for dnet_ntoa in -ldnet_stub" >&5
1.1.1.4   root     2048: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     2049: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2050:   echo $ac_n "(cached) $ac_c" 1>&6
                   2051: else
                   2052:   ac_save_LIBS="$LIBS"
                   2053: LIBS="-ldnet_stub  $LIBS"
                   2054: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2055: #line 2056 "configure"
1.1       root     2056: #include "confdefs.h"
                   2057: /* Override any gcc2 internal prototype to avoid an error.  */
                   2058: /* We use char because int might match the return type of a gcc2
                   2059:     builtin and then its argument prototype would still apply.  */
                   2060: char dnet_ntoa();
                   2061: 
1.1.1.4   root     2062: int main() {
1.1       root     2063: dnet_ntoa()
                   2064: ; return 0; }
                   2065: EOF
1.1.1.12! root     2066: if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2067:   rm -rf conftest*
                   2068:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2069: else
1.1.1.4   root     2070:   echo "configure: failed program was:" >&5
                   2071:   cat conftest.$ac_ext >&5
1.1       root     2072:   rm -rf conftest*
                   2073:   eval "ac_cv_lib_$ac_lib_var=no"
                   2074: fi
                   2075: rm -f conftest*
                   2076: LIBS="$ac_save_LIBS"
                   2077: 
                   2078: fi
                   2079: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2080:   echo "$ac_t""yes" 1>&6
                   2081:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   2082: else
                   2083:   echo "$ac_t""no" 1>&6
                   2084: fi
                   2085: 
                   2086:     fi
                   2087: 
                   2088:     # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
                   2089:     # to get the SysV transport functions.
1.1.1.4   root     2090:     # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
                   2091:     # needs -lnsl.
                   2092:     # The nsl library prevents programs from opening the X display
                   2093:     # on Irix 5.2, according to [email protected].
                   2094:     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.1.1.12! root     2095: echo "configure:2096: checking for gethostbyname" >&5
1.1.1.4   root     2096: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
                   2097:   echo $ac_n "(cached) $ac_c" 1>&6
                   2098: else
                   2099:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2100: #line 2101 "configure"
1.1.1.4   root     2101: #include "confdefs.h"
                   2102: /* System header to define __stub macros and hopefully few prototypes,
                   2103:     which can conflict with char gethostbyname(); below.  */
                   2104: #include <assert.h>
                   2105: /* Override any gcc2 internal prototype to avoid an error.  */
                   2106: /* We use char because int might match the return type of a gcc2
                   2107:     builtin and then its argument prototype would still apply.  */
                   2108: char gethostbyname();
                   2109: 
                   2110: int main() {
                   2111: 
                   2112: /* The GNU C library defines this for functions which it implements
                   2113:     to always fail with ENOSYS.  Some functions are actually named
                   2114:     something starting with __ and the normal name is an alias.  */
                   2115: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   2116: choke me
                   2117: #else
                   2118: gethostbyname();
                   2119: #endif
                   2120: 
                   2121: ; return 0; }
                   2122: EOF
1.1.1.12! root     2123: if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2124:   rm -rf conftest*
                   2125:   eval "ac_cv_func_gethostbyname=yes"
                   2126: else
                   2127:   echo "configure: failed program was:" >&5
                   2128:   cat conftest.$ac_ext >&5
                   2129:   rm -rf conftest*
                   2130:   eval "ac_cv_func_gethostbyname=no"
                   2131: fi
                   2132: rm -f conftest*
                   2133: fi
                   2134: 
                   2135: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
                   2136:   echo "$ac_t""yes" 1>&6
                   2137:   :
                   2138: else
                   2139:   echo "$ac_t""no" 1>&6
                   2140: fi
                   2141: 
                   2142:     if test $ac_cv_func_gethostbyname = no; then
                   2143:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.1.1.12! root     2144: echo "configure:2145: checking for gethostbyname in -lnsl" >&5
1.1.1.4   root     2145: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1.1       root     2146: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2147:   echo $ac_n "(cached) $ac_c" 1>&6
                   2148: else
                   2149:   ac_save_LIBS="$LIBS"
                   2150: LIBS="-lnsl  $LIBS"
                   2151: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2152: #line 2153 "configure"
1.1       root     2153: #include "confdefs.h"
                   2154: /* Override any gcc2 internal prototype to avoid an error.  */
                   2155: /* We use char because int might match the return type of a gcc2
                   2156:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     2157: char gethostbyname();
1.1       root     2158: 
1.1.1.4   root     2159: int main() {
                   2160: gethostbyname()
1.1       root     2161: ; return 0; }
                   2162: EOF
1.1.1.12! root     2163: if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2164:   rm -rf conftest*
                   2165:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2166: else
1.1.1.4   root     2167:   echo "configure: failed program was:" >&5
                   2168:   cat conftest.$ac_ext >&5
1.1       root     2169:   rm -rf conftest*
                   2170:   eval "ac_cv_lib_$ac_lib_var=no"
                   2171: fi
                   2172: rm -f conftest*
                   2173: LIBS="$ac_save_LIBS"
                   2174: 
                   2175: fi
                   2176: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2177:   echo "$ac_t""yes" 1>&6
                   2178:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   2179: else
                   2180:   echo "$ac_t""no" 1>&6
                   2181: fi
                   2182: 
1.1.1.4   root     2183:     fi
1.1       root     2184: 
                   2185:     # [email protected] says without -lsocket,
1.1.1.4   root     2186:     # socket/setsockopt and other routines are undefined under SCO ODT
                   2187:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   2188:     # on later versions), says [email protected]: it contains
                   2189:     # gethostby* variants that don't use the nameserver (or something).
                   2190:     # -lsocket must be given before -lnsl if both are needed.
                   2191:     # We assume that if connect needs -lnsl, so does gethostbyname.
                   2192:     echo $ac_n "checking for connect""... $ac_c" 1>&6
1.1.1.12! root     2193: echo "configure:2194: checking for connect" >&5
1.1.1.4   root     2194: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
                   2195:   echo $ac_n "(cached) $ac_c" 1>&6
                   2196: else
                   2197:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2198: #line 2199 "configure"
1.1.1.4   root     2199: #include "confdefs.h"
                   2200: /* System header to define __stub macros and hopefully few prototypes,
                   2201:     which can conflict with char connect(); below.  */
                   2202: #include <assert.h>
                   2203: /* Override any gcc2 internal prototype to avoid an error.  */
                   2204: /* We use char because int might match the return type of a gcc2
                   2205:     builtin and then its argument prototype would still apply.  */
                   2206: char connect();
                   2207: 
                   2208: int main() {
                   2209: 
                   2210: /* The GNU C library defines this for functions which it implements
                   2211:     to always fail with ENOSYS.  Some functions are actually named
                   2212:     something starting with __ and the normal name is an alias.  */
                   2213: #if defined (__stub_connect) || defined (__stub___connect)
                   2214: choke me
                   2215: #else
                   2216: connect();
                   2217: #endif
                   2218: 
                   2219: ; return 0; }
                   2220: EOF
1.1.1.12! root     2221: if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2222:   rm -rf conftest*
                   2223:   eval "ac_cv_func_connect=yes"
                   2224: else
                   2225:   echo "configure: failed program was:" >&5
                   2226:   cat conftest.$ac_ext >&5
                   2227:   rm -rf conftest*
                   2228:   eval "ac_cv_func_connect=no"
                   2229: fi
                   2230: rm -f conftest*
                   2231: fi
                   2232: 
                   2233: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
                   2234:   echo "$ac_t""yes" 1>&6
                   2235:   :
                   2236: else
                   2237:   echo "$ac_t""no" 1>&6
                   2238: fi
                   2239: 
                   2240:     if test $ac_cv_func_connect = no; then
                   2241:       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.1.1.12! root     2242: echo "configure:2243: checking for connect in -lsocket" >&5
1.1.1.4   root     2243: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1.1       root     2244: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2245:   echo $ac_n "(cached) $ac_c" 1>&6
                   2246: else
                   2247:   ac_save_LIBS="$LIBS"
1.1.1.4   root     2248: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1       root     2249: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2250: #line 2251 "configure"
1.1       root     2251: #include "confdefs.h"
                   2252: /* Override any gcc2 internal prototype to avoid an error.  */
                   2253: /* We use char because int might match the return type of a gcc2
                   2254:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     2255: char connect();
1.1       root     2256: 
1.1.1.4   root     2257: int main() {
                   2258: connect()
1.1       root     2259: ; return 0; }
                   2260: EOF
1.1.1.12! root     2261: if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2262:   rm -rf conftest*
                   2263:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2264: else
1.1.1.4   root     2265:   echo "configure: failed program was:" >&5
                   2266:   cat conftest.$ac_ext >&5
1.1       root     2267:   rm -rf conftest*
                   2268:   eval "ac_cv_lib_$ac_lib_var=no"
                   2269: fi
                   2270: rm -f conftest*
                   2271: LIBS="$ac_save_LIBS"
                   2272: 
                   2273: fi
                   2274: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2275:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2276:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   2277: else
                   2278:   echo "$ac_t""no" 1>&6
                   2279: fi
                   2280: 
                   2281:     fi
                   2282: 
                   2283:     # [email protected] says -lposix is necessary on A/UX.
                   2284:     echo $ac_n "checking for remove""... $ac_c" 1>&6
1.1.1.12! root     2285: echo "configure:2286: checking for remove" >&5
1.1.1.4   root     2286: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
                   2287:   echo $ac_n "(cached) $ac_c" 1>&6
                   2288: else
                   2289:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2290: #line 2291 "configure"
1.1.1.4   root     2291: #include "confdefs.h"
                   2292: /* System header to define __stub macros and hopefully few prototypes,
                   2293:     which can conflict with char remove(); below.  */
                   2294: #include <assert.h>
                   2295: /* Override any gcc2 internal prototype to avoid an error.  */
                   2296: /* We use char because int might match the return type of a gcc2
                   2297:     builtin and then its argument prototype would still apply.  */
                   2298: char remove();
                   2299: 
                   2300: int main() {
                   2301: 
                   2302: /* The GNU C library defines this for functions which it implements
                   2303:     to always fail with ENOSYS.  Some functions are actually named
                   2304:     something starting with __ and the normal name is an alias.  */
                   2305: #if defined (__stub_remove) || defined (__stub___remove)
                   2306: choke me
                   2307: #else
                   2308: remove();
                   2309: #endif
                   2310: 
                   2311: ; return 0; }
                   2312: EOF
1.1.1.12! root     2313: if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2314:   rm -rf conftest*
                   2315:   eval "ac_cv_func_remove=yes"
                   2316: else
                   2317:   echo "configure: failed program was:" >&5
                   2318:   cat conftest.$ac_ext >&5
                   2319:   rm -rf conftest*
                   2320:   eval "ac_cv_func_remove=no"
                   2321: fi
                   2322: rm -f conftest*
                   2323: fi
                   2324: 
                   2325: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
                   2326:   echo "$ac_t""yes" 1>&6
                   2327:   :
                   2328: else
                   2329:   echo "$ac_t""no" 1>&6
                   2330: fi
                   2331: 
                   2332:     if test $ac_cv_func_remove = no; then
                   2333:       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.1.1.12! root     2334: echo "configure:2335: checking for remove in -lposix" >&5
1.1.1.4   root     2335: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
                   2336: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2337:   echo $ac_n "(cached) $ac_c" 1>&6
                   2338: else
                   2339:   ac_save_LIBS="$LIBS"
                   2340: LIBS="-lposix  $LIBS"
                   2341: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2342: #line 2343 "configure"
1.1.1.4   root     2343: #include "confdefs.h"
                   2344: /* Override any gcc2 internal prototype to avoid an error.  */
                   2345: /* We use char because int might match the return type of a gcc2
                   2346:     builtin and then its argument prototype would still apply.  */
                   2347: char remove();
                   2348: 
                   2349: int main() {
                   2350: remove()
                   2351: ; return 0; }
                   2352: EOF
1.1.1.12! root     2353: if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2354:   rm -rf conftest*
                   2355:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2356: else
                   2357:   echo "configure: failed program was:" >&5
                   2358:   cat conftest.$ac_ext >&5
                   2359:   rm -rf conftest*
                   2360:   eval "ac_cv_lib_$ac_lib_var=no"
                   2361: fi
                   2362: rm -f conftest*
                   2363: LIBS="$ac_save_LIBS"
                   2364: 
                   2365: fi
                   2366: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2367:   echo "$ac_t""yes" 1>&6
                   2368:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
                   2369: else
                   2370:   echo "$ac_t""no" 1>&6
                   2371: fi
                   2372: 
                   2373:     fi
                   2374: 
                   2375:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   2376:     echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.1.1.12! root     2377: echo "configure:2378: checking for shmat" >&5
1.1.1.4   root     2378: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
                   2379:   echo $ac_n "(cached) $ac_c" 1>&6
                   2380: else
                   2381:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2382: #line 2383 "configure"
1.1.1.4   root     2383: #include "confdefs.h"
                   2384: /* System header to define __stub macros and hopefully few prototypes,
                   2385:     which can conflict with char shmat(); below.  */
                   2386: #include <assert.h>
                   2387: /* Override any gcc2 internal prototype to avoid an error.  */
                   2388: /* We use char because int might match the return type of a gcc2
                   2389:     builtin and then its argument prototype would still apply.  */
                   2390: char shmat();
                   2391: 
                   2392: int main() {
                   2393: 
                   2394: /* The GNU C library defines this for functions which it implements
                   2395:     to always fail with ENOSYS.  Some functions are actually named
                   2396:     something starting with __ and the normal name is an alias.  */
                   2397: #if defined (__stub_shmat) || defined (__stub___shmat)
                   2398: choke me
                   2399: #else
                   2400: shmat();
                   2401: #endif
                   2402: 
                   2403: ; return 0; }
                   2404: EOF
1.1.1.12! root     2405: if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2406:   rm -rf conftest*
                   2407:   eval "ac_cv_func_shmat=yes"
                   2408: else
                   2409:   echo "configure: failed program was:" >&5
                   2410:   cat conftest.$ac_ext >&5
                   2411:   rm -rf conftest*
                   2412:   eval "ac_cv_func_shmat=no"
                   2413: fi
                   2414: rm -f conftest*
                   2415: fi
                   2416: 
                   2417: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
                   2418:   echo "$ac_t""yes" 1>&6
                   2419:   :
                   2420: else
                   2421:   echo "$ac_t""no" 1>&6
                   2422: fi
                   2423: 
                   2424:     if test $ac_cv_func_shmat = no; then
                   2425:       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.1.1.12! root     2426: echo "configure:2427: checking for shmat in -lipc" >&5
1.1.1.4   root     2427: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
                   2428: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2429:   echo $ac_n "(cached) $ac_c" 1>&6
                   2430: else
                   2431:   ac_save_LIBS="$LIBS"
                   2432: LIBS="-lipc  $LIBS"
                   2433: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2434: #line 2435 "configure"
1.1.1.4   root     2435: #include "confdefs.h"
                   2436: /* Override any gcc2 internal prototype to avoid an error.  */
                   2437: /* We use char because int might match the return type of a gcc2
                   2438:     builtin and then its argument prototype would still apply.  */
                   2439: char shmat();
                   2440: 
                   2441: int main() {
                   2442: shmat()
                   2443: ; return 0; }
                   2444: EOF
1.1.1.12! root     2445: if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2446:   rm -rf conftest*
                   2447:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2448: else
                   2449:   echo "configure: failed program was:" >&5
                   2450:   cat conftest.$ac_ext >&5
                   2451:   rm -rf conftest*
                   2452:   eval "ac_cv_lib_$ac_lib_var=no"
                   2453: fi
                   2454: rm -f conftest*
                   2455: LIBS="$ac_save_LIBS"
                   2456: 
                   2457: fi
                   2458: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2459:   echo "$ac_t""yes" 1>&6
                   2460:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1       root     2461: else
                   2462:   echo "$ac_t""no" 1>&6
                   2463: fi
                   2464: 
                   2465:     fi
                   2466:   fi
1.1.1.4   root     2467: 
                   2468:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   2469:   ac_save_LDFLAGS="$LDFLAGS"
                   2470:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   2471:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   2472:   # check for ICE first), but we must link in the order -lSM -lICE or
                   2473:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   2474:   # These have to be linked with before -lX11, unlike the other
                   2475:   # libraries we check for below, so use a different variable.
                   2476:   #  [email protected], [email protected].
                   2477:   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.1.1.12! root     2478: echo "configure:2479: checking for IceConnectionNumber in -lICE" >&5
1.1.1.4   root     2479: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
                   2480: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2481:   echo $ac_n "(cached) $ac_c" 1>&6
                   2482: else
                   2483:   ac_save_LIBS="$LIBS"
1.1.1.9   root     2484: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.1.1.4   root     2485: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2486: #line 2487 "configure"
1.1.1.4   root     2487: #include "confdefs.h"
                   2488: /* Override any gcc2 internal prototype to avoid an error.  */
                   2489: /* We use char because int might match the return type of a gcc2
                   2490:     builtin and then its argument prototype would still apply.  */
                   2491: char IceConnectionNumber();
                   2492: 
                   2493: int main() {
                   2494: IceConnectionNumber()
                   2495: ; return 0; }
                   2496: EOF
1.1.1.12! root     2497: if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2498:   rm -rf conftest*
                   2499:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2500: else
                   2501:   echo "configure: failed program was:" >&5
                   2502:   cat conftest.$ac_ext >&5
                   2503:   rm -rf conftest*
                   2504:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       root     2505: fi
1.1.1.4   root     2506: rm -f conftest*
                   2507: LIBS="$ac_save_LIBS"
1.1       root     2508: 
1.1.1.4   root     2509: fi
                   2510: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2511:   echo "$ac_t""yes" 1>&6
                   2512:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   2513: else
                   2514:   echo "$ac_t""no" 1>&6
                   2515: fi
1.1       root     2516: 
1.1.1.4   root     2517:   LDFLAGS="$ac_save_LDFLAGS"
1.1       root     2518: 
1.1.1.3   root     2519: fi
                   2520: 
                   2521: 
1.1.1.4   root     2522: 
1.1       root     2523: ac_header_dirent=no
                   2524: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   2525: do
1.1.1.4   root     2526: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2527: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.1.1.12! root     2528: echo "configure:2529: checking for $ac_hdr that defines DIR" >&5
1.1       root     2529: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   2530:   echo $ac_n "(cached) $ac_c" 1>&6
                   2531: else
                   2532:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2533: #line 2534 "configure"
1.1       root     2534: #include "confdefs.h"
                   2535: #include <sys/types.h>
                   2536: #include <$ac_hdr>
1.1.1.4   root     2537: int main() {
1.1       root     2538: DIR *dirp = 0;
                   2539: ; return 0; }
                   2540: EOF
1.1.1.12! root     2541: if { (eval echo configure:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2542:   rm -rf conftest*
                   2543:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   2544: else
1.1.1.4   root     2545:   echo "configure: failed program was:" >&5
                   2546:   cat conftest.$ac_ext >&5
1.1       root     2547:   rm -rf conftest*
                   2548:   eval "ac_cv_header_dirent_$ac_safe=no"
                   2549: fi
                   2550: rm -f conftest*
                   2551: fi
                   2552: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   2553:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2554:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2555:   cat >> confdefs.h <<EOF
                   2556: #define $ac_tr_hdr 1
                   2557: EOF
                   2558:  ac_header_dirent=$ac_hdr; break
                   2559: else
                   2560:   echo "$ac_t""no" 1>&6
                   2561: fi
                   2562: done
                   2563: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   2564: if test $ac_header_dirent = dirent.h; then
1.1.1.4   root     2565: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.1.1.12! root     2566: echo "configure:2567: checking for opendir in -ldir" >&5
1.1.1.4   root     2567: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     2568: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2569:   echo $ac_n "(cached) $ac_c" 1>&6
                   2570: else
                   2571:   ac_save_LIBS="$LIBS"
                   2572: LIBS="-ldir  $LIBS"
                   2573: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2574: #line 2575 "configure"
1.1       root     2575: #include "confdefs.h"
                   2576: /* Override any gcc2 internal prototype to avoid an error.  */
                   2577: /* We use char because int might match the return type of a gcc2
                   2578:     builtin and then its argument prototype would still apply.  */
                   2579: char opendir();
                   2580: 
1.1.1.4   root     2581: int main() {
1.1       root     2582: opendir()
                   2583: ; return 0; }
                   2584: EOF
1.1.1.12! root     2585: if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2586:   rm -rf conftest*
                   2587:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2588: else
1.1.1.4   root     2589:   echo "configure: failed program was:" >&5
                   2590:   cat conftest.$ac_ext >&5
1.1       root     2591:   rm -rf conftest*
                   2592:   eval "ac_cv_lib_$ac_lib_var=no"
                   2593: fi
                   2594: rm -f conftest*
                   2595: LIBS="$ac_save_LIBS"
                   2596: 
                   2597: fi
                   2598: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2599:   echo "$ac_t""yes" 1>&6
                   2600:   LIBS="$LIBS -ldir"
                   2601: else
                   2602:   echo "$ac_t""no" 1>&6
                   2603: fi
                   2604: 
                   2605: else
1.1.1.4   root     2606: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.1.1.12! root     2607: echo "configure:2608: checking for opendir in -lx" >&5
1.1.1.4   root     2608: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     2609: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2610:   echo $ac_n "(cached) $ac_c" 1>&6
                   2611: else
                   2612:   ac_save_LIBS="$LIBS"
                   2613: LIBS="-lx  $LIBS"
                   2614: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2615: #line 2616 "configure"
1.1       root     2616: #include "confdefs.h"
                   2617: /* Override any gcc2 internal prototype to avoid an error.  */
                   2618: /* We use char because int might match the return type of a gcc2
                   2619:     builtin and then its argument prototype would still apply.  */
                   2620: char opendir();
                   2621: 
1.1.1.4   root     2622: int main() {
1.1       root     2623: opendir()
                   2624: ; return 0; }
                   2625: EOF
1.1.1.12! root     2626: if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2627:   rm -rf conftest*
                   2628:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2629: else
1.1.1.4   root     2630:   echo "configure: failed program was:" >&5
                   2631:   cat conftest.$ac_ext >&5
1.1       root     2632:   rm -rf conftest*
                   2633:   eval "ac_cv_lib_$ac_lib_var=no"
                   2634: fi
                   2635: rm -f conftest*
                   2636: LIBS="$ac_save_LIBS"
                   2637: 
                   2638: fi
                   2639: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2640:   echo "$ac_t""yes" 1>&6
                   2641:   LIBS="$LIBS -lx"
                   2642: else
                   2643:   echo "$ac_t""no" 1>&6
                   2644: fi
                   2645: 
                   2646: fi
                   2647: 
                   2648: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.12! root     2649: echo "configure:2650: checking for ANSI C header files" >&5
1.1       root     2650: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   2651:   echo $ac_n "(cached) $ac_c" 1>&6
                   2652: else
                   2653:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2654: #line 2655 "configure"
1.1       root     2655: #include "confdefs.h"
                   2656: #include <stdlib.h>
                   2657: #include <stdarg.h>
                   2658: #include <string.h>
                   2659: #include <float.h>
                   2660: EOF
                   2661: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2662: { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2663: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2664: if test -z "$ac_err"; then
                   2665:   rm -rf conftest*
                   2666:   ac_cv_header_stdc=yes
                   2667: else
                   2668:   echo "$ac_err" >&5
1.1.1.4   root     2669:   echo "configure: failed program was:" >&5
                   2670:   cat conftest.$ac_ext >&5
1.1       root     2671:   rm -rf conftest*
                   2672:   ac_cv_header_stdc=no
                   2673: fi
                   2674: rm -f conftest*
                   2675: 
                   2676: if test $ac_cv_header_stdc = yes; then
                   2677:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2678: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2679: #line 2680 "configure"
1.1       root     2680: #include "confdefs.h"
                   2681: #include <string.h>
                   2682: EOF
                   2683: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2684:   egrep "memchr" >/dev/null 2>&1; then
                   2685:   :
                   2686: else
                   2687:   rm -rf conftest*
                   2688:   ac_cv_header_stdc=no
                   2689: fi
                   2690: rm -f conftest*
                   2691: 
                   2692: fi
                   2693: 
                   2694: if test $ac_cv_header_stdc = yes; then
                   2695:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2696: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2697: #line 2698 "configure"
1.1       root     2698: #include "confdefs.h"
                   2699: #include <stdlib.h>
                   2700: EOF
                   2701: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2702:   egrep "free" >/dev/null 2>&1; then
                   2703:   :
                   2704: else
                   2705:   rm -rf conftest*
                   2706:   ac_cv_header_stdc=no
                   2707: fi
                   2708: rm -f conftest*
                   2709: 
                   2710: fi
                   2711: 
                   2712: if test $ac_cv_header_stdc = yes; then
                   2713:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2714: if test "$cross_compiling" = yes; then
                   2715:   :
                   2716: else
1.1.1.4   root     2717:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2718: #line 2719 "configure"
1.1       root     2719: #include "confdefs.h"
                   2720: #include <ctype.h>
                   2721: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2722: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2723: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2724: int main () { int i; for (i = 0; i < 256; i++)
                   2725: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2726: exit (0); }
                   2727: 
                   2728: EOF
1.1.1.12! root     2729: if { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     2730: then
1.1       root     2731:   :
                   2732: else
1.1.1.4   root     2733:   echo "configure: failed program was:" >&5
                   2734:   cat conftest.$ac_ext >&5
                   2735:   rm -fr conftest*
1.1       root     2736:   ac_cv_header_stdc=no
                   2737: fi
                   2738: rm -fr conftest*
                   2739: fi
1.1.1.4   root     2740: 
                   2741: fi
1.1       root     2742: fi
                   2743: 
                   2744: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2745: if test $ac_cv_header_stdc = yes; then
                   2746:   cat >> confdefs.h <<\EOF
                   2747: #define STDC_HEADERS 1
                   2748: EOF
                   2749: 
                   2750: fi
                   2751: 
1.1.1.4   root     2752: 
                   2753: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
                   2754: do
                   2755: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2756: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2757: echo "configure:2758: checking for $ac_hdr" >&5
1.1.1.4   root     2758: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2759:   echo $ac_n "(cached) $ac_c" 1>&6
                   2760: else
                   2761:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2762: #line 2763 "configure"
1.1.1.4   root     2763: #include "confdefs.h"
                   2764: #include <$ac_hdr>
                   2765: EOF
                   2766: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2767: { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2768: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     2769: if test -z "$ac_err"; then
                   2770:   rm -rf conftest*
                   2771:   eval "ac_cv_header_$ac_safe=yes"
                   2772: else
                   2773:   echo "$ac_err" >&5
                   2774:   echo "configure: failed program was:" >&5
                   2775:   cat conftest.$ac_ext >&5
                   2776:   rm -rf conftest*
                   2777:   eval "ac_cv_header_$ac_safe=no"
                   2778: fi
                   2779: rm -f conftest*
                   2780: fi
                   2781: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2782:   echo "$ac_t""yes" 1>&6
                   2783:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2784:   cat >> confdefs.h <<EOF
                   2785: #define $ac_tr_hdr 1
                   2786: EOF
                   2787:  
                   2788: else
                   2789:   echo "$ac_t""no" 1>&6
                   2790: fi
                   2791: done
                   2792: 
1.1.1.6   root     2793: for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1       root     2794: do
1.1.1.4   root     2795: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2796: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2797: echo "configure:2798: checking for $ac_hdr" >&5
1.1       root     2798: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2799:   echo $ac_n "(cached) $ac_c" 1>&6
                   2800: else
                   2801:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2802: #line 2803 "configure"
1.1       root     2803: #include "confdefs.h"
                   2804: #include <$ac_hdr>
                   2805: EOF
                   2806: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2807: { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.10  root     2808: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2809: if test -z "$ac_err"; then
                   2810:   rm -rf conftest*
                   2811:   eval "ac_cv_header_$ac_safe=yes"
                   2812: else
                   2813:   echo "$ac_err" >&5
                   2814:   echo "configure: failed program was:" >&5
                   2815:   cat conftest.$ac_ext >&5
                   2816:   rm -rf conftest*
                   2817:   eval "ac_cv_header_$ac_safe=no"
                   2818: fi
                   2819: rm -f conftest*
                   2820: fi
                   2821: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2822:   echo "$ac_t""yes" 1>&6
                   2823:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2824:   cat >> confdefs.h <<EOF
                   2825: #define $ac_tr_hdr 1
                   2826: EOF
                   2827:  
                   2828: else
                   2829:   echo "$ac_t""no" 1>&6
                   2830: fi
                   2831: done
                   2832: 
                   2833: for ac_hdr in scsi/sg.h
                   2834: do
                   2835: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2836: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2837: echo "configure:2838: checking for $ac_hdr" >&5
1.1.1.10  root     2838: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2839:   echo $ac_n "(cached) $ac_c" 1>&6
                   2840: else
                   2841:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2842: #line 2843 "configure"
1.1.1.10  root     2843: #include "confdefs.h"
                   2844: #include <$ac_hdr>
                   2845: EOF
                   2846: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2847: { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2848: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2849: if test -z "$ac_err"; then
                   2850:   rm -rf conftest*
                   2851:   eval "ac_cv_header_$ac_safe=yes"
                   2852: else
                   2853:   echo "$ac_err" >&5
1.1.1.4   root     2854:   echo "configure: failed program was:" >&5
                   2855:   cat conftest.$ac_ext >&5
1.1       root     2856:   rm -rf conftest*
                   2857:   eval "ac_cv_header_$ac_safe=no"
                   2858: fi
                   2859: rm -f conftest*
                   2860: fi
                   2861: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2862:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2863:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2864:   cat >> confdefs.h <<EOF
                   2865: #define $ac_tr_hdr 1
                   2866: EOF
                   2867:  
                   2868: else
                   2869:   echo "$ac_t""no" 1>&6
                   2870: fi
                   2871: done
                   2872: 
1.1.1.6   root     2873: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1       root     2874: do
1.1.1.4   root     2875: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2876: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2877: echo "configure:2878: checking for $ac_hdr" >&5
1.1       root     2878: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2879:   echo $ac_n "(cached) $ac_c" 1>&6
                   2880: else
                   2881:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2882: #line 2883 "configure"
1.1.1.3   root     2883: #include "confdefs.h"
                   2884: #include <$ac_hdr>
                   2885: EOF
                   2886: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2887: { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2888: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.3   root     2889: if test -z "$ac_err"; then
                   2890:   rm -rf conftest*
                   2891:   eval "ac_cv_header_$ac_safe=yes"
                   2892: else
                   2893:   echo "$ac_err" >&5
1.1.1.4   root     2894:   echo "configure: failed program was:" >&5
                   2895:   cat conftest.$ac_ext >&5
1.1.1.3   root     2896:   rm -rf conftest*
                   2897:   eval "ac_cv_header_$ac_safe=no"
                   2898: fi
                   2899: rm -f conftest*
                   2900: fi
                   2901: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2902:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2903:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.3   root     2904:   cat >> confdefs.h <<EOF
                   2905: #define $ac_tr_hdr 1
                   2906: EOF
                   2907:  
                   2908: else
                   2909:   echo "$ac_t""no" 1>&6
                   2910: fi
                   2911: done
                   2912: 
1.1.1.6   root     2913: for ac_hdr in ggi/libggi.h
1.1.1.3   root     2914: do
1.1.1.4   root     2915: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1.1.3   root     2916: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2917: echo "configure:2918: checking for $ac_hdr" >&5
1.1.1.3   root     2918: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2919:   echo $ac_n "(cached) $ac_c" 1>&6
                   2920: else
                   2921:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2922: #line 2923 "configure"
1.1       root     2923: #include "confdefs.h"
                   2924: #include <$ac_hdr>
                   2925: EOF
                   2926: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2927: { (eval echo configure:2928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2928: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2929: if test -z "$ac_err"; then
                   2930:   rm -rf conftest*
                   2931:   eval "ac_cv_header_$ac_safe=yes"
                   2932: else
                   2933:   echo "$ac_err" >&5
1.1.1.4   root     2934:   echo "configure: failed program was:" >&5
                   2935:   cat conftest.$ac_ext >&5
1.1       root     2936:   rm -rf conftest*
                   2937:   eval "ac_cv_header_$ac_safe=no"
                   2938: fi
                   2939: rm -f conftest*
                   2940: fi
                   2941: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2942:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2943:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2944:   cat >> confdefs.h <<EOF
                   2945: #define $ac_tr_hdr 1
                   2946: EOF
                   2947:  
                   2948: else
                   2949:   echo "$ac_t""no" 1>&6
                   2950: fi
                   2951: done
                   2952: 
1.1.1.6   root     2953: for ac_hdr in windows.h ddraw.h
1.1.1.4   root     2954: do
                   2955: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2956: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     2957: echo "configure:2958: checking for $ac_hdr" >&5
1.1.1.4   root     2958: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2959:   echo $ac_n "(cached) $ac_c" 1>&6
                   2960: else
                   2961:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     2962: #line 2963 "configure"
1.1.1.4   root     2963: #include "confdefs.h"
                   2964: #include <$ac_hdr>
                   2965: EOF
                   2966: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     2967: { (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2968: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     2969: if test -z "$ac_err"; then
                   2970:   rm -rf conftest*
                   2971:   eval "ac_cv_header_$ac_safe=yes"
                   2972: else
                   2973:   echo "$ac_err" >&5
                   2974:   echo "configure: failed program was:" >&5
                   2975:   cat conftest.$ac_ext >&5
                   2976:   rm -rf conftest*
                   2977:   eval "ac_cv_header_$ac_safe=no"
                   2978: fi
                   2979: rm -f conftest*
                   2980: fi
                   2981: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2982:   echo "$ac_t""yes" 1>&6
                   2983:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2984:   cat >> confdefs.h <<EOF
                   2985: #define $ac_tr_hdr 1
                   2986: EOF
                   2987:  
                   2988: else
                   2989:   echo "$ac_t""no" 1>&6
                   2990: fi
                   2991: done
1.1       root     2992: 
1.1.1.4   root     2993: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'`
                   2994: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6
1.1.1.12! root     2995: echo "configure:2996: checking for be_math.h" >&5
1.1.1.4   root     2996: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2997:   echo $ac_n "(cached) $ac_c" 1>&6
                   2998: else
                   2999:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3000: #line 3001 "configure"
1.1.1.4   root     3001: #include "confdefs.h"
                   3002: #include <be_math.h>
                   3003: EOF
                   3004: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     3005: { (eval echo configure:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3006: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     3007: if test -z "$ac_err"; then
                   3008:   rm -rf conftest*
                   3009:   eval "ac_cv_header_$ac_safe=yes"
                   3010: else
                   3011:   echo "$ac_err" >&5
                   3012:   echo "configure: failed program was:" >&5
                   3013:   cat conftest.$ac_ext >&5
                   3014:   rm -rf conftest*
                   3015:   eval "ac_cv_header_$ac_safe=no"
                   3016: fi
                   3017: rm -f conftest*
                   3018: fi
                   3019: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3020:   echo "$ac_t""yes" 1>&6
                   3021:   HAVE_BEOS=yes
                   3022: else
                   3023:   echo "$ac_t""no" 1>&6
                   3024: HAVE_BEOS=no
1.1       root     3025: fi
                   3026: 
1.1.1.6   root     3027: for ac_hdr in machine/joystick.h
                   3028: do
                   3029: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3030: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     3031: echo "configure:3032: checking for $ac_hdr" >&5
1.1.1.6   root     3032: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1       root     3033:   echo $ac_n "(cached) $ac_c" 1>&6
                   3034: else
1.1.1.4   root     3035:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3036: #line 3037 "configure"
1.1       root     3037: #include "confdefs.h"
1.1.1.6   root     3038: #include <$ac_hdr>
1.1       root     3039: EOF
1.1.1.6   root     3040: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     3041: { (eval echo configure:3042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3042: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3043: if test -z "$ac_err"; then
                   3044:   rm -rf conftest*
                   3045:   eval "ac_cv_header_$ac_safe=yes"
1.1       root     3046: else
1.1.1.6   root     3047:   echo "$ac_err" >&5
1.1.1.4   root     3048:   echo "configure: failed program was:" >&5
                   3049:   cat conftest.$ac_ext >&5
1.1.1.6   root     3050:   rm -rf conftest*
                   3051:   eval "ac_cv_header_$ac_safe=no"
1.1       root     3052: fi
1.1.1.6   root     3053: rm -f conftest*
1.1.1.4   root     3054: fi
1.1.1.6   root     3055: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3056:   echo "$ac_t""yes" 1>&6
                   3057:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3058:   cat >> confdefs.h <<EOF
                   3059: #define $ac_tr_hdr 1
1.1       root     3060: EOF
1.1.1.6   root     3061:  
                   3062: else
                   3063:   echo "$ac_t""no" 1>&6
                   3064: fi
                   3065: done
1.1       root     3066: 
1.1.1.6   root     3067: for ac_hdr in devices/ahi.h
                   3068: do
                   3069: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3070: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     3071: echo "configure:3072: checking for $ac_hdr" >&5
1.1.1.6   root     3072: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1       root     3073:   echo $ac_n "(cached) $ac_c" 1>&6
                   3074: else
1.1.1.4   root     3075:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3076: #line 3077 "configure"
1.1       root     3077: #include "confdefs.h"
1.1.1.6   root     3078: #include <$ac_hdr>
1.1       root     3079: EOF
1.1.1.6   root     3080: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     3081: { (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3082: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.8   root     3083: if test -z "$ac_err"; then
                   3084:   rm -rf conftest*
                   3085:   eval "ac_cv_header_$ac_safe=yes"
                   3086: else
                   3087:   echo "$ac_err" >&5
                   3088:   echo "configure: failed program was:" >&5
                   3089:   cat conftest.$ac_ext >&5
                   3090:   rm -rf conftest*
                   3091:   eval "ac_cv_header_$ac_safe=no"
                   3092: fi
                   3093: rm -f conftest*
                   3094: fi
                   3095: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3096:   echo "$ac_t""yes" 1>&6
                   3097:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3098:   cat >> confdefs.h <<EOF
                   3099: #define $ac_tr_hdr 1
                   3100: EOF
                   3101:  
                   3102: else
                   3103:   echo "$ac_t""no" 1>&6
                   3104: fi
                   3105: done
                   3106: 
                   3107: for ac_hdr in dmedia/audio.h
                   3108: do
                   3109: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3110: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     3111: echo "configure:3112: checking for $ac_hdr" >&5
1.1.1.8   root     3112: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   3113:   echo $ac_n "(cached) $ac_c" 1>&6
                   3114: else
                   3115:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3116: #line 3117 "configure"
1.1.1.8   root     3117: #include "confdefs.h"
                   3118: #include <$ac_hdr>
                   3119: EOF
                   3120: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     3121: { (eval echo configure:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3122: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3123: if test -z "$ac_err"; then
                   3124:   rm -rf conftest*
                   3125:   eval "ac_cv_header_$ac_safe=yes"
1.1       root     3126: else
1.1.1.6   root     3127:   echo "$ac_err" >&5
1.1.1.4   root     3128:   echo "configure: failed program was:" >&5
                   3129:   cat conftest.$ac_ext >&5
1.1.1.6   root     3130:   rm -rf conftest*
                   3131:   eval "ac_cv_header_$ac_safe=no"
                   3132: fi
                   3133: rm -f conftest*
                   3134: fi
                   3135: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3136:   echo "$ac_t""yes" 1>&6
                   3137:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3138:   cat >> confdefs.h <<EOF
                   3139: #define $ac_tr_hdr 1
                   3140: EOF
                   3141:  
                   3142: else
                   3143:   echo "$ac_t""no" 1>&6
                   3144: fi
                   3145: done
                   3146: 
                   3147: for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h
                   3148: do
                   3149: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3150: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     3151: echo "configure:3152: checking for $ac_hdr" >&5
1.1.1.6   root     3152: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   3153:   echo $ac_n "(cached) $ac_c" 1>&6
                   3154: else
                   3155:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3156: #line 3157 "configure"
1.1.1.6   root     3157: #include "confdefs.h"
                   3158: #include <$ac_hdr>
                   3159: EOF
                   3160: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     3161: { (eval echo configure:3162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3162: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3163: if test -z "$ac_err"; then
                   3164:   rm -rf conftest*
                   3165:   eval "ac_cv_header_$ac_safe=yes"
                   3166: else
                   3167:   echo "$ac_err" >&5
                   3168:   echo "configure: failed program was:" >&5
                   3169:   cat conftest.$ac_ext >&5
                   3170:   rm -rf conftest*
                   3171:   eval "ac_cv_header_$ac_safe=no"
                   3172: fi
                   3173: rm -f conftest*
                   3174: fi
                   3175: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3176:   echo "$ac_t""yes" 1>&6
                   3177:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3178:   cat >> confdefs.h <<EOF
                   3179: #define $ac_tr_hdr 1
                   3180: EOF
                   3181:  
                   3182: else
                   3183:   echo "$ac_t""no" 1>&6
                   3184: fi
                   3185: done
                   3186: 
                   3187: 
                   3188: echo $ac_n "checking size of char""... $ac_c" 1>&6
1.1.1.12! root     3189: echo "configure:3190: checking size of char" >&5
1.1.1.6   root     3190: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
                   3191:   echo $ac_n "(cached) $ac_c" 1>&6
                   3192: else
                   3193:   if test "$cross_compiling" = yes; then
                   3194:   ac_cv_sizeof_char=1
                   3195: else
                   3196:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3197: #line 3198 "configure"
1.1.1.6   root     3198: #include "confdefs.h"
                   3199: #include <stdio.h>
                   3200: main()
                   3201: {
                   3202:   FILE *f=fopen("conftestval", "w");
                   3203:   if (!f) exit(1);
                   3204:   fprintf(f, "%d\n", sizeof(char));
                   3205:   exit(0);
                   3206: }
                   3207: EOF
1.1.1.12! root     3208: if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3209: then
                   3210:   ac_cv_sizeof_char=`cat conftestval`
                   3211: else
                   3212:   echo "configure: failed program was:" >&5
                   3213:   cat conftest.$ac_ext >&5
                   3214:   rm -fr conftest*
                   3215:   ac_cv_sizeof_char=0
                   3216: fi
                   3217: rm -fr conftest*
                   3218: fi
                   3219: 
                   3220: fi
                   3221: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
                   3222: cat >> confdefs.h <<EOF
                   3223: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   3224: EOF
                   3225: 
                   3226: 
                   3227: echo $ac_n "checking size of short""... $ac_c" 1>&6
1.1.1.12! root     3228: echo "configure:3229: checking size of short" >&5
1.1.1.6   root     3229: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
                   3230:   echo $ac_n "(cached) $ac_c" 1>&6
                   3231: else
                   3232:   if test "$cross_compiling" = yes; then
                   3233:   ac_cv_sizeof_short=2
                   3234: else
                   3235:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3236: #line 3237 "configure"
1.1.1.6   root     3237: #include "confdefs.h"
                   3238: #include <stdio.h>
                   3239: main()
                   3240: {
                   3241:   FILE *f=fopen("conftestval", "w");
                   3242:   if (!f) exit(1);
                   3243:   fprintf(f, "%d\n", sizeof(short));
                   3244:   exit(0);
                   3245: }
                   3246: EOF
1.1.1.12! root     3247: if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3248: then
                   3249:   ac_cv_sizeof_short=`cat conftestval`
                   3250: else
                   3251:   echo "configure: failed program was:" >&5
                   3252:   cat conftest.$ac_ext >&5
                   3253:   rm -fr conftest*
                   3254:   ac_cv_sizeof_short=0
1.1       root     3255: fi
                   3256: rm -fr conftest*
                   3257: fi
1.1.1.4   root     3258: 
                   3259: fi
1.1       root     3260: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
                   3261: cat >> confdefs.h <<EOF
                   3262: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   3263: EOF
                   3264: 
                   3265: 
                   3266: echo $ac_n "checking size of int""... $ac_c" 1>&6
1.1.1.12! root     3267: echo "configure:3268: checking size of int" >&5
1.1       root     3268: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
                   3269:   echo $ac_n "(cached) $ac_c" 1>&6
                   3270: else
                   3271:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3272:   ac_cv_sizeof_int=4
1.1       root     3273: else
1.1.1.4   root     3274:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3275: #line 3276 "configure"
1.1       root     3276: #include "confdefs.h"
                   3277: #include <stdio.h>
                   3278: main()
                   3279: {
                   3280:   FILE *f=fopen("conftestval", "w");
                   3281:   if (!f) exit(1);
                   3282:   fprintf(f, "%d\n", sizeof(int));
                   3283:   exit(0);
                   3284: }
                   3285: EOF
1.1.1.12! root     3286: if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3287: then
1.1       root     3288:   ac_cv_sizeof_int=`cat conftestval`
                   3289: else
1.1.1.4   root     3290:   echo "configure: failed program was:" >&5
                   3291:   cat conftest.$ac_ext >&5
                   3292:   rm -fr conftest*
1.1       root     3293:   ac_cv_sizeof_int=0
                   3294: fi
                   3295: rm -fr conftest*
                   3296: fi
1.1.1.4   root     3297: 
                   3298: fi
1.1       root     3299: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
                   3300: cat >> confdefs.h <<EOF
                   3301: #define SIZEOF_INT $ac_cv_sizeof_int
                   3302: EOF
                   3303: 
                   3304: 
                   3305: echo $ac_n "checking size of long""... $ac_c" 1>&6
1.1.1.12! root     3306: echo "configure:3307: checking size of long" >&5
1.1       root     3307: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
                   3308:   echo $ac_n "(cached) $ac_c" 1>&6
                   3309: else
                   3310:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3311:   ac_cv_sizeof_long=4
1.1       root     3312: else
1.1.1.4   root     3313:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3314: #line 3315 "configure"
1.1       root     3315: #include "confdefs.h"
                   3316: #include <stdio.h>
                   3317: main()
                   3318: {
                   3319:   FILE *f=fopen("conftestval", "w");
                   3320:   if (!f) exit(1);
                   3321:   fprintf(f, "%d\n", sizeof(long));
                   3322:   exit(0);
                   3323: }
                   3324: EOF
1.1.1.12! root     3325: if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3326: then
1.1       root     3327:   ac_cv_sizeof_long=`cat conftestval`
                   3328: else
1.1.1.4   root     3329:   echo "configure: failed program was:" >&5
                   3330:   cat conftest.$ac_ext >&5
                   3331:   rm -fr conftest*
1.1       root     3332:   ac_cv_sizeof_long=0
                   3333: fi
                   3334: rm -fr conftest*
                   3335: fi
1.1.1.4   root     3336: 
                   3337: fi
1.1       root     3338: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
                   3339: cat >> confdefs.h <<EOF
                   3340: #define SIZEOF_LONG $ac_cv_sizeof_long
                   3341: EOF
                   3342: 
                   3343: 
                   3344: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1.1.1.12! root     3345: echo "configure:3346: checking size of long long" >&5
1.1       root     3346: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
                   3347:   echo $ac_n "(cached) $ac_c" 1>&6
                   3348: else
                   3349:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3350:   ac_cv_sizeof_long_long=8
1.1       root     3351: else
1.1.1.4   root     3352:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3353: #line 3354 "configure"
1.1       root     3354: #include "confdefs.h"
                   3355: #include <stdio.h>
                   3356: main()
                   3357: {
                   3358:   FILE *f=fopen("conftestval", "w");
                   3359:   if (!f) exit(1);
                   3360:   fprintf(f, "%d\n", sizeof(long long));
                   3361:   exit(0);
                   3362: }
                   3363: EOF
1.1.1.12! root     3364: if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3365: then
1.1       root     3366:   ac_cv_sizeof_long_long=`cat conftestval`
                   3367: else
1.1.1.4   root     3368:   echo "configure: failed program was:" >&5
                   3369:   cat conftest.$ac_ext >&5
                   3370:   rm -fr conftest*
1.1       root     3371:   ac_cv_sizeof_long_long=0
                   3372: fi
                   3373: rm -fr conftest*
                   3374: fi
1.1.1.4   root     3375: 
                   3376: fi
1.1       root     3377: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
                   3378: cat >> confdefs.h <<EOF
                   3379: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   3380: EOF
                   3381: 
                   3382: 
1.1.1.6   root     3383: echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1.1.1.12! root     3384: echo "configure:3385: checking size of __int64" >&5
1.1.1.6   root     3385: if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
                   3386:   echo $ac_n "(cached) $ac_c" 1>&6
                   3387: else
                   3388:   if test "$cross_compiling" = yes; then
                   3389:   ac_cv_sizeof___int64=8
                   3390: else
                   3391:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3392: #line 3393 "configure"
1.1.1.6   root     3393: #include "confdefs.h"
                   3394: #include <stdio.h>
                   3395: main()
                   3396: {
                   3397:   FILE *f=fopen("conftestval", "w");
                   3398:   if (!f) exit(1);
                   3399:   fprintf(f, "%d\n", sizeof(__int64));
                   3400:   exit(0);
                   3401: }
                   3402: EOF
1.1.1.12! root     3403: if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3404: then
                   3405:   ac_cv_sizeof___int64=`cat conftestval`
                   3406: else
                   3407:   echo "configure: failed program was:" >&5
                   3408:   cat conftest.$ac_ext >&5
                   3409:   rm -fr conftest*
                   3410:   ac_cv_sizeof___int64=0
                   3411: fi
                   3412: rm -fr conftest*
                   3413: fi
                   3414: 
                   3415: fi
                   3416: echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
                   3417: cat >> confdefs.h <<EOF
                   3418: #define SIZEOF___INT64 $ac_cv_sizeof___int64
                   3419: EOF
                   3420: 
                   3421: 
1.1       root     3422: 
                   3423: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.12! root     3424: echo "configure:3425: checking for working const" >&5
1.1       root     3425: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   3426:   echo $ac_n "(cached) $ac_c" 1>&6
                   3427: else
                   3428:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3429: #line 3430 "configure"
1.1       root     3430: #include "confdefs.h"
                   3431: 
1.1.1.4   root     3432: int main() {
1.1       root     3433: 
                   3434: /* Ultrix mips cc rejects this.  */
                   3435: typedef int charset[2]; const charset x;
                   3436: /* SunOS 4.1.1 cc rejects this.  */
                   3437: char const *const *ccp;
                   3438: char **p;
                   3439: /* NEC SVR4.0.2 mips cc rejects this.  */
                   3440: struct point {int x, y;};
                   3441: static struct point const zero = {0,0};
                   3442: /* AIX XL C 1.02.0.0 rejects this.
                   3443:    It does not let you subtract one const X* pointer from another in an arm
                   3444:    of an if-expression whose if-part is not a constant expression */
                   3445: const char *g = "string";
                   3446: ccp = &g + (g ? g-g : 0);
                   3447: /* HPUX 7.0 cc rejects these. */
                   3448: ++ccp;
                   3449: p = (char**) ccp;
                   3450: ccp = (char const *const *) p;
                   3451: { /* SCO 3.2v4 cc rejects this.  */
                   3452:   char *t;
                   3453:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   3454: 
                   3455:   *t++ = 0;
                   3456: }
                   3457: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   3458:   int x[] = {25, 17};
                   3459:   const int *foo = &x[0];
                   3460:   ++foo;
                   3461: }
                   3462: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   3463:   typedef const int *iptr;
                   3464:   iptr p = 0;
                   3465:   ++p;
                   3466: }
                   3467: { /* AIX XL C 1.02.0.0 rejects this saying
                   3468:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   3469:   struct s { int j; const int *ap[3]; };
                   3470:   struct s *b; b->j = 5;
                   3471: }
                   3472: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   3473:   const int foo = 10;
                   3474: }
                   3475: 
                   3476: ; return 0; }
                   3477: EOF
1.1.1.12! root     3478: if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3479:   rm -rf conftest*
                   3480:   ac_cv_c_const=yes
                   3481: else
1.1.1.4   root     3482:   echo "configure: failed program was:" >&5
                   3483:   cat conftest.$ac_ext >&5
1.1       root     3484:   rm -rf conftest*
                   3485:   ac_cv_c_const=no
                   3486: fi
                   3487: rm -f conftest*
                   3488: fi
                   3489: 
                   3490: echo "$ac_t""$ac_cv_c_const" 1>&6
                   3491: if test $ac_cv_c_const = no; then
                   3492:   cat >> confdefs.h <<\EOF
                   3493: #define const 
                   3494: EOF
                   3495: 
                   3496: fi
                   3497: 
                   3498: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.12! root     3499: echo "configure:3500: checking for inline" >&5
1.1       root     3500: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   3501:   echo $ac_n "(cached) $ac_c" 1>&6
                   3502: else
                   3503:   ac_cv_c_inline=no
                   3504: for ac_kw in inline __inline__ __inline; do
                   3505:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3506: #line 3507 "configure"
1.1       root     3507: #include "confdefs.h"
                   3508: 
1.1.1.4   root     3509: int main() {
1.1       root     3510: } $ac_kw foo() {
                   3511: ; return 0; }
                   3512: EOF
1.1.1.12! root     3513: if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3514:   rm -rf conftest*
                   3515:   ac_cv_c_inline=$ac_kw; break
1.1.1.4   root     3516: else
                   3517:   echo "configure: failed program was:" >&5
                   3518:   cat conftest.$ac_ext >&5
1.1       root     3519: fi
                   3520: rm -f conftest*
                   3521: done
                   3522: 
                   3523: fi
                   3524: 
                   3525: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   3526: case "$ac_cv_c_inline" in
                   3527:   inline | yes) ;;
                   3528:   no) cat >> confdefs.h <<\EOF
                   3529: #define inline 
                   3530: EOF
                   3531:  ;;
                   3532:   *)  cat >> confdefs.h <<EOF
                   3533: #define inline $ac_cv_c_inline
                   3534: EOF
                   3535:  ;;
                   3536: esac
                   3537: 
1.1.1.4   root     3538: if [ "x$ac_cv_c_inline" = "xno" ]; then
                   3539:   ac_cv_c_inline=
                   3540: fi
1.1       root     3541: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.1.1.12! root     3542: echo "configure:3543: checking for mode_t" >&5
1.1       root     3543: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   3544:   echo $ac_n "(cached) $ac_c" 1>&6
                   3545: else
                   3546:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3547: #line 3548 "configure"
1.1       root     3548: #include "confdefs.h"
                   3549: #include <sys/types.h>
                   3550: #if STDC_HEADERS
                   3551: #include <stdlib.h>
1.1.1.4   root     3552: #include <stddef.h>
1.1       root     3553: #endif
                   3554: EOF
                   3555: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3556:   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3557:   rm -rf conftest*
                   3558:   ac_cv_type_mode_t=yes
                   3559: else
                   3560:   rm -rf conftest*
                   3561:   ac_cv_type_mode_t=no
                   3562: fi
                   3563: rm -f conftest*
                   3564: 
                   3565: fi
                   3566: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   3567: if test $ac_cv_type_mode_t = no; then
                   3568:   cat >> confdefs.h <<\EOF
                   3569: #define mode_t int
                   3570: EOF
                   3571: 
                   3572: fi
                   3573: 
                   3574: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.1.1.12! root     3575: echo "configure:3576: checking for off_t" >&5
1.1       root     3576: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
                   3577:   echo $ac_n "(cached) $ac_c" 1>&6
                   3578: else
                   3579:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3580: #line 3581 "configure"
1.1       root     3581: #include "confdefs.h"
                   3582: #include <sys/types.h>
                   3583: #if STDC_HEADERS
                   3584: #include <stdlib.h>
1.1.1.4   root     3585: #include <stddef.h>
1.1       root     3586: #endif
                   3587: EOF
                   3588: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3589:   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3590:   rm -rf conftest*
                   3591:   ac_cv_type_off_t=yes
                   3592: else
                   3593:   rm -rf conftest*
                   3594:   ac_cv_type_off_t=no
                   3595: fi
                   3596: rm -f conftest*
                   3597: 
                   3598: fi
                   3599: echo "$ac_t""$ac_cv_type_off_t" 1>&6
                   3600: if test $ac_cv_type_off_t = no; then
                   3601:   cat >> confdefs.h <<\EOF
                   3602: #define off_t long
                   3603: EOF
                   3604: 
                   3605: fi
                   3606: 
                   3607: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1.1.1.12! root     3608: echo "configure:3609: checking for pid_t" >&5
1.1       root     3609: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
                   3610:   echo $ac_n "(cached) $ac_c" 1>&6
                   3611: else
                   3612:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3613: #line 3614 "configure"
1.1       root     3614: #include "confdefs.h"
                   3615: #include <sys/types.h>
                   3616: #if STDC_HEADERS
                   3617: #include <stdlib.h>
1.1.1.4   root     3618: #include <stddef.h>
1.1       root     3619: #endif
                   3620: EOF
                   3621: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3622:   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3623:   rm -rf conftest*
                   3624:   ac_cv_type_pid_t=yes
                   3625: else
                   3626:   rm -rf conftest*
                   3627:   ac_cv_type_pid_t=no
                   3628: fi
                   3629: rm -f conftest*
                   3630: 
                   3631: fi
                   3632: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
                   3633: if test $ac_cv_type_pid_t = no; then
                   3634:   cat >> confdefs.h <<\EOF
                   3635: #define pid_t int
                   3636: EOF
                   3637: 
                   3638: fi
                   3639: 
                   3640: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1.1.1.12! root     3641: echo "configure:3642: checking for st_blocks in struct stat" >&5
1.1       root     3642: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
                   3643:   echo $ac_n "(cached) $ac_c" 1>&6
                   3644: else
                   3645:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3646: #line 3647 "configure"
1.1       root     3647: #include "confdefs.h"
                   3648: #include <sys/types.h>
                   3649: #include <sys/stat.h>
1.1.1.4   root     3650: int main() {
1.1       root     3651: struct stat s; s.st_blocks;
                   3652: ; return 0; }
                   3653: EOF
1.1.1.12! root     3654: if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3655:   rm -rf conftest*
                   3656:   ac_cv_struct_st_blocks=yes
                   3657: else
1.1.1.4   root     3658:   echo "configure: failed program was:" >&5
                   3659:   cat conftest.$ac_ext >&5
1.1       root     3660:   rm -rf conftest*
                   3661:   ac_cv_struct_st_blocks=no
                   3662: fi
                   3663: rm -f conftest*
                   3664: fi
                   3665: 
                   3666: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
                   3667: if test $ac_cv_struct_st_blocks = yes; then
                   3668:   cat >> confdefs.h <<\EOF
                   3669: #define HAVE_ST_BLOCKS 1
                   3670: EOF
                   3671: 
                   3672: else
1.1.1.9   root     3673:   LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
1.1       root     3674: fi
                   3675: 
                   3676: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.1.1.12! root     3677: echo "configure:3678: checking whether time.h and sys/time.h may both be included" >&5
1.1       root     3678: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   3679:   echo $ac_n "(cached) $ac_c" 1>&6
                   3680: else
                   3681:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3682: #line 3683 "configure"
1.1       root     3683: #include "confdefs.h"
                   3684: #include <sys/types.h>
                   3685: #include <sys/time.h>
                   3686: #include <time.h>
1.1.1.4   root     3687: int main() {
1.1       root     3688: struct tm *tp;
                   3689: ; return 0; }
                   3690: EOF
1.1.1.12! root     3691: if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3692:   rm -rf conftest*
                   3693:   ac_cv_header_time=yes
                   3694: else
1.1.1.4   root     3695:   echo "configure: failed program was:" >&5
                   3696:   cat conftest.$ac_ext >&5
1.1       root     3697:   rm -rf conftest*
                   3698:   ac_cv_header_time=no
                   3699: fi
                   3700: rm -f conftest*
                   3701: fi
                   3702: 
                   3703: echo "$ac_t""$ac_cv_header_time" 1>&6
                   3704: if test $ac_cv_header_time = yes; then
                   3705:   cat >> confdefs.h <<\EOF
                   3706: #define TIME_WITH_SYS_TIME 1
                   3707: EOF
                   3708: 
                   3709: fi
                   3710: 
                   3711: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.1.1.12! root     3712: echo "configure:3713: checking whether struct tm is in sys/time.h or time.h" >&5
1.1       root     3713: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
                   3714:   echo $ac_n "(cached) $ac_c" 1>&6
                   3715: else
                   3716:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3717: #line 3718 "configure"
1.1       root     3718: #include "confdefs.h"
                   3719: #include <sys/types.h>
                   3720: #include <time.h>
1.1.1.4   root     3721: int main() {
1.1       root     3722: struct tm *tp; tp->tm_sec;
                   3723: ; return 0; }
                   3724: EOF
1.1.1.12! root     3725: if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3726:   rm -rf conftest*
                   3727:   ac_cv_struct_tm=time.h
                   3728: else
1.1.1.4   root     3729:   echo "configure: failed program was:" >&5
                   3730:   cat conftest.$ac_ext >&5
1.1       root     3731:   rm -rf conftest*
                   3732:   ac_cv_struct_tm=sys/time.h
                   3733: fi
                   3734: rm -f conftest*
                   3735: fi
                   3736: 
                   3737: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   3738: if test $ac_cv_struct_tm = sys/time.h; then
                   3739:   cat >> confdefs.h <<\EOF
                   3740: #define TM_IN_SYS_TIME 1
                   3741: EOF
                   3742: 
                   3743: fi
                   3744: 
                   3745: 
                   3746: if test $ac_cv_prog_gcc = yes; then
                   3747:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.1.1.12! root     3748: echo "configure:3749: checking whether ${CC-cc} needs -traditional" >&5
1.1       root     3749: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   3750:   echo $ac_n "(cached) $ac_c" 1>&6
                   3751: else
                   3752:     ac_pattern="Autoconf.*'x'"
                   3753:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3754: #line 3755 "configure"
1.1       root     3755: #include "confdefs.h"
                   3756: #include <sgtty.h>
                   3757: Autoconf TIOCGETP
                   3758: EOF
                   3759: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3760:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3761:   rm -rf conftest*
                   3762:   ac_cv_prog_gcc_traditional=yes
                   3763: else
                   3764:   rm -rf conftest*
                   3765:   ac_cv_prog_gcc_traditional=no
                   3766: fi
                   3767: rm -f conftest*
                   3768: 
                   3769: 
                   3770:   if test $ac_cv_prog_gcc_traditional = no; then
                   3771:     cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3772: #line 3773 "configure"
1.1       root     3773: #include "confdefs.h"
                   3774: #include <termio.h>
                   3775: Autoconf TCGETA
                   3776: EOF
                   3777: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3778:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3779:   rm -rf conftest*
                   3780:   ac_cv_prog_gcc_traditional=yes
                   3781: fi
                   3782: rm -f conftest*
                   3783: 
                   3784:   fi
                   3785: fi
                   3786: 
                   3787: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   3788:   if test $ac_cv_prog_gcc_traditional = yes; then
                   3789:     CC="$CC -traditional"
                   3790:   fi
                   3791: fi
                   3792: 
                   3793: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1.1.1.12! root     3794: echo "configure:3795: checking for 8-bit clean memcmp" >&5
1.1.1.4   root     3795: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1.1       root     3796:   echo $ac_n "(cached) $ac_c" 1>&6
                   3797: else
                   3798:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3799:   ac_cv_func_memcmp_clean=no
1.1       root     3800: else
1.1.1.4   root     3801:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3802: #line 3803 "configure"
1.1       root     3803: #include "confdefs.h"
                   3804: 
                   3805: main()
                   3806: {
                   3807:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                   3808:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                   3809: }
                   3810: 
                   3811: EOF
1.1.1.12! root     3812: if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3813: then
                   3814:   ac_cv_func_memcmp_clean=yes
1.1       root     3815: else
1.1.1.4   root     3816:   echo "configure: failed program was:" >&5
                   3817:   cat conftest.$ac_ext >&5
                   3818:   rm -fr conftest*
                   3819:   ac_cv_func_memcmp_clean=no
1.1       root     3820: fi
                   3821: rm -fr conftest*
                   3822: fi
                   3823: 
1.1.1.4   root     3824: fi
                   3825: 
                   3826: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1.1.1.9   root     3827: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1.1       root     3828: 
                   3829: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.12! root     3830: echo "configure:3831: checking return type of signal handlers" >&5
1.1       root     3831: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   3832:   echo $ac_n "(cached) $ac_c" 1>&6
                   3833: else
                   3834:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3835: #line 3836 "configure"
1.1       root     3836: #include "confdefs.h"
                   3837: #include <sys/types.h>
                   3838: #include <signal.h>
                   3839: #ifdef signal
                   3840: #undef signal
                   3841: #endif
                   3842: #ifdef __cplusplus
                   3843: extern "C" void (*signal (int, void (*)(int)))(int);
                   3844: #else
                   3845: void (*signal ()) ();
                   3846: #endif
                   3847: 
1.1.1.4   root     3848: int main() {
1.1       root     3849: int i;
                   3850: ; return 0; }
                   3851: EOF
1.1.1.12! root     3852: if { (eval echo configure:3853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3853:   rm -rf conftest*
                   3854:   ac_cv_type_signal=void
                   3855: else
1.1.1.4   root     3856:   echo "configure: failed program was:" >&5
                   3857:   cat conftest.$ac_ext >&5
1.1       root     3858:   rm -rf conftest*
                   3859:   ac_cv_type_signal=int
                   3860: fi
                   3861: rm -f conftest*
                   3862: fi
                   3863: 
                   3864: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   3865: cat >> confdefs.h <<EOF
                   3866: #define RETSIGTYPE $ac_cv_type_signal
                   3867: EOF
                   3868: 
                   3869: 
                   3870: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
1.1.1.12! root     3871: echo "configure:3872: checking whether utime accepts a null argument" >&5
1.1       root     3872: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
                   3873:   echo $ac_n "(cached) $ac_c" 1>&6
                   3874: else
                   3875:   rm -f conftestdata; > conftestdata
                   3876: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   3877: if test "$cross_compiling" = yes; then
                   3878:   ac_cv_func_utime_null=no
                   3879: else
1.1.1.4   root     3880:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3881: #line 3882 "configure"
1.1       root     3882: #include "confdefs.h"
                   3883: #include <sys/types.h>
                   3884: #include <sys/stat.h>
                   3885: main() {
                   3886: struct stat s, t;
                   3887: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
                   3888: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
                   3889: && t.st_mtime - s.st_mtime < 120));
                   3890: }
                   3891: EOF
1.1.1.12! root     3892: if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3893: then
1.1       root     3894:   ac_cv_func_utime_null=yes
                   3895: else
1.1.1.4   root     3896:   echo "configure: failed program was:" >&5
                   3897:   cat conftest.$ac_ext >&5
                   3898:   rm -fr conftest*
1.1       root     3899:   ac_cv_func_utime_null=no
                   3900: fi
                   3901: rm -fr conftest*
1.1.1.4   root     3902: fi
                   3903: 
1.1       root     3904: rm -f core core.* *.core
                   3905: fi
                   3906: 
                   3907: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
                   3908: if test $ac_cv_func_utime_null = yes; then
                   3909:   cat >> confdefs.h <<\EOF
                   3910: #define HAVE_UTIME_NULL 1
                   3911: EOF
                   3912: 
                   3913: fi
                   3914: 
1.1.1.6   root     3915: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr
                   3916: do
                   3917: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.12! root     3918: echo "configure:3919: checking for $ac_func" >&5
1.1.1.6   root     3919: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3920:   echo $ac_n "(cached) $ac_c" 1>&6
                   3921: else
                   3922:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3923: #line 3924 "configure"
1.1.1.6   root     3924: #include "confdefs.h"
                   3925: /* System header to define __stub macros and hopefully few prototypes,
                   3926:     which can conflict with char $ac_func(); below.  */
                   3927: #include <assert.h>
                   3928: /* Override any gcc2 internal prototype to avoid an error.  */
                   3929: /* We use char because int might match the return type of a gcc2
                   3930:     builtin and then its argument prototype would still apply.  */
                   3931: char $ac_func();
                   3932: 
                   3933: int main() {
                   3934: 
                   3935: /* The GNU C library defines this for functions which it implements
                   3936:     to always fail with ENOSYS.  Some functions are actually named
                   3937:     something starting with __ and the normal name is an alias.  */
                   3938: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3939: choke me
                   3940: #else
                   3941: $ac_func();
                   3942: #endif
                   3943: 
                   3944: ; return 0; }
                   3945: EOF
1.1.1.12! root     3946: if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     3947:   rm -rf conftest*
                   3948:   eval "ac_cv_func_$ac_func=yes"
                   3949: else
                   3950:   echo "configure: failed program was:" >&5
                   3951:   cat conftest.$ac_ext >&5
                   3952:   rm -rf conftest*
                   3953:   eval "ac_cv_func_$ac_func=no"
                   3954: fi
                   3955: rm -f conftest*
                   3956: fi
                   3957: 
                   3958: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3959:   echo "$ac_t""yes" 1>&6
                   3960:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3961:   cat >> confdefs.h <<EOF
                   3962: #define $ac_tr_func 1
                   3963: EOF
                   3964:  
                   3965: else
                   3966:   echo "$ac_t""no" 1>&6
                   3967: fi
                   3968: done
                   3969: 
                   3970: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1       root     3971: do
                   3972: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.12! root     3973: echo "configure:3974: checking for $ac_func" >&5
1.1       root     3974: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3975:   echo $ac_n "(cached) $ac_c" 1>&6
                   3976: else
                   3977:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     3978: #line 3979 "configure"
1.1       root     3979: #include "confdefs.h"
                   3980: /* System header to define __stub macros and hopefully few prototypes,
                   3981:     which can conflict with char $ac_func(); below.  */
                   3982: #include <assert.h>
                   3983: /* Override any gcc2 internal prototype to avoid an error.  */
                   3984: /* We use char because int might match the return type of a gcc2
                   3985:     builtin and then its argument prototype would still apply.  */
                   3986: char $ac_func();
                   3987: 
1.1.1.4   root     3988: int main() {
1.1       root     3989: 
                   3990: /* The GNU C library defines this for functions which it implements
                   3991:     to always fail with ENOSYS.  Some functions are actually named
                   3992:     something starting with __ and the normal name is an alias.  */
                   3993: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3994: choke me
                   3995: #else
                   3996: $ac_func();
                   3997: #endif
                   3998: 
                   3999: ; return 0; }
                   4000: EOF
1.1.1.12! root     4001: if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     4002:   rm -rf conftest*
                   4003:   eval "ac_cv_func_$ac_func=yes"
                   4004: else
1.1.1.4   root     4005:   echo "configure: failed program was:" >&5
                   4006:   cat conftest.$ac_ext >&5
1.1       root     4007:   rm -rf conftest*
                   4008:   eval "ac_cv_func_$ac_func=no"
                   4009: fi
                   4010: rm -f conftest*
1.1.1.4   root     4011: fi
                   4012: 
                   4013: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   4014:   echo "$ac_t""yes" 1>&6
                   4015:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4016:   cat >> confdefs.h <<EOF
                   4017: #define $ac_tr_func 1
                   4018: EOF
                   4019:  
                   4020: else
                   4021:   echo "$ac_t""no" 1>&6
                   4022: fi
1.1.1.6   root     4023: done
                   4024: 
                   4025: 
                   4026: DO_FILEUTILS_CHECK=yes
                   4027: if test $uae_cv_prog_cc_watcom = yes -o $am_cv_mingw32 = yes; then
                   4028:   DO_FILEUTILS_CHECK=no
                   4029: fi
                   4030: if test $DO_FILEUTILS_CHECK = yes; then
                   4031:        
                   4032: for ac_hdr in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
                   4033: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
                   4034: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
                   4035: do
                   4036: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4037: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.12! root     4038: echo "configure:4039: checking for $ac_hdr" >&5
1.1.1.6   root     4039: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4040:   echo $ac_n "(cached) $ac_c" 1>&6
                   4041: else
                   4042:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4043: #line 4044 "configure"
1.1.1.6   root     4044: #include "confdefs.h"
                   4045: #include <$ac_hdr>
                   4046: EOF
                   4047: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4048: { (eval echo configure:4049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4049: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4050: if test -z "$ac_err"; then
                   4051:   rm -rf conftest*
                   4052:   eval "ac_cv_header_$ac_safe=yes"
                   4053: else
                   4054:   echo "$ac_err" >&5
                   4055:   echo "configure: failed program was:" >&5
                   4056:   cat conftest.$ac_ext >&5
                   4057:   rm -rf conftest*
                   4058:   eval "ac_cv_header_$ac_safe=no"
                   4059: fi
                   4060: rm -f conftest*
                   4061: fi
                   4062: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4063:   echo "$ac_t""yes" 1>&6
                   4064:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4065:   cat >> confdefs.h <<EOF
                   4066: #define $ac_tr_hdr 1
                   4067: EOF
                   4068:  
                   4069: else
                   4070:   echo "$ac_t""no" 1>&6
                   4071: fi
                   4072: done
                   4073: 
                   4074: 
                   4075: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
                   4076: getcwd getmntinfo gettimeofday isascii lchown \
                   4077: listmntent memcpy mkfifo strchr strerror strrchr
                   4078: do
                   4079: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.12! root     4080: echo "configure:4081: checking for $ac_func" >&5
1.1.1.6   root     4081: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   4082:   echo $ac_n "(cached) $ac_c" 1>&6
                   4083: else
                   4084:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4085: #line 4086 "configure"
1.1.1.6   root     4086: #include "confdefs.h"
                   4087: /* System header to define __stub macros and hopefully few prototypes,
                   4088:     which can conflict with char $ac_func(); below.  */
                   4089: #include <assert.h>
                   4090: /* Override any gcc2 internal prototype to avoid an error.  */
                   4091: /* We use char because int might match the return type of a gcc2
                   4092:     builtin and then its argument prototype would still apply.  */
                   4093: char $ac_func();
                   4094: 
                   4095: int main() {
                   4096: 
                   4097: /* The GNU C library defines this for functions which it implements
                   4098:     to always fail with ENOSYS.  Some functions are actually named
                   4099:     something starting with __ and the normal name is an alias.  */
                   4100: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4101: choke me
                   4102: #else
                   4103: $ac_func();
                   4104: #endif
                   4105: 
                   4106: ; return 0; }
                   4107: EOF
1.1.1.12! root     4108: if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4109:   rm -rf conftest*
                   4110:   eval "ac_cv_func_$ac_func=yes"
                   4111: else
                   4112:   echo "configure: failed program was:" >&5
                   4113:   cat conftest.$ac_ext >&5
                   4114:   rm -rf conftest*
                   4115:   eval "ac_cv_func_$ac_func=no"
                   4116: fi
                   4117: rm -f conftest*
                   4118: fi
                   4119: 
                   4120: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   4121:   echo "$ac_t""yes" 1>&6
                   4122:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4123:   cat >> confdefs.h <<EOF
                   4124: #define $ac_tr_func 1
                   4125: EOF
                   4126:  
                   4127: else
                   4128:   echo "$ac_t""no" 1>&6
                   4129: fi
                   4130: done
                   4131: 
                   4132: 
                   4133: # Determine how to get the list of mounted filesystems.
                   4134: list_mounted_fs=
                   4135: 
                   4136: # If the getmntent function is available but not in the standard library,
                   4137: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
                   4138: # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
                   4139: echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
1.1.1.12! root     4140: echo "configure:4141: checking for getmntent in -lsun" >&5
1.1.1.6   root     4141: ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
                   4142: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4143:   echo $ac_n "(cached) $ac_c" 1>&6
                   4144: else
                   4145:   ac_save_LIBS="$LIBS"
                   4146: LIBS="-lsun  $LIBS"
                   4147: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4148: #line 4149 "configure"
1.1.1.6   root     4149: #include "confdefs.h"
                   4150: /* Override any gcc2 internal prototype to avoid an error.  */
                   4151: /* We use char because int might match the return type of a gcc2
                   4152:     builtin and then its argument prototype would still apply.  */
                   4153: char getmntent();
                   4154: 
                   4155: int main() {
                   4156: getmntent()
                   4157: ; return 0; }
                   4158: EOF
1.1.1.12! root     4159: if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4160:   rm -rf conftest*
                   4161:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4162: else
                   4163:   echo "configure: failed program was:" >&5
                   4164:   cat conftest.$ac_ext >&5
                   4165:   rm -rf conftest*
                   4166:   eval "ac_cv_lib_$ac_lib_var=no"
                   4167: fi
                   4168: rm -f conftest*
                   4169: LIBS="$ac_save_LIBS"
                   4170: 
                   4171: fi
                   4172: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4173:   echo "$ac_t""yes" 1>&6
                   4174:   LIBS="-lsun $LIBS"
                   4175: else
                   4176:   echo "$ac_t""no" 1>&6
                   4177: echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
1.1.1.12! root     4178: echo "configure:4179: checking for getmntent in -lseq" >&5
1.1.1.6   root     4179: ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
                   4180: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4181:   echo $ac_n "(cached) $ac_c" 1>&6
                   4182: else
                   4183:   ac_save_LIBS="$LIBS"
                   4184: LIBS="-lseq  $LIBS"
                   4185: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4186: #line 4187 "configure"
1.1.1.6   root     4187: #include "confdefs.h"
                   4188: /* Override any gcc2 internal prototype to avoid an error.  */
                   4189: /* We use char because int might match the return type of a gcc2
                   4190:     builtin and then its argument prototype would still apply.  */
                   4191: char getmntent();
                   4192: 
                   4193: int main() {
                   4194: getmntent()
                   4195: ; return 0; }
                   4196: EOF
1.1.1.12! root     4197: if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4198:   rm -rf conftest*
                   4199:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4200: else
                   4201:   echo "configure: failed program was:" >&5
                   4202:   cat conftest.$ac_ext >&5
                   4203:   rm -rf conftest*
                   4204:   eval "ac_cv_lib_$ac_lib_var=no"
                   4205: fi
                   4206: rm -f conftest*
                   4207: LIBS="$ac_save_LIBS"
                   4208: 
                   4209: fi
                   4210: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4211:   echo "$ac_t""yes" 1>&6
                   4212:   LIBS="-lseq $LIBS"
                   4213: else
                   4214:   echo "$ac_t""no" 1>&6
                   4215: echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
1.1.1.12! root     4216: echo "configure:4217: checking for getmntent in -lgen" >&5
1.1.1.6   root     4217: ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
                   4218: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4219:   echo $ac_n "(cached) $ac_c" 1>&6
                   4220: else
                   4221:   ac_save_LIBS="$LIBS"
                   4222: LIBS="-lgen  $LIBS"
                   4223: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4224: #line 4225 "configure"
1.1.1.6   root     4225: #include "confdefs.h"
                   4226: /* Override any gcc2 internal prototype to avoid an error.  */
                   4227: /* We use char because int might match the return type of a gcc2
                   4228:     builtin and then its argument prototype would still apply.  */
                   4229: char getmntent();
                   4230: 
                   4231: int main() {
                   4232: getmntent()
                   4233: ; return 0; }
                   4234: EOF
1.1.1.12! root     4235: if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4236:   rm -rf conftest*
                   4237:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4238: else
                   4239:   echo "configure: failed program was:" >&5
                   4240:   cat conftest.$ac_ext >&5
                   4241:   rm -rf conftest*
                   4242:   eval "ac_cv_lib_$ac_lib_var=no"
                   4243: fi
                   4244: rm -f conftest*
                   4245: LIBS="$ac_save_LIBS"
                   4246: 
                   4247: fi
                   4248: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4249:   echo "$ac_t""yes" 1>&6
                   4250:   LIBS="-lgen $LIBS"
                   4251: else
                   4252:   echo "$ac_t""no" 1>&6
                   4253: fi
                   4254: 
                   4255: fi
                   4256: 
                   4257: fi
                   4258: 
                   4259: echo $ac_n "checking for getmntent""... $ac_c" 1>&6
1.1.1.12! root     4260: echo "configure:4261: checking for getmntent" >&5
1.1.1.6   root     4261: if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
                   4262:   echo $ac_n "(cached) $ac_c" 1>&6
                   4263: else
                   4264:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4265: #line 4266 "configure"
1.1.1.6   root     4266: #include "confdefs.h"
                   4267: /* System header to define __stub macros and hopefully few prototypes,
                   4268:     which can conflict with char getmntent(); below.  */
                   4269: #include <assert.h>
                   4270: /* Override any gcc2 internal prototype to avoid an error.  */
                   4271: /* We use char because int might match the return type of a gcc2
                   4272:     builtin and then its argument prototype would still apply.  */
                   4273: char getmntent();
                   4274: 
                   4275: int main() {
                   4276: 
                   4277: /* The GNU C library defines this for functions which it implements
                   4278:     to always fail with ENOSYS.  Some functions are actually named
                   4279:     something starting with __ and the normal name is an alias.  */
                   4280: #if defined (__stub_getmntent) || defined (__stub___getmntent)
                   4281: choke me
                   4282: #else
                   4283: getmntent();
                   4284: #endif
                   4285: 
                   4286: ; return 0; }
                   4287: EOF
1.1.1.12! root     4288: if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4289:   rm -rf conftest*
                   4290:   eval "ac_cv_func_getmntent=yes"
                   4291: else
                   4292:   echo "configure: failed program was:" >&5
                   4293:   cat conftest.$ac_ext >&5
                   4294:   rm -rf conftest*
                   4295:   eval "ac_cv_func_getmntent=no"
                   4296: fi
                   4297: rm -f conftest*
                   4298: fi
                   4299: 
                   4300: if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
                   4301:   echo "$ac_t""yes" 1>&6
                   4302:   cat >> confdefs.h <<\EOF
                   4303: #define HAVE_GETMNTENT 1
                   4304: EOF
                   4305: 
                   4306: else
                   4307:   echo "$ac_t""no" 1>&6
                   4308: fi
                   4309: 
                   4310: 
                   4311: # This test must precede the ones for getmntent because Unicos-9 is
                   4312: # reported to have the getmntent function, but its support is incompatible
                   4313: # with other getmntent implementations.
                   4314: 
                   4315: # NOTE: Normally, I wouldn't use a check for system type as I've done for
                   4316: # `CRAY' below since that goes against the whole autoconf philosophy.  But
                   4317: # I think there is too great a chance that some non-Cray system has a
                   4318: # function named listmntent to risk the false positive.
                   4319: 
                   4320: if test -z "$list_mounted_fs"; then
                   4321: # Cray UNICOS 9
                   4322: echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
1.1.1.12! root     4323: echo "configure:4324: checking for listmntent of Cray/Unicos-9" >&5
1.1.1.6   root     4324: if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
                   4325:   echo $ac_n "(cached) $ac_c" 1>&6
                   4326: else
                   4327:   fu_cv_sys_mounted_cray_listmntent=no
                   4328: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4329: #line 4330 "configure"
1.1.1.6   root     4330: #include "confdefs.h"
                   4331: #ifdef _CRAY
                   4332: yes
                   4333: #endif
                   4334: 
                   4335: EOF
                   4336: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4337:   egrep "yes" >/dev/null 2>&1; then
                   4338:   rm -rf conftest*
                   4339:   test $ac_cv_func_listmntent = yes \
                   4340: && fu_cv_sys_mounted_cray_listmntent=yes
                   4341: 
                   4342: fi
                   4343: rm -f conftest*
                   4344: 
                   4345: 
                   4346: 
                   4347: fi
                   4348: 
                   4349: echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
                   4350: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
                   4351: list_mounted_fs=found
                   4352: cat >> confdefs.h <<\EOF
                   4353: #define MOUNTED_LISTMNTENT 1
                   4354: EOF
                   4355: 
                   4356: fi
                   4357: fi
                   4358: 
                   4359: if test $ac_cv_func_getmntent = yes; then
                   4360: 
                   4361: # This system has the getmntent function.
                   4362: # Determine whether it's the one-argument variant or the two-argument one.
                   4363: 
                   4364: if test -z "$list_mounted_fs"; then
                   4365: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
                   4366: echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
1.1.1.12! root     4367: echo "configure:4368: checking for one-argument getmntent function" >&5
1.1.1.6   root     4368: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
                   4369:   echo $ac_n "(cached) $ac_c" 1>&6
                   4370: else
                   4371:   test $ac_cv_header_mntent_h = yes \
                   4372: && fu_cv_sys_mounted_getmntent1=yes \
                   4373: || fu_cv_sys_mounted_getmntent1=no
                   4374: fi
                   4375: 
                   4376: echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
                   4377: if test $fu_cv_sys_mounted_getmntent1 = yes; then
                   4378: list_mounted_fs=found
                   4379: cat >> confdefs.h <<\EOF
                   4380: #define MOUNTED_GETMNTENT1 1
                   4381: EOF
                   4382: 
                   4383: fi
                   4384: fi
                   4385: 
                   4386: if test -z "$list_mounted_fs"; then
                   4387: # SVR4
                   4388: echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
1.1.1.12! root     4389: echo "configure:4390: checking for two-argument getmntent function" >&5
1.1.1.6   root     4390: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
                   4391:   echo $ac_n "(cached) $ac_c" 1>&6
                   4392: else
                   4393:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4394: #line 4395 "configure"
1.1.1.6   root     4395: #include "confdefs.h"
                   4396: #include <sys/mnttab.h>
                   4397: EOF
                   4398: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4399:   egrep "getmntent" >/dev/null 2>&1; then
                   4400:   rm -rf conftest*
                   4401:   fu_cv_sys_mounted_getmntent2=yes
                   4402: else
                   4403:   rm -rf conftest*
                   4404:   fu_cv_sys_mounted_getmntent2=no
                   4405: fi
                   4406: rm -f conftest*
                   4407: 
                   4408: fi
                   4409: 
                   4410: echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
                   4411: if test $fu_cv_sys_mounted_getmntent2 = yes; then
                   4412: list_mounted_fs=found
                   4413: cat >> confdefs.h <<\EOF
                   4414: #define MOUNTED_GETMNTENT2 1
                   4415: EOF
                   4416: 
                   4417: fi
                   4418: fi
                   4419: 
                   4420: if test -z "$list_mounted_fs"; then
                   4421: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
                   4422: fi
                   4423: 
                   4424: fi
                   4425: 
                   4426: if test -z "$list_mounted_fs"; then
                   4427: # DEC Alpha running OSF/1.
                   4428: echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
1.1.1.12! root     4429: echo "configure:4430: checking for getfsstat function" >&5
1.1.1.6   root     4430: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
                   4431:   echo $ac_n "(cached) $ac_c" 1>&6
                   4432: else
                   4433:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4434: #line 4435 "configure"
1.1.1.6   root     4435: #include "confdefs.h"
                   4436: 
                   4437: #include <sys/types.h>
                   4438: #include <sys/mount.h>
                   4439: #include <sys/fs_types.h>
                   4440: int main() {
                   4441: struct statfs *stats;
                   4442: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
                   4443: ; return 0; }
                   4444: EOF
1.1.1.12! root     4445: if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4446:   rm -rf conftest*
                   4447:   fu_cv_sys_mounted_getsstat=yes
                   4448: else
                   4449:   echo "configure: failed program was:" >&5
                   4450:   cat conftest.$ac_ext >&5
                   4451:   rm -rf conftest*
                   4452:   fu_cv_sys_mounted_getsstat=no
                   4453: fi
                   4454: rm -f conftest*
                   4455: fi
                   4456: 
                   4457: echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
                   4458: if test $fu_cv_sys_mounted_getsstat = yes; then
                   4459: list_mounted_fs=found
                   4460: cat >> confdefs.h <<\EOF
                   4461: #define MOUNTED_GETFSSTAT 1
                   4462: EOF
                   4463: 
                   4464: fi
                   4465: fi
                   4466: 
                   4467: if test -z "$list_mounted_fs"; then
                   4468: # AIX.
                   4469: echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
1.1.1.12! root     4470: echo "configure:4471: checking for mntctl function and struct vmount" >&5
1.1.1.6   root     4471: if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
                   4472:   echo $ac_n "(cached) $ac_c" 1>&6
                   4473: else
                   4474:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4475: #line 4476 "configure"
1.1.1.6   root     4476: #include "confdefs.h"
                   4477: #include <fshelp.h>
                   4478: EOF
                   4479: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4480: { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4481: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4482: if test -z "$ac_err"; then
                   4483:   rm -rf conftest*
                   4484:   fu_cv_sys_mounted_vmount=yes
                   4485: else
                   4486:   echo "$ac_err" >&5
                   4487:   echo "configure: failed program was:" >&5
                   4488:   cat conftest.$ac_ext >&5
                   4489:   rm -rf conftest*
                   4490:   fu_cv_sys_mounted_vmount=no
                   4491: fi
                   4492: rm -f conftest*
                   4493: fi
                   4494: 
                   4495: echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
                   4496: if test $fu_cv_sys_mounted_vmount = yes; then
                   4497: list_mounted_fs=found
                   4498: cat >> confdefs.h <<\EOF
                   4499: #define MOUNTED_VMOUNT 1
                   4500: EOF
                   4501: 
                   4502: fi
                   4503: fi
                   4504: 
                   4505: if test -z "$list_mounted_fs"; then
                   4506: # SVR3
                   4507: echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
1.1.1.12! root     4508: echo "configure:4509: checking for FIXME existence of three headers" >&5
1.1.1.6   root     4509: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
                   4510:   echo $ac_n "(cached) $ac_c" 1>&6
                   4511: else
                   4512:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4513: #line 4514 "configure"
1.1.1.6   root     4514: #include "confdefs.h"
                   4515: 
                   4516: #include <sys/statfs.h>
                   4517: #include <sys/fstyp.h>
                   4518: #include <mnttab.h>
                   4519: EOF
                   4520: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4521: { (eval echo configure:4522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4522: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4523: if test -z "$ac_err"; then
                   4524:   rm -rf conftest*
                   4525:   fu_cv_sys_mounted_fread_fstyp=yes
                   4526: else
                   4527:   echo "$ac_err" >&5
                   4528:   echo "configure: failed program was:" >&5
                   4529:   cat conftest.$ac_ext >&5
                   4530:   rm -rf conftest*
                   4531:   fu_cv_sys_mounted_fread_fstyp=no
                   4532: fi
                   4533: rm -f conftest*
                   4534: fi
                   4535: 
                   4536: echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
                   4537: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
                   4538: list_mounted_fs=found
                   4539: cat >> confdefs.h <<\EOF
                   4540: #define MOUNTED_FREAD_FSTYP 1
                   4541: EOF
                   4542: 
                   4543: fi
                   4544: fi
                   4545: 
                   4546: if test -z "$list_mounted_fs"; then
                   4547: # 4.4BSD and DEC OSF/1.
                   4548: echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
1.1.1.12! root     4549: echo "configure:4550: checking for getmntinfo function" >&5
1.1.1.6   root     4550: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
                   4551:   echo $ac_n "(cached) $ac_c" 1>&6
                   4552: else
                   4553:   
                   4554: ok=
                   4555: if test $ac_cv_func_getmntinfo = yes; then
                   4556: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4557: #line 4558 "configure"
1.1.1.6   root     4558: #include "confdefs.h"
                   4559: #include <sys/mount.h>
                   4560: EOF
                   4561: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4562:   egrep "f_type;" >/dev/null 2>&1; then
                   4563:   rm -rf conftest*
                   4564:   ok=yes
                   4565: fi
                   4566: rm -f conftest*
                   4567: 
                   4568: fi
                   4569: test -n "$ok" \
                   4570: && fu_cv_sys_mounted_getmntinfo=yes \
                   4571: || fu_cv_sys_mounted_getmntinfo=no
                   4572: 
                   4573: fi
                   4574: 
                   4575: echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
                   4576: if test $fu_cv_sys_mounted_getmntinfo = yes; then
                   4577: list_mounted_fs=found
                   4578: cat >> confdefs.h <<\EOF
                   4579: #define MOUNTED_GETMNTINFO 1
                   4580: EOF
                   4581: 
                   4582: fi
                   4583: fi
                   4584: 
                   4585: # FIXME: add a test for netbsd-1.1 here
                   4586: 
                   4587: if test -z "$list_mounted_fs"; then
                   4588: # Ultrix
                   4589: echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
1.1.1.12! root     4590: echo "configure:4591: checking for getmnt function" >&5
1.1.1.6   root     4591: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
                   4592:   echo $ac_n "(cached) $ac_c" 1>&6
                   4593: else
                   4594:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4595: #line 4596 "configure"
1.1.1.6   root     4596: #include "confdefs.h"
                   4597: 
                   4598: #include <sys/fs_types.h>
                   4599: #include <sys/mount.h>
                   4600: EOF
                   4601: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4602: { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4603: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4604: if test -z "$ac_err"; then
                   4605:   rm -rf conftest*
                   4606:   fu_cv_sys_mounted_getmnt=yes
                   4607: else
                   4608:   echo "$ac_err" >&5
                   4609:   echo "configure: failed program was:" >&5
                   4610:   cat conftest.$ac_ext >&5
                   4611:   rm -rf conftest*
                   4612:   fu_cv_sys_mounted_getmnt=no
                   4613: fi
                   4614: rm -f conftest*
                   4615: fi
                   4616: 
                   4617: echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
                   4618: if test $fu_cv_sys_mounted_getmnt = yes; then
                   4619: list_mounted_fs=found
                   4620: cat >> confdefs.h <<\EOF
                   4621: #define MOUNTED_GETMNT 1
                   4622: EOF
                   4623: 
                   4624: fi
                   4625: fi
                   4626: 
                   4627: if test -z "$list_mounted_fs"; then
                   4628: # SVR2
                   4629: echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
1.1.1.12! root     4630: echo "configure:4631: checking whether it is possible to resort to fread on /etc/mnttab" >&5
1.1.1.6   root     4631: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
                   4632:   echo $ac_n "(cached) $ac_c" 1>&6
                   4633: else
                   4634:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4635: #line 4636 "configure"
1.1.1.6   root     4636: #include "confdefs.h"
                   4637: #include <mnttab.h>
                   4638: EOF
                   4639: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4640: { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4641: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4642: if test -z "$ac_err"; then
                   4643:   rm -rf conftest*
                   4644:   fu_cv_sys_mounted_fread=yes
                   4645: else
                   4646:   echo "$ac_err" >&5
                   4647:   echo "configure: failed program was:" >&5
                   4648:   cat conftest.$ac_ext >&5
                   4649:   rm -rf conftest*
                   4650:   fu_cv_sys_mounted_fread=no
                   4651: fi
                   4652: rm -f conftest*
                   4653: fi
                   4654: 
                   4655: echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
                   4656: if test $fu_cv_sys_mounted_fread = yes; then
                   4657: list_mounted_fs=found
                   4658: cat >> confdefs.h <<\EOF
                   4659: #define MOUNTED_FREAD 1
                   4660: EOF
                   4661: 
                   4662: fi
                   4663: fi
                   4664: 
                   4665: if test -z "$list_mounted_fs"; then
                   4666: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
                   4667: # FIXME -- no need to abort building the whole package
                   4668: # Can't build mountlist.c or anything that needs its functions
                   4669: fi
                   4670: 
                   4671: echo "checking how to get filesystem space usage" 1>&6
1.1.1.12! root     4672: echo "configure:4673: checking how to get filesystem space usage" >&5
1.1.1.6   root     4673: space=no
                   4674: 
                   4675: # Perform only the link test since it seems there are no variants of the
                   4676: # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
                   4677: # because that got a false positive on SCO OSR5.  Adding the declaration
                   4678: # of a `struct statvfs' causes this test to fail (as it should) on such
                   4679: # systems.  That system is reported to work fine with STAT_STATFS4 which
                   4680: # is what it gets when this test fails.
                   4681: if test $space = no; then
                   4682: # SVR4
                   4683: echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
1.1.1.12! root     4684: echo "configure:4685: checking statvfs function (SVR4)" >&5
1.1.1.6   root     4685: if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
                   4686:   echo $ac_n "(cached) $ac_c" 1>&6
                   4687: else
                   4688:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4689: #line 4690 "configure"
1.1.1.6   root     4690: #include "confdefs.h"
                   4691: #include <sys/types.h>
                   4692: #include <sys/statvfs.h>
                   4693: int main() {
                   4694: struct statvfs fsd; statvfs (0, &fsd);
                   4695: ; return 0; }
                   4696: EOF
1.1.1.12! root     4697: if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4698:   rm -rf conftest*
                   4699:   fu_cv_sys_stat_statvfs=yes
                   4700: else
                   4701:   echo "configure: failed program was:" >&5
                   4702:   cat conftest.$ac_ext >&5
                   4703:   rm -rf conftest*
                   4704:   fu_cv_sys_stat_statvfs=no
                   4705: fi
                   4706: rm -f conftest*
                   4707: fi
                   4708: 
                   4709: echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
                   4710: if test $fu_cv_sys_stat_statvfs = yes; then
                   4711: space=yes
                   4712: cat >> confdefs.h <<\EOF
                   4713: #define STAT_STATVFS 1
                   4714: EOF
                   4715: 
                   4716: fi
                   4717: fi
                   4718: 
                   4719: if test $space = no; then
                   4720: # DEC Alpha running OSF/1
                   4721: echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
1.1.1.12! root     4722: echo "configure:4723: checking for 3-argument statfs function (DEC OSF/1)" >&5
1.1.1.6   root     4723: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
                   4724:   echo $ac_n "(cached) $ac_c" 1>&6
                   4725: else
                   4726:   if test "$cross_compiling" = yes; then
                   4727:   fu_cv_sys_stat_statfs3_osf1=no
                   4728: else
                   4729:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4730: #line 4731 "configure"
1.1.1.6   root     4731: #include "confdefs.h"
                   4732: 
                   4733: #include <sys/param.h>
                   4734: #include <sys/types.h>
                   4735: #include <sys/mount.h>
                   4736: main ()
                   4737: {
                   4738: struct statfs fsd;
                   4739: fsd.f_fsize = 0;
                   4740: exit (statfs (".", &fsd, sizeof (struct statfs)));
                   4741: }
                   4742: EOF
1.1.1.12! root     4743: if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4744: then
                   4745:   fu_cv_sys_stat_statfs3_osf1=yes
                   4746: else
                   4747:   echo "configure: failed program was:" >&5
                   4748:   cat conftest.$ac_ext >&5
                   4749:   rm -fr conftest*
                   4750:   fu_cv_sys_stat_statfs3_osf1=no
                   4751: fi
                   4752: rm -fr conftest*
                   4753: fi
                   4754: 
                   4755: fi
                   4756: 
                   4757: echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
                   4758: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
                   4759: space=yes
                   4760: cat >> confdefs.h <<\EOF
                   4761: #define STAT_STATFS3_OSF1 1
                   4762: EOF
                   4763: 
                   4764: fi
                   4765: fi
                   4766: 
                   4767: if test $space = no; then
                   4768: # AIX
                   4769: echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
1.1.1.12! root     4770: echo "configure:4771: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
1.1.1.6   root     4771: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
                   4772:   echo $ac_n "(cached) $ac_c" 1>&6
                   4773: else
                   4774:   if test "$cross_compiling" = yes; then
                   4775:   fu_cv_sys_stat_statfs2_bsize=no
                   4776: else
                   4777:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4778: #line 4779 "configure"
1.1.1.6   root     4779: #include "confdefs.h"
                   4780: 
                   4781: #ifdef HAVE_SYS_PARAM_H
                   4782: #include <sys/param.h>
                   4783: #endif
                   4784: #ifdef HAVE_SYS_MOUNT_H
                   4785: #include <sys/mount.h>
                   4786: #endif
                   4787: #ifdef HAVE_SYS_VFS_H
                   4788: #include <sys/vfs.h>
                   4789: #endif
                   4790: main ()
                   4791: {
                   4792: struct statfs fsd;
                   4793: fsd.f_bsize = 0;
                   4794: exit (statfs (".", &fsd));
                   4795: }
                   4796: EOF
1.1.1.12! root     4797: if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4798: then
                   4799:   fu_cv_sys_stat_statfs2_bsize=yes
                   4800: else
                   4801:   echo "configure: failed program was:" >&5
                   4802:   cat conftest.$ac_ext >&5
                   4803:   rm -fr conftest*
                   4804:   fu_cv_sys_stat_statfs2_bsize=no
                   4805: fi
                   4806: rm -fr conftest*
                   4807: fi
                   4808: 
                   4809: fi
                   4810: 
                   4811: echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
                   4812: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
                   4813: space=yes
                   4814: cat >> confdefs.h <<\EOF
                   4815: #define STAT_STATFS2_BSIZE 1
                   4816: EOF
                   4817: 
                   4818: fi
                   4819: fi
                   4820: 
                   4821: if test $space = no; then
                   4822: # SVR3
                   4823: echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
1.1.1.12! root     4824: echo "configure:4825: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
1.1.1.6   root     4825: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
                   4826:   echo $ac_n "(cached) $ac_c" 1>&6
                   4827: else
                   4828:   if test "$cross_compiling" = yes; then
                   4829:   fu_cv_sys_stat_statfs4=no
                   4830: else
                   4831:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4832: #line 4833 "configure"
1.1.1.6   root     4833: #include "confdefs.h"
                   4834: #include <sys/types.h>
                   4835: #include <sys/statfs.h>
                   4836: main ()
                   4837: {
                   4838: struct statfs fsd;
                   4839: exit (statfs (".", &fsd, sizeof fsd, 0));
                   4840: }
                   4841: EOF
1.1.1.12! root     4842: if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4843: then
                   4844:   fu_cv_sys_stat_statfs4=yes
                   4845: else
                   4846:   echo "configure: failed program was:" >&5
                   4847:   cat conftest.$ac_ext >&5
                   4848:   rm -fr conftest*
                   4849:   fu_cv_sys_stat_statfs4=no
                   4850: fi
                   4851: rm -fr conftest*
                   4852: fi
                   4853: 
                   4854: fi
                   4855: 
                   4856: echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
                   4857: if test $fu_cv_sys_stat_statfs4 = yes; then
                   4858: space=yes
                   4859: cat >> confdefs.h <<\EOF
                   4860: #define STAT_STATFS4 1
                   4861: EOF
                   4862: 
                   4863: fi
                   4864: fi
                   4865: 
                   4866: if test $space = no; then
                   4867: # 4.4BSD and NetBSD
                   4868: echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
1.1.1.12! root     4869: echo "configure:4870: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
1.1.1.6   root     4870: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
                   4871:   echo $ac_n "(cached) $ac_c" 1>&6
                   4872: else
                   4873:   if test "$cross_compiling" = yes; then
                   4874:   fu_cv_sys_stat_statfs2_fsize=no
                   4875: else
                   4876:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4877: #line 4878 "configure"
1.1.1.6   root     4878: #include "confdefs.h"
                   4879: #include <sys/types.h>
                   4880: #ifdef HAVE_SYS_PARAM_H
                   4881: #include <sys/param.h>
                   4882: #endif
                   4883: #ifdef HAVE_SYS_MOUNT_H
                   4884: #include <sys/mount.h>
                   4885: #endif
                   4886: main ()
                   4887: {
                   4888: struct statfs fsd;
                   4889: fsd.f_fsize = 0;
                   4890: exit (statfs (".", &fsd));
                   4891: }
                   4892: EOF
1.1.1.12! root     4893: if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4894: then
                   4895:   fu_cv_sys_stat_statfs2_fsize=yes
                   4896: else
                   4897:   echo "configure: failed program was:" >&5
                   4898:   cat conftest.$ac_ext >&5
                   4899:   rm -fr conftest*
                   4900:   fu_cv_sys_stat_statfs2_fsize=no
                   4901: fi
                   4902: rm -fr conftest*
                   4903: fi
                   4904: 
                   4905: fi
                   4906: 
                   4907: echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
                   4908: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
                   4909: space=yes
                   4910: cat >> confdefs.h <<\EOF
                   4911: #define STAT_STATFS2_FSIZE 1
                   4912: EOF
                   4913: 
                   4914: fi
                   4915: fi
                   4916: 
                   4917: if test $space = no; then
                   4918: # Ultrix
                   4919: echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
1.1.1.12! root     4920: echo "configure:4921: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
1.1.1.6   root     4921: if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
                   4922:   echo $ac_n "(cached) $ac_c" 1>&6
                   4923: else
                   4924:   if test "$cross_compiling" = yes; then
                   4925:   fu_cv_sys_stat_fs_data=no
                   4926: else
                   4927:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4928: #line 4929 "configure"
1.1.1.6   root     4929: #include "confdefs.h"
                   4930: #include <sys/types.h>
                   4931: #ifdef HAVE_SYS_PARAM_H
                   4932: #include <sys/param.h>
                   4933: #endif
                   4934: #ifdef HAVE_SYS_MOUNT_H
                   4935: #include <sys/mount.h>
                   4936: #endif
                   4937: #ifdef HAVE_SYS_FS_TYPES_H
                   4938: #include <sys/fs_types.h>
                   4939: #endif
                   4940: main ()
                   4941: {
                   4942: struct fs_data fsd;
                   4943: /* Ultrix's statfs returns 1 for success,
                   4944: 0 for not mounted, -1 for failure.  */
                   4945: exit (statfs (".", &fsd) != 1);
                   4946: }
                   4947: EOF
1.1.1.12! root     4948: if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4949: then
                   4950:   fu_cv_sys_stat_fs_data=yes
                   4951: else
                   4952:   echo "configure: failed program was:" >&5
                   4953:   cat conftest.$ac_ext >&5
                   4954:   rm -fr conftest*
                   4955:   fu_cv_sys_stat_fs_data=no
                   4956: fi
                   4957: rm -fr conftest*
                   4958: fi
                   4959: 
                   4960: fi
                   4961: 
                   4962: echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
                   4963: if test $fu_cv_sys_stat_fs_data = yes; then
                   4964: space=yes
                   4965: cat >> confdefs.h <<\EOF
                   4966: #define STAT_STATFS2_FS_DATA 1
                   4967: EOF
                   4968: 
                   4969: fi
                   4970: fi
                   4971: 
                   4972: if test $space = no; then
                   4973: # SVR2
                   4974: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     4975: #line 4976 "configure"
1.1.1.6   root     4976: #include "confdefs.h"
                   4977: #include <sys/filsys.h>
                   4978: EOF
                   4979: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.12! root     4980: { (eval echo configure:4981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4981: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4982: if test -z "$ac_err"; then
                   4983:   rm -rf conftest*
                   4984:   cat >> confdefs.h <<\EOF
                   4985: #define STAT_READ_FILSYS 1
                   4986: EOF
                   4987:  space=yes
                   4988: else
                   4989:   echo "$ac_err" >&5
                   4990:   echo "configure: failed program was:" >&5
                   4991:   cat conftest.$ac_ext >&5
                   4992: fi
                   4993: rm -f conftest*
                   4994: fi
                   4995: 
                   4996: if test -n "$list_mounted_fs" && test $space != no; then
                   4997: DF_PROG="df"
                   4998: LIBOBJS="$LIBOBJS fsusage.o"
                   4999: LIBOBJS="$LIBOBJS mountlist.o"
                   5000: fi
1.1.1.4   root     5001: 
1.1.1.6   root     5002: for ac_func in ftruncate
1.1.1.4   root     5003: do
                   5004: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.12! root     5005: echo "configure:5006: checking for $ac_func" >&5
1.1.1.4   root     5006: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5007:   echo $ac_n "(cached) $ac_c" 1>&6
                   5008: else
                   5009:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5010: #line 5011 "configure"
1.1.1.4   root     5011: #include "confdefs.h"
                   5012: /* System header to define __stub macros and hopefully few prototypes,
                   5013:     which can conflict with char $ac_func(); below.  */
                   5014: #include <assert.h>
                   5015: /* Override any gcc2 internal prototype to avoid an error.  */
                   5016: /* We use char because int might match the return type of a gcc2
                   5017:     builtin and then its argument prototype would still apply.  */
                   5018: char $ac_func();
                   5019: 
                   5020: int main() {
                   5021: 
                   5022: /* The GNU C library defines this for functions which it implements
                   5023:     to always fail with ENOSYS.  Some functions are actually named
                   5024:     something starting with __ and the normal name is an alias.  */
                   5025: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5026: choke me
                   5027: #else
                   5028: $ac_func();
                   5029: #endif
1.1       root     5030: 
1.1.1.4   root     5031: ; return 0; }
                   5032: EOF
1.1.1.12! root     5033: if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     5034:   rm -rf conftest*
                   5035:   eval "ac_cv_func_$ac_func=yes"
                   5036: else
                   5037:   echo "configure: failed program was:" >&5
                   5038:   cat conftest.$ac_ext >&5
                   5039:   rm -rf conftest*
                   5040:   eval "ac_cv_func_$ac_func=no"
                   5041: fi
                   5042: rm -f conftest*
1.1       root     5043: fi
1.1.1.4   root     5044: 
1.1       root     5045: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5046:   echo "$ac_t""yes" 1>&6
                   5047:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5048:   cat >> confdefs.h <<EOF
                   5049: #define $ac_tr_func 1
                   5050: EOF
                   5051:  
                   5052: else
                   5053:   echo "$ac_t""no" 1>&6
1.1.1.6   root     5054: ftruncate_missing=yes
1.1       root     5055: fi
                   5056: done
                   5057: 
                   5058: 
1.1.1.6   root     5059: if test "$ftruncate_missing" = yes; then
                   5060: echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
1.1.1.12! root     5061: echo "configure:5062: checking fcntl emulation of ftruncate" >&5
1.1.1.6   root     5062: if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
                   5063:   echo $ac_n "(cached) $ac_c" 1>&6
                   5064: else
1.1       root     5065:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5066: #line 5067 "configure"
1.1       root     5067: #include "confdefs.h"
                   5068: 
1.1.1.2   root     5069: #include <sys/types.h>
1.1.1.6   root     5070: #include <fcntl.h>
1.1.1.4   root     5071: int main() {
1.1.1.6   root     5072: 
                   5073: #if !defined(F_CHSIZE) && !defined(F_FREESP)
                   5074: chsize();
                   5075: #endif
                   5076: 
1.1       root     5077: ; return 0; }
                   5078: EOF
1.1.1.12! root     5079: if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     5080:   rm -rf conftest*
1.1.1.6   root     5081:   fu_cv_sys_ftruncate_emulation=yes
1.1       root     5082: else
1.1.1.4   root     5083:   echo "configure: failed program was:" >&5
                   5084:   cat conftest.$ac_ext >&5
1.1       root     5085:   rm -rf conftest*
1.1.1.6   root     5086:   fu_cv_sys_ftruncate_emulation=no
1.1       root     5087: fi
                   5088: rm -f conftest*
                   5089: fi
                   5090: 
1.1.1.6   root     5091: echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
                   5092: if test $fu_cv_sys_ftruncate_emulation = yes; then
                   5093: LIBOBJS="$LIBOBJS ftruncate.o"
                   5094: fi
                   5095: fi
                   5096: 
                   5097: case "$LIBOBJS" in
                   5098: *rename.o*)
                   5099: MVDIR_PROG="mvdir"
                   5100: ;;
                   5101: esac
                   5102: 
                   5103: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
                   5104: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
                   5105: # enable the work-around code in fsusage.c.
                   5106: echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
1.1.1.12! root     5107: echo "configure:5108: checking for statfs that truncates block counts" >&5
1.1.1.6   root     5108: if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
                   5109:   echo $ac_n "(cached) $ac_c" 1>&6
                   5110: else
1.1       root     5111:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5112: #line 5113 "configure"
1.1       root     5113: #include "confdefs.h"
                   5114: 
1.1.1.6   root     5115: #if !defined(sun) && !defined(__sun)
                   5116: choke -- this is a workaround for a Sun-specific problem
1.1       root     5117: #endif
1.1.1.6   root     5118: #include <sys/types.h>
1.1       root     5119: #include <sys/vfs.h>
1.1.1.4   root     5120: int main() {
1.1.1.6   root     5121: struct statfs t; long c = *(t.f_spare);
1.1       root     5122: ; return 0; }
                   5123: EOF
1.1.1.12! root     5124: if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     5125:   rm -rf conftest*
1.1.1.6   root     5126:   fu_cv_sys_truncating_statfs=yes
1.1       root     5127: else
1.1.1.4   root     5128:   echo "configure: failed program was:" >&5
                   5129:   cat conftest.$ac_ext >&5
1.1       root     5130:   rm -rf conftest*
1.1.1.6   root     5131:   fu_cv_sys_truncating_statfs=no
                   5132: fi
                   5133: rm -f conftest*
                   5134: fi
                   5135: 
                   5136: if test $fu_cv_sys_truncating_statfs = yes; then
                   5137: cat >> confdefs.h <<\EOF
                   5138: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
                   5139: EOF
                   5140: 
                   5141: fi
                   5142: echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
                   5143: 
                   5144: echo "checking for AFS" 1>&6
1.1.1.12! root     5145: echo "configure:5146: checking for AFS" >&5
1.1.1.6   root     5146: test -d /afs && cat >> confdefs.h <<\EOF
                   5147: #define AFS 1
                   5148: EOF
                   5149: 
                   5150: 
                   5151: fi
                   5152: 
                   5153: if [ $target = "p.os" ]; then
                   5154:     HAVE_POS=yes
                   5155: else
                   5156:   echo $ac_n "checking for pOS""... $ac_c" 1>&6
1.1.1.12! root     5157: echo "configure:5158: checking for pOS" >&5
1.1.1.6   root     5158:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5159: #line 5160 "configure"
1.1.1.6   root     5160: #include "confdefs.h"
                   5161: #ifdef __POS__
                   5162:     yes
                   5163:   #endif
                   5164:   
                   5165: EOF
                   5166: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5167:   egrep "yes" >/dev/null 2>&1; then
                   5168:   rm -rf conftest*
                   5169:   echo "$ac_t""yes" 1>&6; HAVE_POS=yes
                   5170: else
                   5171:   rm -rf conftest*
                   5172:   echo "$ac_t""no" 1>&6; HAVE_POS=no
1.1       root     5173: fi
                   5174: rm -f conftest*
1.1.1.6   root     5175: 
1.1       root     5176: fi
                   5177: 
1.1.1.2   root     5178: 
1.1.1.4   root     5179: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
                   5180:   if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
                   5181:     echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
                   5182:     HAVE_NCURSES_LIB=no
                   5183:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5184:   else
                   5185:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
                   5186:       echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6
1.1.1.12! root     5187: echo "configure:5188: checking for attr_t in curses.h" >&5
1.1.1.4   root     5188:       cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5189: #line 5190 "configure"
1.1.1.4   root     5190: #include "confdefs.h"
                   5191: #include <curses.h>
                   5192: int main() {
                   5193: { attr_t a; a = A_NORMAL; }
                   5194: ; return 0; }
                   5195: EOF
1.1.1.12! root     5196: if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     5197:   rm -rf conftest*
                   5198:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     5199: else
1.1.1.4   root     5200:   echo "configure: failed program was:" >&5
                   5201:   cat conftest.$ac_ext >&5
                   5202:   rm -rf conftest*
                   5203:   
                   5204:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
                   5205:         echo "$ac_t""no" 1>&6
                   5206:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5207:        echo "Please install a newer version of libncurses if you can."
                   5208:       
                   5209: fi
                   5210: rm -f conftest*
                   5211:     else
                   5212:       echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6
1.1.1.12! root     5213: echo "configure:5214: checking for attr_t in ncurses.h" >&5
1.1.1.4   root     5214:       cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5215: #line 5216 "configure"
1.1.1.4   root     5216: #include "confdefs.h"
                   5217: #include <ncurses.h>
                   5218: int main() {
                   5219: { attr_t a; a = A_NORMAL; }
                   5220: ; return 0; }
                   5221: EOF
1.1.1.12! root     5222: if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     5223:   rm -rf conftest*
                   5224:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     5225: else
1.1.1.4   root     5226:   echo "configure: failed program was:" >&5
                   5227:   cat conftest.$ac_ext >&5
                   5228:   rm -rf conftest*
                   5229:   
                   5230:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
                   5231:         echo "$ac_t""no" 1>&6
                   5232:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5233:        echo "Please install a newer version of libncurses if you can."
                   5234:       
                   5235: fi
                   5236: rm -f conftest*
1.1.1.2   root     5237:     fi
1.1.1.4   root     5238:   fi
1.1.1.2   root     5239: fi
1.1.1.4   root     5240: 
1.1.1.6   root     5241: 
                   5242: echo $ac_n "checking for pthread library""... $ac_c" 1>&6
1.1.1.12! root     5243: echo "configure:5244: checking for pthread library" >&5
1.1.1.6   root     5244: TMP_SAVE_CFLAGS=$CFLAGS
                   5245: TMP_SAVE_LIBS=$LIBS
                   5246: LIBS="$LIBS -lpthread"
                   5247: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5248: #line 5249 "configure"
1.1.1.6   root     5249: #include "confdefs.h"
                   5250: 
                   5251: #include "confdefs.h"
                   5252: #ifdef HAVE_SYS_TYPES_H
                   5253: #include <sys/types.h>
                   5254: #endif
                   5255: #include <pthread.h>
                   5256: int main() {
                   5257: 
                   5258: pthread_exit (0);
1.1.1.10  root     5259: 
1.1.1.6   root     5260: ; return 0; }
                   5261: EOF
1.1.1.12! root     5262: if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     5263:   rm -rf conftest*
                   5264:   HAVE_PTHREAD_LIB=yes
                   5265: echo "$ac_t""yes" 1>&6
                   5266: else
                   5267:   echo "configure: failed program was:" >&5
                   5268:   cat conftest.$ac_ext >&5
                   5269:   rm -rf conftest*
                   5270:   HAVE_PTHREAD_LIB=no
                   5271: echo "$ac_t""no" 1>&6
                   5272: fi
                   5273: rm -f conftest*
                   5274: CFLAGS=$TMP_SAVE_CFLAGS
                   5275: LIBS=$TMP_SAVE_LIBS
                   5276: 
                   5277: echo $ac_n "checking for DirectX""... $ac_c" 1>&6
1.1.1.12! root     5278: echo "configure:5279: checking for DirectX" >&5
1.1.1.6   root     5279: TMP_SAVE_CFLAGS=$CFLAGS
                   5280: TMP_SAVE_LIBS=$LIBS
                   5281: CFLAGS="$CFLAGS $X_CFLAGS"
                   5282: LIBS="$LIBS -lddraw"
                   5283: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5284: #line 5285 "configure"
1.1.1.6   root     5285: #include "confdefs.h"
                   5286: 
                   5287: #include "confdefs.h"
                   5288: #ifdef HAVE_SYS_TYPES_H
                   5289: #include <sys/types.h>
                   5290: #endif
                   5291: #include <windows.h>
                   5292: #include <ddraw.h>
                   5293: int main() {
                   5294: 
                   5295: LPDIRECTDRAW lpDD;
                   5296: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
                   5297: 
                   5298: ; return 0; }
                   5299: EOF
1.1.1.12! root     5300: if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     5301:   rm -rf conftest*
                   5302:   HAVE_DIRECTX=yes
                   5303: echo "$ac_t""yes" 1>&6
                   5304: else
                   5305:   echo "configure: failed program was:" >&5
                   5306:   cat conftest.$ac_ext >&5
                   5307:   rm -rf conftest*
                   5308:   HAVE_DIRECTX=no
                   5309: echo "$ac_t""no" 1>&6
                   5310: fi
                   5311: rm -f conftest*
                   5312: CFLAGS=$TMP_SAVE_CFLAGS
                   5313: LIBS=$TMP_SAVE_LIBS
                   5314: 
1.1.1.4   root     5315: DO_PROFILING=no
                   5316: WANT_GGI=dunno
                   5317: WANT_SVGALIB=dunno
                   5318: WANT_ASCIIART=dunno
                   5319: WANT_UI=dunno
                   5320: WANT_NCURSES_UI=no
                   5321: WANT_DGA=no
                   5322: WANT_VIDMODE=no
                   5323: SYSTEM_IS_ELF=dunno
                   5324: 
                   5325: # Check whether --enable-profiling or --disable-profiling was given.
                   5326: if test "${enable_profiling+set}" = set; then
                   5327:   enableval="$enable_profiling"
                   5328:   DO_PROFILING=$enableval
1.1.1.2   root     5329: fi
1.1.1.4   root     5330: 
                   5331: # Check whether --with-svgalib or --without-svgalib was given.
                   5332: if test "${with_svgalib+set}" = set; then
                   5333:   withval="$with_svgalib"
                   5334:   WANT_SVGALIB=$withval
1.1.1.2   root     5335: fi
                   5336: 
1.1.1.4   root     5337: # Check whether --with-ggi or --without-ggi was given.
                   5338: if test "${with_ggi+set}" = set; then
                   5339:   withval="$with_ggi"
                   5340:   WANT_GGI=$withval
1.1.1.2   root     5341: fi
                   5342: 
1.1.1.4   root     5343: # Check whether --with-asciiart or --without-asciiart was given.
                   5344: if test "${with_asciiart+set}" = set; then
                   5345:   withval="$with_asciiart"
                   5346:   WANT_ASCIIART=$withval
                   5347: fi
1.1.1.3   root     5348: 
1.1.1.4   root     5349: # Check whether --enable-dga or --disable-dga was given.
                   5350: if test "${enable_dga+set}" = set; then
                   5351:   enableval="$enable_dga"
                   5352:   WANT_DGA=$enableval
                   5353: fi
                   5354: 
                   5355: # Check whether --enable-vidmode or --disable-vidmode was given.
                   5356: if test "${enable_vidmode+set}" = set; then
                   5357:   enableval="$enable_vidmode"
                   5358:   WANT_VIDMODE=$enableval
                   5359: fi
                   5360: 
                   5361: # Check whether --enable-ui or --disable-ui was given.
                   5362: if test "${enable_ui+set}" = set; then
                   5363:   enableval="$enable_ui"
                   5364:   WANT_UI=$enableval
                   5365: fi
                   5366: 
                   5367: # Check whether --with-elf or --without-elf was given.
                   5368: if test "${with_elf+set}" = set; then
                   5369:   withval="$with_elf"
                   5370:   SYSTEM_IS_ELF=$withval
                   5371: fi
                   5372: 
                   5373: 
                   5374: 
                   5375: if [ "x$WANT_DGA" = "xyes" ]; then
                   5376:   if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then
                   5377:     echo "You can't enable DGA for SVGAlib, GGI and ncurses targets!"
                   5378:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5379:     WANT_DGA=no
                   5380:   fi
                   5381: fi
                   5382: 
                   5383: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
                   5384:   echo "Ignoring --enable-dga, since X was disabled or not found."
                   5385:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   5386:   WANT_DGA=no
                   5387: fi
                   5388: 
                   5389: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
                   5390:   echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
                   5391:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   5392:   WANT_VIDMODE=no
                   5393: fi
                   5394: 
                   5395: 
                   5396: if [ "x$WANT_SVGALIB" = "xyes" ]; then
                   5397:   if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
                   5398:     echo "Could not find libsvga, disabling svgalib support."
                   5399:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5400:     WANT_SVGALIB=no
1.1       root     5401:   else
1.1.1.4   root     5402:     no_x=yes
                   5403:   fi
                   5404: fi
                   5405: 
                   5406: if [ "x$WANT_GGI" = "xyes" ]; then
                   5407:   if [ "x$HAVE_GGI_LIB" = "xno" ]; then
                   5408:     echo "Could not find libggi, disabling GGI support."
                   5409:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5410:     WANT_GGI=no
                   5411:   else if [ "x$WANT_SVGALIB" = "xyes" ]; then
                   5412:     echo "You can't configure for both SVGAlib and GGI. Disabling GGI."
                   5413:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5414:     WANT_GGI=no
                   5415:   else
                   5416:     no_x=yes
                   5417:   fi
                   5418:   fi
                   5419: fi
                   5420: 
                   5421: if [ "x$WANT_ASCIIART" = "xyes" ]; then
                   5422:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
                   5423:     echo "Could not find libncurses, disabling ascii art support."
                   5424:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5425:     WANT_ASCIIART=no
                   5426:   else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" ]; then
                   5427:     echo "You can't configure for both ncurses and another target. Disabling ncurses."
                   5428:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5429:     WANT_ASCIIART=no
                   5430:   else
                   5431:     no_x=yes
                   5432:   fi
                   5433:   fi
                   5434: fi
                   5435: 
                   5436: 
                   5437: if [ "x$WANT_DGA" = "xyes" ]; then
                   5438:   TMP_SAVE_LIBS=$LIBS
                   5439:   LIBS="$X_LIBS $LIBS"
                   5440:   echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1.1.1.12! root     5441: echo "configure:5442: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1.1.1.4   root     5442: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.2   root     5443: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   5444:   echo $ac_n "(cached) $ac_c" 1>&6
                   5445: else
                   5446:   ac_save_LIBS="$LIBS"
1.1.1.4   root     5447: LIBS="-lXxf86dga  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.2   root     5448: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5449: #line 5450 "configure"
1.1.1.2   root     5450: #include "confdefs.h"
                   5451: /* Override any gcc2 internal prototype to avoid an error.  */
                   5452: /* We use char because int might match the return type of a gcc2
                   5453:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     5454: char XF86DGAQueryExtension();
1.1.1.2   root     5455: 
1.1.1.4   root     5456: int main() {
                   5457: XF86DGAQueryExtension()
1.1.1.2   root     5458: ; return 0; }
                   5459: EOF
1.1.1.12! root     5460: if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2   root     5461:   rm -rf conftest*
                   5462:   eval "ac_cv_lib_$ac_lib_var=yes"
                   5463: else
1.1.1.4   root     5464:   echo "configure: failed program was:" >&5
                   5465:   cat conftest.$ac_ext >&5
1.1.1.2   root     5466:   rm -rf conftest*
                   5467:   eval "ac_cv_lib_$ac_lib_var=no"
                   5468: fi
                   5469: rm -f conftest*
                   5470: LIBS="$ac_save_LIBS"
                   5471: 
                   5472: fi
                   5473: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   5474:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     5475:   HAVE_DGA=yes
1.1.1.2   root     5476: else
                   5477:   echo "$ac_t""no" 1>&6
1.1.1.4   root     5478: HAVE_DGA=no
1.1.1.2   root     5479: fi
                   5480: 
1.1.1.4   root     5481:   LIBS=$TMP_SAVE_LIBS
                   5482:   if [ "x$HAVE_DGA" = "xno" ]; then
                   5483:     echo "Could not find DGA extension, ignoring --enable-dga."
                   5484:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5485:     WANT_DGA=no
1.1.1.3   root     5486:   fi
1.1.1.2   root     5487: fi
                   5488: 
1.1.1.4   root     5489: if [ "x$WANT_VIDMODE" = "xyes" ]; then
                   5490:   TMP_SAVE_LIBS=$LIBS
                   5491:   LIBS="$X_LIBS $LIBS"
                   5492:   echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
1.1.1.12! root     5493: echo "configure:5494: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
1.1.1.4   root     5494: ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.3   root     5495: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   5496:   echo $ac_n "(cached) $ac_c" 1>&6
                   5497: else
                   5498:   ac_save_LIBS="$LIBS"
1.1.1.4   root     5499: LIBS="-lXxf86vm  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.3   root     5500: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5501: #line 5502 "configure"
1.1.1.3   root     5502: #include "confdefs.h"
                   5503: /* Override any gcc2 internal prototype to avoid an error.  */
                   5504: /* We use char because int might match the return type of a gcc2
                   5505:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     5506: char XF86VidModeQueryExtension();
1.1.1.3   root     5507: 
1.1.1.4   root     5508: int main() {
                   5509: XF86VidModeQueryExtension()
1.1.1.3   root     5510: ; return 0; }
                   5511: EOF
1.1.1.12! root     5512: if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.3   root     5513:   rm -rf conftest*
                   5514:   eval "ac_cv_lib_$ac_lib_var=yes"
                   5515: else
1.1.1.4   root     5516:   echo "configure: failed program was:" >&5
                   5517:   cat conftest.$ac_ext >&5
1.1.1.3   root     5518:   rm -rf conftest*
                   5519:   eval "ac_cv_lib_$ac_lib_var=no"
                   5520: fi
                   5521: rm -f conftest*
                   5522: LIBS="$ac_save_LIBS"
                   5523: 
                   5524: fi
                   5525: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   5526:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     5527:   HAVE_VIDMODE=yes
1.1.1.3   root     5528: else
                   5529:   echo "$ac_t""no" 1>&6
1.1.1.4   root     5530: HAVE_VIDMODE=no
1.1.1.3   root     5531: fi
                   5532: 
1.1.1.4   root     5533:   LIBS=$TMP_SAVE_LIBS
                   5534:   if [ "x$HAVE_VIDMODE" = "xno" ]; then
                   5535:     echo "Could not find VidMode extension, ignoring --enable-vidmode."
                   5536:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5537:     WANT_VIDMODE=no
1.1.1.3   root     5538:   fi
1.1.1.4   root     5539: fi
                   5540: 
                   5541: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
                   5542: if test "${with_gtk_prefix+set}" = set; then
                   5543:   withval="$with_gtk_prefix"
                   5544:   gtk_config_prefix="$withval"
                   5545: else
                   5546:   gtk_config_prefix=""
                   5547: fi
                   5548: 
                   5549: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
                   5550: if test "${with_gtk_exec_prefix+set}" = set; then
                   5551:   withval="$with_gtk_exec_prefix"
                   5552:   gtk_config_exec_prefix="$withval"
                   5553: else
                   5554:   gtk_config_exec_prefix=""
                   5555: fi
                   5556: 
                   5557: # Check whether --enable-gtktest or --disable-gtktest was given.
                   5558: if test "${enable_gtktest+set}" = set; then
                   5559:   enableval="$enable_gtktest"
                   5560:   :
                   5561: else
                   5562:   enable_gtktest=yes
                   5563: fi
                   5564: 
                   5565: 
                   5566:   if test x$gtk_config_exec_prefix != x ; then
                   5567:      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
                   5568:      if test x${GTK_CONFIG+set} != xset ; then
                   5569:         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
                   5570:      fi
                   5571:   fi
                   5572:   if test x$gtk_config_prefix != x ; then
                   5573:      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
                   5574:      if test x${GTK_CONFIG+set} != xset ; then
                   5575:         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
                   5576:      fi
                   5577:   fi
                   5578: 
                   5579:   # Extract the first word of "gtk-config", so it can be a program name with args.
                   5580: set dummy gtk-config; ac_word=$2
                   5581: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.12! root     5582: echo "configure:5583: checking for $ac_word" >&5
1.1.1.4   root     5583: if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
                   5584:   echo $ac_n "(cached) $ac_c" 1>&6
                   5585: else
                   5586:   case "$GTK_CONFIG" in
                   5587:   /*)
                   5588:   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
                   5589:   ;;
1.1.1.9   root     5590:   ?:/*)                         
                   5591:   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
                   5592:   ;;
1.1.1.4   root     5593:   *)
1.1.1.9   root     5594:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   5595:   ac_dummy="$PATH"
                   5596:   for ac_dir in $ac_dummy; do 
1.1.1.4   root     5597:     test -z "$ac_dir" && ac_dir=.
                   5598:     if test -f $ac_dir/$ac_word; then
                   5599:       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
                   5600:       break
                   5601:     fi
                   5602:   done
                   5603:   IFS="$ac_save_ifs"
                   5604:   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
                   5605:   ;;
                   5606: esac
                   5607: fi
                   5608: GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
                   5609: if test -n "$GTK_CONFIG"; then
                   5610:   echo "$ac_t""$GTK_CONFIG" 1>&6
                   5611: else
                   5612:   echo "$ac_t""no" 1>&6
                   5613: fi
                   5614: 
                   5615:   min_gtk_version=0.99.7
                   5616:   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1.1.1.12! root     5617: echo "configure:5618: checking for GTK - version >= $min_gtk_version" >&5
1.1.1.4   root     5618:   no_gtk=""
                   5619:   if test "$GTK_CONFIG" = "no" ; then
                   5620:     no_gtk=yes
                   5621:   else
                   5622:     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
                   5623:     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
                   5624:     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5625:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
                   5626:     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5627:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
                   5628:     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5629:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
                   5630:     if test "x$enable_gtktest" = "xyes" ; then
                   5631:       ac_save_CFLAGS="$CFLAGS"
                   5632:       ac_save_LIBS="$LIBS"
                   5633:       CFLAGS="$CFLAGS $GTK_CFLAGS"
                   5634:       LIBS="$LIBS $GTK_LIBS"
                   5635:       rm -f conf.gtktest
                   5636:       if test "$cross_compiling" = yes; then
                   5637:   echo $ac_n "cross compiling; assumed OK... $ac_c"
                   5638: else
                   5639:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5640: #line 5641 "configure"
1.1.1.4   root     5641: #include "confdefs.h"
                   5642: 
                   5643: #include <gtk/gtk.h>
                   5644: #include <stdio.h>
                   5645: 
                   5646: int 
                   5647: main ()
1.1.1.3   root     5648: {
1.1.1.4   root     5649:   int major, minor, micro;
                   5650: 
                   5651:   system ("touch conf.gtktest");
                   5652: 
                   5653:   if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
                   5654:      printf("%s, bad version string\n", "$min_gtk_version");
                   5655:      exit(1);
                   5656:    }
                   5657: 
                   5658:   if ((gtk_major_version != $gtk_config_major_version) ||
                   5659:       (gtk_minor_version != $gtk_config_minor_version) ||
                   5660:       (gtk_micro_version != $gtk_config_micro_version))
                   5661:     {
                   5662:       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
                   5663:              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
                   5664:              gtk_major_version, gtk_minor_version, gtk_micro_version);
                   5665:       printf ("*** was found! If gtk-config was correct, then it is best\n");
                   5666:       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
                   5667:       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
                   5668:       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
                   5669:       printf("*** required on your system.\n");
                   5670:       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
                   5671:       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
                   5672:       printf("*** before re-running configure\n");
                   5673:     } 
                   5674:   else
                   5675:     {
                   5676:       if ((gtk_major_version > major) ||
                   5677:         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
                   5678:         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
                   5679:       {
                   5680:         return 0;
                   5681:        }
                   5682:      else
                   5683:       {
                   5684:         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
                   5685:                gtk_major_version, gtk_minor_version, gtk_micro_version);
                   5686:         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
                   5687:               major, minor, micro);
                   5688:         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
                   5689:         printf("***\n");
                   5690:         printf("*** If you have already installed a sufficiently new version, this error\n");
                   5691:         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
                   5692:         printf("*** being found. The easiest way to fix this is to remove the old version\n");
                   5693:         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
                   5694:         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
                   5695:         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
                   5696:         printf("*** so that the correct libraries are found at run-time))\n");
                   5697:       }
                   5698:     }
                   5699:   return 1;
1.1.1.3   root     5700: }
1.1.1.4   root     5701: 
                   5702: EOF
1.1.1.12! root     5703: if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     5704: then
                   5705:   :
                   5706: else
                   5707:   echo "configure: failed program was:" >&5
                   5708:   cat conftest.$ac_ext >&5
                   5709:   rm -fr conftest*
                   5710:   no_gtk=yes
                   5711: fi
                   5712: rm -fr conftest*
                   5713: fi
                   5714: 
                   5715:        CFLAGS="$ac_save_CFLAGS"
                   5716:        LIBS="$ac_save_LIBS"
                   5717:      fi
                   5718:   fi
                   5719:   if test "x$no_gtk" = x ; then
                   5720:      echo "$ac_t""yes" 1>&6
                   5721:      :     
                   5722:   else
                   5723:      echo "$ac_t""no" 1>&6
                   5724:      if test "$GTK_CONFIG" = "no" ; then
                   5725:        echo "*** The gtk-config script installed by GTK could not be found"
                   5726:        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
                   5727:        echo "*** your path, or set the GTK_CONFIG environment variable to the"
                   5728:        echo "*** full path to gtk-config."
                   5729:      else
                   5730:        if test -f conf.gtktest ; then
                   5731:         :
                   5732:        else
                   5733:           echo "*** Could not run GTK test program, checking why..."
                   5734:           CFLAGS="$CFLAGS $GTK_CFLAGS"
                   5735:           LIBS="$LIBS $GTK_LIBS"
                   5736:           cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5737: #line 5738 "configure"
1.1.1.4   root     5738: #include "confdefs.h"
                   5739: 
                   5740: #include <gtk/gtk.h>
                   5741: #include <stdio.h>
                   5742: 
                   5743: int main() {
                   5744:  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
                   5745: ; return 0; }
1.1.1.3   root     5746: EOF
1.1.1.12! root     5747: if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     5748:   rm -rf conftest*
                   5749:    echo "*** The test program compiled, but did not run. This usually means"
                   5750:           echo "*** that the run-time linker is not finding GTK or finding the wrong"
                   5751:           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
                   5752:           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
                   5753:           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
                   5754:           echo "*** is required on your system"
                   5755:          echo "***"
                   5756:           echo "*** If you have an old version installed, it is best to remove it, although"
                   5757:           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
                   5758:           echo "***"
                   5759:           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
                   5760:           echo "*** came with the system with the command"
                   5761:           echo "***"
                   5762:           echo "***    rpm --erase --nodeps gtk gtk-devel" 
                   5763: else
                   5764:   echo "configure: failed program was:" >&5
                   5765:   cat conftest.$ac_ext >&5
                   5766:   rm -rf conftest*
                   5767:    echo "*** The test program failed to compile or link. See the file config.log for the"
                   5768:           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
                   5769:           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
                   5770:           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
                   5771: fi
                   5772: rm -f conftest*
                   5773:           CFLAGS="$ac_save_CFLAGS"
                   5774:           LIBS="$ac_save_LIBS"
                   5775:        fi
                   5776:      fi
                   5777:      GTK_CFLAGS=""
                   5778:      GTK_LIBS=""
                   5779:      :
1.1.1.3   root     5780:   fi
1.1.1.4   root     5781:   
                   5782:   
                   5783:   rm -f conf.gtktest
1.1.1.3   root     5784: 
1.1.1.4   root     5785: 
                   5786: 
                   5787: SHM_SUPPORT_LINKS=0
1.1.1.6   root     5788: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.4   root     5789:   echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6
1.1.1.12! root     5790: echo "configure:5791: checking whether the X11 MIT-SHM extension can be compiled in" >&5
1.1.1.4   root     5791:   TMP_SAVE_CFLAGS=$CFLAGS
                   5792:   TMP_SAVE_LIBS=$LIBS
                   5793:   CFLAGS="$CFLAGS $X_CFLAGS"
                   5794:   LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
                   5795:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     5796: #line 5797 "configure"
1.1.1.2   root     5797: #include "confdefs.h"
                   5798: 
1.1.1.4   root     5799: #include "confdefs.h"
                   5800: #ifdef HAVE_SYS_TYPES_H
                   5801: #include <sys/types.h>
                   5802: #endif
                   5803: #include <X11/Xlib.h>
                   5804: #include <X11/Xutil.h>
                   5805: #include <X11/keysym.h>
                   5806: #include <X11/cursorfont.h>
                   5807: #include <sys/ipc.h>
                   5808: #include <sys/shm.h>
                   5809: #include <X11/extensions/XShm.h>
                   5810: int main() {
                   5811: 
                   5812: static XShmSegmentInfo shminfo;
                   5813: static Display *display;
                   5814: XShmAttach(display, &shminfo);
                   5815: XSync(display,0);
                   5816: shmctl(shminfo.shmid, IPC_RMID, 0);
1.1.1.10  root     5817: 
1.1.1.2   root     5818: ; return 0; }
                   5819: EOF
1.1.1.12! root     5820: if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2   root     5821:   rm -rf conftest*
1.1.1.4   root     5822:   SHM_SUPPORT_LINKS=1
                   5823: echo "$ac_t""yes" 1>&6
1.1       root     5824: else
1.1.1.4   root     5825:   echo "configure: failed program was:" >&5
                   5826:   cat conftest.$ac_ext >&5
1.1.1.2   root     5827:   rm -rf conftest*
1.1.1.4   root     5828:   SHM_SUPPORT_LINKS=0
                   5829: echo "$ac_t""no" 1>&6
1.1       root     5830: fi
1.1.1.2   root     5831: rm -f conftest*
1.1.1.4   root     5832:   CFLAGS=$TMP_SAVE_CFLAGS
                   5833:   LIBS=$TMP_SAVE_LIBS
1.1       root     5834: fi
                   5835: 
1.1.1.4   root     5836: MATHLIB=-lm
                   5837: DEBUGOBJS="debug.o"
                   5838: 
                   5839: echo $ac_n "checking which target to use""... $ac_c" 1>&6
1.1.1.12! root     5840: echo "configure:5841: checking which target to use" >&5
1.1.1.4   root     5841: 
1.1.1.6   root     5842: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
                   5843:   echo "$ac_t""Win32/DirectX" 1>&6
                   5844:   MATHLIB=
                   5845:   TARGET=win32
                   5846:   TARGETDEP=t-win32.h
                   5847:   GFXOBJS="osdep/win32.o osdep/win32gui.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
                   5848:   RESOBJS="osdep/winuae.res"
                   5849: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.4   root     5850:   echo "$ac_t""BeOS" 1>&6
                   5851:   MATHLIB=
                   5852:   TARGET=beos
                   5853:   TARGETDEP=t-beos.h
                   5854:   GFXOBJS=osdep/beos.o
                   5855:   GUIOBJS=
                   5856:   OPTIMIZE_CFLAGS=-O7
                   5857: else if [ "x$HAVE_POS" = "xyes" ]; then
                   5858:   echo "$ac_t""p.OS" 1>&6
                   5859:   TARGET=p_os
                   5860:   TARGETDEP=t-pos.h
                   5861:   GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
                   5862:   GUIOBJS="osdep/pos-gui.o"
                   5863: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
                   5864:   echo "$ac_t""AmigaOS" 1>&6
                   5865:   TARGET=amigaos
                   5866:   TARGETDEP=t-amiga.h
                   5867:   GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
                   5868:   GUIOBJS="osdep/ami-gui.o"
                   5869: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
                   5870:   echo "$ac_t""NeXTStep" 1>&6
                   5871:   MATHLIB=
                   5872:   TARGET=next
                   5873:   GFXOBJS="NeXTwin.o"
                   5874:   GUIOBJS=
                   5875:   TARGETDEP=t-next.h
                   5876:   LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
                   5877: else
                   5878:     
                   5879:   if [ "x$no_x" = "xyes" ]; then
                   5880:     if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_GGI" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
                   5881:       if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
                   5882:         WANT_SVGALIB=yes
                   5883:       else if [ "x$WANT_GGI" != "xno" -a "x$HAVE_GGI_LIB" = "xyes" ]; then
                   5884:         WANT_GGI=yes
                   5885:       else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
                   5886:         WANT_ASCIIART=yes
                   5887:       fi
                   5888:       fi
                   5889:       fi
                   5890:     fi
1.1.1.3   root     5891:   fi
1.1.1.4   root     5892: 
                   5893:   if [ "x$WANT_GGI" = "xyes" ]; then
                   5894:     echo "$ac_t""GGI" 1>&6
                   5895:     TARGET=ggilib
                   5896:     TARGETDEP=t-ggi.h
                   5897:     WANT_NCURSES_UI=yes
                   5898:     GFXOBJS=ggi.o
                   5899:     LIBRARIES="-ldl -lggi"
                   5900:     LDFLAGS="-rdynamic $LDFLAGS"
                   5901:   else if [ "x$WANT_SVGALIB" = "xyes" ]; then
                   5902:     echo "$ac_t""SVGAlib" 1>&6
                   5903:     TARGET=svgalib
                   5904:     TARGETDEP=t-svgalib.h
                   5905:     GFXOBJS=svga.o
                   5906:     LIBRARIES="-lvga"
                   5907:     WANT_NCURSES_UI=yes
                   5908:   else if [ "x$WANT_ASCIIART" = "xyes" ]; then
                   5909:     echo "$ac_t""ncurses ASCII art" 1>&6
                   5910:     TARGET=asciiart
                   5911:     TARGETDEP=t-ascii.h
                   5912:     GFXOBJS="ncurses.o"
                   5913:     GUIOBJS="tui.o svgancui.o"
                   5914:     LIBRARIES="-lncurses"
                   5915:   else if [ "x$no_x" = "xyes" ]; then
                   5916:     echo "$ac_t""Ummm...." 1>&6
                   5917:     echo "Fatal error: No graphics system found, don't know what target to use."
                   5918:     exit 1
                   5919:   else
                   5920:     echo "$ac_t""X11" 1>&6
                   5921:     TARGET=x11
                   5922:     TARGETDEP=t-x11.h
                   5923:     GFXOBJS=xwin.o
                   5924:     GUIOBJS=nogui.o
                   5925: 
                   5926:     LIBRARIES="$X_LIBS $X_PRE_LIBS"
                   5927:         if [ "x$WANT_DGA" = "xyes" ]; then
                   5928:       LIBRARIES="$LIBRARIES -lXxf86dga"
                   5929:       X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
                   5930:       if [ "x$WANT_VIDMODE" = "xyes" ]; then
                   5931:         LIBRARIES="$LIBRARIES -lXxf86vm"
                   5932:        X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
                   5933:       fi
                   5934:     fi
                   5935:     LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
                   5936: 
                   5937:     if [ "x$WANT_UI" != "xno" ]; then
                   5938:       if [ "x$no_gtk" = "xyes" ]; then
                   5939:        echo "Did not find gtk+, disabling user interface"
                   5940:        GTK_CFLAGS=
                   5941:        GTK_LIBS=
                   5942:        if [ "x$WANT_UI" = "xyes" ]; then
                   5943:          NR_ERRORS=`expr $NR_ERRORS + 1`
                   5944:        fi
1.1       root     5945:       else
1.1.1.4   root     5946:         echo "Using gtk+ GUI."
                   5947:        NEED_THREAD_SUPPORT=yes
                   5948:        ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
                   5949:        GUIOBJS=gtkui.o
1.1       root     5950:       fi
                   5951:     fi
1.1.1.4   root     5952:   fi
                   5953:   fi
                   5954:   fi
1.1       root     5955:   fi
                   5956: fi
1.1.1.3   root     5957: fi
                   5958: fi
                   5959: fi
1.1.1.6   root     5960: fi
1.1       root     5961: 
1.1.1.4   root     5962: if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
                   5963:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
                   5964:     if [ "x$WANT_UI" = "xyes" ]; then
                   5965:       echo "ncurses is unavailable, can't provide a user interface"
                   5966:       NR_ERRORS=`expr $NR_ERRORS + 1`      
                   5967:     fi
                   5968:     WANT_UI=no
                   5969:   fi
                   5970:   if [ "x$WANT_UI" != "xno" ]; then
                   5971:     GUIOBJS="tui.o svgancui.o"
                   5972:     LIBRARIES="$LIBRARIES -lncurses"
                   5973:     ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
                   5974:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
                   5975:       echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
                   5976:       echo "of ncurses, but it might indicate a problem with older versions."
                   5977:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5978:     fi
                   5979:   else
                   5980:     GUIOBJS=nogui.o
                   5981:   fi
1.1.1.3   root     5982: fi
                   5983:  
1.1.1.4   root     5984: GFXOBJS="$GFXOBJS $GUIOBJS"
                   5985:  
                   5986: 
                   5987: MACHDEP=md-generic
                   5988: OSDEP=od-generic
                   5989: THREADDEP=td-none
                   5990: SOUNDDEP=od-generic
                   5991: 
1.1.1.11  root     5992: FPP_H=fpp-unknown.h
1.1.1.4   root     5993: USE_THREADS=no
                   5994: USE_FILE_SOUND=no
1.1.1.10  root     5995: USE_SCSI_DEVICE=no
1.1.1.4   root     5996: 
1.1.1.6   root     5997: USE_UNDERSCORE=dunno
                   5998: 
1.1.1.4   root     5999: HAVELINUX=no
1.1.1.6   root     6000: HAVEBSD=no
1.1.1.4   root     6001: HAVEGCC27=no
1.1.1.6   root     6002: HAVEGAS=no
1.1.1.4   root     6003: HAVEI386=no
                   6004: HAVE68K=no
1.1.1.11  root     6005: HAVEPPC=no
1.1.1.4   root     6006: HAVEGLIBC2=no
1.1.1.3   root     6007: 
1.1       root     6008: ASMOBJS=
1.1.1.4   root     6009: CPUOBJS=cpuemu.o
1.1.1.3   root     6010: 
1.1.1.4   root     6011: echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
1.1.1.12! root     6012: echo "configure:6013: checking for GCC 2.7 or higher" >&5
1.1.1.6   root     6013: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6014: #line 6015 "configure"
1.1.1.6   root     6015: #include "confdefs.h"
                   6016: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
                   6017:   yes
1.1.1.3   root     6018: #endif
                   6019: 
1.1.1.6   root     6020: EOF
                   6021: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6022:   egrep "yes" >/dev/null 2>&1; then
                   6023:   rm -rf conftest*
                   6024:   echo "$ac_t""yes" 1>&6; HAVEGCC27=yes
1.1.1.3   root     6025: else
1.1.1.6   root     6026:   rm -rf conftest*
1.1.1.4   root     6027:   echo "$ac_t""no" 1>&6
1.1.1.6   root     6028: fi
                   6029: rm -f conftest*
                   6030: 
                   6031: 
                   6032: if test $ac_cv_prog_gcc = yes; then
                   6033:   if test $HAVEGCC27 != yes; then
1.1.1.3   root     6034:     echo "I suggest you upgrade to at least version 2.7 of GCC"
1.1.1.6   root     6035:   fi
                   6036: else
                   6037:   if test $uae_cv_prog_cc_watcom != yes; then
1.1.1.3   root     6038:     echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4   root     6039:     NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3   root     6040:   fi
                   6041: fi
                   6042: 
1.1.1.4   root     6043: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
1.1.1.6   root     6044:   echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6
1.1.1.12! root     6045: echo "configure:6046: checking for glibc-2.0 or higher" >&5
1.1.1.6   root     6046:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6047: #line 6048 "configure"
1.1.1.6   root     6048: #include "confdefs.h"
1.1.1.4   root     6049: #include <features.h>
1.1.1.6   root     6050: #if __GLIBC__ - 1 >= 1
                   6051:   yes
1.1.1.4   root     6052: #endif
                   6053: 
1.1.1.6   root     6054: EOF
                   6055: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6056:   egrep "yes" >/dev/null 2>&1; then
                   6057:   rm -rf conftest*
                   6058:   echo "$ac_t""yes" 1>&6; HAVEGLIBC2=yes
1.1.1.3   root     6059: else
1.1.1.6   root     6060:   rm -rf conftest*
1.1.1.4   root     6061:   echo "$ac_t""no" 1>&6
                   6062: fi
1.1.1.6   root     6063: rm -f conftest*
                   6064: 
                   6065: fi
1.1.1.4   root     6066: 
1.1.1.6   root     6067: if test $ac_cv_prog_gcc = yes; then
1.1.1.4   root     6068:   WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
                   6069:   OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
                   6070:     CFLAGS=
                   6071: fi
                   6072: 
                   6073: if [ "x$DO_PROFILING" = "xyes" ]; then
                   6074:   if [ "x$CC" = "xgcc" ]; then
                   6075:     OPTIMIZE_CFLAGS="-O"
                   6076:     DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
                   6077:     LDFLAGS="-pg"
                   6078:   else
                   6079:     DO_PROFILING=no
                   6080:     echo "Don't know how to set up profiling for your compiler."
                   6081:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3   root     6082:   fi
                   6083: fi
                   6084: 
1.1.1.4   root     6085: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
                   6086: 
                   6087: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3   root     6088:   CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
                   6089: else
                   6090:   CFLAGS="$CFLAGS -DGCCCONSTFUNC="
                   6091: fi
1.1.1.2   root     6092: 
1.1.1.6   root     6093: echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
1.1.1.12! root     6094: echo "configure:6095: checking for x86 target CPU" >&5
1.1.1.6   root     6095: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6096: #line 6097 "configure"
1.1.1.6   root     6097: #include "confdefs.h"
                   6098: 
1.1.1.3   root     6099: #ifdef __i386__
1.1.1.6   root     6100:   yes
1.1.1.3   root     6101: #endif
1.1       root     6102: 
1.1.1.6   root     6103: EOF
                   6104: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6105:   egrep "yes" >/dev/null 2>&1; then
                   6106:   rm -rf conftest*
                   6107:   echo "$ac_t""yes" 1>&6; HAVEI386=yes
1.1.1.3   root     6108: else
1.1.1.6   root     6109:   rm -rf conftest*
                   6110:   echo "$ac_t""no" 1>&6
                   6111: fi
                   6112: rm -f conftest*
                   6113: 
                   6114: 
                   6115: echo $ac_n "checking for m68k target CPU""... $ac_c" 1>&6
1.1.1.12! root     6116: echo "configure:6117: checking for m68k target CPU" >&5
1.1.1.6   root     6117: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6118: #line 6119 "configure"
1.1.1.6   root     6119: #include "confdefs.h"
                   6120: 
                   6121: #ifdef __m68k__
                   6122:   yes
                   6123: #endif
1.1.1.3   root     6124: 
1.1.1.6   root     6125: EOF
                   6126: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6127:   egrep "yes" >/dev/null 2>&1; then
                   6128:   rm -rf conftest*
1.1.1.7   root     6129:   echo "$ac_t""yes" 1>&6; HAVE68K=yes
1.1.1.6   root     6130: else
                   6131:   rm -rf conftest*
                   6132:   echo "$ac_t""no" 1>&6
                   6133: fi
1.1.1.3   root     6134: rm -f conftest*
                   6135: 
1.1.1.6   root     6136: 
1.1.1.11  root     6137: echo $ac_n "checking for ppc target CPU""... $ac_c" 1>&6
1.1.1.12! root     6138: echo "configure:6139: checking for ppc target CPU" >&5
1.1.1.11  root     6139: cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6140: #line 6141 "configure"
1.1.1.11  root     6141: #include "confdefs.h"
                   6142: 
                   6143: #ifdef __powerpc__
                   6144:   yes
                   6145: #endif
                   6146: 
                   6147: EOF
                   6148: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6149:   egrep "yes" >/dev/null 2>&1; then
                   6150:   rm -rf conftest*
                   6151:   echo "$ac_t""yes" 1>&6; HAVEPPC=yes
                   6152: else
                   6153:   rm -rf conftest*
                   6154:   echo "$ac_t""no" 1>&6
                   6155: fi
                   6156: rm -f conftest*
                   6157: 
                   6158: 
1.1.1.4   root     6159: if MACHINE=`uname -a 2>/dev/null`; then
                   6160:   case "$MACHINE" in
                   6161:   Linux*)
                   6162:     HAVELINUX=yes
                   6163:     ;;
                   6164:   esac
                   6165: fi
                   6166: 
1.1.1.3   root     6167: 
1.1.1.6   root     6168: echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
1.1.1.12! root     6169: echo "configure:6170: checking for GAS .p2align feature" >&5
1.1.1.6   root     6170: cat >conftest.S << EOF
                   6171:        .text
                   6172:        .p2align 5
1.1       root     6173: EOF
1.1.1.6   root     6174: if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVEGAS=yes; fi
                   6175: echo "$ac_t""$HAVEGAS" 1>&6
1.1.1.4   root     6176: 
1.1.1.6   root     6177: echo $ac_n "checking whether assembler symbols need an underscore""... $ac_c" 1>&6
1.1.1.12! root     6178: echo "configure:6179: checking whether assembler symbols need an underscore" >&5
1.1.1.6   root     6179: cat >conftest1.S << EOF
                   6180:        .text
                   6181:        .globl _symbol
                   6182: _symbol:
                   6183: EOF
                   6184: cat >conftest2.c << EOF
                   6185: extern void symbol ();
                   6186: int main ()
                   6187: {
                   6188: symbol ();
                   6189: }
                   6190: EOF
                   6191: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
                   6192: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
                   6193: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
                   6194:   USE_UNDERSCORE=yes
                   6195:   CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4   root     6196: else
1.1.1.6   root     6197:   USE_UNDERSCORE=no
1.1.1.4   root     6198: fi
1.1.1.6   root     6199: echo "$ac_t""$USE_UNDERSCORE" 1>&6
1.1.1.4   root     6200: 
                   6201: rm -f conftest*
                   6202: 
                   6203: # Check whether --enable-threads or --disable-threads was given.
                   6204: if test "${enable_threads+set}" = set; then
                   6205:   enableval="$enable_threads"
                   6206:   USE_THREADS=$enableval
                   6207: fi
                   6208: 
                   6209: 
                   6210: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
1.1.1.12! root     6211:   if [ "x$USE_THREADS" != "xyes" ]; then
1.1.1.4   root     6212:     echo "The gtk+ GUI needs threads; enabling thread support."
                   6213:   fi
                   6214: fi
                   6215: 
1.1.1.12! root     6216: if [ "x$USE_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
1.1.1.4   root     6217:   if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
                   6218:     THREADDEP=td-posix
                   6219:     CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
                   6220:     LIBS="$LIBS -lpthread"
                   6221:     if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
                   6222:       LIBS="$LIBS -lposix4"
                   6223:     fi
                   6224: 
                   6225:     if [ "x$USE_THREADS" = "xyes" ]; then    
                   6226:       CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
                   6227:     fi
                   6228: 
                   6229:     if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
1.1.1.6   root     6230:       echo "Thread support has only been tested on Linux systems with glibc-2.0"
1.1.1.4   root     6231:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   6232:     fi
                   6233:     if [ "x$TARGET" = "xsvgalib" ]; then
                   6234:       echo "If you didn't compile a fixed version of SVGAlib then thread support"
                   6235:       echo "in UAE will lock your machine real hard."
                   6236:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   6237:     fi
1.1       root     6238:   else
1.1.1.4   root     6239:     echo "You tried to enable threads, but I couldn't find a thread library!"
                   6240:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1       root     6241:   fi
1.1.1.3   root     6242: fi
                   6243: 
                   6244: 
1.1.1.4   root     6245: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6246:   SAVECFLAGS=$CFLAGS
                   6247:   CFLAGS="$CFLAGS -mno-schedule-prologue"
                   6248:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6249: #line 6250 "configure"
1.1.1.4   root     6250: #include "confdefs.h"
                   6251: 
                   6252: int main() {
                   6253: int main(){return 0;}
                   6254: ; return 0; }
                   6255: EOF
1.1.1.12! root     6256: if { (eval echo configure:6257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6257:   rm -rf conftest*
                   6258:   NO_SCHED_CFLAGS="-mno-schedule-prologue"
                   6259: else
                   6260:   echo "configure: failed program was:" >&5
                   6261:   cat conftest.$ac_ext >&5
                   6262: fi
                   6263: rm -f conftest*
                   6264:   CFLAGS=$SAVECFLAGS
                   6265: fi
                   6266: 
1.1.1.10  root     6267: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6268:   SAVECFLAGS=$CFLAGS
                   6269:   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
                   6270:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6271: #line 6272 "configure"
1.1.1.10  root     6272: #include "confdefs.h"
                   6273: 
                   6274: int main() {
                   6275: int main(){return 0;}
                   6276: ; return 0; }
                   6277: EOF
1.1.1.12! root     6278: if { (eval echo configure:6279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.10  root     6279:   rm -rf conftest*
                   6280:   SAVECFLAGS=$CFLAGS
                   6281: else
                   6282:   echo "configure: failed program was:" >&5
                   6283:   cat conftest.$ac_ext >&5
                   6284: fi
                   6285: rm -f conftest*
                   6286:   CFLAGS=$SAVECFLAGS
                   6287: fi
                   6288: 
1.1.1.4   root     6289: 
                   6290: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6291:   SAVECFLAGS=$CFLAGS
                   6292:   CFLAGS="$CFLAGS -fno-exceptions"
                   6293:   NOEXCEPTIONS=no
                   6294:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6295: #line 6296 "configure"
1.1.1.4   root     6296: #include "confdefs.h"
                   6297: 
                   6298: int main() {
                   6299: int main(){return 0;}
                   6300: ; return 0; }
                   6301: EOF
1.1.1.12! root     6302: if { (eval echo configure:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6303:   rm -rf conftest*
                   6304:   NOEXCEPTIONS=yes
                   6305: else
                   6306:   echo "configure: failed program was:" >&5
                   6307:   cat conftest.$ac_ext >&5
                   6308: fi
                   6309: rm -f conftest*
                   6310:   if [ "x$NOEXCEPTIONS" = "xno" ]; then
                   6311:     CFLAGS=$SAVECFLAGS
                   6312:   fi
                   6313: fi
                   6314: 
                   6315: 
                   6316: 
                   6317: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
                   6318:   MACHDEP=md-i386-gcc
1.1.1.6   root     6319:         CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
                   6320: 
                   6321:   if [ "x$HAVEGAS" = "xyes" ]; then
                   6322:     CFLAGS="$CFLAGS -DX86_ASSEMBLY"
                   6323:     ASMOBJS=md-X86.o
                   6324: 
                   6325:     CPUOBJS=cpufast.o
                   6326:   fi
                   6327: else if test $uae_cv_prog_cc_watcom = yes; then
                   6328:   MACHDEP=md-i386-watcom
                   6329:   echo CFLAGS before: $CFLAGS
                   6330:   CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
                   6331:   CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
                   6332:   CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
                   6333:   CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
                   6334:   echo CFLAGS after:  $CFLAGS
1.1.1.11  root     6335: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEPPC" = "xyes" ]; then
                   6336:   MACHDEP=md-ppc-gcc
                   6337:   CFLAGS="$CFLAGS -DREGPARAM="
                   6338:   if [ "x$HAVE_MOTO_LIB" = "xyes" ]; then
                   6339:     MATHLIB="-lmoto $MATHLIB"
                   6340:   fi
1.1.1.4   root     6341: else if [ "x$TARGET" = "xp_os" ]; then
                   6342:   CPU=`uname -m`
                   6343:   if [ "x$CPU" = "xm68k" ]; then
                   6344:      MACHDEP=md-68k
1.1.1.7   root     6345:      CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
1.1.1.4   root     6346:   else if [ "x$CPU" = "xppc" ]; then
                   6347:      MACHDEP=md-ppc
                   6348:      CFLAGS="$CFLAGS -DREGPARAM="
                   6349:   else if [ "x$CPU" = "xi386" ]; then
                   6350:           MACHDEP=md-i386-gcc
                   6351:      CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
                   6352:   else
                   6353:      echo "Unsupported CPU: $CPU!"
                   6354:      exit 5
                   6355:   fi
                   6356:   fi
                   6357:   fi
                   6358:   CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
                   6359:   OSDEP=od-pos
                   6360:   CPUOBJS="cpufast.o"
1.1.1.7   root     6361: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.4   root     6362:   OSDEP=od-amiga
1.1.1.7   root     6363:   CPU=`uname -m`
                   6364:   if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then
                   6365:     MACHDEP=md-68k
                   6366:     CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
                   6367:     CPUOBJS="cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o"
                   6368:   else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then
                   6369:     MACHDEP=md-ppc-gcc
                   6370:   else
                   6371:         CFLAGS="$CFLAGS -O -DREGPARAM="
                   6372:     CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
                   6373:   fi
                   6374:   fi
1.1.1.4   root     6375: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
                   6376:     MACHDEP=md-68k
                   6377:   CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
                   6378:   CPUOBJS="cpufast.o"
                   6379: else if [ "x$TARGET" = "xbeos" ]; then
                   6380:   MACHDEP=md-ppc
                   6381:   CFLAGS="$CFLAGS -DREGPARAM="
                   6382:   OSDEP=od-beos
1.1       root     6383: else
1.1.1.3   root     6384:   CFLAGS="$CFLAGS -DREGPARAM="
                   6385: fi
                   6386: fi
1.1       root     6387: fi
1.1.1.4   root     6388: fi
                   6389: fi
                   6390: fi
1.1.1.11  root     6391: fi
1.1.1.4   root     6392: 
1.1.1.6   root     6393: if [ "x$TARGET" = "xwin32" ]; then
                   6394:   OSDEP=od-win32
                   6395:   if test $ac_cv_prog_gcc = yes; then
                   6396:     LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
                   6397:   else if test $uae_cv_prog_cc_watcom = yes; then
                   6398:     LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
                   6399:   fi
                   6400:   fi
                   6401: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4   root     6402:   OSDEP=od-linux
                   6403:   if [ "x$HAVEGLIBC2" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6404:     CFLAGS="$CFLAGS -DHAVE_GLIBC_2_LINUX"
                   6405:   fi
                   6406: fi
1.1.1.6   root     6407: fi
1.1       root     6408: 
1.1.1.4   root     6409: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
                   6410:      -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xggilib" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2   root     6411:     CFLAGS="$CFLAGS -DUSE_ZFILE"
                   6412: fi
                   6413: 
1.1.1.4   root     6414: HAVE_USS_SOUND=no
                   6415: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
                   6416:     echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6
1.1.1.12! root     6417: echo "configure:6418: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
1.1.1.4   root     6418:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6419: #line 6420 "configure"
1.1.1.4   root     6420: #include "confdefs.h"
                   6421: 
                   6422: #include "confdefs.h"
                   6423: #ifdef HAVE_SYS_SOUNDCARD_H
                   6424: #include <sys/soundcard.h>
                   6425: #else
                   6426: #include <machine/soundcard.h>
                   6427: #endif
                   6428: #include <sys/ioctl.h>
                   6429: 
                   6430: int main() {
                   6431: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
                   6432: ; return 0; }
                   6433: EOF
1.1.1.12! root     6434: if { (eval echo configure:6435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6435:   rm -rf conftest*
                   6436:   echo "$ac_t""yes" 1>&6
                   6437: HAVE_USS_SOUND=yes
                   6438: else
                   6439:   echo "configure: failed program was:" >&5
                   6440:   cat conftest.$ac_ext >&5
                   6441:   rm -rf conftest*
                   6442:   echo "$ac_t""no" 1>&6
                   6443: fi
                   6444: rm -f conftest*
                   6445: fi
                   6446: 
1.1.1.8   root     6447: if [ "x$ac_cv_header_dmedia_audio.h" = "xno" ]; then
                   6448:   HAVE_SGIAUDIO_LIB=no
                   6449: fi
                   6450: 
1.1.1.4   root     6451: echo $ac_n "checking which sound system to use""... $ac_c" 1>&6
1.1.1.12! root     6452: echo "configure:6453: checking which sound system to use" >&5
1.1.1.4   root     6453: # Check whether --enable-file-sound or --disable-file-sound was given.
                   6454: if test "${enable_file_sound+set}" = set; then
                   6455:   enableval="$enable_file_sound"
                   6456:   USE_FILE_SOUND=$enableval
                   6457: fi
                   6458: 
                   6459: 
                   6460: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
1.1.1.7   root     6461:   echo "$ac_t""file output" 1>&6
                   6462:   SOUNDDEP=sd-file
                   6463:   USE_SOUND=yes  
                   6464: else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
                   6465:   echo "$ac_t""USS" 1>&6
                   6466:   SOUNDDEP=sd-uss
1.1.1.4   root     6467:   USE_SOUND=yes
1.1.1.7   root     6468: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
                   6469:   echo "$ac_t""Solaris/NetBSD" 1>&6
                   6470:   SOUNDDEP=sd-solaris
                   6471:   USE_SOUND=yes
                   6472: else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
                   6473:   echo "$ac_t""AF sound" 1>&6
                   6474:   SOUNDDEP=sd-af
                   6475:   LIBS="$LIBS -lAF"
                   6476:   USE_SOUND=yes
1.1.1.8   root     6477: else if [ "x$HAVE_SGIAUDIO_LIB" = "xyes" ]; then
                   6478:   echo "$ac_t""SGI sound" 1>&6
                   6479:   SOUNDDEP=sd-sgi
                   6480:   LIBS="$LIBS -laudio"
                   6481:   USE_SOUND=yes
1.1.1.7   root     6482: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
                   6483:   echo "$ac_t""MME sound" 1>&6
                   6484:   SOUNDDEP=sd-mme
                   6485:   LIBS="$LIBS -lmme"
                   6486:   USE_SOUND=yes
                   6487: else if [ "x$TARGET" = "xp_os" ]; then
                   6488:   echo "$ac_t""pAudio.device" 1>&6
                   6489:   SOUNDDEP=od-pos
                   6490:   USE_SOUND=yes
                   6491: else if [ "x$TARGET" = "xamigaos" ]; then
                   6492:   if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
                   6493:     echo "$ac_t""Amiga AHI.device" 1>&6
1.1.1.4   root     6494:   else
1.1.1.7   root     6495:     echo "$ac_t""Amiga audio.device" 1>&6
1.1.1.6   root     6496:   fi
1.1.1.7   root     6497:   SOUNDDEP=od-amiga
                   6498:   USE_SOUND=yes
                   6499: else if [ "x$TARGET" = "xbeos" ]; then
                   6500:   echo "$ac_t""BeOS sound" 1>&6
                   6501:   SOUNDDEP=od-beos
                   6502:   USE_SOUND=yes
                   6503: else if [ "x$TARGET" = "xwin32" ]; then
                   6504:   echo "$ac_t""Win32 sound" 1>&6
                   6505:   SOUNDDEP=od-win32
                   6506:   USE_SOUND=yes
                   6507: else
                   6508:   echo "no known sound system found"
                   6509:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   6510: fi
                   6511: fi
                   6512: fi
                   6513: fi
1.1.1.4   root     6514: fi
1.1.1.7   root     6515: fi
                   6516: fi
                   6517: fi
                   6518: fi
1.1.1.8   root     6519: fi
1.1.1.7   root     6520: 
1.1.1.10  root     6521: SCSIOBJS=scsi-none.o
                   6522: SCSIDEP=scg-none
                   6523: # Check whether --enable-scsi-device or --disable-scsi-device was given.
                   6524: if test "${enable_scsi_device+set}" = set; then
                   6525:   enableval="$enable_scsi_device"
                   6526:   USE_SCSI_DEVICE=$enableval
                   6527: fi
                   6528: 
                   6529: 
                   6530: if [ "x$USE_SCSI_DEVICE" = "xyes" ]; then
                   6531:   echo $ac_n "checking which scsi system to use""... $ac_c" 1>&6
1.1.1.12! root     6532: echo "configure:6533: checking which scsi system to use" >&5
1.1.1.10  root     6533:   if [ "x$ac_cv_header_scsi_sg_h" = "xyes" ]; then
                   6534:     echo "$ac_t""Linux SG" 1>&6
                   6535:     SCSIOBJS=scsidev.o
                   6536:     SCSIDEP=scg-linux-sg
                   6537:   else
                   6538:     echo "$ac_t""SCSI not supported for this system" 1>&6
                   6539:   fi
                   6540: fi
                   6541: 
                   6542: 
                   6543: if [ "x$HAVE_MACHINE_JOYSTICK_H" = "xyes" ]; then
                   6544:   cat > conftest.$ac_ext <<EOF
1.1.1.12! root     6545: #line 6546 "configure"
1.1.1.10  root     6546: #include "confdefs.h"
                   6547: #include <machine/joystick.h>
                   6548: int main() {
                   6549: { struct joystick a; }
                   6550: ; return 0; }
                   6551: EOF
1.1.1.12! root     6552: if { (eval echo configure:6553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.10  root     6553:   rm -rf conftest*
                   6554:   OD_JOYSTICK=od-linux/joystick.c
                   6555: else
                   6556:   echo "configure: failed program was:" >&5
                   6557:   cat conftest.$ac_ext >&5
                   6558: fi
                   6559: rm -f conftest*
                   6560: else
                   6561:     OD_JOYSTICK=$OSDEP/joystick.c
                   6562: fi
1.1.1.4   root     6563: 
                   6564: rm -f src/machdep
                   6565: rm -f src/osdep
                   6566: rm -f src/threaddep
                   6567: rm -f src/sounddep
1.1.1.10  root     6568: rm -f src/scsidep
1.1.1.4   root     6569: rm -f src/target.h
1.1.1.5   root     6570: rm -f src/config.h
1.1.1.6   root     6571: rm -f src/sd-sound.c
                   6572: rm -f src/od-joy.c
                   6573: rm -f src/md-support.c
                   6574: rm -f src/md-X86.S
1.1.1.10  root     6575: rm -f src/scsi-support.c
1.1.1.3   root     6576: 
1.1.1.4   root     6577: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.3   root     6578:     echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
1.1.1.12! root     6579: echo "configure:6580: checking which CPU to use" >&5
1.1.1.3   root     6580:   cpu=`cpu | cut -d' ' -f2`
                   6581:   echo "$ac_t""$cpu" 1>&6
                   6582:   CFLAGS="$CFLAGS -m$cpu"
                   6583: 
                   6584:     echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
1.1.1.12! root     6585: echo "configure:6586: checking which FPU to use" >&5
1.1.1.4   root     6586:   fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
                   6587:   if [ "x$fpu" != "x" ]; then
                   6588:         echo "$ac_t""68881" 1>&6
                   6589:     CFLAGS="$CFLAGS -m68881"
1.1.1.3   root     6590:   else
                   6591:     echo "$ac_t""none" 1>&6
                   6592:   fi
                   6593: fi
                   6594: 
1.1.1.2   root     6595: 
                   6596: 
1.1       root     6597: 
                   6598: 
                   6599: 
                   6600: 
                   6601: 
                   6602: 
                   6603: 
                   6604: 
                   6605: 
1.1.1.3   root     6606: 
1.1.1.4   root     6607: 
1.1.1.3   root     6608: 
                   6609: 
                   6610: 
1.1.1.6   root     6611: 
1.1       root     6612: trap '' 1 2 15
                   6613: cat > confcache <<\EOF
                   6614: # This file is a shell script that caches the results of configure
                   6615: # tests run on this system so they can be shared between configure
                   6616: # scripts and configure runs.  It is not useful on other systems.
                   6617: # If it contains results you don't want to keep, you may remove or edit it.
                   6618: #
                   6619: # By default, configure uses ./config.cache as the cache file,
                   6620: # creating it if it does not exist already.  You can give configure
                   6621: # the --cache-file=FILE option to use a different cache file; that is
                   6622: # what configure does when it calls configure scripts in
                   6623: # subdirectories, so they share the cache.
                   6624: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   6625: # config.status only pays attention to the cache file if you give it the
                   6626: # --recheck option to rerun configure.
                   6627: #
                   6628: EOF
1.1.1.4   root     6629: # The following way of writing the cache mishandles newlines in values,
                   6630: # but we know of no workaround that is simple, portable, and efficient.
                   6631: # So, don't put newlines in cache variables' values.
1.1       root     6632: # Ultrix sh set writes to stderr and can't be redirected directly,
                   6633: # and sets the high bit in the cache file unless we assign to the vars.
                   6634: (set) 2>&1 |
1.1.1.9   root     6635:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1.1.1.4   root     6636:   *ac_space=\ *)
                   6637:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   6638:     # turns \\\\ into \\, and sed turns \\ into \).
                   6639:     sed -n \
                   6640:       -e "s/'/'\\\\''/g" \
                   6641:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   6642:     ;;
                   6643:   *)
                   6644:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   6645:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   6646:     ;;
                   6647:   esac >> confcache
1.1       root     6648: if cmp -s $cache_file confcache; then
                   6649:   :
                   6650: else
                   6651:   if test -w $cache_file; then
                   6652:     echo "updating cache $cache_file"
                   6653:     cat confcache > $cache_file
                   6654:   else
                   6655:     echo "not updating unwritable cache $cache_file"
                   6656:   fi
                   6657: fi
                   6658: rm -f confcache
                   6659: 
                   6660: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   6661: 
                   6662: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   6663: # Let make expand exec_prefix.
                   6664: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   6665: 
                   6666: # Any assignment to VPATH causes Sun make to only execute
                   6667: # the first set of double-colon rules, so remove it if not needed.
                   6668: # If there is a colon in the path, we need to keep it.
                   6669: if test "x$srcdir" = x.; then
                   6670:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   6671: fi
                   6672: 
                   6673: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   6674: 
                   6675: DEFS=-DHAVE_CONFIG_H
                   6676: 
                   6677: # Without the "./", some shells look in PATH for config.status.
                   6678: : ${CONFIG_STATUS=./config.status}
                   6679: 
                   6680: echo creating $CONFIG_STATUS
                   6681: rm -f $CONFIG_STATUS
                   6682: cat > $CONFIG_STATUS <<EOF
                   6683: #! /bin/sh
                   6684: # Generated automatically by configure.
                   6685: # Run this file to recreate the current configuration.
                   6686: # This directory was configured as follows,
                   6687: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   6688: #
                   6689: # $0 $ac_configure_args
                   6690: #
                   6691: # Compiler output produced by configure, useful for debugging
                   6692: # configure, is in ./config.log if it exists.
                   6693: 
                   6694: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   6695: for ac_option
                   6696: do
                   6697:   case "\$ac_option" in
                   6698:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   6699:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   6700:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   6701:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.1.1.9   root     6702:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1.1       root     6703:     exit 0 ;;
                   6704:   -help | --help | --hel | --he | --h)
                   6705:     echo "\$ac_cs_usage"; exit 0 ;;
                   6706:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   6707:   esac
                   6708: done
                   6709: 
                   6710: ac_given_srcdir=$srcdir
                   6711: 
1.1.1.4   root     6712: trap 'rm -fr `echo "src/Makefile Makefile src/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       root     6713: EOF
                   6714: cat >> $CONFIG_STATUS <<EOF
                   6715: 
                   6716: # Protect against being on the right side of a sed subst in config.status.
                   6717: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   6718:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   6719: $ac_vpsub
                   6720: $extrasub
1.1.1.9   root     6721: s%@SHELL@%$SHELL%g
1.1       root     6722: s%@CFLAGS@%$CFLAGS%g
                   6723: s%@CPPFLAGS@%$CPPFLAGS%g
                   6724: s%@CXXFLAGS@%$CXXFLAGS%g
1.1.1.9   root     6725: s%@FFLAGS@%$FFLAGS%g
1.1       root     6726: s%@DEFS@%$DEFS%g
                   6727: s%@LDFLAGS@%$LDFLAGS%g
                   6728: s%@LIBS@%$LIBS%g
                   6729: s%@exec_prefix@%$exec_prefix%g
                   6730: s%@prefix@%$prefix%g
                   6731: s%@program_transform_name@%$program_transform_name%g
                   6732: s%@bindir@%$bindir%g
                   6733: s%@sbindir@%$sbindir%g
                   6734: s%@libexecdir@%$libexecdir%g
                   6735: s%@datadir@%$datadir%g
                   6736: s%@sysconfdir@%$sysconfdir%g
                   6737: s%@sharedstatedir@%$sharedstatedir%g
                   6738: s%@localstatedir@%$localstatedir%g
                   6739: s%@libdir@%$libdir%g
                   6740: s%@includedir@%$includedir%g
                   6741: s%@oldincludedir@%$oldincludedir%g
                   6742: s%@infodir@%$infodir%g
                   6743: s%@mandir@%$mandir%g
                   6744: s%@CC@%$CC%g
                   6745: s%@CPP@%$CPP%g
                   6746: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.11  root     6747: s%@MAKEDEPPRG@%$MAKEDEPPRG%g
1.1.1.4   root     6748: s%@FILEPRG@%$FILEPRG%g
1.1.1.6   root     6749: s%@WRCPRG@%$WRCPRG%g
                   6750: s%@RCLPRG@%$RCLPRG%g
                   6751: s%@EXEEXT@%$EXEEXT%g
1.1       root     6752: s%@X_CFLAGS@%$X_CFLAGS%g
                   6753: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
                   6754: s%@X_LIBS@%$X_LIBS%g
                   6755: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
                   6756: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.4   root     6757: s%@GTK_CONFIG@%$GTK_CONFIG%g
                   6758: s%@GTK_CFLAGS@%$GTK_CFLAGS%g
                   6759: s%@GTK_LIBS@%$GTK_LIBS%g
1.1       root     6760: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
1.1.1.6   root     6761: s%@WRC@%$WRC%g
1.1.1.4   root     6762: s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g
1.1       root     6763: s%@LIBRARIES@%$LIBRARIES%g
                   6764: s%@TARGET@%$TARGET%g
                   6765: s%@GFXOBJS@%$GFXOBJS%g
1.1.1.6   root     6766: s%@RESOBJS@%$RESOBJS%g
1.1       root     6767: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.10  root     6768: s%@SCSIOBJS@%$SCSIOBJS%g
1.1.1.2   root     6769: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3   root     6770: s%@DEBUGOBJS@%$DEBUGOBJS%g
                   6771: s%@MATHLIB@%$MATHLIB%g
1.1.1.4   root     6772: s%@SHM_SUPPORT_LINKS@%$SHM_SUPPORT_LINKS%g
1.1.1.3   root     6773: s%@top_srcdir@%$top_srcdir%g
1.1       root     6774: 
                   6775: CEOF
                   6776: EOF
1.1.1.4   root     6777: 
                   6778: cat >> $CONFIG_STATUS <<\EOF
                   6779: 
                   6780: # Split the substitutions into bite-sized pieces for seds with
                   6781: # small command number limits, like on Digital OSF/1 and HP-UX.
                   6782: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   6783: ac_file=1 # Number of current file.
                   6784: ac_beg=1 # First line for current file.
                   6785: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   6786: ac_more_lines=:
                   6787: ac_sed_cmds=""
                   6788: while $ac_more_lines; do
                   6789:   if test $ac_beg -gt 1; then
                   6790:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   6791:   else
                   6792:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   6793:   fi
                   6794:   if test ! -s conftest.s$ac_file; then
                   6795:     ac_more_lines=false
                   6796:     rm -f conftest.s$ac_file
                   6797:   else
                   6798:     if test -z "$ac_sed_cmds"; then
                   6799:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   6800:     else
                   6801:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   6802:     fi
                   6803:     ac_file=`expr $ac_file + 1`
                   6804:     ac_beg=$ac_end
                   6805:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   6806:   fi
                   6807: done
                   6808: if test -z "$ac_sed_cmds"; then
                   6809:   ac_sed_cmds=cat
                   6810: fi
                   6811: EOF
                   6812: 
1.1       root     6813: cat >> $CONFIG_STATUS <<EOF
                   6814: 
1.1.1.2   root     6815: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1       root     6816: EOF
                   6817: cat >> $CONFIG_STATUS <<\EOF
                   6818: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.1.1.4   root     6819:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     6820:   case "$ac_file" in
1.1.1.4   root     6821:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     6822:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   6823:   *) ac_file_in="${ac_file}.in" ;;
                   6824:   esac
                   6825: 
1.1.1.4   root     6826:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.1       root     6827: 
                   6828:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   6829:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   6830:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   6831:     # The file is in a subdirectory.
                   6832:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   6833:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   6834:     # A "../" for each directory in $ac_dir_suffix.
                   6835:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   6836:   else
                   6837:     ac_dir_suffix= ac_dots=
                   6838:   fi
                   6839: 
                   6840:   case "$ac_given_srcdir" in
                   6841:   .)  srcdir=.
                   6842:       if test -z "$ac_dots"; then top_srcdir=.
                   6843:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   6844:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   6845:   *) # Relative path.
                   6846:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   6847:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   6848:   esac
                   6849: 
1.1.1.4   root     6850: 
1.1       root     6851:   echo creating "$ac_file"
                   6852:   rm -f "$ac_file"
                   6853:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   6854:   case "$ac_file" in
                   6855:   *Makefile*) ac_comsub="1i\\
                   6856: # $configure_input" ;;
                   6857:   *) ac_comsub= ;;
                   6858:   esac
1.1.1.4   root     6859: 
                   6860:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.1       root     6861:   sed -e "$ac_comsub
                   6862: s%@configure_input@%$configure_input%g
                   6863: s%@srcdir@%$srcdir%g
                   6864: s%@top_srcdir@%$top_srcdir%g
1.1.1.4   root     6865: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.1       root     6866: fi; done
1.1.1.4   root     6867: rm -f conftest.s*
1.1       root     6868: 
                   6869: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   6870: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   6871: #
                   6872: # ac_d sets the value in "#define NAME VALUE" lines.
                   6873: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   6874: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   6875: ac_dC='\3'
                   6876: ac_dD='%g'
                   6877: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   6878: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   6879: ac_uB='\([     ]\)%\1#\2define\3'
                   6880: ac_uC=' '
                   6881: ac_uD='\4%g'
                   6882: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   6883: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   6884: ac_eB='$%\1#\2define\3'
                   6885: ac_eC=' '
                   6886: ac_eD='%g'
                   6887: 
1.1.1.4   root     6888: if test "${CONFIG_HEADERS+set}" != set; then
                   6889: EOF
                   6890: cat >> $CONFIG_STATUS <<EOF
                   6891:   CONFIG_HEADERS="src/sysconfig.h"
                   6892: EOF
                   6893: cat >> $CONFIG_STATUS <<\EOF
                   6894: fi
1.1       root     6895: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1.1.1.4   root     6896:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     6897:   case "$ac_file" in
1.1.1.4   root     6898:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     6899:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   6900:   *) ac_file_in="${ac_file}.in" ;;
                   6901:   esac
                   6902: 
                   6903:   echo creating $ac_file
                   6904: 
                   6905:   rm -f conftest.frag conftest.in conftest.out
1.1.1.4   root     6906:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   6907:   cat $ac_file_inputs > conftest.in
1.1       root     6908: 
                   6909: EOF
                   6910: 
                   6911: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   6912: # the proper values into config.h.in to produce config.h.  And first:
                   6913: # Protect against being on the right side of a sed subst in config.status.
                   6914: # Protect against being in an unquoted here document in config.status.
                   6915: rm -f conftest.vals
                   6916: cat > conftest.hdr <<\EOF
                   6917: s/[\\&%]/\\&/g
                   6918: s%[\\$`]%\\&%g
                   6919: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   6920: s%ac_d%ac_u%gp
                   6921: s%ac_u%ac_e%gp
                   6922: EOF
                   6923: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   6924: rm -f conftest.hdr
                   6925: 
                   6926: # This sed command replaces #undef with comments.  This is necessary, for
                   6927: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   6928: # on some systems where configure will not decide to define it.
                   6929: cat >> conftest.vals <<\EOF
                   6930: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   6931: EOF
                   6932: 
                   6933: # Break up conftest.vals because some shells have a limit on
                   6934: # the size of here documents, and old seds have small limits too.
                   6935: 
                   6936: rm -f conftest.tail
                   6937: while :
                   6938: do
                   6939:   ac_lines=`grep -c . conftest.vals`
                   6940:   # grep -c gives empty output for an empty file on some AIX systems.
                   6941:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   6942:   # Write a limited-size here document to conftest.frag.
                   6943:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   6944:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   6945:   echo 'CEOF
                   6946:   sed -f conftest.frag conftest.in > conftest.out
                   6947:   rm -f conftest.in
                   6948:   mv conftest.out conftest.in
                   6949: ' >> $CONFIG_STATUS
                   6950:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   6951:   rm -f conftest.vals
                   6952:   mv conftest.tail conftest.vals
                   6953: done
                   6954: rm -f conftest.vals
                   6955: 
                   6956: cat >> $CONFIG_STATUS <<\EOF
                   6957:   rm -f conftest.frag conftest.h
                   6958:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   6959:   cat conftest.in >> conftest.h
                   6960:   rm -f conftest.in
                   6961:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   6962:     echo "$ac_file is unchanged"
                   6963:     rm -f conftest.h
                   6964:   else
                   6965:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   6966:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   6967:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   6968:       # The file is in a subdirectory.
                   6969:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   6970:     fi
                   6971:     rm -f $ac_file
                   6972:     mv conftest.h $ac_file
                   6973:   fi
                   6974: fi; done
                   6975: 
1.1.1.4   root     6976: EOF
                   6977: cat >> $CONFIG_STATUS <<EOF
1.1       root     6978: 
1.1.1.4   root     6979: EOF
                   6980: cat >> $CONFIG_STATUS <<\EOF
1.1       root     6981: 
                   6982: exit 0
                   6983: EOF
                   6984: chmod +x $CONFIG_STATUS
                   6985: rm -fr confdefs* $ac_clean_files
                   6986: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   6987: 
1.1.1.4   root     6988: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.3   root     6989:   echo "Building a profiling version of UAE (select this option only if you know"
                   6990:   echo "what you are doing)"
                   6991: fi
1.1.1.4   root     6992: 
                   6993: 
                   6994: 
                   6995: 
1.1.1.10  root     6996: if test -f $abssrcdir/src/target.h
1.1.1.6   root     6997: then
                   6998:   echo
                   6999:   echo "Fatal error: Can't configure in the current directory, because"
                   7000:   echo "configure was run in the source directory. Go to the source"
                   7001:   echo "directory, type"
                   7002:   echo "  make streifenfrei"
                   7003:   echo "and try again."
                   7004:   exit 1
                   7005: fi
1.1.1.4   root     7006: 
                   7007: ln -s $abssrcdir/src/$MACHDEP src/machdep
                   7008: ln -s $abssrcdir/src/$OSDEP src/osdep
                   7009: ln -s $abssrcdir/src/$THREADDEP src/threaddep
                   7010: ln -s $abssrcdir/src/$SOUNDDEP src/sounddep
1.1.1.6   root     7011: 
1.1.1.10  root     7012: echo "#include \"$abssrcdir/src/targets/$TARGETDEP\"" > src/target.h
                   7013: echo "#include \"$abssrcdir/config.h\"" > src/config.h
1.1.1.6   root     7014: 
1.1.1.10  root     7015: echo "#include \"$abssrcdir/src/$SOUNDDEP/sound.c\"" >src/sd-sound.c
                   7016: echo "#include \"$abssrcdir/src/$OD_JOYSTICK\"" >src/od-joy.c
                   7017: echo "#include \"$abssrcdir/src/$MACHDEP/support.c\"" >src/md-support.c
                   7018: 
                   7019: if [ "x$SCSIDEP" != "xscg-none" ]; then 
                   7020:   echo "#include \"$abssrcdir/src/$SCSIDEP/scsi.h\"" >src/scsi-support.c
                   7021:   echo "#include \"$abssrcdir/src/$SCSIDEP/scsi.c\"" >>src/scsi-support.c
                   7022: fi
1.1.1.6   root     7023: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
1.1.1.10  root     7024:   echo "#include \"machdep/X86.S\"" >src/md-X86.S
1.1.1.6   root     7025: fi
1.1.1.11  root     7026: echo "#include \"$abssrcdir/src/include/$FPP_H\"" >src/md-fpp.h
1.1.1.6   root     7027: 
                   7028: 
1.1.1.4   root     7029: echo
                   7030: echo
                   7031: if [ "x$NR_ERRORS" = "x0" ]; then
                   7032:   if [ "x$NR_WARNINGS" = "x0" ]; then
                   7033:     echo "Configuration was successful!"
                   7034:   else
                   7035:     echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
                   7036:     echo "from configure carefully if you run into problems."
                   7037:   fi
                   7038: else
                   7039:   echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
                   7040:   echo "not get all the features you asked for."
                   7041: fi
                   7042: echo

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.