configure 87 KB

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