configure 72 KB

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