14Srgrimes#! /bin/sh 24Srgrimes 34Srgrimes# Guess values for system-dependent variables and create Makefiles. 44Srgrimes# Generated automatically using autoconf version 2.13 54Srgrimes# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 64Srgrimes# 74Srgrimes# This configure script is free software; the Free Software Foundation 84Srgrimes# gives unlimited permission to copy, distribute and modify it. 94Srgrimes 104Srgrimes# Defaults: 114Srgrimesac_help= 124Srgrimesac_default_prefix=/usr/local 134Srgrimes# Any additions from configure.in: 144Srgrimes 154Srgrimes# Initialize some variables set by options. 164Srgrimes# The variables have the same names as the options, with 174Srgrimes# dashes changed to underlines. 184Srgrimesbuild=NONE 194Srgrimescache_file=./config.cache 204Srgrimesexec_prefix=NONE 214Srgrimeshost=NONE 224Srgrimesno_create= 234Srgrimesnonopt=NONE 244Srgrimesno_recursion= 254Srgrimesprefix=NONE 264Srgrimesprogram_prefix=NONE 274Srgrimesprogram_suffix=NONE 284Srgrimesprogram_transform_name=s,x,x, 294Srgrimessilent= 304Srgrimessite= 314Srgrimessrcdir= 324Srgrimestarget=NONE 334Srgrimesverbose= 344Srgrimesx_includes=NONE 354Srgrimesx_libraries=NONE 36556Srgrimesbindir='${exec_prefix}/bin' 3750477Spetersbindir='${exec_prefix}/sbin' 3815392Sphklibexecdir='${exec_prefix}/libexec' 39757Sdgdatadir='${prefix}/share' 40757Sdgsysconfdir='${prefix}/etc' 41757Sdgsharedstatedir='${prefix}/com' 4215392Sphklocalstatedir='${prefix}/var' 4315392Sphklibdir='${exec_prefix}/lib' 444Srgrimesincludedir='${prefix}/include' 454Srgrimesoldincludedir='/usr/include' 4632358Seivindinfodir='${prefix}/info' 4737272Sjmgmandir='${prefix}/man' 4814835Sbde 4914835Sbde# Initialize some other variables. 505908Sbdesubdirs= 514SrgrimesMFLAGS= MAKEFLAGS= 5214835SbdeSHELL=${CONFIG_SHELL-/bin/sh} 5314835Sbde# Maximum number of lines to put in a shell here document. 5414835Sbdeac_max_here_lines=12 5515543Sphk 5614835Sbdeac_prev= 5714835Sbdefor ac_option 5814835Sbdedo 5914835Sbde 604Srgrimes # If the previous option needs an argument, assign it. 61757Sdg if test -n "$ac_prev"; then 62757Sdg eval "$ac_prev=\$ac_option" 634Srgrimes ac_prev= 644Srgrimes continue 654Srgrimes fi 664Srgrimes 674Srgrimes case "$ac_option" in 68200Sdg -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 694Srgrimes *) ac_optarg= ;; 704Srgrimes esac 714Srgrimes 723861Sbde # Accept the important Cygnus configure options, so we can diagnose typos. 7315543Sphk 7415543Sphk case "$ac_option" in 75757Sdg 76592Srgrimes -bindir | --bindir | --bindi | --bind | --bin | --bi) 773861Sbde ac_prev=bindir ;; 784Srgrimes -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 794Srgrimes bindir="$ac_optarg" ;; 804Srgrimes 81592Srgrimes -build | --build | --buil | --bui | --bu) 82592Srgrimes ac_prev=build ;; 8315543Sphk -build=* | --build=* | --buil=* | --bui=* | --bu=*) 84757Sdg build="$ac_optarg" ;; 854Srgrimes 864Srgrimes -cache-file | --cache-file | --cache-fil | --cache-fi \ 87556Srgrimes | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 88556Srgrimes ac_prev=cache_file ;; 89556Srgrimes -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 9014835Sbde | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 91134Sdg cache_file="$ac_optarg" ;; 9225083Sjdp 9313729Sdg -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 9425083Sjdp ac_prev=datadir ;; 953842Sdg -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 963861Sbde | --da=*) 97134Sdg datadir="$ac_optarg" ;; 9815565Sphk 996308Sphk -disable-* | --disable-*) 1002783Ssos ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 10146129Sluoqi # Reject names that are not valid shell variable names. 1022216Sbde if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 1036308Sphk { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 1046308Sphk fi 1052216Sbde ac_feature=`echo $ac_feature| sed 's/-/_/g'` 1065908Sbde eval "enable_${ac_feature}=no" ;; 1074Srgrimes 108757Sdg -enable-* | --enable-*) 10915428Sphk ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 110757Sdg # Reject names that are not valid shell variable names. 11126812Speter if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 11246129Sluoqi { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 11325164Speter fi 11446129Sluoqi ac_feature=`echo $ac_feature| sed 's/-/_/g'` 11525164Speter case "$ac_option" in 11646129Sluoqi *=*) ;; 11746129Sluoqi *) ac_optarg=yes ;; 11846129Sluoqi esac 11926812Speter eval "enable_${ac_feature}='$ac_optarg'" ;; 12025164Speter 1213861Sbde -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 122757Sdg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1233861Sbde | --exec | --exe | --ex) 12426812Speter ac_prev=exec_prefix ;; 12526812Speter -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 12626812Speter | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 127757Sdg | --exec=* | --exe=* | --ex=*) 1284Srgrimes exec_prefix="$ac_optarg" ;; 129757Sdg 130757Sdg -gas | --gas | --ga | --g) 13124693Speter # Obsolete; use --with-gas. 132134Sdg with_gas=yes ;; 13337889Sjlemon 13437889Sjlemon -help | --help | --hel | --he) 13534840Sjlemon # Omit some internal or obsolete options to make the list less imposing. 13634840Sjlemon # This message is too long to be a string in the A/UX 3.1 sh. 13734840Sjlemon cat << EOF 13834840SjlemonUsage: configure [options] [host] 13915428SphkOptions: [defaults in brackets after descriptions] 14015428SphkConfiguration: 14115428Sphk --cache-file=FILE cache test results in FILE 14215428Sphk --help print this message 143718Swollman --no-create do not create output files 14443434Skato --quiet, --silent do not print \`checking...' messages 14543434Skato --version print the version of autoconf that created configure 14643434SkatoDirectory and file names: 14743434Skato --prefix=PREFIX install architecture-independent files in PREFIX 14843434Skato [$ac_default_prefix] 14915428Sphk --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 15015392Sphk [same as prefix] 15115392Sphk --bindir=DIR user executables in DIR [EPREFIX/bin] 15215392Sphk --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 15315392Sphk --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 154556Srgrimes --datadir=DIR read-only architecture-independent data in DIR 155134Sdg [PREFIX/share] 15615392Sphk --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 15715392Sphk --sharedstatedir=DIR modifiable architecture-independent data in DIR 15815392Sphk [PREFIX/com] 15915392Sphk --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 16015543Sphk --libdir=DIR object code libraries in DIR [EPREFIX/lib] 16115392Sphk --includedir=DIR C header files in DIR [PREFIX/include] 16215392Sphk --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 16315392Sphk --infodir=DIR info documentation in DIR [PREFIX/info] 16415543Sphk --mandir=DIR man documentation in DIR [PREFIX/man] 16515392Sphk --srcdir=DIR find the sources in DIR [configure dir or ..] 16615428Sphk --program-prefix=PREFIX prepend PREFIX to installed program names 16715428Sphk --program-suffix=SUFFIX append SUFFIX to installed program names 16815428Sphk --program-transform-name=PROGRAM 16915392Sphk run sed PROGRAM on installed program names 170134SdgEOF 17115392Sphk cat << EOF 17215565SphkHost type: 17315565Sphk --build=BUILD configure for building on BUILD [BUILD=HOST] 17415392Sphk --host=HOST configure for HOST [guessed] 17515565Sphk --target=TARGET configure for TARGET [TARGET=HOST] 17615565SphkFeatures and packages: 177134Sdg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 17815565Sphk --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 17919621Sdyson --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 18019621Sdyson --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 18119621Sdyson --x-includes=DIR X include files are in DIR 18219621Sdyson --x-libraries=DIR X library files are in DIR 18315565SphkEOF 18415565Sphk if test -n "$ac_help"; then 18515565Sphk echo "--enable and --with options recognized:$ac_help" 18615428Sphk fi 18715392Sphk exit 0 ;; 18815565Sphk 18915565Sphk -host | --host | --hos | --ho) 19015565Sphk ac_prev=host ;; 19115565Sphk -host=* | --host=* | --hos=* | --ho=*) 19215565Sphk host="$ac_optarg" ;; 19315565Sphk 19415565Sphk -includedir | --includedir | --includedi | --included | --include \ 19515565Sphk | --includ | --inclu | --incl | --inc) 19615565Sphk ac_prev=includedir ;; 19715565Sphk -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 19815565Sphk | --includ=* | --inclu=* | --incl=* | --inc=*) 19915392Sphk includedir="$ac_optarg" ;; 20015392Sphk 20115392Sphk -infodir | --infodir | --infodi | --infod | --info | --inf) 20215392Sphk ac_prev=infodir ;; 20315392Sphk -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 20415392Sphk infodir="$ac_optarg" ;; 2051321Sdg 2064Srgrimes -libdir | --libdir | --libdi | --libd) 20724112Skato ac_prev=libdir ;; 20824112Skato -libdir=* | --libdir=* | --libdi=* | --libd=*) 20943434Skato libdir="$ac_optarg" ;; 21043434Skato 21143434Skato -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 21224112Skato | --libexe | --libex | --libe) 21324112Skato ac_prev=libexecdir ;; 21424112Skato -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 21524112Skato | --libexe=* | --libex=* | --libe=*) 21615428Sphk libexecdir="$ac_optarg" ;; 21715428Sphk 21815428Sphk -localstatedir | --localstatedir | --localstatedi | --localstated \ 21915428Sphk | --localstate | --localstat | --localsta | --localst \ 22015428Sphk | --locals | --local | --loca | --loc | --lo) 22115428Sphk ac_prev=localstatedir ;; 22215428Sphk -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 22315428Sphk | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 22415428Sphk | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 22515428Sphk localstatedir="$ac_optarg" ;; 22615392Sphk 22715392Sphk -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 22854128Skato ac_prev=mandir ;; 22915392Sphk -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 23015428Sphk mandir="$ac_optarg" ;; 2313384Srgrimes 2323384Srgrimes -nfp | --nfp | --nf) 2333384Srgrimes # Obsolete; use --without-fp. 23415392Sphk with_fp=no ;; 2355603Sbde 2362486Sdg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 23715428Sphk | --no-cr | --no-c) 23815428Sphk no_create=yes ;; 23915428Sphk 24015428Sphk -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 24115428Sphk | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 24215428Sphk no_recursion=yes ;; 2434217Sphk 2444217Sphk -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 2454217Sphk | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 24615392Sphk | --oldin | --oldi | --old | --ol | --o) 24715392Sphk ac_prev=oldincludedir ;; 24815428Sphk -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 24915428Sphk | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 25015428Sphk | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 25115428Sphk oldincludedir="$ac_optarg" ;; 25215428Sphk 25315428Sphk -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 25425083Sjdp ac_prev=prefix ;; 25515392Sphk -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 25624112Skato prefix="$ac_optarg" ;; 25743447Skato 25843447Skato -program-prefix | --program-prefix | --program-prefi | --program-pref \ 25924112Skato | --program-pre | --program-pr | --program-p) 26043447Skato ac_prev=program_prefix ;; 26143447Skato -program-prefix=* | --program-prefix=* | --program-prefi=* \ 26224112Skato | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 26324112Skato program_prefix="$ac_optarg" ;; 26424112Skato 26524112Skato -program-suffix | --program-suffix | --program-suffi | --program-suff \ 26624112Skato | --program-suf | --program-su | --program-s) 26724112Skato ac_prev=program_suffix ;; 26824112Skato -program-suffix=* | --program-suffix=* | --program-suffi=* \ 26924112Skato | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 27024112Skato program_suffix="$ac_optarg" ;; 27124112Skato 27224112Skato -program-transform-name | --program-transform-name \ 27324112Skato | --program-transform-nam | --program-transform-na \ 27424112Skato | --program-transform-n | --program-transform- \ 27524112Skato | --program-transform | --program-transfor \ 27643447Skato | --program-transfo | --program-transf \ 27724112Skato | --program-trans | --program-tran \ 27858786Skato | --progr-tra | --program-tr | --program-t) 27958786Skato ac_prev=program_transform_name ;; 28058786Skato -program-transform-name=* | --program-transform-name=* \ 28124112Skato | --program-transform-nam=* | --program-transform-na=* \ 28224112Skato | --program-transform-n=* | --program-transform-=* \ 28315392Sphk | --program-transform=* | --program-transfor=* \ 28415392Sphk | --program-transfo=* | --program-transf=* \ 28515392Sphk | --program-trans=* | --program-tran=* \ 28615428Sphk | --progr-tra=* | --program-tr=* | --program-t=*) 28717120Sbde program_transform_name="$ac_optarg" ;; 28815428Sphk 28917120Sbde -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29017120Sbde | -silent | --silent | --silen | --sile | --sil) 29115428Sphk silent=yes ;; 29215428Sphk 29315428Sphk -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 29415428Sphk ac_prev=sbindir ;; 29515428Sphk -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 29615428Sphk | --sbi=* | --sb=*) 29715428Sphk sbindir="$ac_optarg" ;; 29815428Sphk 29917120Sbde -sharedstatedir | --sharedstatedir | --sharedstatedi \ 30015428Sphk | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 30115392Sphk | --sharedst | --shareds | --shared | --share | --shar \ 30215392Sphk | --sha | --sh) 30315392Sphk ac_prev=sharedstatedir ;; 30415392Sphk -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 30515428Sphk | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 30615428Sphk | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 30715428Sphk | --sha=* | --sh=*) 30815392Sphk sharedstatedir="$ac_optarg" ;; 30915392Sphk 31015392Sphk -site | --site | --sit) 31127993Sdyson ac_prev=site ;; 31227993Sdyson -site=* | --site=* | --sit=*) 31327993Sdyson site="$ac_optarg" ;; 31427993Sdyson 31527993Sdyson -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 31627993Sdyson ac_prev=srcdir ;; 31727993Sdyson -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 31827993Sdyson srcdir="$ac_optarg" ;; 31927993Sdyson 32027993Sdyson -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 32115428Sphk | --syscon | --sysco | --sysc | --sys | --sy) 32215428Sphk ac_prev=sysconfdir ;; 32315428Sphk -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 32415428Sphk | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 32515428Sphk sysconfdir="$ac_optarg" ;; 32615428Sphk 32715428Sphk -target | --target | --targe | --targ | --tar | --ta | --t) 32815428Sphk ac_prev=target ;; 32915392Sphk -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 33015392Sphk target="$ac_optarg" ;; 33115392Sphk 33215392Sphk -v | -verbose | --verbose | --verbos | --verbo | --verb) 33315392Sphk verbose=yes ;; 33415392Sphk 33515392Sphk -version | --version | --versio | --versi | --vers) 33615428Sphk echo "configure generated by autoconf version 2.13" 33715428Sphk exit 0 ;; 33815428Sphk 33917120Sbde -with-* | --with-*) 34015428Sphk ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 34115428Sphk # Reject names that are not valid shell variable names. 34215428Sphk if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 34315428Sphk { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 34415428Sphk fi 34515428Sphk ac_package=`echo $ac_package| sed 's/-/_/g'` 34615392Sphk case "$ac_option" in 34715392Sphk *=*) ;; 34815392Sphk *) ac_optarg=yes ;; 34915392Sphk esac 35015392Sphk eval "with_${ac_package}='$ac_optarg'" ;; 35124691Speter 35224691Speter -without-* | --without-*) 35315392Sphk ac_package=`echo $ac_option|sed -e 's/-*without-//'` 35415392Sphk # Reject names that are not valid shell variable names. 35515392Sphk if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 35615392Sphk { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 35715392Sphk fi 35815392Sphk ac_package=`echo $ac_package| sed 's/-/_/g'` 35915392Sphk eval "with_${ac_package}=no" ;; 36015392Sphk 36115392Sphk --x) 36215392Sphk # Obsolete; use --with-x. 36315392Sphk with_x=yes ;; 36415392Sphk 36515392Sphk -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 36615392Sphk | --x-incl | --x-inc | --x-in | --x-i) 36715392Sphk ac_prev=x_includes ;; 36815392Sphk -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 36915392Sphk | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 37015392Sphk x_includes="$ac_optarg" ;; 37115392Sphk 37246129Sluoqi -x-libraries | --x-libraries | --x-librarie | --x-librari \ 37315392Sphk | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 37415392Sphk ac_prev=x_libraries ;; 37546823Speter -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 37615392Sphk | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 37724691Speter x_libraries="$ac_optarg" ;; 37815392Sphk 37924691Speter -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 38024691Speter ;; 38124691Speter 38224691Speter *) 38324691Speter if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 38415392Sphk echo "configure: warning: $ac_option: invalid host type" 1>&2 38524112Skato fi 38615392Sphk if test "x$nonopt" != xNONE; then 38715392Sphk { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 38815392Sphk fi 38915392Sphk nonopt="$ac_option" 39015392Sphk ;; 39115392Sphk 39215392Sphk esac 39315392Sphkdone 39415392Sphk 39515428Sphkif test -n "$ac_prev"; then 39615392Sphk { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 39715392Sphkfi 39815392Sphk 39915392Sphktrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 40015392Sphk 40115392Sphk# File descriptor usage: 40215392Sphk# 0 standard input 40315392Sphk# 1 file creation 40446129Sluoqi# 2 errors and warnings 40560303Sobrien# 3 some systems may open it to /dev/tty 40660303Sobrien# 4 used on the Kubota Titan 40760303Sobrien# 6 checking for... messages and results 40824691Speter# 5 compiler messages saved in config.log 40960303Sobrienif test "$silent" = yes; then 41024691Speter exec 6>/dev/null 41115392Sphkelse 41224691Speter exec 6>&1 41315392Sphkfi 41415392Sphkexec 5>./config.log 41515392Sphk 41615392Sphkecho "\ 41760303SobrienThis file contains any messages produced by compilers while 41851984Smarcelrunning configure, to aid debugging if configure makes a mistake. 41915392Sphk" 1>&5 42052140Sluoqi 42152140Sluoqi# Strip out --no-create and --no-recursion so they do not pile up. 42252140Sluoqi# Also quote any args containing shell metacharacters. 42352140Sluoqiac_configure_args= 42452140Sluoqifor ac_arg 42551792Smarceldo 42651792Smarcel case "$ac_arg" in 42752140Sluoqi -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 42852140Sluoqi | --no-cr | --no-c) ;; 42925083Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 43052140Sluoqi | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 43160303Sobrien *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 43252140Sluoqi ac_configure_args="$ac_configure_args '$ac_arg'" ;; 43352140Sluoqi *) ac_configure_args="$ac_configure_args $ac_arg" ;; 43452140Sluoqi esac 43552140Sluoqidone 43652140Sluoqi 43752140Sluoqi# NLS nuisances. 43852140Sluoqi# Only set these to C if already set. These must not be set unconditionally 43952140Sluoqi# because not all systems understand e.g. LANG=C (notably SCO). 44052140Sluoqi# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 44152140Sluoqi# Non-C LC_CTYPE values break the ctype check. 44252140Sluoqiif test "${LANG+set}" = set; then LANG=C; export LANG; fi 44352140Sluoqiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 44452140Sluoqiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 44515392Sphkif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 44615392Sphk 44715392Sphk# confdefs.h avoids OS command line length limits that DEFS can exceed. 44854121Smarcelrm -rf conftest* confdefs.h 44915392Sphk# AIX cpp loses on an empty file, so make sure it contains at least a newline. 45015392Sphkecho > confdefs.h 45154121Smarcel 45252140Sluoqi# A filename unique to this package, relative to the directory that 45315428Sphk# configure is in, which we can look for to find out if srcdir is correct. 45415392Sphkac_unique_file=getarg_.c 45515392Sphk 45615392Sphk# Find the source files, if location was not specified. 45715392Sphkif test -z "$srcdir"; then 45815392Sphk ac_srcdir_defaulted=yes 45915392Sphk # Try the directory containing this script, then its parent. 46015392Sphk ac_prog=$0 46115392Sphk ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 4623284Srgrimes test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 4633284Srgrimes srcdir=$ac_confdir 4643284Srgrimes if test ! -r $srcdir/$ac_unique_file; then 4653284Srgrimes srcdir=.. 4663284Srgrimes fi 4673284Srgrimeselse 4683284Srgrimes ac_srcdir_defaulted=no 4693284Srgrimesfi 4703284Srgrimesif test ! -r $srcdir/$ac_unique_file; then 4713284Srgrimes if test "$ac_srcdir_defaulted" = yes; then 4723284Srgrimes { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 4733284Srgrimes else 4743284Srgrimes { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 4753284Srgrimes fi 4763284Srgrimesfi 4773284Srgrimessrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 4783284Srgrimes 4793284Srgrimes# Prefer explicitly selected file to automatically selected ones. 4803284Srgrimesif test -z "$CONFIG_SITE"; then 4813284Srgrimes if test "x$prefix" != xNONE; then 4823284Srgrimes CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 4833284Srgrimes else 4843284Srgrimes CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 4853384Srgrimes fi 4863384Srgrimesfi 4874Srgrimesfor ac_site_file in $CONFIG_SITE; do 4883284Srgrimes if test -r "$ac_site_file"; then 4893284Srgrimes echo "loading site script $ac_site_file" 4903284Srgrimes . "$ac_site_file" 4913284Srgrimes fi 4923284Srgrimesdone 4933284Srgrimes 4943384Srgrimesif test -r "$cache_file"; then 49515392Sphk echo "loading cache $cache_file" 4963284Srgrimes . $cache_file 4973284Srgrimeselse 4983284Srgrimes echo "creating cache $cache_file" 4993284Srgrimes > $cache_file 50015428Sphkfi 50115428Sphk 5023284Srgrimesac_ext=c 5033384Srgrimes# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 50415392Sphkac_cpp='$CPP $CPPFLAGS' 5053284Srgrimesac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5063284Srgrimesac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5073284Srgrimescross_compiling=$ac_cv_prog_cc_cross 5083284Srgrimes 5093284Srgrimesac_exeext= 5103284Srgrimesac_objext=o 5113284Srgrimesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 5123284Srgrimes # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 5133284Srgrimes if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 5143384Srgrimes ac_n= ac_c=' 51515428Sphk' ac_t=' ' 5163384Srgrimes else 5173284Srgrimes ac_n=-n ac_c= ac_t= 51815392Sphk fi 5193384Srgrimeselse 5205908Sbde ac_n= ac_c='\c' ac_t= 5213384Srgrimesfi 5223384Srgrimes 5233384Srgrimes 5243384Srgrimes 52515428Sphk# For g77 we'll set CC to point at the built gcc, but this will get it into 52615428Sphk# the makefiles 52715428Sphk# Extract the first word of "gcc", so it can be a program name with args. 52815428Sphkset dummy gcc; ac_word=$2 5293384Srgrimesecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 5303284Srgrimesecho "configure:531: checking for $ac_word" >&5 5313384Srgrimesif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 5323284Srgrimes echo $ac_n "(cached) $ac_c" 1>&6 5333384Srgrimeselse 5343384Srgrimes if test -n "$CC"; then 5355908Sbde ac_cv_prog_CC="$CC" # Let the user override the test. 5363384Srgrimeselse 5379344Sdg IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5389344Sdg ac_dummy="$PATH" 53915926Sphk for ac_dir in $ac_dummy; do 5409344Sdg test -z "$ac_dir" && ac_dir=. 5419344Sdg if test -f $ac_dir/$ac_word; then 5429344Sdg ac_cv_prog_CC="gcc" 5439344Sdg break 5449344Sdg fi 5459344Sdg done 5463384Srgrimes IFS="$ac_save_ifs" 5473384Srgrimesfi 5483384Srgrimesfi 5493384SrgrimesCC="$ac_cv_prog_CC" 5509344Sdgif test -n "$CC"; then 55115428Sphk echo "$ac_t""$CC" 1>&6 5525908Sbdeelse 5535908Sbde echo "$ac_t""no" 1>&6 5545908Sbdefi 5555908Sbde 5564600Sphkif test -z "$CC"; then 5575908Sbde # Extract the first word of "cc", so it can be a program name with args. 5585908Sbdeset dummy cc; ac_word=$2 5595908Sbdeecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 5605908Sbdeecho "configure:561: checking for $ac_word" >&5 5615908Sbdeif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 5625908Sbde echo $ac_n "(cached) $ac_c" 1>&6 56315428Sphkelse 5645908Sbde if test -n "$CC"; then 5655908Sbde ac_cv_prog_CC="$CC" # Let the user override the test. 5664600Sphkelse 56715926Sphk IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5685908Sbde ac_prog_rejected=no 5695908Sbde ac_dummy="$PATH" 5704600Sphk for ac_dir in $ac_dummy; do 5715908Sbde test -z "$ac_dir" && ac_dir=. 5724600Sphk if test -f $ac_dir/$ac_word; then 5734600Sphk if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 5744600Sphk ac_prog_rejected=yes 5754600Sphk continue 57638063Smsmith fi 57725837Stegge ac_cv_prog_CC="cc" 5783384Srgrimes break 5793384Srgrimes fi 5803384Srgrimes done 5815908Sbde IFS="$ac_save_ifs" 5823384Srgrimesif test $ac_prog_rejected = yes; then 58315428Sphk # We found a bogon in the path, so make sure we never use it. 58415926Sphk set dummy $ac_cv_prog_CC 5853384Srgrimes shift 5863384Srgrimes if test $# -gt 0; then 5873384Srgrimes # We chose a different compiler from the bogus one. 5883384Srgrimes # However, it has the same basename, so the bogon will be chosen 58915926Sphk # first if we set CC to just the basename; use the full file name. 5903795Sphk shift 5913406Sdg set dummy "$ac_dir/$ac_word" "$@" 59225837Stegge shift 5933384Srgrimes ac_cv_prog_CC="$@" 5943384Srgrimes fi 5953284Srgrimesfi 5963284Srgrimesfi 5973384Srgrimesfi 5983384SrgrimesCC="$ac_cv_prog_CC" 5993284Srgrimesif test -n "$CC"; then 60015392Sphk echo "$ac_t""$CC" 1>&6 6013384Srgrimeselse 60215926Sphk echo "$ac_t""no" 1>&6 6033384Srgrimesfi 60415926Sphk 6052783Ssos if test -z "$CC"; then 60615392Sphk case "`uname -s`" in 6073258Sdg *win32* | *WIN32*) 6081321Sdg # Extract the first word of "cl", so it can be a program name with args. 60915392Sphkset dummy cl; ac_word=$2 61015392Sphkecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 61115392Sphkecho "configure:612: checking for $ac_word" >&5 61215392Sphkif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 61315392Sphk echo $ac_n "(cached) $ac_c" 1>&6 61415392Sphkelse 61515392Sphk if test -n "$CC"; then 6161998Swollman ac_cv_prog_CC="$CC" # Let the user override the test. 6171998Swollmanelse 6181998Swollman IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 6191998Swollman ac_dummy="$PATH" 6201998Swollman for ac_dir in $ac_dummy; do 6211998Swollman test -z "$ac_dir" && ac_dir=. 6221998Swollman if test -f $ac_dir/$ac_word; then 6231998Swollman ac_cv_prog_CC="cl" 6241998Swollman break 6251998Swollman fi 6261998Swollman done 6271998Swollman IFS="$ac_save_ifs" 6281998Swollmanfi 6291998Swollmanfi 6301998SwollmanCC="$ac_cv_prog_CC" 63124112Skatoif test -n "$CC"; then 63224112Skato echo "$ac_t""$CC" 1>&6 63324112Skatoelse 63424112Skato echo "$ac_t""no" 1>&6 63524112Skatofi 63624112Skato ;; 63724112Skato esac 63824112Skato fi 63924112Skato test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 64024112Skatofi 64124112Skato 64215926Sphkecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 64313081Sdgecho "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 6441998Swollman 64524112Skatoac_ext=c 64627424Skato# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 64724112Skatoac_cpp='$CPP $CPPFLAGS' 64824112Skatoac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 64924112Skatoac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 65024112Skatocross_compiling=$ac_cv_prog_cc_cross 65124112Skato 65224112Skatocat > conftest.$ac_ext << EOF 65324112Skato 65424112Skato#line 655 "configure" 6551998Swollman#include "confdefs.h" 6561998Swollman 6571998Swollmanmain(){return(0);} 6581998SwollmanEOF 6591998Swollmanif { (eval echo configure:660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6601998Swollman ac_cv_prog_cc_works=yes 6611998Swollman # If we can't run a trivial program, we are probably using a cross compiler. 6621998Swollman if (./conftest; exit) 2>/dev/null; then 6631998Swollman ac_cv_prog_cc_cross=no 6641998Swollman else 6651998Swollman ac_cv_prog_cc_cross=yes 6661998Swollman fi 6671998Swollmanelse 6681998Swollman echo "configure: failed program was:" >&5 66924112Skato cat conftest.$ac_ext >&5 67015926Sphk ac_cv_prog_cc_works=no 6712495Spstfi 67224112Skatorm -fr conftest* 67324112Skatoac_ext=c 67424112Skato# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 67524112Skatoac_cpp='$CPP $CPPFLAGS' 67624112Skatoac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 67724112Skatoac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 67824112Skatocross_compiling=$ac_cv_prog_cc_cross 67924112Skato 68024112Skatoecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 68124112Skatoif test $ac_cv_prog_cc_works = no; then 68224112Skato { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 68324112Skatofi 68424112Skatoecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 68524112Skatoecho "configure:686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 68624112Skatoecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 68724112Skatocross_compiling=$ac_cv_prog_cc_cross 6882495Spst 68924112Skatoecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 69024112Skatoecho "configure:691: checking whether we are using GNU C" >&5 69124112Skatoif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 69224112Skato echo $ac_n "(cached) $ac_c" 1>&6 69324112Skatoelse 69424112Skato cat > conftest.c <<EOF 69524112Skato#ifdef __GNUC__ 69624112Skato yes; 69715926Sphk#endif 69824112SkatoEOF 69924112Skatoif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 70013014Sdg ac_cv_prog_gcc=yes 7011998Swollmanelse 70224112Skato ac_cv_prog_gcc=no 7031998Swollmanfi 7046308Sphkfi 70515926Sphk 70615926Sphkecho "$ac_t""$ac_cv_prog_gcc" 1>&6 70715926Sphk 70815926Sphkif test $ac_cv_prog_gcc = yes; then 70915926Sphk GCC=yes 7101998Swollmanelse 7111998Swollman GCC= 7126308Sphkfi 71315926Sphk 71415926Sphkac_test_CFLAGS="${CFLAGS+set}" 7156308Sphkac_save_CFLAGS="$CFLAGS" 7161998SwollmanCFLAGS= 7171998Swollmanecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 7181998Swollmanecho "configure:719: checking whether ${CC-cc} accepts -g" >&5 7191998Swollmanif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 7201998Swollman echo $ac_n "(cached) $ac_c" 1>&6 72115926Sphkelse 72213000Sdg echo 'void f(){}' > conftest.c 72313000Sdgif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 72413000Sdg ac_cv_prog_cc_g=yes 72513000Sdgelse 72613000Sdg ac_cv_prog_cc_g=no 72715926Sphkfi 72813000Sdgrm -f conftest* 729556Srgrimes 73013000Sdgfi 73115926Sphk 73213000Sdgecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 73315392Sphkif test "$ac_test_CFLAGS" = set; then 734556Srgrimes CFLAGS="$ac_save_CFLAGS" 7354Srgrimeselif test $ac_cv_prog_cc_g = yes; then 73615392Sphk if test "$GCC" = yes; then 737570Srgrimes CFLAGS="-g -O2" 73815428Sphk else 73915392Sphk CFLAGS="-g" 740570Srgrimes fi 741570Srgrimeselse 74215392Sphk if test "$GCC" = yes; then 74315392Sphk CFLAGS="-O2" 74419621Sdyson else 74519621Sdyson CFLAGS= 74619621Sdyson fi 74719621Sdysonfi 74819621Sdyson 74919621Sdyson 75019621Sdysontest "$AR" || AR=ar 75115428Sphk 75215392Sphkecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 7534Srgrimesecho "configure:754: checking whether ${MAKE-make} sets \${MAKE}" >&5 75461422Sbdeset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 75515392Sphkif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 7565908Sbde echo $ac_n "(cached) $ac_c" 1>&6 75715428Sphkelse 7585908Sbde cat > conftestmake <<\EOF 7595908Sbdeall: 76015392Sphk @echo 'ac_maketemp="${MAKE}"' 76115392SphkEOF 76215428Sphk# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7635908Sbdeeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 76440081Smsmithif test -n "$ac_maketemp"; then 76540081Smsmith eval ac_cv_prog_make_${ac_make}_set=yes 76640081Smsmithelse 76740081Smsmith eval ac_cv_prog_make_${ac_make}_set=no 76840081Smsmithfi 76940081Smsmithrm -f conftestmake 77040081Smsmithfi 77115565Sphkif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 77215565Sphk echo "$ac_t""yes" 1>&6 77315392Sphk SET_MAKE= 77415428Sphkelse 775608Srgrimes echo "$ac_t""no" 1>&6 77615392Sphk SET_MAKE="MAKE=${MAKE-make}" 77715392Sphkfi 77815392Sphk 779757Sdg 78015392Sphk 78115392Sphk# Sanity check for the cross-compilation case: 78215392Sphkecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 7834Srgrimesecho "configure:784: checking how to run the C preprocessor" >&5 78415392Sphk# On Suns, sometimes $CPP names a directory. 78515392Sphkif test -n "$CPP" && test -d "$CPP"; then 78617120Sbde CPP= 78715392Sphkfi 78815392Sphkif test -z "$CPP"; then 7894Srgrimesif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 79037889Sjlemon echo $ac_n "(cached) $ac_c" 1>&6 79137889Sjlemonelse 79237889Sjlemon # This must be in double quotes, not single quotes, because CPP may get 79337889Sjlemon # substituted into the Makefile and "${CC-cc}" will confuse make. 79434840Sjlemon CPP="${CC-cc} -E" 79534840Sjlemon # On the NeXT, cc -E runs the code through the compiler's parser, 79634840Sjlemon # not just through cpp. 79734840Sjlemon cat > conftest.$ac_ext <<EOF 79826812Speter#line 799 "configure" 79925164Speter#include "confdefs.h" 80025164Speter#include <assert.h> 80125164SpeterSyntax Error 80225164SpeterEOF 80325164Speterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 80425164Speter{ (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 80546129Sluoqiac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 80625164Speterif test -z "$ac_err"; then 80746129Sluoqi : 80825164Speterelse 80946129Sluoqi echo "$ac_err" >&5 81026812Speter echo "configure: failed program was:" >&5 81125164Speter cat conftest.$ac_ext >&5 81215392Sphk rm -rf conftest* 81315565Sphk CPP="${CC-cc} -E -traditional-cpp" 81415428Sphk cat > conftest.$ac_ext <<EOF 81515428Sphk#line 816 "configure" 81615428Sphk#include "confdefs.h" 81715428Sphk#include <assert.h> 81815428SphkSyntax Error 81919621SdysonEOF 82027484Sdysonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 82127484Sdyson{ (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 82219621Sdysonac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 82319621Sdysonif test -z "$ac_err"; then 82419621Sdyson : 82527484Sdysonelse 82619621Sdyson echo "$ac_err" >&5 82719621Sdyson echo "configure: failed program was:" >&5 82815565Sphk cat conftest.$ac_ext >&5 82915565Sphk rm -rf conftest* 83019621Sdyson CPP="${CC-cc} -nologo -E" 831757Sdg cat > conftest.$ac_ext <<EOF 83215392Sphk#line 833 "configure" 83315565Sphk#include "confdefs.h" 83415694Sphk#include <assert.h> 83515694SphkSyntax Error 83615428SphkEOF 83719621Sdysonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 83827484Sdyson{ (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 83919621Sdysonac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 84019621Sdysonif test -z "$ac_err"; then 84119621Sdyson : 84227484Sdysonelse 84319621Sdyson echo "$ac_err" >&5 84419621Sdyson echo "configure: failed program was:" >&5 845757Sdg cat conftest.$ac_ext >&5 84615543Sphk rm -rf conftest* 84719621Sdyson CPP=/lib/cpp 848757Sdgfi 84915428Sphkrm -f conftest* 85015392Sphkfi 85115392Sphkrm -f conftest* 85219621Sdysonfi 853757Sdgrm -f conftest* 85417120Sbde ac_cv_prog_CPP="$CPP" 85517120Sbdefi 85615392Sphk CPP="$ac_cv_prog_CPP" 85719621Sdysonelse 8584Srgrimes ac_cv_prog_CPP="$CPP" 85915565Sphkfi 86015565Sphkecho "$ac_t""$CPP" 1>&6 86115565Sphk 86222130Sdgac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'` 86315565Sphkecho $ac_n "checking for stdio.h""... $ac_c" 1>&6 86434840Sjlemonecho "configure:865: checking for stdio.h" >&5 86537889Sjlemonif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 86634840Sjlemon echo $ac_n "(cached) $ac_c" 1>&6 86734840Sjlemonelse 86834840Sjlemon cat > conftest.$ac_ext <<EOF 86934840Sjlemon#line 870 "configure" 87034840Sjlemon#include "confdefs.h" 87134840Sjlemon#include <stdio.h> 87234840SjlemonEOF 87334840Sjlemonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 87434840Sjlemon{ (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 87534840Sjlemonac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 87634840Sjlemonif test -z "$ac_err"; then 87734840Sjlemon rm -rf conftest* 87834840Sjlemon eval "ac_cv_header_$ac_safe=yes" 87934840Sjlemonelse 88034840Sjlemon echo "$ac_err" >&5 88126812Speter echo "configure: failed program was:" >&5 88226812Speter cat conftest.$ac_ext >&5 88325164Speter rm -rf conftest* 88425164Speter eval "ac_cv_header_$ac_safe=no" 88525164Speterfi 88625164Speterrm -f conftest* 88746129Sluoqifi 88846129Sluoqiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 88925164Speter echo "$ac_t""yes" 1>&6 89025164Speter : 89125164Speterelse 89246129Sluoqi echo "$ac_t""no" 1>&6 89325164Speter{ echo "configure: error: Can't find stdio.h. 89425164SpeterYou must have a usable C system for the target already installed, at least 89525164Speterincluding headers and, preferably, the library, before you can configure 89646129Sluoqithe G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c', 89725164Speterthen the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; } 89826812Speterfi 89946129Sluoqi 90025164Speter 90125164Speterecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 90225164Speterecho "configure:903: checking for ANSI C header files" >&5 90334840Sjlemonif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 90434840Sjlemon echo $ac_n "(cached) $ac_c" 1>&6 90534840Sjlemonelse 90634840Sjlemon cat > conftest.$ac_ext <<EOF 90746129Sluoqi#line 908 "configure" 90834840Sjlemon#include "confdefs.h" 90946129Sluoqi#include <stdlib.h> 91034840Sjlemon#include <stdarg.h> 91134840Sjlemon#include <string.h> 91234840Sjlemon#include <float.h> 91326812SpeterEOF 91425164Speterac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 91515392Sphk{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 91615392Sphkac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 91715565Sphkif test -z "$ac_err"; then 91815565Sphk rm -rf conftest* 91919621Sdyson ac_cv_header_stdc=yes 9204Srgrimeselse 92115392Sphk echo "$ac_err" >&5 92215392Sphk echo "configure: failed program was:" >&5 92315565Sphk cat conftest.$ac_ext >&5 92415565Sphk rm -rf conftest* 92519621Sdyson ac_cv_header_stdc=no 9264Srgrimesfi 92715392Sphkrm -f conftest* 92815565Sphk 92915565Sphkif test $ac_cv_header_stdc = yes; then 93015565Sphk # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 93119621Sdysoncat > conftest.$ac_ext <<EOF 9324Srgrimes#line 933 "configure" 9334Srgrimes#include "confdefs.h" 93415428Sphk#include <string.h> 93515428SphkEOF 93615428Sphkif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 93715428Sphk egrep "memchr" >/dev/null 2>&1; then 93815428Sphk : 93915428Sphkelse 94015428Sphk rm -rf conftest* 94115428Sphk ac_cv_header_stdc=no 94215428Sphkfi 94315428Sphkrm -f conftest* 94415428Sphk 94515428Sphkfi 94615428Sphk 94715428Sphkif test $ac_cv_header_stdc = yes; then 94815428Sphk # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 94915428Sphkcat > conftest.$ac_ext <<EOF 95015428Sphk#line 951 "configure" 95115428Sphk#include "confdefs.h" 95215428Sphk#include <stdlib.h> 95315428SphkEOF 95415428Sphkif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 95515428Sphk egrep "free" >/dev/null 2>&1; then 95615428Sphk : 95715428Sphkelse 95815428Sphk rm -rf conftest* 95915428Sphk ac_cv_header_stdc=no 96015428Sphkfi 96115428Sphkrm -f conftest* 96215428Sphk 96315428Sphkfi 96415428Sphk 96515428Sphkif test $ac_cv_header_stdc = yes; then 96615428Sphk # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 96715428Sphkif test "$cross_compiling" = yes; then 96815428Sphk : 96915428Sphkelse 97015428Sphk cat > conftest.$ac_ext <<EOF 97115428Sphk#line 972 "configure" 97215428Sphk#include "confdefs.h" 97315428Sphk#include <ctype.h> 97448005Sbde#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 97515428Sphk#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 97615428Sphk#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 97715428Sphkint main () { int i; for (i = 0; i < 256; i++) 97815428Sphkif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 97915428Sphkexit (0); } 98015428Sphk 98115428SphkEOF 98215428Sphkif { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 98315428Sphkthen 98415428Sphk : 98515428Sphkelse 98615428Sphk echo "configure: failed program was:" >&5 98715428Sphk cat conftest.$ac_ext >&5 98815428Sphk rm -fr conftest* 98915428Sphk ac_cv_header_stdc=no 99015428Sphkfi 99115428Sphkrm -fr conftest* 99215428Sphkfi 99315428Sphk 99415428Sphkfi 99515428Sphkfi 99615428Sphk 99715428Sphkecho "$ac_t""$ac_cv_header_stdc" 1>&6 99815428Sphkif test $ac_cv_header_stdc = yes; then 99915428Sphk cat >> confdefs.h <<\EOF 100015428Sphk#define STDC_HEADERS 1 100115428SphkEOF 100215428Sphk 100315428Sphkfi 100415428Sphk 100515428Sphk 100615428Sphkecho $ac_n "checking for posix""... $ac_c" 1>&6 100715428Sphkecho "configure:1008: checking for posix" >&5 100815428Sphkif eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then 100915428Sphk echo $ac_n "(cached) $ac_c" 1>&6 101015428Sphkelse 101115428Sphk cat > conftest.$ac_ext <<EOF 101215428Sphk#line 1013 "configure" 101315428Sphk#include "confdefs.h" 1014#include <sys/types.h> 1015#include <unistd.h> 1016#ifdef _POSIX_VERSION 1017 yes 1018#endif 1019 1020EOF 1021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1022 egrep "yes" >/dev/null 2>&1; then 1023 rm -rf conftest* 1024 g77_cv_header_posix=yes 1025else 1026 rm -rf conftest* 1027 g77_cv_header_posix=no 1028fi 1029rm -f conftest* 1030 1031fi 1032 1033echo "$ac_t""$g77_cv_header_posix" 1>&6 1034 1035# We can rely on the GNU library being posix-ish. I guess checking the 1036# header isn't actually like checking the functions, though... 1037echo $ac_n "checking for GNU library""... $ac_c" 1>&6 1038echo "configure:1039: checking for GNU library" >&5 1039if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then 1040 echo $ac_n "(cached) $ac_c" 1>&6 1041else 1042 cat > conftest.$ac_ext <<EOF 1043#line 1044 "configure" 1044#include "confdefs.h" 1045#include <stdio.h> 1046#ifdef __GNU_LIBRARY__ 1047 yes 1048#endif 1049 1050EOF 1051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1052 egrep "yes" >/dev/null 2>&1; then 1053 rm -rf conftest* 1054 g77_cv_lib_gnu=yes 1055else 1056 rm -rf conftest* 1057 g77_cv_lib_gnu=no 1058fi 1059rm -f conftest* 1060 1061fi 1062 1063echo "$ac_t""$g77_cv_lib_gnu" 1>&6 1064 1065echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1066echo "configure:1067: checking return type of signal handlers" >&5 1067if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1068 echo $ac_n "(cached) $ac_c" 1>&6 1069else 1070 cat > conftest.$ac_ext <<EOF 1071#line 1072 "configure" 1072#include "confdefs.h" 1073#include <sys/types.h> 1074#include <signal.h> 1075#ifdef signal 1076#undef signal 1077#endif 1078#ifdef __cplusplus 1079extern "C" void (*signal (int, void (*)(int)))(int); 1080#else 1081void (*signal ()) (); 1082#endif 1083 1084int main() { 1085int i; 1086; return 0; } 1087EOF 1088if { (eval echo configure:1089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1089 rm -rf conftest* 1090 ac_cv_type_signal=void 1091else 1092 echo "configure: failed program was:" >&5 1093 cat conftest.$ac_ext >&5 1094 rm -rf conftest* 1095 ac_cv_type_signal=int 1096fi 1097rm -f conftest* 1098fi 1099 1100echo "$ac_t""$ac_cv_type_signal" 1>&6 1101cat >> confdefs.h <<EOF 1102#define RETSIGTYPE $ac_cv_type_signal 1103EOF 1104 1105 1106# we'll get atexit by default 1107if test $ac_cv_header_stdc != yes; then 1108echo $ac_n "checking for atexit""... $ac_c" 1>&6 1109echo "configure:1110: checking for atexit" >&5 1110if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then 1111 echo $ac_n "(cached) $ac_c" 1>&6 1112else 1113 cat > conftest.$ac_ext <<EOF 1114#line 1115 "configure" 1115#include "confdefs.h" 1116/* System header to define __stub macros and hopefully few prototypes, 1117 which can conflict with char atexit(); below. */ 1118#include <assert.h> 1119/* Override any gcc2 internal prototype to avoid an error. */ 1120/* We use char because int might match the return type of a gcc2 1121 builtin and then its argument prototype would still apply. */ 1122char atexit(); 1123 1124int main() { 1125 1126/* The GNU C library defines this for functions which it implements 1127 to always fail with ENOSYS. Some functions are actually named 1128 something starting with __ and the normal name is an alias. */ 1129#if defined (__stub_atexit) || defined (__stub___atexit) 1130choke me 1131#else 1132atexit(); 1133#endif 1134 1135; return 0; } 1136EOF 1137if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1138 rm -rf conftest* 1139 eval "ac_cv_func_atexit=yes" 1140else 1141 echo "configure: failed program was:" >&5 1142 cat conftest.$ac_ext >&5 1143 rm -rf conftest* 1144 eval "ac_cv_func_atexit=no" 1145fi 1146rm -f conftest* 1147fi 1148 1149if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then 1150 echo "$ac_t""yes" 1>&6 1151 cat >> confdefs.h <<\EOF 1152#define onexit atexit 1153EOF 1154 1155else 1156 echo "$ac_t""no" 1>&6 1157 cat >> confdefs.h <<\EOF 1158#define NO_ONEXIT 1 1159EOF 1160 1161 echo $ac_n "checking for onexit""... $ac_c" 1>&6 1162echo "configure:1163: checking for onexit" >&5 1163if eval "test \"`echo '$''{'ac_cv_func_onexit'+set}'`\" = set"; then 1164 echo $ac_n "(cached) $ac_c" 1>&6 1165else 1166 cat > conftest.$ac_ext <<EOF 1167#line 1168 "configure" 1168#include "confdefs.h" 1169/* System header to define __stub macros and hopefully few prototypes, 1170 which can conflict with char onexit(); below. */ 1171#include <assert.h> 1172/* Override any gcc2 internal prototype to avoid an error. */ 1173/* We use char because int might match the return type of a gcc2 1174 builtin and then its argument prototype would still apply. */ 1175char onexit(); 1176 1177int main() { 1178 1179/* The GNU C library defines this for functions which it implements 1180 to always fail with ENOSYS. Some functions are actually named 1181 something starting with __ and the normal name is an alias. */ 1182#if defined (__stub_onexit) || defined (__stub___onexit) 1183choke me 1184#else 1185onexit(); 1186#endif 1187 1188; return 0; } 1189EOF 1190if { (eval echo configure:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1191 rm -rf conftest* 1192 eval "ac_cv_func_onexit=yes" 1193else 1194 echo "configure: failed program was:" >&5 1195 cat conftest.$ac_ext >&5 1196 rm -rf conftest* 1197 eval "ac_cv_func_onexit=no" 1198fi 1199rm -f conftest* 1200fi 1201 1202if eval "test \"`echo '$ac_cv_func_'onexit`\" = yes"; then 1203 echo "$ac_t""yes" 1>&6 1204 : 1205else 1206 echo "$ac_t""no" 1>&6 1207echo $ac_n "checking for on_exit""... $ac_c" 1>&6 1208echo "configure:1209: checking for on_exit" >&5 1209if eval "test \"`echo '$''{'ac_cv_func_on_exit'+set}'`\" = set"; then 1210 echo $ac_n "(cached) $ac_c" 1>&6 1211else 1212 cat > conftest.$ac_ext <<EOF 1213#line 1214 "configure" 1214#include "confdefs.h" 1215/* System header to define __stub macros and hopefully few prototypes, 1216 which can conflict with char on_exit(); below. */ 1217#include <assert.h> 1218/* Override any gcc2 internal prototype to avoid an error. */ 1219/* We use char because int might match the return type of a gcc2 1220 builtin and then its argument prototype would still apply. */ 1221char on_exit(); 1222 1223int main() { 1224 1225/* The GNU C library defines this for functions which it implements 1226 to always fail with ENOSYS. Some functions are actually named 1227 something starting with __ and the normal name is an alias. */ 1228#if defined (__stub_on_exit) || defined (__stub___on_exit) 1229choke me 1230#else 1231on_exit(); 1232#endif 1233 1234; return 0; } 1235EOF 1236if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1237 rm -rf conftest* 1238 eval "ac_cv_func_on_exit=yes" 1239else 1240 echo "configure: failed program was:" >&5 1241 cat conftest.$ac_ext >&5 1242 rm -rf conftest* 1243 eval "ac_cv_func_on_exit=no" 1244fi 1245rm -f conftest* 1246fi 1247 1248if eval "test \"`echo '$ac_cv_func_'on_exit`\" = yes"; then 1249 echo "$ac_t""yes" 1>&6 1250 cat >> confdefs.h <<\EOF 1251#define onexit on_exit 1252EOF 1253 1254else 1255 echo "$ac_t""no" 1>&6 1256fi 1257 1258fi 1259 1260fi 1261 1262else true 1263fi 1264 1265echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6 1266echo "configure:1267: checking for drem in -lm" >&5 1267ac_lib_var=`echo m'_'drem | sed 'y%./+-%__p_%'` 1268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1269 echo $ac_n "(cached) $ac_c" 1>&6 1270else 1271 ac_save_LIBS="$LIBS" 1272LIBS="-lm $LIBS" 1273cat > conftest.$ac_ext <<EOF 1274#line 1275 "configure" 1275#include "confdefs.h" 1276/* Override any gcc2 internal prototype to avoid an error. */ 1277/* We use char because int might match the return type of a gcc2 1278 builtin and then its argument prototype would still apply. */ 1279char drem(); 1280 1281int main() { 1282drem() 1283; return 0; } 1284EOF 1285if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1286 rm -rf conftest* 1287 eval "ac_cv_lib_$ac_lib_var=yes" 1288else 1289 echo "configure: failed program was:" >&5 1290 cat conftest.$ac_ext >&5 1291 rm -rf conftest* 1292 eval "ac_cv_lib_$ac_lib_var=no" 1293fi 1294rm -f conftest* 1295LIBS="$ac_save_LIBS" 1296 1297fi 1298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1299 echo "$ac_t""yes" 1>&6 1300 cat >> confdefs.h <<\EOF 1301#define IEEE_drem 1 1302EOF 1303 1304else 1305 echo "$ac_t""no" 1>&6 1306fi 1307 1308 1309cat >> confdefs.h <<\EOF 1310#define Skip_f2c_Undefs 1 1311EOF 1312 1313 1314trap '' 1 2 15 1315cat > confcache <<\EOF 1316# This file is a shell script that caches the results of configure 1317# tests run on this system so they can be shared between configure 1318# scripts and configure runs. It is not useful on other systems. 1319# If it contains results you don't want to keep, you may remove or edit it. 1320# 1321# By default, configure uses ./config.cache as the cache file, 1322# creating it if it does not exist already. You can give configure 1323# the --cache-file=FILE option to use a different cache file; that is 1324# what configure does when it calls configure scripts in 1325# subdirectories, so they share the cache. 1326# Giving --cache-file=/dev/null disables caching, for debugging configure. 1327# config.status only pays attention to the cache file if you give it the 1328# --recheck option to rerun configure. 1329# 1330EOF 1331# The following way of writing the cache mishandles newlines in values, 1332# but we know of no workaround that is simple, portable, and efficient. 1333# So, don't put newlines in cache variables' values. 1334# Ultrix sh set writes to stderr and can't be redirected directly, 1335# and sets the high bit in the cache file unless we assign to the vars. 1336(set) 2>&1 | 1337 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1338 *ac_space=\ *) 1339 # `set' does not quote correctly, so add quotes (double-quote substitution 1340 # turns \\\\ into \\, and sed turns \\ into \). 1341 sed -n \ 1342 -e "s/'/'\\\\''/g" \ 1343 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1344 ;; 1345 *) 1346 # `set' quotes correctly as required by POSIX, so do not add quotes. 1347 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1348 ;; 1349 esac >> confcache 1350if cmp -s $cache_file confcache; then 1351 : 1352else 1353 if test -w $cache_file; then 1354 echo "updating cache $cache_file" 1355 cat confcache > $cache_file 1356 else 1357 echo "not updating unwritable cache $cache_file" 1358 fi 1359fi 1360rm -f confcache 1361 1362trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1363 1364test "x$prefix" = xNONE && prefix=$ac_default_prefix 1365# Let make expand exec_prefix. 1366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1367 1368# Any assignment to VPATH causes Sun make to only execute 1369# the first set of double-colon rules, so remove it if not needed. 1370# If there is a colon in the path, we need to keep it. 1371if test "x$srcdir" = x.; then 1372 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1373fi 1374 1375trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1376 1377# Transform confdefs.h into DEFS. 1378# Protect against shell expansion while executing Makefile rules. 1379# Protect against Makefile macro expansion. 1380cat > conftest.defs <<\EOF 1381s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1382s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1383s%\[%\\&%g 1384s%\]%\\&%g 1385s%\$%$$%g 1386EOF 1387DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1388rm -f conftest.defs 1389 1390 1391# Without the "./", some shells look in PATH for config.status. 1392: ${CONFIG_STATUS=./config.status} 1393 1394echo creating $CONFIG_STATUS 1395rm -f $CONFIG_STATUS 1396cat > $CONFIG_STATUS <<EOF 1397#! /bin/sh 1398# Generated automatically by configure. 1399# Run this file to recreate the current configuration. 1400# This directory was configured as follows, 1401# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1402# 1403# $0 $ac_configure_args 1404# 1405# Compiler output produced by configure, useful for debugging 1406# configure, is in ./config.log if it exists. 1407 1408ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1409for ac_option 1410do 1411 case "\$ac_option" in 1412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1413 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1414 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1415 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1416 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1417 exit 0 ;; 1418 -help | --help | --hel | --he | --h) 1419 echo "\$ac_cs_usage"; exit 0 ;; 1420 *) echo "\$ac_cs_usage"; exit 1 ;; 1421 esac 1422done 1423 1424ac_given_srcdir=$srcdir 1425 1426trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1427EOF 1428cat >> $CONFIG_STATUS <<EOF 1429 1430# Protect against being on the right side of a sed subst in config.status. 1431sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1432 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1433$ac_vpsub 1434$extrasub 1435s%@SHELL@%$SHELL%g 1436s%@CFLAGS@%$CFLAGS%g 1437s%@CPPFLAGS@%$CPPFLAGS%g 1438s%@CXXFLAGS@%$CXXFLAGS%g 1439s%@FFLAGS@%$FFLAGS%g 1440s%@DEFS@%$DEFS%g 1441s%@LDFLAGS@%$LDFLAGS%g 1442s%@LIBS@%$LIBS%g 1443s%@exec_prefix@%$exec_prefix%g 1444s%@prefix@%$prefix%g 1445s%@program_transform_name@%$program_transform_name%g 1446s%@bindir@%$bindir%g 1447s%@sbindir@%$sbindir%g 1448s%@libexecdir@%$libexecdir%g 1449s%@datadir@%$datadir%g 1450s%@sysconfdir@%$sysconfdir%g 1451s%@sharedstatedir@%$sharedstatedir%g 1452s%@localstatedir@%$localstatedir%g 1453s%@libdir@%$libdir%g 1454s%@includedir@%$includedir%g 1455s%@oldincludedir@%$oldincludedir%g 1456s%@infodir@%$infodir%g 1457s%@mandir@%$mandir%g 1458s%@CC@%$CC%g 1459s%@AR@%$AR%g 1460s%@SET_MAKE@%$SET_MAKE%g 1461s%@CPP@%$CPP%g 1462 1463CEOF 1464EOF 1465 1466cat >> $CONFIG_STATUS <<\EOF 1467 1468# Split the substitutions into bite-sized pieces for seds with 1469# small command number limits, like on Digital OSF/1 and HP-UX. 1470ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1471ac_file=1 # Number of current file. 1472ac_beg=1 # First line for current file. 1473ac_end=$ac_max_sed_cmds # Line after last line for current file. 1474ac_more_lines=: 1475ac_sed_cmds="" 1476while $ac_more_lines; do 1477 if test $ac_beg -gt 1; then 1478 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1479 else 1480 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1481 fi 1482 if test ! -s conftest.s$ac_file; then 1483 ac_more_lines=false 1484 rm -f conftest.s$ac_file 1485 else 1486 if test -z "$ac_sed_cmds"; then 1487 ac_sed_cmds="sed -f conftest.s$ac_file" 1488 else 1489 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1490 fi 1491 ac_file=`expr $ac_file + 1` 1492 ac_beg=$ac_end 1493 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1494 fi 1495done 1496if test -z "$ac_sed_cmds"; then 1497 ac_sed_cmds=cat 1498fi 1499EOF 1500 1501cat >> $CONFIG_STATUS <<EOF 1502 1503CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1504EOF 1505cat >> $CONFIG_STATUS <<\EOF 1506for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1508 case "$ac_file" in 1509 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1510 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1511 *) ac_file_in="${ac_file}.in" ;; 1512 esac 1513 1514 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1515 1516 # Remove last slash and all that follows it. Not all systems have dirname. 1517 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1518 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1519 # The file is in a subdirectory. 1520 test ! -d "$ac_dir" && mkdir "$ac_dir" 1521 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1522 # A "../" for each directory in $ac_dir_suffix. 1523 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1524 else 1525 ac_dir_suffix= ac_dots= 1526 fi 1527 1528 case "$ac_given_srcdir" in 1529 .) srcdir=. 1530 if test -z "$ac_dots"; then top_srcdir=. 1531 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1532 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1533 *) # Relative path. 1534 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1535 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1536 esac 1537 1538 1539 echo creating "$ac_file" 1540 rm -f "$ac_file" 1541 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1542 case "$ac_file" in 1543 *Makefile*) ac_comsub="1i\\ 1544# $configure_input" ;; 1545 *) ac_comsub= ;; 1546 esac 1547 1548 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1549 sed -e "$ac_comsub 1550s%@configure_input@%$configure_input%g 1551s%@srcdir@%$srcdir%g 1552s%@top_srcdir@%$top_srcdir%g 1553" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1554fi; done 1555rm -f conftest.s* 1556 1557EOF 1558cat >> $CONFIG_STATUS <<EOF 1559 1560EOF 1561cat >> $CONFIG_STATUS <<\EOF 1562 1563exit 0 1564EOF 1565chmod +x $CONFIG_STATUS 1566rm -fr confdefs* $ac_clean_files 1567test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1568 1569 1570