configure 68 KB

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