configure 69 KB

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