configure 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-elf disable builtin ELF support"
  14. ac_help="$ac_help
  15. --disable-elf-core disable ELF core file support"
  16. ac_help="$ac_help
  17. --enable-fsect-man5 enable file formats in man section 5"
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39. bindir='${exec_prefix}/bin'
  40. sbindir='${exec_prefix}/sbin'
  41. libexecdir='${exec_prefix}/libexec'
  42. datadir='${prefix}/share'
  43. sysconfdir='${prefix}/etc'
  44. sharedstatedir='${prefix}/com'
  45. localstatedir='${prefix}/var'
  46. libdir='${exec_prefix}/lib'
  47. includedir='${prefix}/include'
  48. oldincludedir='/usr/include'
  49. infodir='${prefix}/info'
  50. mandir='${prefix}/man'
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54. SHELL=${CONFIG_SHELL-/bin/sh}
  55. # Maximum number of lines to put in a shell here document.
  56. ac_max_here_lines=12
  57. ac_prev=
  58. for ac_option
  59. do
  60. # If the previous option needs an argument, assign it.
  61. if test -n "$ac_prev"; then
  62. eval "$ac_prev=\$ac_option"
  63. ac_prev=
  64. continue
  65. fi
  66. case "$ac_option" in
  67. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68. *) ac_optarg= ;;
  69. esac
  70. # Accept the important Cygnus configure options, so we can diagnose typos.
  71. case "$ac_option" in
  72. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  73. ac_prev=bindir ;;
  74. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  75. bindir="$ac_optarg" ;;
  76. -build | --build | --buil | --bui | --bu)
  77. ac_prev=build ;;
  78. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  79. build="$ac_optarg" ;;
  80. -cache-file | --cache-file | --cache-fil | --cache-fi \
  81. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  82. ac_prev=cache_file ;;
  83. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  84. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  85. cache_file="$ac_optarg" ;;
  86. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  87. ac_prev=datadir ;;
  88. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  89. | --da=*)
  90. datadir="$ac_optarg" ;;
  91. -disable-* | --disable-*)
  92. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  93. # Reject names that are not valid shell variable names.
  94. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  95. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  96. fi
  97. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  98. eval "enable_${ac_feature}=no" ;;
  99. -enable-* | --enable-*)
  100. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  101. # Reject names that are not valid shell variable names.
  102. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  103. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104. fi
  105. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106. case "$ac_option" in
  107. *=*) ;;
  108. *) ac_optarg=yes ;;
  109. esac
  110. eval "enable_${ac_feature}='$ac_optarg'" ;;
  111. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  112. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  113. | --exec | --exe | --ex)
  114. ac_prev=exec_prefix ;;
  115. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  116. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  117. | --exec=* | --exe=* | --ex=*)
  118. exec_prefix="$ac_optarg" ;;
  119. -gas | --gas | --ga | --g)
  120. # Obsolete; use --with-gas.
  121. with_gas=yes ;;
  122. -help | --help | --hel | --he)
  123. # Omit some internal or obsolete options to make the list less imposing.
  124. # This message is too long to be a string in the A/UX 3.1 sh.
  125. cat << EOF
  126. Usage: configure [options] [host]
  127. Options: [defaults in brackets after descriptions]
  128. Configuration:
  129. --cache-file=FILE cache test results in FILE
  130. --help print this message
  131. --no-create do not create output files
  132. --quiet, --silent do not print \`checking...' messages
  133. --version print the version of autoconf that created configure
  134. Directory and file names:
  135. --prefix=PREFIX install architecture-independent files in PREFIX
  136. [$ac_default_prefix]
  137. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  138. [same as prefix]
  139. --bindir=DIR user executables in DIR [EPREFIX/bin]
  140. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  141. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  142. --datadir=DIR read-only architecture-independent data in DIR
  143. [PREFIX/share]
  144. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  145. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  146. [PREFIX/com]
  147. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  148. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  149. --includedir=DIR C header files in DIR [PREFIX/include]
  150. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  151. --infodir=DIR info documentation in DIR [PREFIX/info]
  152. --mandir=DIR man documentation in DIR [PREFIX/man]
  153. --srcdir=DIR find the sources in DIR [configure dir or ..]
  154. --program-prefix=PREFIX prepend PREFIX to installed program names
  155. --program-suffix=SUFFIX append SUFFIX to installed program names
  156. --program-transform-name=PROGRAM
  157. run sed PROGRAM on installed program names
  158. EOF
  159. cat << EOF
  160. Host type:
  161. --build=BUILD configure for building on BUILD [BUILD=HOST]
  162. --host=HOST configure for HOST [guessed]
  163. --target=TARGET configure for TARGET [TARGET=HOST]
  164. Features and packages:
  165. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  166. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  167. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  168. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  169. --x-includes=DIR X include files are in DIR
  170. --x-libraries=DIR X library files are in DIR
  171. EOF
  172. if test -n "$ac_help"; then
  173. echo "--enable and --with options recognized:$ac_help"
  174. fi
  175. exit 0 ;;
  176. -host | --host | --hos | --ho)
  177. ac_prev=host ;;
  178. -host=* | --host=* | --hos=* | --ho=*)
  179. host="$ac_optarg" ;;
  180. -includedir | --includedir | --includedi | --included | --include \
  181. | --includ | --inclu | --incl | --inc)
  182. ac_prev=includedir ;;
  183. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  184. | --includ=* | --inclu=* | --incl=* | --inc=*)
  185. includedir="$ac_optarg" ;;
  186. -infodir | --infodir | --infodi | --infod | --info | --inf)
  187. ac_prev=infodir ;;
  188. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  189. infodir="$ac_optarg" ;;
  190. -libdir | --libdir | --libdi | --libd)
  191. ac_prev=libdir ;;
  192. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  193. libdir="$ac_optarg" ;;
  194. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  195. | --libexe | --libex | --libe)
  196. ac_prev=libexecdir ;;
  197. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  198. | --libexe=* | --libex=* | --libe=*)
  199. libexecdir="$ac_optarg" ;;
  200. -localstatedir | --localstatedir | --localstatedi | --localstated \
  201. | --localstate | --localstat | --localsta | --localst \
  202. | --locals | --local | --loca | --loc | --lo)
  203. ac_prev=localstatedir ;;
  204. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  205. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  206. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  207. localstatedir="$ac_optarg" ;;
  208. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  209. ac_prev=mandir ;;
  210. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  211. mandir="$ac_optarg" ;;
  212. -nfp | --nfp | --nf)
  213. # Obsolete; use --without-fp.
  214. with_fp=no ;;
  215. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  216. | --no-cr | --no-c)
  217. no_create=yes ;;
  218. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  219. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  220. no_recursion=yes ;;
  221. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  222. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  223. | --oldin | --oldi | --old | --ol | --o)
  224. ac_prev=oldincludedir ;;
  225. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  226. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  227. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  228. oldincludedir="$ac_optarg" ;;
  229. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  230. ac_prev=prefix ;;
  231. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  232. prefix="$ac_optarg" ;;
  233. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  234. | --program-pre | --program-pr | --program-p)
  235. ac_prev=program_prefix ;;
  236. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  237. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  238. program_prefix="$ac_optarg" ;;
  239. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  240. | --program-suf | --program-su | --program-s)
  241. ac_prev=program_suffix ;;
  242. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  243. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  244. program_suffix="$ac_optarg" ;;
  245. -program-transform-name | --program-transform-name \
  246. | --program-transform-nam | --program-transform-na \
  247. | --program-transform-n | --program-transform- \
  248. | --program-transform | --program-transfor \
  249. | --program-transfo | --program-transf \
  250. | --program-trans | --program-tran \
  251. | --progr-tra | --program-tr | --program-t)
  252. ac_prev=program_transform_name ;;
  253. -program-transform-name=* | --program-transform-name=* \
  254. | --program-transform-nam=* | --program-transform-na=* \
  255. | --program-transform-n=* | --program-transform-=* \
  256. | --program-transform=* | --program-transfor=* \
  257. | --program-transfo=* | --program-transf=* \
  258. | --program-trans=* | --program-tran=* \
  259. | --progr-tra=* | --program-tr=* | --program-t=*)
  260. program_transform_name="$ac_optarg" ;;
  261. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  262. | -silent | --silent | --silen | --sile | --sil)
  263. silent=yes ;;
  264. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  265. ac_prev=sbindir ;;
  266. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  267. | --sbi=* | --sb=*)
  268. sbindir="$ac_optarg" ;;
  269. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  270. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  271. | --sharedst | --shareds | --shared | --share | --shar \
  272. | --sha | --sh)
  273. ac_prev=sharedstatedir ;;
  274. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  275. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  276. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  277. | --sha=* | --sh=*)
  278. sharedstatedir="$ac_optarg" ;;
  279. -site | --site | --sit)
  280. ac_prev=site ;;
  281. -site=* | --site=* | --sit=*)
  282. site="$ac_optarg" ;;
  283. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  284. ac_prev=srcdir ;;
  285. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  286. srcdir="$ac_optarg" ;;
  287. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  288. | --syscon | --sysco | --sysc | --sys | --sy)
  289. ac_prev=sysconfdir ;;
  290. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  291. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  292. sysconfdir="$ac_optarg" ;;
  293. -target | --target | --targe | --targ | --tar | --ta | --t)
  294. ac_prev=target ;;
  295. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  296. target="$ac_optarg" ;;
  297. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  298. verbose=yes ;;
  299. -version | --version | --versio | --versi | --vers)
  300. echo "configure generated by autoconf version 2.13"
  301. exit 0 ;;
  302. -with-* | --with-*)
  303. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  304. # Reject names that are not valid shell variable names.
  305. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  306. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  307. fi
  308. ac_package=`echo $ac_package| sed 's/-/_/g'`
  309. case "$ac_option" in
  310. *=*) ;;
  311. *) ac_optarg=yes ;;
  312. esac
  313. eval "with_${ac_package}='$ac_optarg'" ;;
  314. -without-* | --without-*)
  315. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  316. # Reject names that are not valid shell variable names.
  317. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  318. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  319. fi
  320. ac_package=`echo $ac_package| sed 's/-/_/g'`
  321. eval "with_${ac_package}=no" ;;
  322. --x)
  323. # Obsolete; use --with-x.
  324. with_x=yes ;;
  325. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  326. | --x-incl | --x-inc | --x-in | --x-i)
  327. ac_prev=x_includes ;;
  328. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  329. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  330. x_includes="$ac_optarg" ;;
  331. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  332. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  333. ac_prev=x_libraries ;;
  334. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  335. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  336. x_libraries="$ac_optarg" ;;
  337. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  338. ;;
  339. *)
  340. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  341. echo "configure: warning: $ac_option: invalid host type" 1>&2
  342. fi
  343. if test "x$nonopt" != xNONE; then
  344. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  345. fi
  346. nonopt="$ac_option"
  347. ;;
  348. esac
  349. done
  350. if test -n "$ac_prev"; then
  351. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  352. fi
  353. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  354. # File descriptor usage:
  355. # 0 standard input
  356. # 1 file creation
  357. # 2 errors and warnings
  358. # 3 some systems may open it to /dev/tty
  359. # 4 used on the Kubota Titan
  360. # 6 checking for... messages and results
  361. # 5 compiler messages saved in config.log
  362. if test "$silent" = yes; then
  363. exec 6>/dev/null
  364. else
  365. exec 6>&1
  366. fi
  367. exec 5>./config.log
  368. echo "\
  369. This file contains any messages produced by compilers while
  370. running configure, to aid debugging if configure makes a mistake.
  371. " 1>&5
  372. # Strip out --no-create and --no-recursion so they do not pile up.
  373. # Also quote any args containing shell metacharacters.
  374. ac_configure_args=
  375. for ac_arg
  376. do
  377. case "$ac_arg" in
  378. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  379. | --no-cr | --no-c) ;;
  380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  382. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  383. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  384. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  385. esac
  386. done
  387. # NLS nuisances.
  388. # Only set these to C if already set. These must not be set unconditionally
  389. # because not all systems understand e.g. LANG=C (notably SCO).
  390. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  391. # Non-C LC_CTYPE values break the ctype check.
  392. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  393. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  394. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  395. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  396. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  397. rm -rf conftest* confdefs.h
  398. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  399. echo > confdefs.h
  400. # A filename unique to this package, relative to the directory that
  401. # configure is in, which we can look for to find out if srcdir is correct.
  402. ac_unique_file=file.c
  403. # Find the source files, if location was not specified.
  404. if test -z "$srcdir"; then
  405. ac_srcdir_defaulted=yes
  406. # Try the directory containing this script, then its parent.
  407. ac_prog=$0
  408. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  409. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  410. srcdir=$ac_confdir
  411. if test ! -r $srcdir/$ac_unique_file; then
  412. srcdir=..
  413. fi
  414. else
  415. ac_srcdir_defaulted=no
  416. fi
  417. if test ! -r $srcdir/$ac_unique_file; then
  418. if test "$ac_srcdir_defaulted" = yes; then
  419. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  420. else
  421. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  422. fi
  423. fi
  424. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  425. # Prefer explicitly selected file to automatically selected ones.
  426. if test -z "$CONFIG_SITE"; then
  427. if test "x$prefix" != xNONE; then
  428. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  429. else
  430. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  431. fi
  432. fi
  433. for ac_site_file in $CONFIG_SITE; do
  434. if test -r "$ac_site_file"; then
  435. echo "loading site script $ac_site_file"
  436. . "$ac_site_file"
  437. fi
  438. done
  439. if test -r "$cache_file"; then
  440. echo "loading cache $cache_file"
  441. . $cache_file
  442. else
  443. echo "creating cache $cache_file"
  444. > $cache_file
  445. fi
  446. ac_ext=c
  447. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  448. ac_cpp='$CPP $CPPFLAGS'
  449. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  450. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  451. cross_compiling=$ac_cv_prog_cc_cross
  452. ac_exeext=
  453. ac_objext=o
  454. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  455. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  456. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  457. ac_n= ac_c='
  458. ' ac_t=' '
  459. else
  460. ac_n=-n ac_c= ac_t=
  461. fi
  462. else
  463. ac_n= ac_c='\c' ac_t=
  464. fi
  465. ac_aux_dir=
  466. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  467. if test -f $ac_dir/install-sh; then
  468. ac_aux_dir=$ac_dir
  469. ac_install_sh="$ac_aux_dir/install-sh -c"
  470. break
  471. elif test -f $ac_dir/install.sh; then
  472. ac_aux_dir=$ac_dir
  473. ac_install_sh="$ac_aux_dir/install.sh -c"
  474. break
  475. fi
  476. done
  477. if test -z "$ac_aux_dir"; then
  478. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  479. fi
  480. ac_config_guess=$ac_aux_dir/config.guess
  481. ac_config_sub=$ac_aux_dir/config.sub
  482. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  483. # Find a good install program. We prefer a C program (faster),
  484. # so one script is as good as another. But avoid the broken or
  485. # incompatible versions:
  486. # SysV /etc/install, /usr/sbin/install
  487. # SunOS /usr/etc/install
  488. # IRIX /sbin/install
  489. # AIX /bin/install
  490. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  491. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  492. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  493. # ./install, which can be erroneously created by make from ./install.sh.
  494. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  495. echo "configure:562: checking for a BSD compatible install" >&5
  496. if test -z "$INSTALL"; then
  497. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  498. echo $ac_n "(cached) $ac_c" 1>&6
  499. else
  500. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  501. for ac_dir in $PATH; do
  502. # Account for people who put trailing slashes in PATH elements.
  503. case "$ac_dir/" in
  504. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  505. *)
  506. # OSF1 and SCO ODT 3.0 have their own names for install.
  507. # Don't use installbsd from OSF since it installs stuff as root
  508. # by default.
  509. for ac_prog in ginstall scoinst install; do
  510. if test -f $ac_dir/$ac_prog; then
  511. if test $ac_prog = install &&
  512. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  513. # AIX install. It has an incompatible calling convention.
  514. :
  515. else
  516. ac_cv_path_install="$ac_dir/$ac_prog -c"
  517. break 2
  518. fi
  519. fi
  520. done
  521. ;;
  522. esac
  523. done
  524. IFS="$ac_save_IFS"
  525. fi
  526. if test "${ac_cv_path_install+set}" = set; then
  527. INSTALL="$ac_cv_path_install"
  528. else
  529. # As a last resort, use the slow shell script. We don't cache a
  530. # path for INSTALL within a source directory, because that will
  531. # break other packages using the cache if that directory is
  532. # removed, or if the path is relative.
  533. INSTALL="$ac_install_sh"
  534. fi
  535. fi
  536. echo "$ac_t""$INSTALL" 1>&6
  537. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  538. # It thinks the first close brace ends the variable substitution.
  539. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  540. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  541. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  542. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  543. echo "configure:615: checking whether build environment is sane" >&5
  544. # Just in case
  545. sleep 1
  546. echo timestamp > conftestfile
  547. # Do `set' in a subshell so we don't clobber the current shell's
  548. # arguments. Must try -L first in case configure is actually a
  549. # symlink; some systems play weird games with the mod time of symlinks
  550. # (eg FreeBSD returns the mod time of the symlink's containing
  551. # directory).
  552. if (
  553. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  554. if test "$*" = "X"; then
  555. # -L didn't work.
  556. set X `ls -t $srcdir/configure conftestfile`
  557. fi
  558. if test "$*" != "X $srcdir/configure conftestfile" \
  559. && test "$*" != "X conftestfile $srcdir/configure"; then
  560. # If neither matched, then we have a broken ls. This can happen
  561. # if, for instance, CONFIG_SHELL is bash and it inherits a
  562. # broken ls alias from the environment. This has actually
  563. # happened. Such a system could not be considered "sane".
  564. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  565. alias in your environment" 1>&2; exit 1; }
  566. fi
  567. test "$2" = conftestfile
  568. )
  569. then
  570. # Ok.
  571. :
  572. else
  573. { echo "configure: error: newly created file is older than distributed files!
  574. Check your system clock" 1>&2; exit 1; }
  575. fi
  576. rm -f conftest*
  577. echo "$ac_t""yes" 1>&6
  578. if test "$program_transform_name" = s,x,x,; then
  579. program_transform_name=
  580. else
  581. # Double any \ or $. echo might interpret backslashes.
  582. cat <<\EOF_SED > conftestsed
  583. s,\\,\\\\,g; s,\$,$$,g
  584. EOF_SED
  585. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  586. rm -f conftestsed
  587. fi
  588. test "$program_prefix" != NONE &&
  589. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  590. # Use a double $ so make ignores it.
  591. test "$program_suffix" != NONE &&
  592. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  593. # sed with no file args requires a program.
  594. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  595. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  596. echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
  597. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  598. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  599. echo $ac_n "(cached) $ac_c" 1>&6
  600. else
  601. cat > conftestmake <<\EOF
  602. all:
  603. @echo 'ac_maketemp="${MAKE}"'
  604. EOF
  605. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  606. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  607. if test -n "$ac_maketemp"; then
  608. eval ac_cv_prog_make_${ac_make}_set=yes
  609. else
  610. eval ac_cv_prog_make_${ac_make}_set=no
  611. fi
  612. rm -f conftestmake
  613. fi
  614. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  615. echo "$ac_t""yes" 1>&6
  616. SET_MAKE=
  617. else
  618. echo "$ac_t""no" 1>&6
  619. SET_MAKE="MAKE=${MAKE-make}"
  620. fi
  621. PACKAGE=file
  622. VERSION=3.37
  623. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  624. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  625. fi
  626. cat >> confdefs.h <<EOF
  627. #define PACKAGE "$PACKAGE"
  628. EOF
  629. cat >> confdefs.h <<EOF
  630. #define VERSION "$VERSION"
  631. EOF
  632. missing_dir=`cd $ac_aux_dir && pwd`
  633. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  634. echo "configure:718: checking for working aclocal" >&5
  635. # Run test in a subshell; some versions of sh will print an error if
  636. # an executable is not found, even if stderr is redirected.
  637. # Redirect stdin to placate older versions of autoconf. Sigh.
  638. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  639. ACLOCAL=aclocal
  640. echo "$ac_t""found" 1>&6
  641. else
  642. ACLOCAL="$missing_dir/missing aclocal"
  643. echo "$ac_t""missing" 1>&6
  644. fi
  645. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  646. echo "configure:731: checking for working autoconf" >&5
  647. # Run test in a subshell; some versions of sh will print an error if
  648. # an executable is not found, even if stderr is redirected.
  649. # Redirect stdin to placate older versions of autoconf. Sigh.
  650. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  651. AUTOCONF=autoconf
  652. echo "$ac_t""found" 1>&6
  653. else
  654. AUTOCONF="$missing_dir/missing autoconf"
  655. echo "$ac_t""missing" 1>&6
  656. fi
  657. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  658. echo "configure:744: checking for working automake" >&5
  659. # Run test in a subshell; some versions of sh will print an error if
  660. # an executable is not found, even if stderr is redirected.
  661. # Redirect stdin to placate older versions of autoconf. Sigh.
  662. if (automake --version) < /dev/null > /dev/null 2>&1; then
  663. AUTOMAKE=automake
  664. echo "$ac_t""found" 1>&6
  665. else
  666. AUTOMAKE="$missing_dir/missing automake"
  667. echo "$ac_t""missing" 1>&6
  668. fi
  669. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  670. echo "configure:757: checking for working autoheader" >&5
  671. # Run test in a subshell; some versions of sh will print an error if
  672. # an executable is not found, even if stderr is redirected.
  673. # Redirect stdin to placate older versions of autoconf. Sigh.
  674. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  675. AUTOHEADER=autoheader
  676. echo "$ac_t""found" 1>&6
  677. else
  678. AUTOHEADER="$missing_dir/missing autoheader"
  679. echo "$ac_t""missing" 1>&6
  680. fi
  681. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  682. echo "configure:770: checking for working makeinfo" >&5
  683. # Run test in a subshell; some versions of sh will print an error if
  684. # an executable is not found, even if stderr is redirected.
  685. # Redirect stdin to placate older versions of autoconf. Sigh.
  686. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  687. MAKEINFO=makeinfo
  688. echo "$ac_t""found" 1>&6
  689. else
  690. MAKEINFO="$missing_dir/missing makeinfo"
  691. echo "$ac_t""missing" 1>&6
  692. fi
  693. echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6
  694. echo "configure:788: checking for builtin ELF support" >&5
  695. # Check whether --enable-elf or --disable-elf was given.
  696. if test "${enable_elf+set}" = set; then
  697. enableval="$enable_elf"
  698. if test "${enableval}" = yes; then
  699. echo "$ac_t""yes" 1>&6
  700. cat >> confdefs.h <<\EOF
  701. #define BUILTIN_ELF 1
  702. EOF
  703. else
  704. echo "$ac_t""no" 1>&6
  705. fi
  706. else
  707. # enable by default
  708. echo "$ac_t""yes" 1>&6
  709. cat >> confdefs.h <<\EOF
  710. #define BUILTIN_ELF 1
  711. EOF
  712. fi
  713. echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6
  714. echo "configure:814: checking for ELF core file support" >&5
  715. # Check whether --enable-elf-core or --disable-elf-core was given.
  716. if test "${enable_elf_core+set}" = set; then
  717. enableval="$enable_elf_core"
  718. if test "${enableval}" = yes; then
  719. echo "$ac_t""yes" 1>&6
  720. cat >> confdefs.h <<\EOF
  721. #define ELFCORE 1
  722. EOF
  723. else
  724. echo "$ac_t""no" 1>&6
  725. fi
  726. else
  727. # enable by default
  728. echo "$ac_t""yes" 1>&6
  729. cat >> confdefs.h <<\EOF
  730. #define ELFCORE 1
  731. EOF
  732. fi
  733. echo $ac_n "checking for file formats in man section 5""... $ac_c" 1>&6
  734. echo "configure:840: checking for file formats in man section 5" >&5
  735. # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
  736. if test "${enable_fsect_man5+set}" = set; then
  737. enableval="$enable_fsect_man5"
  738. if test "${enableval}" = yes; then
  739. echo "$ac_t""yes" 1>&6
  740. fsect=5
  741. else
  742. echo "$ac_t""no" 1>&6
  743. fsect=4
  744. fi
  745. else
  746. # disable by default
  747. echo "$ac_t""no" 1>&6
  748. fsect=4
  749. fi
  750. if test x$fsect = x5; then
  751. FSECT5_TRUE=
  752. FSECT5_FALSE='#'
  753. else
  754. FSECT5_TRUE='#'
  755. FSECT5_FALSE=
  756. fi
  757. # Extract the first word of "gcc", so it can be a program name with args.
  758. set dummy gcc; ac_word=$2
  759. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  760. echo "configure:873: checking for $ac_word" >&5
  761. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  762. echo $ac_n "(cached) $ac_c" 1>&6
  763. else
  764. if test -n "$CC"; then
  765. ac_cv_prog_CC="$CC" # Let the user override the test.
  766. else
  767. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  768. ac_dummy="$PATH"
  769. for ac_dir in $ac_dummy; do
  770. test -z "$ac_dir" && ac_dir=.
  771. if test -f $ac_dir/$ac_word; then
  772. ac_cv_prog_CC="gcc"
  773. break
  774. fi
  775. done
  776. IFS="$ac_save_ifs"
  777. fi
  778. fi
  779. CC="$ac_cv_prog_CC"
  780. if test -n "$CC"; then
  781. echo "$ac_t""$CC" 1>&6
  782. else
  783. echo "$ac_t""no" 1>&6
  784. fi
  785. if test -z "$CC"; then
  786. # Extract the first word of "cc", so it can be a program name with args.
  787. set dummy cc; ac_word=$2
  788. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  789. echo "configure:903: checking for $ac_word" >&5
  790. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  791. echo $ac_n "(cached) $ac_c" 1>&6
  792. else
  793. if test -n "$CC"; then
  794. ac_cv_prog_CC="$CC" # Let the user override the test.
  795. else
  796. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  797. ac_prog_rejected=no
  798. ac_dummy="$PATH"
  799. for ac_dir in $ac_dummy; do
  800. test -z "$ac_dir" && ac_dir=.
  801. if test -f $ac_dir/$ac_word; then
  802. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  803. ac_prog_rejected=yes
  804. continue
  805. fi
  806. ac_cv_prog_CC="cc"
  807. break
  808. fi
  809. done
  810. IFS="$ac_save_ifs"
  811. if test $ac_prog_rejected = yes; then
  812. # We found a bogon in the path, so make sure we never use it.
  813. set dummy $ac_cv_prog_CC
  814. shift
  815. if test $# -gt 0; then
  816. # We chose a different compiler from the bogus one.
  817. # However, it has the same basename, so the bogon will be chosen
  818. # first if we set CC to just the basename; use the full file name.
  819. shift
  820. set dummy "$ac_dir/$ac_word" "$@"
  821. shift
  822. ac_cv_prog_CC="$@"
  823. fi
  824. fi
  825. fi
  826. fi
  827. CC="$ac_cv_prog_CC"
  828. if test -n "$CC"; then
  829. echo "$ac_t""$CC" 1>&6
  830. else
  831. echo "$ac_t""no" 1>&6
  832. fi
  833. if test -z "$CC"; then
  834. case "`uname -s`" in
  835. *win32* | *WIN32*)
  836. # Extract the first word of "cl", so it can be a program name with args.
  837. set dummy cl; ac_word=$2
  838. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  839. echo "configure:954: checking for $ac_word" >&5
  840. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  841. echo $ac_n "(cached) $ac_c" 1>&6
  842. else
  843. if test -n "$CC"; then
  844. ac_cv_prog_CC="$CC" # Let the user override the test.
  845. else
  846. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  847. ac_dummy="$PATH"
  848. for ac_dir in $ac_dummy; do
  849. test -z "$ac_dir" && ac_dir=.
  850. if test -f $ac_dir/$ac_word; then
  851. ac_cv_prog_CC="cl"
  852. break
  853. fi
  854. done
  855. IFS="$ac_save_ifs"
  856. fi
  857. fi
  858. CC="$ac_cv_prog_CC"
  859. if test -n "$CC"; then
  860. echo "$ac_t""$CC" 1>&6
  861. else
  862. echo "$ac_t""no" 1>&6
  863. fi
  864. ;;
  865. esac
  866. fi
  867. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  868. fi
  869. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  870. echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  871. ac_ext=c
  872. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  873. ac_cpp='$CPP $CPPFLAGS'
  874. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  875. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  876. cross_compiling=$ac_cv_prog_cc_cross
  877. cat > conftest.$ac_ext << EOF
  878. #line 997 "configure"
  879. #include "confdefs.h"
  880. main(){return(0);}
  881. EOF
  882. if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  883. ac_cv_prog_cc_works=yes
  884. # If we can't run a trivial program, we are probably using a cross compiler.
  885. if (./conftest; exit) 2>/dev/null; then
  886. ac_cv_prog_cc_cross=no
  887. else
  888. ac_cv_prog_cc_cross=yes
  889. fi
  890. else
  891. echo "configure: failed program was:" >&5
  892. cat conftest.$ac_ext >&5
  893. ac_cv_prog_cc_works=no
  894. fi
  895. rm -fr conftest*
  896. ac_ext=c
  897. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  898. ac_cpp='$CPP $CPPFLAGS'
  899. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  900. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  901. cross_compiling=$ac_cv_prog_cc_cross
  902. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  903. if test $ac_cv_prog_cc_works = no; then
  904. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  905. fi
  906. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  907. echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  908. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  909. cross_compiling=$ac_cv_prog_cc_cross
  910. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  911. echo "configure:1033: checking whether we are using GNU C" >&5
  912. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  913. echo $ac_n "(cached) $ac_c" 1>&6
  914. else
  915. cat > conftest.c <<EOF
  916. #ifdef __GNUC__
  917. yes;
  918. #endif
  919. EOF
  920. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  921. ac_cv_prog_gcc=yes
  922. else
  923. ac_cv_prog_gcc=no
  924. fi
  925. fi
  926. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  927. if test $ac_cv_prog_gcc = yes; then
  928. GCC=yes
  929. else
  930. GCC=
  931. fi
  932. ac_test_CFLAGS="${CFLAGS+set}"
  933. ac_save_CFLAGS="$CFLAGS"
  934. CFLAGS=
  935. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  936. echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
  937. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  938. echo $ac_n "(cached) $ac_c" 1>&6
  939. else
  940. echo 'void f(){}' > conftest.c
  941. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  942. ac_cv_prog_cc_g=yes
  943. else
  944. ac_cv_prog_cc_g=no
  945. fi
  946. rm -f conftest*
  947. fi
  948. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  949. if test "$ac_test_CFLAGS" = set; then
  950. CFLAGS="$ac_save_CFLAGS"
  951. elif test $ac_cv_prog_cc_g = yes; then
  952. if test "$GCC" = yes; then
  953. CFLAGS="-g -O2"
  954. else
  955. CFLAGS="-g"
  956. fi
  957. else
  958. if test "$GCC" = yes; then
  959. CFLAGS="-O2"
  960. else
  961. CFLAGS=
  962. fi
  963. fi
  964. # Find a good install program. We prefer a C program (faster),
  965. # so one script is as good as another. But avoid the broken or
  966. # incompatible versions:
  967. # SysV /etc/install, /usr/sbin/install
  968. # SunOS /usr/etc/install
  969. # IRIX /sbin/install
  970. # AIX /bin/install
  971. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  972. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  973. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  974. # ./install, which can be erroneously created by make from ./install.sh.
  975. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  976. echo "configure:1104: checking for a BSD compatible install" >&5
  977. if test -z "$INSTALL"; then
  978. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  979. echo $ac_n "(cached) $ac_c" 1>&6
  980. else
  981. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  982. for ac_dir in $PATH; do
  983. # Account for people who put trailing slashes in PATH elements.
  984. case "$ac_dir/" in
  985. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  986. *)
  987. # OSF1 and SCO ODT 3.0 have their own names for install.
  988. # Don't use installbsd from OSF since it installs stuff as root
  989. # by default.
  990. for ac_prog in ginstall scoinst install; do
  991. if test -f $ac_dir/$ac_prog; then
  992. if test $ac_prog = install &&
  993. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  994. # AIX install. It has an incompatible calling convention.
  995. :
  996. else
  997. ac_cv_path_install="$ac_dir/$ac_prog -c"
  998. break 2
  999. fi
  1000. fi
  1001. done
  1002. ;;
  1003. esac
  1004. done
  1005. IFS="$ac_save_IFS"
  1006. fi
  1007. if test "${ac_cv_path_install+set}" = set; then
  1008. INSTALL="$ac_cv_path_install"
  1009. else
  1010. # As a last resort, use the slow shell script. We don't cache a
  1011. # path for INSTALL within a source directory, because that will
  1012. # break other packages using the cache if that directory is
  1013. # removed, or if the path is relative.
  1014. INSTALL="$ac_install_sh"
  1015. fi
  1016. fi
  1017. echo "$ac_t""$INSTALL" 1>&6
  1018. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1019. # It thinks the first close brace ends the variable substitution.
  1020. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1021. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1022. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1023. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1024. echo "configure:1157: checking whether ln -s works" >&5
  1025. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1026. echo $ac_n "(cached) $ac_c" 1>&6
  1027. else
  1028. rm -f conftestdata
  1029. if ln -s X conftestdata 2>/dev/null
  1030. then
  1031. rm -f conftestdata
  1032. ac_cv_prog_LN_S="ln -s"
  1033. else
  1034. ac_cv_prog_LN_S=ln
  1035. fi
  1036. fi
  1037. LN_S="$ac_cv_prog_LN_S"
  1038. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1039. echo "$ac_t""yes" 1>&6
  1040. else
  1041. echo "$ac_t""no" 1>&6
  1042. fi
  1043. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1044. echo "configure:1179: checking how to run the C preprocessor" >&5
  1045. # On Suns, sometimes $CPP names a directory.
  1046. if test -n "$CPP" && test -d "$CPP"; then
  1047. CPP=
  1048. fi
  1049. if test -z "$CPP"; then
  1050. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1051. echo $ac_n "(cached) $ac_c" 1>&6
  1052. else
  1053. # This must be in double quotes, not single quotes, because CPP may get
  1054. # substituted into the Makefile and "${CC-cc}" will confuse make.
  1055. CPP="${CC-cc} -E"
  1056. # On the NeXT, cc -E runs the code through the compiler's parser,
  1057. # not just through cpp.
  1058. cat > conftest.$ac_ext <<EOF
  1059. #line 1194 "configure"
  1060. #include "confdefs.h"
  1061. #include <assert.h>
  1062. Syntax Error
  1063. EOF
  1064. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1065. { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1066. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1067. if test -z "$ac_err"; then
  1068. :
  1069. else
  1070. echo "$ac_err" >&5
  1071. echo "configure: failed program was:" >&5
  1072. cat conftest.$ac_ext >&5
  1073. rm -rf conftest*
  1074. CPP="${CC-cc} -E -traditional-cpp"
  1075. cat > conftest.$ac_ext <<EOF
  1076. #line 1211 "configure"
  1077. #include "confdefs.h"
  1078. #include <assert.h>
  1079. Syntax Error
  1080. EOF
  1081. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1082. { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1083. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1084. if test -z "$ac_err"; then
  1085. :
  1086. else
  1087. echo "$ac_err" >&5
  1088. echo "configure: failed program was:" >&5
  1089. cat conftest.$ac_ext >&5
  1090. rm -rf conftest*
  1091. CPP="${CC-cc} -nologo -E"
  1092. cat > conftest.$ac_ext <<EOF
  1093. #line 1228 "configure"
  1094. #include "confdefs.h"
  1095. #include <assert.h>
  1096. Syntax Error
  1097. EOF
  1098. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1099. { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1100. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1101. if test -z "$ac_err"; then
  1102. :
  1103. else
  1104. echo "$ac_err" >&5
  1105. echo "configure: failed program was:" >&5
  1106. cat conftest.$ac_ext >&5
  1107. rm -rf conftest*
  1108. CPP=/lib/cpp
  1109. fi
  1110. rm -f conftest*
  1111. fi
  1112. rm -f conftest*
  1113. fi
  1114. rm -f conftest*
  1115. ac_cv_prog_CPP="$CPP"
  1116. fi
  1117. CPP="$ac_cv_prog_CPP"
  1118. else
  1119. ac_cv_prog_CPP="$CPP"
  1120. fi
  1121. echo "$ac_t""$CPP" 1>&6
  1122. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1123. echo "configure:1259: checking for ANSI C header files" >&5
  1124. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1125. echo $ac_n "(cached) $ac_c" 1>&6
  1126. else
  1127. cat > conftest.$ac_ext <<EOF
  1128. #line 1264 "configure"
  1129. #include "confdefs.h"
  1130. #include <stdlib.h>
  1131. #include <stdarg.h>
  1132. #include <string.h>
  1133. #include <float.h>
  1134. EOF
  1135. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1136. { (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1137. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1138. if test -z "$ac_err"; then
  1139. rm -rf conftest*
  1140. ac_cv_header_stdc=yes
  1141. else
  1142. echo "$ac_err" >&5
  1143. echo "configure: failed program was:" >&5
  1144. cat conftest.$ac_ext >&5
  1145. rm -rf conftest*
  1146. ac_cv_header_stdc=no
  1147. fi
  1148. rm -f conftest*
  1149. if test $ac_cv_header_stdc = yes; then
  1150. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1151. cat > conftest.$ac_ext <<EOF
  1152. #line 1289 "configure"
  1153. #include "confdefs.h"
  1154. #include <string.h>
  1155. EOF
  1156. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1157. egrep "memchr" >/dev/null 2>&1; then
  1158. :
  1159. else
  1160. rm -rf conftest*
  1161. ac_cv_header_stdc=no
  1162. fi
  1163. rm -f conftest*
  1164. fi
  1165. if test $ac_cv_header_stdc = yes; then
  1166. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1167. cat > conftest.$ac_ext <<EOF
  1168. #line 1307 "configure"
  1169. #include "confdefs.h"
  1170. #include <stdlib.h>
  1171. EOF
  1172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1173. egrep "free" >/dev/null 2>&1; then
  1174. :
  1175. else
  1176. rm -rf conftest*
  1177. ac_cv_header_stdc=no
  1178. fi
  1179. rm -f conftest*
  1180. fi
  1181. if test $ac_cv_header_stdc = yes; then
  1182. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1183. if test "$cross_compiling" = yes; then
  1184. :
  1185. else
  1186. cat > conftest.$ac_ext <<EOF
  1187. #line 1328 "configure"
  1188. #include "confdefs.h"
  1189. #include <ctype.h>
  1190. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1191. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1192. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1193. int main () { int i; for (i = 0; i < 256; i++)
  1194. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1195. exit (0); }
  1196. EOF
  1197. if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1198. then
  1199. :
  1200. else
  1201. echo "configure: failed program was:" >&5
  1202. cat conftest.$ac_ext >&5
  1203. rm -fr conftest*
  1204. ac_cv_header_stdc=no
  1205. fi
  1206. rm -fr conftest*
  1207. fi
  1208. fi
  1209. fi
  1210. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1211. if test $ac_cv_header_stdc = yes; then
  1212. cat >> confdefs.h <<\EOF
  1213. #define STDC_HEADERS 1
  1214. EOF
  1215. fi
  1216. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1217. echo "configure:1363: checking whether sys/types.h defines makedev" >&5
  1218. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1219. echo $ac_n "(cached) $ac_c" 1>&6
  1220. else
  1221. cat > conftest.$ac_ext <<EOF
  1222. #line 1368 "configure"
  1223. #include "confdefs.h"
  1224. #include <sys/types.h>
  1225. int main() {
  1226. return makedev(0, 0);
  1227. ; return 0; }
  1228. EOF
  1229. if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1230. rm -rf conftest*
  1231. ac_cv_header_sys_types_h_makedev=yes
  1232. else
  1233. echo "configure: failed program was:" >&5
  1234. cat conftest.$ac_ext >&5
  1235. rm -rf conftest*
  1236. ac_cv_header_sys_types_h_makedev=no
  1237. fi
  1238. rm -f conftest*
  1239. fi
  1240. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1241. if test $ac_cv_header_sys_types_h_makedev = no; then
  1242. ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
  1243. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1244. echo "configure:1393: checking for sys/mkdev.h" >&5
  1245. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1246. echo $ac_n "(cached) $ac_c" 1>&6
  1247. else
  1248. cat > conftest.$ac_ext <<EOF
  1249. #line 1398 "configure"
  1250. #include "confdefs.h"
  1251. #include <sys/mkdev.h>
  1252. EOF
  1253. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1254. { (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1255. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1256. if test -z "$ac_err"; then
  1257. rm -rf conftest*
  1258. eval "ac_cv_header_$ac_safe=yes"
  1259. else
  1260. echo "$ac_err" >&5
  1261. echo "configure: failed program was:" >&5
  1262. cat conftest.$ac_ext >&5
  1263. rm -rf conftest*
  1264. eval "ac_cv_header_$ac_safe=no"
  1265. fi
  1266. rm -f conftest*
  1267. fi
  1268. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1269. echo "$ac_t""yes" 1>&6
  1270. cat >> confdefs.h <<\EOF
  1271. #define MAJOR_IN_MKDEV 1
  1272. EOF
  1273. else
  1274. echo "$ac_t""no" 1>&6
  1275. fi
  1276. if test $ac_cv_header_sys_mkdev_h = no; then
  1277. ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
  1278. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1279. echo "configure:1431: checking for sys/sysmacros.h" >&5
  1280. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1281. echo $ac_n "(cached) $ac_c" 1>&6
  1282. else
  1283. cat > conftest.$ac_ext <<EOF
  1284. #line 1436 "configure"
  1285. #include "confdefs.h"
  1286. #include <sys/sysmacros.h>
  1287. EOF
  1288. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1289. { (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1290. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1291. if test -z "$ac_err"; then
  1292. rm -rf conftest*
  1293. eval "ac_cv_header_$ac_safe=yes"
  1294. else
  1295. echo "$ac_err" >&5
  1296. echo "configure: failed program was:" >&5
  1297. cat conftest.$ac_ext >&5
  1298. rm -rf conftest*
  1299. eval "ac_cv_header_$ac_safe=no"
  1300. fi
  1301. rm -f conftest*
  1302. fi
  1303. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1304. echo "$ac_t""yes" 1>&6
  1305. cat >> confdefs.h <<\EOF
  1306. #define MAJOR_IN_SYSMACROS 1
  1307. EOF
  1308. else
  1309. echo "$ac_t""no" 1>&6
  1310. fi
  1311. fi
  1312. fi
  1313. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1314. echo "configure:1469: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1315. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1316. echo $ac_n "(cached) $ac_c" 1>&6
  1317. else
  1318. cat > conftest.$ac_ext <<EOF
  1319. #line 1474 "configure"
  1320. #include "confdefs.h"
  1321. #include <sys/types.h>
  1322. #include <sys/wait.h>
  1323. #ifndef WEXITSTATUS
  1324. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1325. #endif
  1326. #ifndef WIFEXITED
  1327. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1328. #endif
  1329. int main() {
  1330. int s;
  1331. wait (&s);
  1332. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1333. ; return 0; }
  1334. EOF
  1335. if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1336. rm -rf conftest*
  1337. ac_cv_header_sys_wait_h=yes
  1338. else
  1339. echo "configure: failed program was:" >&5
  1340. cat conftest.$ac_ext >&5
  1341. rm -rf conftest*
  1342. ac_cv_header_sys_wait_h=no
  1343. fi
  1344. rm -f conftest*
  1345. fi
  1346. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1347. if test $ac_cv_header_sys_wait_h = yes; then
  1348. cat >> confdefs.h <<\EOF
  1349. #define HAVE_SYS_WAIT_H 1
  1350. EOF
  1351. fi
  1352. for ac_hdr in unistd.h
  1353. do
  1354. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1355. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1356. echo "configure:1514: checking for $ac_hdr" >&5
  1357. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1358. echo $ac_n "(cached) $ac_c" 1>&6
  1359. else
  1360. cat > conftest.$ac_ext <<EOF
  1361. #line 1519 "configure"
  1362. #include "confdefs.h"
  1363. #include <$ac_hdr>
  1364. EOF
  1365. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1366. { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1367. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1368. if test -z "$ac_err"; then
  1369. rm -rf conftest*
  1370. eval "ac_cv_header_$ac_safe=yes"
  1371. else
  1372. echo "$ac_err" >&5
  1373. echo "configure: failed program was:" >&5
  1374. cat conftest.$ac_ext >&5
  1375. rm -rf conftest*
  1376. eval "ac_cv_header_$ac_safe=no"
  1377. fi
  1378. rm -f conftest*
  1379. fi
  1380. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1381. echo "$ac_t""yes" 1>&6
  1382. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1383. cat >> confdefs.h <<EOF
  1384. #define $ac_tr_hdr 1
  1385. EOF
  1386. else
  1387. echo "$ac_t""no" 1>&6
  1388. fi
  1389. done
  1390. for ac_hdr in locale.h
  1391. do
  1392. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1393. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1394. echo "configure:1554: checking for $ac_hdr" >&5
  1395. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1396. echo $ac_n "(cached) $ac_c" 1>&6
  1397. else
  1398. cat > conftest.$ac_ext <<EOF
  1399. #line 1559 "configure"
  1400. #include "confdefs.h"
  1401. #include <$ac_hdr>
  1402. EOF
  1403. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1404. { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1405. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1406. if test -z "$ac_err"; then
  1407. rm -rf conftest*
  1408. eval "ac_cv_header_$ac_safe=yes"
  1409. else
  1410. echo "$ac_err" >&5
  1411. echo "configure: failed program was:" >&5
  1412. cat conftest.$ac_ext >&5
  1413. rm -rf conftest*
  1414. eval "ac_cv_header_$ac_safe=no"
  1415. fi
  1416. rm -f conftest*
  1417. fi
  1418. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1419. echo "$ac_t""yes" 1>&6
  1420. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1421. cat >> confdefs.h <<EOF
  1422. #define $ac_tr_hdr 1
  1423. EOF
  1424. else
  1425. echo "$ac_t""no" 1>&6
  1426. fi
  1427. done
  1428. for ac_hdr in sys/mman.h
  1429. do
  1430. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1431. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1432. echo "configure:1594: checking for $ac_hdr" >&5
  1433. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1434. echo $ac_n "(cached) $ac_c" 1>&6
  1435. else
  1436. cat > conftest.$ac_ext <<EOF
  1437. #line 1599 "configure"
  1438. #include "confdefs.h"
  1439. #include <$ac_hdr>
  1440. EOF
  1441. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1442. { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1443. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1444. if test -z "$ac_err"; then
  1445. rm -rf conftest*
  1446. eval "ac_cv_header_$ac_safe=yes"
  1447. else
  1448. echo "$ac_err" >&5
  1449. echo "configure: failed program was:" >&5
  1450. cat conftest.$ac_ext >&5
  1451. rm -rf conftest*
  1452. eval "ac_cv_header_$ac_safe=no"
  1453. fi
  1454. rm -f conftest*
  1455. fi
  1456. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1457. echo "$ac_t""yes" 1>&6
  1458. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1459. cat >> confdefs.h <<EOF
  1460. #define $ac_tr_hdr 1
  1461. EOF
  1462. else
  1463. echo "$ac_t""no" 1>&6
  1464. fi
  1465. done
  1466. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1467. echo "configure:1632: checking for working const" >&5
  1468. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1469. echo $ac_n "(cached) $ac_c" 1>&6
  1470. else
  1471. cat > conftest.$ac_ext <<EOF
  1472. #line 1637 "configure"
  1473. #include "confdefs.h"
  1474. int main() {
  1475. /* Ultrix mips cc rejects this. */
  1476. typedef int charset[2]; const charset x;
  1477. /* SunOS 4.1.1 cc rejects this. */
  1478. char const *const *ccp;
  1479. char **p;
  1480. /* NEC SVR4.0.2 mips cc rejects this. */
  1481. struct point {int x, y;};
  1482. static struct point const zero = {0,0};
  1483. /* AIX XL C 1.02.0.0 rejects this.
  1484. It does not let you subtract one const X* pointer from another in an arm
  1485. of an if-expression whose if-part is not a constant expression */
  1486. const char *g = "string";
  1487. ccp = &g + (g ? g-g : 0);
  1488. /* HPUX 7.0 cc rejects these. */
  1489. ++ccp;
  1490. p = (char**) ccp;
  1491. ccp = (char const *const *) p;
  1492. { /* SCO 3.2v4 cc rejects this. */
  1493. char *t;
  1494. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1495. *t++ = 0;
  1496. }
  1497. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1498. int x[] = {25, 17};
  1499. const int *foo = &x[0];
  1500. ++foo;
  1501. }
  1502. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1503. typedef const int *iptr;
  1504. iptr p = 0;
  1505. ++p;
  1506. }
  1507. { /* AIX XL C 1.02.0.0 rejects this saying
  1508. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1509. struct s { int j; const int *ap[3]; };
  1510. struct s *b; b->j = 5;
  1511. }
  1512. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1513. const int foo = 10;
  1514. }
  1515. ; return 0; }
  1516. EOF
  1517. if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1518. rm -rf conftest*
  1519. ac_cv_c_const=yes
  1520. else
  1521. echo "configure: failed program was:" >&5
  1522. cat conftest.$ac_ext >&5
  1523. rm -rf conftest*
  1524. ac_cv_c_const=no
  1525. fi
  1526. rm -f conftest*
  1527. fi
  1528. echo "$ac_t""$ac_cv_c_const" 1>&6
  1529. if test $ac_cv_c_const = no; then
  1530. cat >> confdefs.h <<\EOF
  1531. #define const
  1532. EOF
  1533. fi
  1534. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1535. echo "configure:1707: checking for off_t" >&5
  1536. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1537. echo $ac_n "(cached) $ac_c" 1>&6
  1538. else
  1539. cat > conftest.$ac_ext <<EOF
  1540. #line 1712 "configure"
  1541. #include "confdefs.h"
  1542. #include <sys/types.h>
  1543. #if STDC_HEADERS
  1544. #include <stdlib.h>
  1545. #include <stddef.h>
  1546. #endif
  1547. EOF
  1548. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1549. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1550. rm -rf conftest*
  1551. ac_cv_type_off_t=yes
  1552. else
  1553. rm -rf conftest*
  1554. ac_cv_type_off_t=no
  1555. fi
  1556. rm -f conftest*
  1557. fi
  1558. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1559. if test $ac_cv_type_off_t = no; then
  1560. cat >> confdefs.h <<\EOF
  1561. #define off_t long
  1562. EOF
  1563. fi
  1564. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1565. echo "configure:1740: checking for size_t" >&5
  1566. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1567. echo $ac_n "(cached) $ac_c" 1>&6
  1568. else
  1569. cat > conftest.$ac_ext <<EOF
  1570. #line 1745 "configure"
  1571. #include "confdefs.h"
  1572. #include <sys/types.h>
  1573. #if STDC_HEADERS
  1574. #include <stdlib.h>
  1575. #include <stddef.h>
  1576. #endif
  1577. EOF
  1578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1579. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1580. rm -rf conftest*
  1581. ac_cv_type_size_t=yes
  1582. else
  1583. rm -rf conftest*
  1584. ac_cv_type_size_t=no
  1585. fi
  1586. rm -f conftest*
  1587. fi
  1588. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1589. if test $ac_cv_type_size_t = no; then
  1590. cat >> confdefs.h <<\EOF
  1591. #define size_t unsigned
  1592. EOF
  1593. fi
  1594. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  1595. echo "configure:1773: checking for st_rdev in struct stat" >&5
  1596. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1597. echo $ac_n "(cached) $ac_c" 1>&6
  1598. else
  1599. cat > conftest.$ac_ext <<EOF
  1600. #line 1778 "configure"
  1601. #include "confdefs.h"
  1602. #include <sys/types.h>
  1603. #include <sys/stat.h>
  1604. int main() {
  1605. struct stat s; s.st_rdev;
  1606. ; return 0; }
  1607. EOF
  1608. if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1609. rm -rf conftest*
  1610. ac_cv_struct_st_rdev=yes
  1611. else
  1612. echo "configure: failed program was:" >&5
  1613. cat conftest.$ac_ext >&5
  1614. rm -rf conftest*
  1615. ac_cv_struct_st_rdev=no
  1616. fi
  1617. rm -f conftest*
  1618. fi
  1619. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1620. if test $ac_cv_struct_st_rdev = yes; then
  1621. cat >> confdefs.h <<\EOF
  1622. #define HAVE_ST_RDEV 1
  1623. EOF
  1624. fi
  1625. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1626. echo "configure:1807: checking whether struct tm is in sys/time.h or time.h" >&5
  1627. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1628. echo $ac_n "(cached) $ac_c" 1>&6
  1629. else
  1630. cat > conftest.$ac_ext <<EOF
  1631. #line 1812 "configure"
  1632. #include "confdefs.h"
  1633. #include <sys/types.h>
  1634. #include <time.h>
  1635. int main() {
  1636. struct tm *tp; tp->tm_sec;
  1637. ; return 0; }
  1638. EOF
  1639. if { (eval echo configure:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1640. rm -rf conftest*
  1641. ac_cv_struct_tm=time.h
  1642. else
  1643. echo "configure: failed program was:" >&5
  1644. cat conftest.$ac_ext >&5
  1645. rm -rf conftest*
  1646. ac_cv_struct_tm=sys/time.h
  1647. fi
  1648. rm -f conftest*
  1649. fi
  1650. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1651. if test $ac_cv_struct_tm = sys/time.h; then
  1652. cat >> confdefs.h <<\EOF
  1653. #define TM_IN_SYS_TIME 1
  1654. EOF
  1655. fi
  1656. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1657. echo "configure:1841: checking for tm_zone in struct tm" >&5
  1658. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1659. echo $ac_n "(cached) $ac_c" 1>&6
  1660. else
  1661. cat > conftest.$ac_ext <<EOF
  1662. #line 1846 "configure"
  1663. #include "confdefs.h"
  1664. #include <sys/types.h>
  1665. #include <$ac_cv_struct_tm>
  1666. int main() {
  1667. struct tm tm; tm.tm_zone;
  1668. ; return 0; }
  1669. EOF
  1670. if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1671. rm -rf conftest*
  1672. ac_cv_struct_tm_zone=yes
  1673. else
  1674. echo "configure: failed program was:" >&5
  1675. cat conftest.$ac_ext >&5
  1676. rm -rf conftest*
  1677. ac_cv_struct_tm_zone=no
  1678. fi
  1679. rm -f conftest*
  1680. fi
  1681. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1682. if test "$ac_cv_struct_tm_zone" = yes; then
  1683. cat >> confdefs.h <<\EOF
  1684. #define HAVE_TM_ZONE 1
  1685. EOF
  1686. fi
  1687. echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1688. echo "configure:1874: checking for tzname" >&5
  1689. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1690. echo $ac_n "(cached) $ac_c" 1>&6
  1691. else
  1692. cat > conftest.$ac_ext <<EOF
  1693. #line 1879 "configure"
  1694. #include "confdefs.h"
  1695. #include <time.h>
  1696. #ifndef tzname /* For SGI. */
  1697. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  1698. #endif
  1699. int main() {
  1700. atoi(*tzname);
  1701. ; return 0; }
  1702. EOF
  1703. if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1704. rm -rf conftest*
  1705. ac_cv_var_tzname=yes
  1706. else
  1707. echo "configure: failed program was:" >&5
  1708. cat conftest.$ac_ext >&5
  1709. rm -rf conftest*
  1710. ac_cv_var_tzname=no
  1711. fi
  1712. rm -f conftest*
  1713. fi
  1714. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1715. if test $ac_cv_var_tzname = yes; then
  1716. cat >> confdefs.h <<\EOF
  1717. #define HAVE_TZNAME 1
  1718. EOF
  1719. fi
  1720. echo $ac_n "checking for tm_isdst in struct tm""... $ac_c" 1>&6
  1721. echo "configure:1910: checking for tm_isdst in struct tm" >&5
  1722. if eval "test \"`echo '$''{'ac_cv_struct_tm_isdst'+set}'`\" = set"; then
  1723. echo $ac_n "(cached) $ac_c" 1>&6
  1724. else
  1725. cat > conftest.$ac_ext <<EOF
  1726. #line 1915 "configure"
  1727. #include "confdefs.h"
  1728. #include <sys/types.h>
  1729. #include <$ac_cv_struct_tm>
  1730. int main() {
  1731. struct tm tm; tm.tm_isdst;
  1732. ; return 0; }
  1733. EOF
  1734. if { (eval echo configure:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1735. rm -rf conftest*
  1736. ac_cv_struct_tm_isdst=yes
  1737. else
  1738. echo "configure: failed program was:" >&5
  1739. cat conftest.$ac_ext >&5
  1740. rm -rf conftest*
  1741. ac_cv_struct_tm_isdst=no
  1742. fi
  1743. rm -f conftest*
  1744. fi
  1745. echo "$ac_t""$ac_cv_struct_tm_isdst" 1>&6
  1746. if test "$ac_cv_struct_tm_isdst" = yes; then
  1747. cat >> confdefs.h <<\EOF
  1748. #define HAVE_TM_ISDST 1
  1749. EOF
  1750. fi
  1751. echo $ac_n "checking for daylight""... $ac_c" 1>&6
  1752. echo "configure:1943: checking for daylight" >&5
  1753. if eval "test \"`echo '$''{'ac_cv_var_daylight'+set}'`\" = set"; then
  1754. echo $ac_n "(cached) $ac_c" 1>&6
  1755. else
  1756. cat > conftest.$ac_ext <<EOF
  1757. #line 1948 "configure"
  1758. #include "confdefs.h"
  1759. #include <time.h>
  1760. #ifndef daylight /* In case IRIX #defines this, too */
  1761. extern int daylight;
  1762. #endif
  1763. int main() {
  1764. atoi(daylight);
  1765. ; return 0; }
  1766. EOF
  1767. if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1768. rm -rf conftest*
  1769. ac_cv_var_daylight=yes
  1770. else
  1771. echo "configure: failed program was:" >&5
  1772. cat conftest.$ac_ext >&5
  1773. rm -rf conftest*
  1774. ac_cv_var_daylight=no
  1775. fi
  1776. rm -f conftest*
  1777. fi
  1778. echo "$ac_t""$ac_cv_var_daylight" 1>&6
  1779. if test $ac_cv_var_daylight = yes; then
  1780. cat >> confdefs.h <<\EOF
  1781. #define HAVE_DAYLIGHT 1
  1782. EOF
  1783. fi
  1784. echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
  1785. echo "configure:1980: checking for uint8_t" >&5
  1786. if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
  1787. echo $ac_n "(cached) $ac_c" 1>&6
  1788. else
  1789. cat > conftest.$ac_ext <<EOF
  1790. #line 1985 "configure"
  1791. #include "confdefs.h"
  1792. #include <sys/types.h>
  1793. #if STDC_HEADERS
  1794. #include <stdlib.h>
  1795. #include <stddef.h>
  1796. #endif
  1797. EOF
  1798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1799. egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1800. rm -rf conftest*
  1801. ac_cv_type_uint8_t=yes
  1802. else
  1803. rm -rf conftest*
  1804. ac_cv_type_uint8_t=no
  1805. fi
  1806. rm -f conftest*
  1807. fi
  1808. echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
  1809. if test $ac_cv_type_uint8_t = no; then
  1810. cat >> confdefs.h <<\EOF
  1811. #define uint8_t unsigned char
  1812. EOF
  1813. fi
  1814. echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
  1815. echo "configure:2013: checking for uint16_t" >&5
  1816. if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
  1817. echo $ac_n "(cached) $ac_c" 1>&6
  1818. else
  1819. cat > conftest.$ac_ext <<EOF
  1820. #line 2018 "configure"
  1821. #include "confdefs.h"
  1822. #include <sys/types.h>
  1823. #if STDC_HEADERS
  1824. #include <stdlib.h>
  1825. #include <stddef.h>
  1826. #endif
  1827. EOF
  1828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1829. egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1830. rm -rf conftest*
  1831. ac_cv_type_uint16_t=yes
  1832. else
  1833. rm -rf conftest*
  1834. ac_cv_type_uint16_t=no
  1835. fi
  1836. rm -f conftest*
  1837. fi
  1838. echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
  1839. if test $ac_cv_type_uint16_t = no; then
  1840. cat >> confdefs.h <<\EOF
  1841. #define uint16_t unsigned short
  1842. EOF
  1843. fi
  1844. echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  1845. echo "configure:2046: checking for uint32_t" >&5
  1846. if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
  1847. echo $ac_n "(cached) $ac_c" 1>&6
  1848. else
  1849. cat > conftest.$ac_ext <<EOF
  1850. #line 2051 "configure"
  1851. #include "confdefs.h"
  1852. #include <sys/types.h>
  1853. #if STDC_HEADERS
  1854. #include <stdlib.h>
  1855. #include <stddef.h>
  1856. #endif
  1857. EOF
  1858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1859. egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1860. rm -rf conftest*
  1861. ac_cv_type_uint32_t=yes
  1862. else
  1863. rm -rf conftest*
  1864. ac_cv_type_uint32_t=no
  1865. fi
  1866. rm -f conftest*
  1867. fi
  1868. echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
  1869. if test $ac_cv_type_uint32_t = no; then
  1870. cat >> confdefs.h <<\EOF
  1871. #define uint32_t unsigned int
  1872. EOF
  1873. fi
  1874. echo $ac_n "checking for long long""... $ac_c" 1>&6
  1875. echo "configure:2080: checking for long long" >&5
  1876. if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
  1877. echo $ac_n "(cached) $ac_c" 1>&6
  1878. else
  1879. if test "$GCC" = yes; then
  1880. ac_cv_c_long_long=yes
  1881. else
  1882. if test "$cross_compiling" = yes; then
  1883. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1884. else
  1885. cat > conftest.$ac_ext <<EOF
  1886. #line 2091 "configure"
  1887. #include "confdefs.h"
  1888. int main() {
  1889. long long foo = 0;
  1890. exit(sizeof(long long) < sizeof(long)); }
  1891. EOF
  1892. if { (eval echo configure:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1893. then
  1894. ac_cv_c_long_long=yes
  1895. else
  1896. echo "configure: failed program was:" >&5
  1897. cat conftest.$ac_ext >&5
  1898. rm -fr conftest*
  1899. ac_cv_c_long_long=no
  1900. fi
  1901. rm -fr conftest*
  1902. fi
  1903. fi
  1904. fi
  1905. echo "$ac_t""$ac_cv_c_long_long" 1>&6
  1906. if test $ac_cv_c_long_long = yes; then
  1907. cat >> confdefs.h <<\EOF
  1908. #define HAVE_LONG_LONG 1
  1909. EOF
  1910. fi
  1911. if test $ac_cv_c_long_long = yes; then
  1912. long64='unsigned long long';
  1913. else
  1914. long64='unsigned long';
  1915. fi
  1916. echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
  1917. echo "configure:2126: checking for uint64_t" >&5
  1918. if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
  1919. echo $ac_n "(cached) $ac_c" 1>&6
  1920. else
  1921. cat > conftest.$ac_ext <<EOF
  1922. #line 2131 "configure"
  1923. #include "confdefs.h"
  1924. #include <sys/types.h>
  1925. #if STDC_HEADERS
  1926. #include <stdlib.h>
  1927. #include <stddef.h>
  1928. #endif
  1929. EOF
  1930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1931. egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1932. rm -rf conftest*
  1933. eval "ac_cv_type_uint64_t=yes"
  1934. else
  1935. rm -rf conftest*
  1936. eval "ac_cv_type_uint64_t=no"
  1937. fi
  1938. rm -f conftest*
  1939. fi
  1940. if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
  1941. echo "$ac_t""yes" 1>&6
  1942. else
  1943. echo "$ac_t""no" 1>&6
  1944. cat >> confdefs.h <<EOF
  1945. #define uint64_t $long64
  1946. EOF
  1947. fi
  1948. echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6
  1949. echo "configure:2162: checking size of uint8_t" >&5
  1950. if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then
  1951. echo $ac_n "(cached) $ac_c" 1>&6
  1952. else
  1953. if test "$cross_compiling" = yes; then
  1954. ac_cv_sizeof_uint8_t=0
  1955. else
  1956. cat > conftest.$ac_ext <<EOF
  1957. #line 2170 "configure"
  1958. #include "confdefs.h"
  1959. #include <sys/types.h>
  1960. #ifdef STDC_HEADERS
  1961. #include <stdlib.h>
  1962. #endif
  1963. #include <stdio.h>
  1964. main()
  1965. {
  1966. FILE *f=fopen("conftestval", "w");
  1967. if (!f) exit(1);
  1968. fprintf(f, "%d\n", sizeof(uint8_t));
  1969. exit(0);
  1970. }
  1971. EOF
  1972. if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1973. then
  1974. ac_cv_sizeof_uint8_t=`cat conftestval`
  1975. else
  1976. echo "configure: failed program was:" >&5
  1977. cat conftest.$ac_ext >&5
  1978. rm -fr conftest*
  1979. ac_cv_sizeof_uint8_t=0
  1980. fi
  1981. rm -fr conftest*
  1982. fi
  1983. fi
  1984. echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6
  1985. cat >> confdefs.h <<EOF
  1986. #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
  1987. EOF
  1988. echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
  1989. echo "configure:2207: checking size of uint16_t" >&5
  1990. if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
  1991. echo $ac_n "(cached) $ac_c" 1>&6
  1992. else
  1993. if test "$cross_compiling" = yes; then
  1994. ac_cv_sizeof_uint16_t=0
  1995. else
  1996. cat > conftest.$ac_ext <<EOF
  1997. #line 2215 "configure"
  1998. #include "confdefs.h"
  1999. #include <sys/types.h>
  2000. #ifdef STDC_HEADERS
  2001. #include <stdlib.h>
  2002. #endif
  2003. #include <stdio.h>
  2004. main()
  2005. {
  2006. FILE *f=fopen("conftestval", "w");
  2007. if (!f) exit(1);
  2008. fprintf(f, "%d\n", sizeof(uint16_t));
  2009. exit(0);
  2010. }
  2011. EOF
  2012. if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2013. then
  2014. ac_cv_sizeof_uint16_t=`cat conftestval`
  2015. else
  2016. echo "configure: failed program was:" >&5
  2017. cat conftest.$ac_ext >&5
  2018. rm -fr conftest*
  2019. ac_cv_sizeof_uint16_t=0
  2020. fi
  2021. rm -fr conftest*
  2022. fi
  2023. fi
  2024. echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
  2025. cat >> confdefs.h <<EOF
  2026. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  2027. EOF
  2028. echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
  2029. echo "configure:2252: checking size of uint32_t" >&5
  2030. if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
  2031. echo $ac_n "(cached) $ac_c" 1>&6
  2032. else
  2033. if test "$cross_compiling" = yes; then
  2034. ac_cv_sizeof_uint32_t=0
  2035. else
  2036. cat > conftest.$ac_ext <<EOF
  2037. #line 2260 "configure"
  2038. #include "confdefs.h"
  2039. #include <sys/types.h>
  2040. #ifdef STDC_HEADERS
  2041. #include <stdlib.h>
  2042. #endif
  2043. #include <stdio.h>
  2044. main()
  2045. {
  2046. FILE *f=fopen("conftestval", "w");
  2047. if (!f) exit(1);
  2048. fprintf(f, "%d\n", sizeof(uint32_t));
  2049. exit(0);
  2050. }
  2051. EOF
  2052. if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2053. then
  2054. ac_cv_sizeof_uint32_t=`cat conftestval`
  2055. else
  2056. echo "configure: failed program was:" >&5
  2057. cat conftest.$ac_ext >&5
  2058. rm -fr conftest*
  2059. ac_cv_sizeof_uint32_t=0
  2060. fi
  2061. rm -fr conftest*
  2062. fi
  2063. fi
  2064. echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
  2065. cat >> confdefs.h <<EOF
  2066. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  2067. EOF
  2068. echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
  2069. echo "configure:2297: checking size of uint64_t" >&5
  2070. if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
  2071. echo $ac_n "(cached) $ac_c" 1>&6
  2072. else
  2073. if test "$cross_compiling" = yes; then
  2074. ac_cv_sizeof_uint64_t=0
  2075. else
  2076. cat > conftest.$ac_ext <<EOF
  2077. #line 2305 "configure"
  2078. #include "confdefs.h"
  2079. #include <sys/types.h>
  2080. #ifdef STDC_HEADERS
  2081. #include <stdlib.h>
  2082. #endif
  2083. #include <stdio.h>
  2084. main()
  2085. {
  2086. FILE *f=fopen("conftestval", "w");
  2087. if (!f) exit(1);
  2088. fprintf(f, "%d\n", sizeof(uint64_t));
  2089. exit(0);
  2090. }
  2091. EOF
  2092. if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2093. then
  2094. ac_cv_sizeof_uint64_t=`cat conftestval`
  2095. else
  2096. echo "configure: failed program was:" >&5
  2097. cat conftest.$ac_ext >&5
  2098. rm -fr conftest*
  2099. ac_cv_sizeof_uint64_t=0
  2100. fi
  2101. rm -fr conftest*
  2102. fi
  2103. fi
  2104. echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
  2105. cat >> confdefs.h <<EOF
  2106. #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
  2107. EOF
  2108. for ac_func in mmap strerror strtoul
  2109. do
  2110. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2111. echo "configure:2345: checking for $ac_func" >&5
  2112. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2113. echo $ac_n "(cached) $ac_c" 1>&6
  2114. else
  2115. cat > conftest.$ac_ext <<EOF
  2116. #line 2350 "configure"
  2117. #include "confdefs.h"
  2118. /* System header to define __stub macros and hopefully few prototypes,
  2119. which can conflict with char $ac_func(); below. */
  2120. #include <assert.h>
  2121. /* Override any gcc2 internal prototype to avoid an error. */
  2122. /* We use char because int might match the return type of a gcc2
  2123. builtin and then its argument prototype would still apply. */
  2124. char $ac_func();
  2125. int main() {
  2126. /* The GNU C library defines this for functions which it implements
  2127. to always fail with ENOSYS. Some functions are actually named
  2128. something starting with __ and the normal name is an alias. */
  2129. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2130. choke me
  2131. #else
  2132. $ac_func();
  2133. #endif
  2134. ; return 0; }
  2135. EOF
  2136. if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2137. rm -rf conftest*
  2138. eval "ac_cv_func_$ac_func=yes"
  2139. else
  2140. echo "configure: failed program was:" >&5
  2141. cat conftest.$ac_ext >&5
  2142. rm -rf conftest*
  2143. eval "ac_cv_func_$ac_func=no"
  2144. fi
  2145. rm -f conftest*
  2146. fi
  2147. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2148. echo "$ac_t""yes" 1>&6
  2149. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2150. cat >> confdefs.h <<EOF
  2151. #define $ac_tr_func 1
  2152. EOF
  2153. else
  2154. echo "$ac_t""no" 1>&6
  2155. fi
  2156. done
  2157. trap '' 1 2 15
  2158. cat > confcache <<\EOF
  2159. # This file is a shell script that caches the results of configure
  2160. # tests run on this system so they can be shared between configure
  2161. # scripts and configure runs. It is not useful on other systems.
  2162. # If it contains results you don't want to keep, you may remove or edit it.
  2163. #
  2164. # By default, configure uses ./config.cache as the cache file,
  2165. # creating it if it does not exist already. You can give configure
  2166. # the --cache-file=FILE option to use a different cache file; that is
  2167. # what configure does when it calls configure scripts in
  2168. # subdirectories, so they share the cache.
  2169. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2170. # config.status only pays attention to the cache file if you give it the
  2171. # --recheck option to rerun configure.
  2172. #
  2173. EOF
  2174. # The following way of writing the cache mishandles newlines in values,
  2175. # but we know of no workaround that is simple, portable, and efficient.
  2176. # So, don't put newlines in cache variables' values.
  2177. # Ultrix sh set writes to stderr and can't be redirected directly,
  2178. # and sets the high bit in the cache file unless we assign to the vars.
  2179. (set) 2>&1 |
  2180. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2181. *ac_space=\ *)
  2182. # `set' does not quote correctly, so add quotes (double-quote substitution
  2183. # turns \\\\ into \\, and sed turns \\ into \).
  2184. sed -n \
  2185. -e "s/'/'\\\\''/g" \
  2186. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2187. ;;
  2188. *)
  2189. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2190. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2191. ;;
  2192. esac >> confcache
  2193. if cmp -s $cache_file confcache; then
  2194. :
  2195. else
  2196. if test -w $cache_file; then
  2197. echo "updating cache $cache_file"
  2198. cat confcache > $cache_file
  2199. else
  2200. echo "not updating unwritable cache $cache_file"
  2201. fi
  2202. fi
  2203. rm -f confcache
  2204. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2205. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2206. # Let make expand exec_prefix.
  2207. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2208. # Any assignment to VPATH causes Sun make to only execute
  2209. # the first set of double-colon rules, so remove it if not needed.
  2210. # If there is a colon in the path, we need to keep it.
  2211. if test "x$srcdir" = x.; then
  2212. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  2213. fi
  2214. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2215. DEFS=-DHAVE_CONFIG_H
  2216. # Without the "./", some shells look in PATH for config.status.
  2217. : ${CONFIG_STATUS=./config.status}
  2218. echo creating $CONFIG_STATUS
  2219. rm -f $CONFIG_STATUS
  2220. cat > $CONFIG_STATUS <<EOF
  2221. #! /bin/sh
  2222. # Generated automatically by configure.
  2223. # Run this file to recreate the current configuration.
  2224. # This directory was configured as follows,
  2225. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2226. #
  2227. # $0 $ac_configure_args
  2228. #
  2229. # Compiler output produced by configure, useful for debugging
  2230. # configure, is in ./config.log if it exists.
  2231. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2232. for ac_option
  2233. do
  2234. case "\$ac_option" in
  2235. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2236. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2237. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2238. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2239. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2240. exit 0 ;;
  2241. -help | --help | --hel | --he | --h)
  2242. echo "\$ac_cs_usage"; exit 0 ;;
  2243. *) echo "\$ac_cs_usage"; exit 1 ;;
  2244. esac
  2245. done
  2246. ac_given_srcdir=$srcdir
  2247. ac_given_INSTALL="$INSTALL"
  2248. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2249. EOF
  2250. cat >> $CONFIG_STATUS <<EOF
  2251. # Protect against being on the right side of a sed subst in config.status.
  2252. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2253. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2254. $ac_vpsub
  2255. $extrasub
  2256. s%@SHELL@%$SHELL%g
  2257. s%@CFLAGS@%$CFLAGS%g
  2258. s%@CPPFLAGS@%$CPPFLAGS%g
  2259. s%@CXXFLAGS@%$CXXFLAGS%g
  2260. s%@FFLAGS@%$FFLAGS%g
  2261. s%@DEFS@%$DEFS%g
  2262. s%@LDFLAGS@%$LDFLAGS%g
  2263. s%@LIBS@%$LIBS%g
  2264. s%@exec_prefix@%$exec_prefix%g
  2265. s%@prefix@%$prefix%g
  2266. s%@program_transform_name@%$program_transform_name%g
  2267. s%@bindir@%$bindir%g
  2268. s%@sbindir@%$sbindir%g
  2269. s%@libexecdir@%$libexecdir%g
  2270. s%@datadir@%$datadir%g
  2271. s%@sysconfdir@%$sysconfdir%g
  2272. s%@sharedstatedir@%$sharedstatedir%g
  2273. s%@localstatedir@%$localstatedir%g
  2274. s%@libdir@%$libdir%g
  2275. s%@includedir@%$includedir%g
  2276. s%@oldincludedir@%$oldincludedir%g
  2277. s%@infodir@%$infodir%g
  2278. s%@mandir@%$mandir%g
  2279. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2280. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2281. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2282. s%@PACKAGE@%$PACKAGE%g
  2283. s%@VERSION@%$VERSION%g
  2284. s%@ACLOCAL@%$ACLOCAL%g
  2285. s%@AUTOCONF@%$AUTOCONF%g
  2286. s%@AUTOMAKE@%$AUTOMAKE%g
  2287. s%@AUTOHEADER@%$AUTOHEADER%g
  2288. s%@MAKEINFO@%$MAKEINFO%g
  2289. s%@SET_MAKE@%$SET_MAKE%g
  2290. s%@fsect@%$fsect%g
  2291. s%@FSECT5_TRUE@%$FSECT5_TRUE%g
  2292. s%@FSECT5_FALSE@%$FSECT5_FALSE%g
  2293. s%@CC@%$CC%g
  2294. s%@LN_S@%$LN_S%g
  2295. s%@CPP@%$CPP%g
  2296. CEOF
  2297. EOF
  2298. cat >> $CONFIG_STATUS <<\EOF
  2299. # Split the substitutions into bite-sized pieces for seds with
  2300. # small command number limits, like on Digital OSF/1 and HP-UX.
  2301. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2302. ac_file=1 # Number of current file.
  2303. ac_beg=1 # First line for current file.
  2304. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2305. ac_more_lines=:
  2306. ac_sed_cmds=""
  2307. while $ac_more_lines; do
  2308. if test $ac_beg -gt 1; then
  2309. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2310. else
  2311. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2312. fi
  2313. if test ! -s conftest.s$ac_file; then
  2314. ac_more_lines=false
  2315. rm -f conftest.s$ac_file
  2316. else
  2317. if test -z "$ac_sed_cmds"; then
  2318. ac_sed_cmds="sed -f conftest.s$ac_file"
  2319. else
  2320. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2321. fi
  2322. ac_file=`expr $ac_file + 1`
  2323. ac_beg=$ac_end
  2324. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2325. fi
  2326. done
  2327. if test -z "$ac_sed_cmds"; then
  2328. ac_sed_cmds=cat
  2329. fi
  2330. EOF
  2331. cat >> $CONFIG_STATUS <<EOF
  2332. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2333. EOF
  2334. cat >> $CONFIG_STATUS <<\EOF
  2335. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2336. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2337. case "$ac_file" in
  2338. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2339. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2340. *) ac_file_in="${ac_file}.in" ;;
  2341. esac
  2342. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2343. # Remove last slash and all that follows it. Not all systems have dirname.
  2344. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2345. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2346. # The file is in a subdirectory.
  2347. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2348. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2349. # A "../" for each directory in $ac_dir_suffix.
  2350. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2351. else
  2352. ac_dir_suffix= ac_dots=
  2353. fi
  2354. case "$ac_given_srcdir" in
  2355. .) srcdir=.
  2356. if test -z "$ac_dots"; then top_srcdir=.
  2357. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2358. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2359. *) # Relative path.
  2360. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2361. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2362. esac
  2363. case "$ac_given_INSTALL" in
  2364. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2365. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2366. esac
  2367. echo creating "$ac_file"
  2368. rm -f "$ac_file"
  2369. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2370. case "$ac_file" in
  2371. *Makefile*) ac_comsub="1i\\
  2372. # $configure_input" ;;
  2373. *) ac_comsub= ;;
  2374. esac
  2375. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2376. sed -e "$ac_comsub
  2377. s%@configure_input@%$configure_input%g
  2378. s%@srcdir@%$srcdir%g
  2379. s%@top_srcdir@%$top_srcdir%g
  2380. s%@INSTALL@%$INSTALL%g
  2381. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2382. fi; done
  2383. rm -f conftest.s*
  2384. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2385. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2386. #
  2387. # ac_d sets the value in "#define NAME VALUE" lines.
  2388. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2389. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2390. ac_dC='\3'
  2391. ac_dD='%g'
  2392. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2393. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2394. ac_uB='\([ ]\)%\1#\2define\3'
  2395. ac_uC=' '
  2396. ac_uD='\4%g'
  2397. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2398. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2399. ac_eB='$%\1#\2define\3'
  2400. ac_eC=' '
  2401. ac_eD='%g'
  2402. if test "${CONFIG_HEADERS+set}" != set; then
  2403. EOF
  2404. cat >> $CONFIG_STATUS <<EOF
  2405. CONFIG_HEADERS="config.h"
  2406. EOF
  2407. cat >> $CONFIG_STATUS <<\EOF
  2408. fi
  2409. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2410. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2411. case "$ac_file" in
  2412. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2413. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2414. *) ac_file_in="${ac_file}.in" ;;
  2415. esac
  2416. echo creating $ac_file
  2417. rm -f conftest.frag conftest.in conftest.out
  2418. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2419. cat $ac_file_inputs > conftest.in
  2420. EOF
  2421. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2422. # the proper values into config.h.in to produce config.h. And first:
  2423. # Protect against being on the right side of a sed subst in config.status.
  2424. # Protect against being in an unquoted here document in config.status.
  2425. rm -f conftest.vals
  2426. cat > conftest.hdr <<\EOF
  2427. s/[\\&%]/\\&/g
  2428. s%[\\$`]%\\&%g
  2429. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2430. s%ac_d%ac_u%gp
  2431. s%ac_u%ac_e%gp
  2432. EOF
  2433. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2434. rm -f conftest.hdr
  2435. # This sed command replaces #undef with comments. This is necessary, for
  2436. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2437. # on some systems where configure will not decide to define it.
  2438. cat >> conftest.vals <<\EOF
  2439. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2440. EOF
  2441. # Break up conftest.vals because some shells have a limit on
  2442. # the size of here documents, and old seds have small limits too.
  2443. rm -f conftest.tail
  2444. while :
  2445. do
  2446. ac_lines=`grep -c . conftest.vals`
  2447. # grep -c gives empty output for an empty file on some AIX systems.
  2448. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2449. # Write a limited-size here document to conftest.frag.
  2450. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2451. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2452. echo 'CEOF
  2453. sed -f conftest.frag conftest.in > conftest.out
  2454. rm -f conftest.in
  2455. mv conftest.out conftest.in
  2456. ' >> $CONFIG_STATUS
  2457. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2458. rm -f conftest.vals
  2459. mv conftest.tail conftest.vals
  2460. done
  2461. rm -f conftest.vals
  2462. cat >> $CONFIG_STATUS <<\EOF
  2463. rm -f conftest.frag conftest.h
  2464. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2465. cat conftest.in >> conftest.h
  2466. rm -f conftest.in
  2467. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2468. echo "$ac_file is unchanged"
  2469. rm -f conftest.h
  2470. else
  2471. # Remove last slash and all that follows it. Not all systems have dirname.
  2472. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2473. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2474. # The file is in a subdirectory.
  2475. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2476. fi
  2477. rm -f $ac_file
  2478. mv conftest.h $ac_file
  2479. fi
  2480. fi; done
  2481. EOF
  2482. cat >> $CONFIG_STATUS <<EOF
  2483. EOF
  2484. cat >> $CONFIG_STATUS <<\EOF
  2485. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  2486. exit 0
  2487. EOF
  2488. chmod +x $CONFIG_STATUS
  2489. rm -fr confdefs* $ac_clean_files
  2490. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1