configure 90 KB

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