configure 125 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-ipv6 disable IPv6 support"
  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=src/eggdrop.h
  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. # From configure.in Revision:
  466. # Remove --cache-file and --srcdir arguments so they do not pile up.
  467. egg_ac_parameters=
  468. ac_prev=
  469. for ac_arg in $ac_configure_args; do
  470. if test -n "$ac_prev"; then
  471. ac_prev=
  472. continue
  473. fi
  474. case $ac_arg in
  475. -cache-file | --cache-file | --cache-fil | --cache-fi \
  476. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  477. ac_prev=cache_file ;;
  478. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  479. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  480. | --c=*)
  481. ;;
  482. --config-cache | -C)
  483. ;;
  484. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  485. ac_prev=srcdir ;;
  486. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  487. ;;
  488. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  489. esac
  490. done
  491. # Setup build environment
  492. # Extract the first word of "gcc", so it can be a program name with args.
  493. set dummy gcc; ac_word=$2
  494. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  495. echo "configure:566: checking for $ac_word" >&5
  496. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  497. echo $ac_n "(cached) $ac_c" 1>&6
  498. else
  499. if test -n "$CC"; then
  500. ac_cv_prog_CC="$CC" # Let the user override the test.
  501. else
  502. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  503. ac_dummy="$PATH"
  504. for ac_dir in $ac_dummy; do
  505. test -z "$ac_dir" && ac_dir=.
  506. if test -f $ac_dir/$ac_word; then
  507. ac_cv_prog_CC="gcc"
  508. break
  509. fi
  510. done
  511. IFS="$ac_save_ifs"
  512. fi
  513. fi
  514. CC="$ac_cv_prog_CC"
  515. if test -n "$CC"; then
  516. echo "$ac_t""$CC" 1>&6
  517. else
  518. echo "$ac_t""no" 1>&6
  519. fi
  520. if test -z "$CC"; then
  521. # Extract the first word of "cc", so it can be a program name with args.
  522. set dummy cc; ac_word=$2
  523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  524. echo "configure:596: checking for $ac_word" >&5
  525. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  526. echo $ac_n "(cached) $ac_c" 1>&6
  527. else
  528. if test -n "$CC"; then
  529. ac_cv_prog_CC="$CC" # Let the user override the test.
  530. else
  531. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  532. ac_prog_rejected=no
  533. ac_dummy="$PATH"
  534. for ac_dir in $ac_dummy; do
  535. test -z "$ac_dir" && ac_dir=.
  536. if test -f $ac_dir/$ac_word; then
  537. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  538. ac_prog_rejected=yes
  539. continue
  540. fi
  541. ac_cv_prog_CC="cc"
  542. break
  543. fi
  544. done
  545. IFS="$ac_save_ifs"
  546. if test $ac_prog_rejected = yes; then
  547. # We found a bogon in the path, so make sure we never use it.
  548. set dummy $ac_cv_prog_CC
  549. shift
  550. if test $# -gt 0; then
  551. # We chose a different compiler from the bogus one.
  552. # However, it has the same basename, so the bogon will be chosen
  553. # first if we set CC to just the basename; use the full file name.
  554. shift
  555. set dummy "$ac_dir/$ac_word" "$@"
  556. shift
  557. ac_cv_prog_CC="$@"
  558. fi
  559. fi
  560. fi
  561. fi
  562. CC="$ac_cv_prog_CC"
  563. if test -n "$CC"; then
  564. echo "$ac_t""$CC" 1>&6
  565. else
  566. echo "$ac_t""no" 1>&6
  567. fi
  568. if test -z "$CC"; then
  569. case "`uname -s`" in
  570. *win32* | *WIN32*)
  571. # Extract the first word of "cl", so it can be a program name with args.
  572. set dummy cl; ac_word=$2
  573. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  574. echo "configure:647: checking for $ac_word" >&5
  575. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  576. echo $ac_n "(cached) $ac_c" 1>&6
  577. else
  578. if test -n "$CC"; then
  579. ac_cv_prog_CC="$CC" # Let the user override the test.
  580. else
  581. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  582. ac_dummy="$PATH"
  583. for ac_dir in $ac_dummy; do
  584. test -z "$ac_dir" && ac_dir=.
  585. if test -f $ac_dir/$ac_word; then
  586. ac_cv_prog_CC="cl"
  587. break
  588. fi
  589. done
  590. IFS="$ac_save_ifs"
  591. fi
  592. fi
  593. CC="$ac_cv_prog_CC"
  594. if test -n "$CC"; then
  595. echo "$ac_t""$CC" 1>&6
  596. else
  597. echo "$ac_t""no" 1>&6
  598. fi
  599. ;;
  600. esac
  601. fi
  602. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  603. fi
  604. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  605. echo "configure:679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  606. ac_ext=c
  607. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  608. ac_cpp='$CPP $CPPFLAGS'
  609. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  610. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  611. cross_compiling=$ac_cv_prog_cc_cross
  612. cat > conftest.$ac_ext << EOF
  613. #line 690 "configure"
  614. #include "confdefs.h"
  615. main(){return(0);}
  616. EOF
  617. if { (eval echo configure:695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  618. ac_cv_prog_cc_works=yes
  619. # If we can't run a trivial program, we are probably using a cross compiler.
  620. if (./conftest; exit) 2>/dev/null; then
  621. ac_cv_prog_cc_cross=no
  622. else
  623. ac_cv_prog_cc_cross=yes
  624. fi
  625. else
  626. echo "configure: failed program was:" >&5
  627. cat conftest.$ac_ext >&5
  628. ac_cv_prog_cc_works=no
  629. fi
  630. rm -fr conftest*
  631. ac_ext=c
  632. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  633. ac_cpp='$CPP $CPPFLAGS'
  634. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  635. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  636. cross_compiling=$ac_cv_prog_cc_cross
  637. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  638. if test $ac_cv_prog_cc_works = no; then
  639. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  640. fi
  641. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  642. echo "configure:721: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  643. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  644. cross_compiling=$ac_cv_prog_cc_cross
  645. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  646. echo "configure:726: checking whether we are using GNU C" >&5
  647. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  648. echo $ac_n "(cached) $ac_c" 1>&6
  649. else
  650. cat > conftest.c <<EOF
  651. #ifdef __GNUC__
  652. yes;
  653. #endif
  654. EOF
  655. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  656. ac_cv_prog_gcc=yes
  657. else
  658. ac_cv_prog_gcc=no
  659. fi
  660. fi
  661. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  662. if test $ac_cv_prog_gcc = yes; then
  663. GCC=yes
  664. else
  665. GCC=
  666. fi
  667. ac_test_CFLAGS="${CFLAGS+set}"
  668. ac_save_CFLAGS="$CFLAGS"
  669. CFLAGS=
  670. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  671. echo "configure:754: checking whether ${CC-cc} accepts -g" >&5
  672. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  673. echo $ac_n "(cached) $ac_c" 1>&6
  674. else
  675. echo 'void f(){}' > conftest.c
  676. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  677. ac_cv_prog_cc_g=yes
  678. else
  679. ac_cv_prog_cc_g=no
  680. fi
  681. rm -f conftest*
  682. fi
  683. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  684. if test "$ac_test_CFLAGS" = set; then
  685. CFLAGS="$ac_save_CFLAGS"
  686. elif test $ac_cv_prog_cc_g = yes; then
  687. if test "$GCC" = yes; then
  688. CFLAGS="-g -O2"
  689. else
  690. CFLAGS="-g"
  691. fi
  692. else
  693. if test "$GCC" = yes; then
  694. CFLAGS="-O2"
  695. else
  696. CFLAGS=
  697. fi
  698. fi
  699. if test "${cross_compiling-x}" = "x"
  700. then
  701. cat << 'EOF' >&2
  702. configure: error:
  703. This system does not appear to have a working C compiler.
  704. A working C compiler is required to compile Eggdrop.
  705. EOF
  706. exit 1
  707. fi
  708. # Crazy machines
  709. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  710. echo "configure:800: checking how to run the C preprocessor" >&5
  711. # On Suns, sometimes $CPP names a directory.
  712. if test -n "$CPP" && test -d "$CPP"; then
  713. CPP=
  714. fi
  715. if test -z "$CPP"; then
  716. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  717. echo $ac_n "(cached) $ac_c" 1>&6
  718. else
  719. # This must be in double quotes, not single quotes, because CPP may get
  720. # substituted into the Makefile and "${CC-cc}" will confuse make.
  721. CPP="${CC-cc} -E"
  722. # On the NeXT, cc -E runs the code through the compiler's parser,
  723. # not just through cpp.
  724. cat > conftest.$ac_ext <<EOF
  725. #line 815 "configure"
  726. #include "confdefs.h"
  727. #include <assert.h>
  728. Syntax Error
  729. EOF
  730. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  731. { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  732. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  733. if test -z "$ac_err"; then
  734. :
  735. else
  736. echo "$ac_err" >&5
  737. echo "configure: failed program was:" >&5
  738. cat conftest.$ac_ext >&5
  739. rm -rf conftest*
  740. CPP="${CC-cc} -E -traditional-cpp"
  741. cat > conftest.$ac_ext <<EOF
  742. #line 832 "configure"
  743. #include "confdefs.h"
  744. #include <assert.h>
  745. Syntax Error
  746. EOF
  747. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  748. { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  749. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  750. if test -z "$ac_err"; then
  751. :
  752. else
  753. echo "$ac_err" >&5
  754. echo "configure: failed program was:" >&5
  755. cat conftest.$ac_ext >&5
  756. rm -rf conftest*
  757. CPP="${CC-cc} -nologo -E"
  758. cat > conftest.$ac_ext <<EOF
  759. #line 849 "configure"
  760. #include "confdefs.h"
  761. #include <assert.h>
  762. Syntax Error
  763. EOF
  764. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  765. { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  766. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  767. if test -z "$ac_err"; then
  768. :
  769. else
  770. echo "$ac_err" >&5
  771. echo "configure: failed program was:" >&5
  772. cat conftest.$ac_ext >&5
  773. rm -rf conftest*
  774. CPP=/lib/cpp
  775. fi
  776. rm -f conftest*
  777. fi
  778. rm -f conftest*
  779. fi
  780. rm -f conftest*
  781. ac_cv_prog_CPP="$CPP"
  782. fi
  783. CPP="$ac_cv_prog_CPP"
  784. else
  785. ac_cv_prog_CPP="$CPP"
  786. fi
  787. echo "$ac_t""$CPP" 1>&6
  788. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  789. echo "configure:880: checking for AIX" >&5
  790. cat > conftest.$ac_ext <<EOF
  791. #line 882 "configure"
  792. #include "confdefs.h"
  793. #ifdef _AIX
  794. yes
  795. #endif
  796. EOF
  797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  798. egrep "yes" >/dev/null 2>&1; then
  799. rm -rf conftest*
  800. echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  801. #define _ALL_SOURCE 1
  802. EOF
  803. else
  804. rm -rf conftest*
  805. echo "$ac_t""no" 1>&6
  806. fi
  807. rm -f conftest*
  808. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  809. echo "configure:904: checking for POSIXized ISC" >&5
  810. if test -d /etc/conf/kconfig.d &&
  811. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  812. then
  813. echo "$ac_t""yes" 1>&6
  814. ISC=yes # If later tests want to check for ISC.
  815. cat >> confdefs.h <<\EOF
  816. #define _POSIX_SOURCE 1
  817. EOF
  818. if test "$GCC" = yes; then
  819. CC="$CC -posix"
  820. else
  821. CC="$CC -Xp"
  822. fi
  823. else
  824. echo "$ac_t""no" 1>&6
  825. ISC=
  826. fi
  827. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  828. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  829. echo "configure:926: checking for minix/config.h" >&5
  830. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  831. echo $ac_n "(cached) $ac_c" 1>&6
  832. else
  833. cat > conftest.$ac_ext <<EOF
  834. #line 931 "configure"
  835. #include "confdefs.h"
  836. #include <minix/config.h>
  837. EOF
  838. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  839. { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  840. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  841. if test -z "$ac_err"; then
  842. rm -rf conftest*
  843. eval "ac_cv_header_$ac_safe=yes"
  844. else
  845. echo "$ac_err" >&5
  846. echo "configure: failed program was:" >&5
  847. cat conftest.$ac_ext >&5
  848. rm -rf conftest*
  849. eval "ac_cv_header_$ac_safe=no"
  850. fi
  851. rm -f conftest*
  852. fi
  853. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  854. echo "$ac_t""yes" 1>&6
  855. MINIX=yes
  856. else
  857. echo "$ac_t""no" 1>&6
  858. MINIX=
  859. fi
  860. if test "$MINIX" = yes; then
  861. cat >> confdefs.h <<\EOF
  862. #define _POSIX_SOURCE 1
  863. EOF
  864. cat >> confdefs.h <<\EOF
  865. #define _POSIX_1_SOURCE 2
  866. EOF
  867. cat >> confdefs.h <<\EOF
  868. #define _MINIX 1
  869. EOF
  870. fi
  871. # Speedup compile
  872. if test -z "$no_pipe"
  873. then
  874. if test -n "$GCC"
  875. then
  876. echo $ac_n "checking whether the compiler understands -pipe""... $ac_c" 1>&6
  877. echo "configure:980: checking whether the compiler understands -pipe" >&5
  878. if eval "test \"`echo '$''{'egg_cv_var_ccpipe'+set}'`\" = set"; then
  879. echo $ac_n "(cached) $ac_c" 1>&6
  880. else
  881. ac_old_CC="$CC"
  882. CC="$CC -pipe"
  883. cat > conftest.$ac_ext <<EOF
  884. #line 987 "configure"
  885. #include "confdefs.h"
  886. int main() {
  887. ; return 0; }
  888. EOF
  889. if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  890. rm -rf conftest*
  891. egg_cv_var_ccpipe="yes"
  892. else
  893. echo "configure: failed program was:" >&5
  894. cat conftest.$ac_ext >&5
  895. rm -rf conftest*
  896. egg_cv_var_ccpipe="no"
  897. fi
  898. rm -f conftest*
  899. CC="$ac_old_CC"
  900. fi
  901. echo "$ac_t""$egg_cv_var_ccpipe" 1>&6
  902. if test "$egg_cv_var_ccpipe" = "yes"
  903. then
  904. CC="$CC -pipe"
  905. fi
  906. fi
  907. fi
  908. # Create static binaries
  909. if test -z "$no_static"
  910. then
  911. if test -n "$GCC"
  912. then
  913. echo $ac_n "checking whether the compiler understands -static""... $ac_c" 1>&6
  914. echo "configure:1023: checking whether the compiler understands -static" >&5
  915. if eval "test \"`echo '$''{'egg_cv_var_ccstatic'+set}'`\" = set"; then
  916. echo $ac_n "(cached) $ac_c" 1>&6
  917. else
  918. ac_old_CC="$CC"
  919. CC="$CC -static"
  920. cat > conftest.$ac_ext <<EOF
  921. #line 1030 "configure"
  922. #include "confdefs.h"
  923. int main() {
  924. ; return 0; }
  925. EOF
  926. if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  927. rm -rf conftest*
  928. egg_cv_var_ccstatic="yes"
  929. else
  930. echo "configure: failed program was:" >&5
  931. cat conftest.$ac_ext >&5
  932. rm -rf conftest*
  933. egg_cv_var_ccstatic="no"
  934. fi
  935. rm -f conftest*
  936. CC="$ac_old_CC"
  937. fi
  938. echo "$ac_t""$egg_cv_var_ccstatic" 1>&6
  939. if test "$egg_cv_var_ccstatic" = "yes"
  940. then
  941. CC="$CC -static"
  942. else
  943. cat << 'EOF' >&2
  944. configure: error:
  945. Your C compiler does not support -static.
  946. This compile flag is required for the botpack.
  947. EOF
  948. exit 1
  949. fi
  950. fi
  951. fi
  952. # Checks for programs
  953. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  954. echo "configure:1071: checking whether ${MAKE-make} sets \${MAKE}" >&5
  955. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  956. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  957. echo $ac_n "(cached) $ac_c" 1>&6
  958. else
  959. cat > conftestmake <<\EOF
  960. all:
  961. @echo 'ac_maketemp="${MAKE}"'
  962. EOF
  963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  964. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  965. if test -n "$ac_maketemp"; then
  966. eval ac_cv_prog_make_${ac_make}_set=yes
  967. else
  968. eval ac_cv_prog_make_${ac_make}_set=no
  969. fi
  970. rm -f conftestmake
  971. fi
  972. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  973. echo "$ac_t""yes" 1>&6
  974. SET_MAKE=
  975. else
  976. echo "$ac_t""no" 1>&6
  977. SET_MAKE="MAKE=${MAKE-make}"
  978. fi
  979. # Extract the first word of "strip", so it can be a program name with args.
  980. set dummy strip; ac_word=$2
  981. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  982. echo "configure:1100: checking for $ac_word" >&5
  983. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  984. echo $ac_n "(cached) $ac_c" 1>&6
  985. else
  986. if test -n "$STRIP"; then
  987. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  988. else
  989. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  990. ac_dummy="$PATH"
  991. for ac_dir in $ac_dummy; do
  992. test -z "$ac_dir" && ac_dir=.
  993. if test -f $ac_dir/$ac_word; then
  994. ac_cv_prog_STRIP="strip"
  995. break
  996. fi
  997. done
  998. IFS="$ac_save_ifs"
  999. fi
  1000. fi
  1001. STRIP="$ac_cv_prog_STRIP"
  1002. if test -n "$STRIP"; then
  1003. echo "$ac_t""$STRIP" 1>&6
  1004. else
  1005. echo "$ac_t""no" 1>&6
  1006. fi
  1007. if test "${STRIP-x}" = "x"
  1008. then
  1009. STRIP=touch
  1010. fi
  1011. # awk is needed for Tcl library and header checks, and eggdrop version subst
  1012. for ac_prog in mawk gawk nawk awk
  1013. do
  1014. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1015. set dummy $ac_prog; ac_word=$2
  1016. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1017. echo "configure:1137: checking for $ac_word" >&5
  1018. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1019. echo $ac_n "(cached) $ac_c" 1>&6
  1020. else
  1021. if test -n "$AWK"; then
  1022. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1023. else
  1024. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1025. ac_dummy="$PATH"
  1026. for ac_dir in $ac_dummy; do
  1027. test -z "$ac_dir" && ac_dir=.
  1028. if test -f $ac_dir/$ac_word; then
  1029. ac_cv_prog_AWK="$ac_prog"
  1030. break
  1031. fi
  1032. done
  1033. IFS="$ac_save_ifs"
  1034. fi
  1035. fi
  1036. AWK="$ac_cv_prog_AWK"
  1037. if test -n "$AWK"; then
  1038. echo "$ac_t""$AWK" 1>&6
  1039. else
  1040. echo "$ac_t""no" 1>&6
  1041. fi
  1042. test -n "$AWK" && break
  1043. done
  1044. if test "${AWK-x}" = "x"
  1045. then
  1046. cat << 'EOF' >&2
  1047. configure: error:
  1048. This system seems to lack a working 'awk' command.
  1049. A working 'awk' command is required to compile Eggdrop.
  1050. EOF
  1051. exit 1
  1052. fi
  1053. # basename is needed for Tcl library and header checks
  1054. # Extract the first word of "basename", so it can be a program name with args.
  1055. set dummy basename; ac_word=$2
  1056. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1057. echo "configure:1182: checking for $ac_word" >&5
  1058. if eval "test \"`echo '$''{'ac_cv_prog_BASENAME'+set}'`\" = set"; then
  1059. echo $ac_n "(cached) $ac_c" 1>&6
  1060. else
  1061. if test -n "$BASENAME"; then
  1062. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  1063. else
  1064. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1065. ac_dummy="$PATH"
  1066. for ac_dir in $ac_dummy; do
  1067. test -z "$ac_dir" && ac_dir=.
  1068. if test -f $ac_dir/$ac_word; then
  1069. ac_cv_prog_BASENAME="basename"
  1070. break
  1071. fi
  1072. done
  1073. IFS="$ac_save_ifs"
  1074. fi
  1075. fi
  1076. BASENAME="$ac_cv_prog_BASENAME"
  1077. if test -n "$BASENAME"; then
  1078. echo "$ac_t""$BASENAME" 1>&6
  1079. else
  1080. echo "$ac_t""no" 1>&6
  1081. fi
  1082. if test "${BASENAME-x}" = "x"
  1083. then
  1084. cat << 'EOF' >&2
  1085. configure: error:
  1086. This system seems to lack a working 'basename' command.
  1087. A working 'basename' command is required to compile Eggdrop.
  1088. EOF
  1089. exit 1
  1090. fi
  1091. # Extract the first word of "uname", so it can be a program name with args.
  1092. set dummy uname; ac_word=$2
  1093. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1094. echo "configure:1223: checking for $ac_word" >&5
  1095. if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
  1096. echo $ac_n "(cached) $ac_c" 1>&6
  1097. else
  1098. if test -n "$UNAME"; then
  1099. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  1100. else
  1101. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1102. ac_dummy="$PATH"
  1103. for ac_dir in $ac_dummy; do
  1104. test -z "$ac_dir" && ac_dir=.
  1105. if test -f $ac_dir/$ac_word; then
  1106. ac_cv_prog_UNAME="uname"
  1107. break
  1108. fi
  1109. done
  1110. IFS="$ac_save_ifs"
  1111. fi
  1112. fi
  1113. UNAME="$ac_cv_prog_UNAME"
  1114. if test -n "$UNAME"; then
  1115. echo "$ac_t""$UNAME" 1>&6
  1116. else
  1117. echo "$ac_t""no" 1>&6
  1118. fi
  1119. # Test the os and set the module linking settings
  1120. LINUX=no
  1121. IRIX=no
  1122. SUNOS=no
  1123. HPUX=no
  1124. EGG_CYGWIN=no
  1125. NEED_DL=1
  1126. echo $ac_n "checking system type""... $ac_c" 1>&6
  1127. echo "configure:1259: checking system type" >&5
  1128. if eval "test \"`echo '$''{'egg_cv_var_system_type'+set}'`\" = set"; then
  1129. echo $ac_n "(cached) $ac_c" 1>&6
  1130. else
  1131. egg_cv_var_system_type=`$UNAME -s`
  1132. fi
  1133. echo "$ac_t""$egg_cv_var_system_type" 1>&6
  1134. echo $ac_n "checking system release""... $ac_c" 1>&6
  1135. echo "configure:1268: checking system release" >&5
  1136. if eval "test \"`echo '$''{'egg_cv_var_system_release'+set}'`\" = set"; then
  1137. echo $ac_n "(cached) $ac_c" 1>&6
  1138. else
  1139. egg_cv_var_system_release=`$UNAME -r`
  1140. fi
  1141. echo "$ac_t""$egg_cv_var_system_release" 1>&6
  1142. case "$egg_cv_var_system_type" in
  1143. BSD/OS)
  1144. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1145. 2)
  1146. NEED_DL=0
  1147. ;;
  1148. 3)
  1149. cat >> confdefs.h <<\EOF
  1150. #define MODULES_OK 1
  1151. EOF
  1152. ;;
  1153. *)
  1154. CFLAGS="$CFLAGS -Wall"
  1155. cat >> confdefs.h <<\EOF
  1156. #define MODULES_OK 1
  1157. EOF
  1158. ;;
  1159. esac
  1160. ;;
  1161. CYGWI*)
  1162. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  1163. 1.*)
  1164. NEED_DL=0
  1165. echo $ac_n "checking how to access the Win32 API""... $ac_c" 1>&6
  1166. echo "configure:1302: checking how to access the Win32 API" >&5
  1167. WIN32FLAGS=
  1168. cat > conftest.$ac_ext <<EOF
  1169. #line 1305 "configure"
  1170. #include "confdefs.h"
  1171. int main() {
  1172. #ifndef WIN32
  1173. # ifndef _WIN32
  1174. # error WIN32 or _WIN32 not defined
  1175. # endif
  1176. #endif
  1177. ; return 0; }
  1178. EOF
  1179. if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1180. rm -rf conftest*
  1181. echo "$ac_t""present by default" 1>&6
  1182. else
  1183. echo "configure: failed program was:" >&5
  1184. cat conftest.$ac_ext >&5
  1185. rm -rf conftest*
  1186. ac_compile_save="$ac_compile"
  1187. save_CC="$CC"
  1188. ac_compile="$ac_compile -mwin32"
  1189. CC="$CC -mwin32"
  1190. cat > conftest.$ac_ext <<EOF
  1191. #line 1332 "configure"
  1192. #include "confdefs.h"
  1193. int main() {
  1194. #ifndef WIN32
  1195. # ifndef _WIN32
  1196. # error WIN32 or _WIN32 not defined
  1197. # endif
  1198. #endif
  1199. ; return 0; }
  1200. EOF
  1201. if { (eval echo configure:1344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1202. rm -rf conftest*
  1203. echo "$ac_t""found via -mwin32" 1>&6
  1204. ac_compile="$ac_compile_save"
  1205. CC="$save_CC"
  1206. WIN32FLAGS="-mwin32"
  1207. else
  1208. echo "configure: failed program was:" >&5
  1209. cat conftest.$ac_ext >&5
  1210. rm -rf conftest*
  1211. ac_compile="$ac_compile_save"
  1212. CC="$save_CC"
  1213. echo "$ac_t""not found" 1>&6
  1214. fi
  1215. rm -f conftest*
  1216. fi
  1217. rm -f conftest*
  1218. CC="$CC $WIN32FLAGS"
  1219. echo $ac_n "checking for /usr/lib/binmode.o""... $ac_c" 1>&6
  1220. echo "configure:1370: checking for /usr/lib/binmode.o" >&5
  1221. if test -r /usr/lib/binmode.o
  1222. then
  1223. echo "$ac_t""yes" 1>&6
  1224. LIBS="$LIBS /usr/lib/binmode.o"
  1225. else
  1226. echo "$ac_t""no" 1>&6
  1227. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1228. fi
  1229. cat >> confdefs.h <<\EOF
  1230. #define MODULES_OK 1
  1231. EOF
  1232. ;;
  1233. *)
  1234. NEED_DL=0
  1235. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1236. ;;
  1237. esac
  1238. EGG_CYGWIN=yes
  1239. cat >> confdefs.h <<\EOF
  1240. #define CYGWIN_HACKS 1
  1241. EOF
  1242. ;;
  1243. HP-UX)
  1244. HPUX=yes
  1245. NEED_DL=0
  1246. cat >> confdefs.h <<\EOF
  1247. #define MODULES_OK 1
  1248. EOF
  1249. cat >> confdefs.h <<\EOF
  1250. #define HPUX_HACKS 1
  1251. EOF
  1252. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  1253. then
  1254. cat >> confdefs.h <<\EOF
  1255. #define HPUX10_HACKS 1
  1256. EOF
  1257. fi
  1258. ;;
  1259. dell)
  1260. echo "$ac_t""Dell SVR4" 1>&6
  1261. NEED_DL=0
  1262. ;;
  1263. IRIX)
  1264. IRIX=yes
  1265. NEED_DL=0
  1266. ;;
  1267. Ultrix)
  1268. NEED_DL=0
  1269. SHELL=/bin/sh5
  1270. ;;
  1271. SINIX*)
  1272. NEED_DL=0
  1273. ;;
  1274. BeOS)
  1275. NEED_DL=0
  1276. ;;
  1277. Linux)
  1278. LINUX=yes
  1279. CFLAGS="$CFLAGS -Wall"
  1280. cat >> confdefs.h <<\EOF
  1281. #define MODULES_OK 1
  1282. EOF
  1283. ;;
  1284. Lynx)
  1285. NEED_DL=0
  1286. ;;
  1287. QNX)
  1288. NEED_DL=0
  1289. ;;
  1290. OSF1)
  1291. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1292. V*)
  1293. # FIXME: we should check this in a separate test
  1294. # Digital OSF uses an ancient version of gawk
  1295. if test "$AWK" = "gawk"
  1296. then
  1297. AWK=awk
  1298. fi
  1299. cat >> confdefs.h <<\EOF
  1300. #define MODULES_OK 1
  1301. EOF
  1302. ;;
  1303. 1.0|1.1|1.2)
  1304. cat >> confdefs.h <<\EOF
  1305. #define MODULES_OK 1
  1306. EOF
  1307. cat >> confdefs.h <<\EOF
  1308. #define OSF1_HACKS 1
  1309. EOF
  1310. ;;
  1311. 1.*)
  1312. cat >> confdefs.h <<\EOF
  1313. #define MODULES_OK 1
  1314. EOF
  1315. cat >> confdefs.h <<\EOF
  1316. #define OSF1_HACKS 1
  1317. EOF
  1318. ;;
  1319. *)
  1320. NEED_DL=0
  1321. ;;
  1322. esac
  1323. cat >> confdefs.h <<\EOF
  1324. #define STOP_UAC 1
  1325. EOF
  1326. cat >> confdefs.h <<\EOF
  1327. #define BROKEN_SNPRINTF 1
  1328. EOF
  1329. ;;
  1330. SunOS)
  1331. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  1332. then
  1333. # SunOS 4
  1334. SUNOS=yes
  1335. cat >> confdefs.h <<\EOF
  1336. #define DLOPEN_1 1
  1337. EOF
  1338. fi
  1339. cat >> confdefs.h <<\EOF
  1340. #define MODULES_OK 1
  1341. EOF
  1342. ;;
  1343. *BSD)
  1344. # FreeBSD/OpenBSD/NetBSD
  1345. cat >> confdefs.h <<\EOF
  1346. #define MODULES_OK 1
  1347. EOF
  1348. ;;
  1349. *)
  1350. echo $ac_n "checking if system is Mach based""... $ac_c" 1>&6
  1351. echo "configure:1502: checking if system is Mach based" >&5
  1352. if test -r /mach
  1353. then
  1354. echo "$ac_t""yes" 1>&6
  1355. NEED_DL=0
  1356. cat >> confdefs.h <<\EOF
  1357. #define BORGCUBES 1
  1358. EOF
  1359. else
  1360. echo "$ac_t""no" 1>&6
  1361. echo $ac_n "checking if system is QNX""... $ac_c" 1>&6
  1362. echo "configure:1513: checking if system is QNX" >&5
  1363. if test -r /cmds
  1364. then
  1365. echo "$ac_t""yes" 1>&6
  1366. NEED_DL=0
  1367. else
  1368. echo "$ac_t""no" 1>&6
  1369. echo "$ac_t""Something unknown!" 1>&6
  1370. echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
  1371. NEED_DL=0
  1372. fi
  1373. fi
  1374. ;;
  1375. esac
  1376. # Checks for system libraries
  1377. # FIXME: this needs to be fixed so that it works on IRIX
  1378. if test "$IRIX" = "yes"
  1379. then
  1380. echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
  1381. else
  1382. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  1383. echo "configure:1536: checking for socket in -lsocket" >&5
  1384. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  1385. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1386. echo $ac_n "(cached) $ac_c" 1>&6
  1387. else
  1388. ac_save_LIBS="$LIBS"
  1389. LIBS="-lsocket $LIBS"
  1390. cat > conftest.$ac_ext <<EOF
  1391. #line 1544 "configure"
  1392. #include "confdefs.h"
  1393. /* Override any gcc2 internal prototype to avoid an error. */
  1394. /* We use char because int might match the return type of a gcc2
  1395. builtin and then its argument prototype would still apply. */
  1396. char socket();
  1397. int main() {
  1398. socket()
  1399. ; return 0; }
  1400. EOF
  1401. if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1402. rm -rf conftest*
  1403. eval "ac_cv_lib_$ac_lib_var=yes"
  1404. else
  1405. echo "configure: failed program was:" >&5
  1406. cat conftest.$ac_ext >&5
  1407. rm -rf conftest*
  1408. eval "ac_cv_lib_$ac_lib_var=no"
  1409. fi
  1410. rm -f conftest*
  1411. LIBS="$ac_save_LIBS"
  1412. fi
  1413. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1414. echo "$ac_t""yes" 1>&6
  1415. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1416. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1417. cat >> confdefs.h <<EOF
  1418. #define $ac_tr_lib 1
  1419. EOF
  1420. LIBS="-lsocket $LIBS"
  1421. else
  1422. echo "$ac_t""no" 1>&6
  1423. fi
  1424. echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
  1425. echo "configure:1583: checking for connect in -lnsl" >&5
  1426. ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
  1427. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1428. echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430. ac_save_LIBS="$LIBS"
  1431. LIBS="-lnsl $LIBS"
  1432. cat > conftest.$ac_ext <<EOF
  1433. #line 1591 "configure"
  1434. #include "confdefs.h"
  1435. /* Override any gcc2 internal prototype to avoid an error. */
  1436. /* We use char because int might match the return type of a gcc2
  1437. builtin and then its argument prototype would still apply. */
  1438. char connect();
  1439. int main() {
  1440. connect()
  1441. ; return 0; }
  1442. EOF
  1443. if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1444. rm -rf conftest*
  1445. eval "ac_cv_lib_$ac_lib_var=yes"
  1446. else
  1447. echo "configure: failed program was:" >&5
  1448. cat conftest.$ac_ext >&5
  1449. rm -rf conftest*
  1450. eval "ac_cv_lib_$ac_lib_var=no"
  1451. fi
  1452. rm -f conftest*
  1453. LIBS="$ac_save_LIBS"
  1454. fi
  1455. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1456. echo "$ac_t""yes" 1>&6
  1457. ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1458. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1459. cat >> confdefs.h <<EOF
  1460. #define $ac_tr_lib 1
  1461. EOF
  1462. LIBS="-lnsl $LIBS"
  1463. else
  1464. echo "$ac_t""no" 1>&6
  1465. fi
  1466. echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
  1467. echo "configure:1630: checking for gethostbyname in -ldns" >&5
  1468. ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
  1469. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1470. echo $ac_n "(cached) $ac_c" 1>&6
  1471. else
  1472. ac_save_LIBS="$LIBS"
  1473. LIBS="-ldns $LIBS"
  1474. cat > conftest.$ac_ext <<EOF
  1475. #line 1638 "configure"
  1476. #include "confdefs.h"
  1477. /* Override any gcc2 internal prototype to avoid an error. */
  1478. /* We use char because int might match the return type of a gcc2
  1479. builtin and then its argument prototype would still apply. */
  1480. char gethostbyname();
  1481. int main() {
  1482. gethostbyname()
  1483. ; return 0; }
  1484. EOF
  1485. if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1486. rm -rf conftest*
  1487. eval "ac_cv_lib_$ac_lib_var=yes"
  1488. else
  1489. echo "configure: failed program was:" >&5
  1490. cat conftest.$ac_ext >&5
  1491. rm -rf conftest*
  1492. eval "ac_cv_lib_$ac_lib_var=no"
  1493. fi
  1494. rm -f conftest*
  1495. LIBS="$ac_save_LIBS"
  1496. fi
  1497. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1498. echo "$ac_t""yes" 1>&6
  1499. ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1500. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1501. cat >> confdefs.h <<EOF
  1502. #define $ac_tr_lib 1
  1503. EOF
  1504. LIBS="-ldns $LIBS"
  1505. else
  1506. echo "$ac_t""no" 1>&6
  1507. fi
  1508. echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
  1509. echo "configure:1677: checking for gzopen in -lz" >&5
  1510. ac_lib_var=`echo z'_'gzopen | sed 'y%./+-%__p_%'`
  1511. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1512. echo $ac_n "(cached) $ac_c" 1>&6
  1513. else
  1514. ac_save_LIBS="$LIBS"
  1515. LIBS="-lz $LIBS"
  1516. cat > conftest.$ac_ext <<EOF
  1517. #line 1685 "configure"
  1518. #include "confdefs.h"
  1519. /* Override any gcc2 internal prototype to avoid an error. */
  1520. /* We use char because int might match the return type of a gcc2
  1521. builtin and then its argument prototype would still apply. */
  1522. char gzopen();
  1523. int main() {
  1524. gzopen()
  1525. ; return 0; }
  1526. EOF
  1527. if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1528. rm -rf conftest*
  1529. eval "ac_cv_lib_$ac_lib_var=yes"
  1530. else
  1531. echo "configure: failed program was:" >&5
  1532. cat conftest.$ac_ext >&5
  1533. rm -rf conftest*
  1534. eval "ac_cv_lib_$ac_lib_var=no"
  1535. fi
  1536. rm -f conftest*
  1537. LIBS="$ac_save_LIBS"
  1538. fi
  1539. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1540. echo "$ac_t""yes" 1>&6
  1541. ZLIB="-lz"
  1542. else
  1543. echo "$ac_t""no" 1>&6
  1544. fi
  1545. echo $ac_n "checking for SSL_accept in -lssl""... $ac_c" 1>&6
  1546. echo "configure:1717: checking for SSL_accept in -lssl" >&5
  1547. ac_lib_var=`echo ssl'_'SSL_accept | 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="-lssl -lcrypto $LIBS"
  1553. cat > conftest.$ac_ext <<EOF
  1554. #line 1725 "configure"
  1555. #include "confdefs.h"
  1556. /* Override any gcc2 internal prototype to avoid an error. */
  1557. /* We use char because int might match the return type of a gcc2
  1558. builtin and then its argument prototype would still apply. */
  1559. char SSL_accept();
  1560. int main() {
  1561. SSL_accept()
  1562. ; return 0; }
  1563. EOF
  1564. if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1565. rm -rf conftest*
  1566. eval "ac_cv_lib_$ac_lib_var=yes"
  1567. else
  1568. echo "configure: failed program was:" >&5
  1569. cat conftest.$ac_ext >&5
  1570. rm -rf conftest*
  1571. eval "ac_cv_lib_$ac_lib_var=no"
  1572. fi
  1573. rm -f conftest*
  1574. LIBS="$ac_save_LIBS"
  1575. fi
  1576. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1577. echo "$ac_t""yes" 1>&6
  1578. SSL="-lssl -lcrypto"
  1579. else
  1580. echo "$ac_t""no" 1>&6
  1581. SSL=""
  1582. fi
  1583. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1584. echo "configure:1758: checking for dlopen in -ldl" >&5
  1585. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1586. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1587. echo $ac_n "(cached) $ac_c" 1>&6
  1588. else
  1589. ac_save_LIBS="$LIBS"
  1590. LIBS="-ldl $LIBS"
  1591. cat > conftest.$ac_ext <<EOF
  1592. #line 1766 "configure"
  1593. #include "confdefs.h"
  1594. /* Override any gcc2 internal prototype to avoid an error. */
  1595. /* We use char because int might match the return type of a gcc2
  1596. builtin and then its argument prototype would still apply. */
  1597. char dlopen();
  1598. int main() {
  1599. dlopen()
  1600. ; return 0; }
  1601. EOF
  1602. if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1603. rm -rf conftest*
  1604. eval "ac_cv_lib_$ac_lib_var=yes"
  1605. else
  1606. echo "configure: failed program was:" >&5
  1607. cat conftest.$ac_ext >&5
  1608. rm -rf conftest*
  1609. eval "ac_cv_lib_$ac_lib_var=no"
  1610. fi
  1611. rm -f conftest*
  1612. LIBS="$ac_save_LIBS"
  1613. fi
  1614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1615. echo "$ac_t""yes" 1>&6
  1616. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1617. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1618. cat >> confdefs.h <<EOF
  1619. #define $ac_tr_lib 1
  1620. EOF
  1621. LIBS="-ldl $LIBS"
  1622. else
  1623. echo "$ac_t""no" 1>&6
  1624. fi
  1625. echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
  1626. echo "configure:1805: checking for tan in -lm" >&5
  1627. ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
  1628. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1629. echo $ac_n "(cached) $ac_c" 1>&6
  1630. else
  1631. ac_save_LIBS="$LIBS"
  1632. LIBS="-lm $LIBS"
  1633. cat > conftest.$ac_ext <<EOF
  1634. #line 1813 "configure"
  1635. #include "confdefs.h"
  1636. /* Override any gcc2 internal prototype to avoid an error. */
  1637. /* We use char because int might match the return type of a gcc2
  1638. builtin and then its argument prototype would still apply. */
  1639. char tan();
  1640. int main() {
  1641. tan()
  1642. ; return 0; }
  1643. EOF
  1644. if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1645. rm -rf conftest*
  1646. eval "ac_cv_lib_$ac_lib_var=yes"
  1647. else
  1648. echo "configure: failed program was:" >&5
  1649. cat conftest.$ac_ext >&5
  1650. rm -rf conftest*
  1651. eval "ac_cv_lib_$ac_lib_var=no"
  1652. fi
  1653. rm -f conftest*
  1654. LIBS="$ac_save_LIBS"
  1655. fi
  1656. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1657. echo "$ac_t""yes" 1>&6
  1658. EGG_MATH_LIB="-lm"
  1659. else
  1660. echo "$ac_t""no" 1>&6
  1661. fi
  1662. # This is needed for Tcl libraries compiled with thread support
  1663. echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1664. echo "configure:1846: checking for pthread_mutex_init in -lpthread" >&5
  1665. ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1666. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1667. echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669. ac_save_LIBS="$LIBS"
  1670. LIBS="-lpthread $LIBS"
  1671. cat > conftest.$ac_ext <<EOF
  1672. #line 1854 "configure"
  1673. #include "confdefs.h"
  1674. /* Override any gcc2 internal prototype to avoid an error. */
  1675. /* We use char because int might match the return type of a gcc2
  1676. builtin and then its argument prototype would still apply. */
  1677. char pthread_mutex_init();
  1678. int main() {
  1679. pthread_mutex_init()
  1680. ; return 0; }
  1681. EOF
  1682. if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1683. rm -rf conftest*
  1684. eval "ac_cv_lib_$ac_lib_var=yes"
  1685. else
  1686. echo "configure: failed program was:" >&5
  1687. cat conftest.$ac_ext >&5
  1688. rm -rf conftest*
  1689. eval "ac_cv_lib_$ac_lib_var=no"
  1690. fi
  1691. rm -f conftest*
  1692. LIBS="$ac_save_LIBS"
  1693. fi
  1694. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1695. echo "$ac_t""yes" 1>&6
  1696. ac_cv_lib_pthread_pthread_mutex_init=yes
  1697. ac_cv_lib_pthread="-lpthread"
  1698. else
  1699. echo "$ac_t""no" 1>&6
  1700. echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1701. echo "configure:1885: checking for __pthread_mutex_init in -lpthread" >&5
  1702. ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`
  1703. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1704. echo $ac_n "(cached) $ac_c" 1>&6
  1705. else
  1706. ac_save_LIBS="$LIBS"
  1707. LIBS="-lpthread $LIBS"
  1708. cat > conftest.$ac_ext <<EOF
  1709. #line 1893 "configure"
  1710. #include "confdefs.h"
  1711. /* Override any gcc2 internal prototype to avoid an error. */
  1712. /* We use char because int might match the return type of a gcc2
  1713. builtin and then its argument prototype would still apply. */
  1714. char __pthread_mutex_init();
  1715. int main() {
  1716. __pthread_mutex_init()
  1717. ; return 0; }
  1718. EOF
  1719. if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1720. rm -rf conftest*
  1721. eval "ac_cv_lib_$ac_lib_var=yes"
  1722. else
  1723. echo "configure: failed program was:" >&5
  1724. cat conftest.$ac_ext >&5
  1725. rm -rf conftest*
  1726. eval "ac_cv_lib_$ac_lib_var=no"
  1727. fi
  1728. rm -f conftest*
  1729. LIBS="$ac_save_LIBS"
  1730. fi
  1731. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1732. echo "$ac_t""yes" 1>&6
  1733. ac_cv_lib_pthread_pthread_mutex_init=yes
  1734. ac_cv_lib_pthread="-lpthread"
  1735. else
  1736. echo "$ac_t""no" 1>&6
  1737. echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6
  1738. echo "configure:1924: checking for pthread_mutex_init in -lpthreads" >&5
  1739. ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1740. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1741. echo $ac_n "(cached) $ac_c" 1>&6
  1742. else
  1743. ac_save_LIBS="$LIBS"
  1744. LIBS="-lpthreads $LIBS"
  1745. cat > conftest.$ac_ext <<EOF
  1746. #line 1932 "configure"
  1747. #include "confdefs.h"
  1748. /* Override any gcc2 internal prototype to avoid an error. */
  1749. /* We use char because int might match the return type of a gcc2
  1750. builtin and then its argument prototype would still apply. */
  1751. char pthread_mutex_init();
  1752. int main() {
  1753. pthread_mutex_init()
  1754. ; return 0; }
  1755. EOF
  1756. if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1757. rm -rf conftest*
  1758. eval "ac_cv_lib_$ac_lib_var=yes"
  1759. else
  1760. echo "configure: failed program was:" >&5
  1761. cat conftest.$ac_ext >&5
  1762. rm -rf conftest*
  1763. eval "ac_cv_lib_$ac_lib_var=no"
  1764. fi
  1765. rm -f conftest*
  1766. LIBS="$ac_save_LIBS"
  1767. fi
  1768. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1769. echo "$ac_t""yes" 1>&6
  1770. ac_cv_lib_pthread_pthread_mutex_init=yes
  1771. ac_cv_lib_pthread="-lpthreads"
  1772. else
  1773. echo "$ac_t""no" 1>&6
  1774. echo $ac_n "checking for pthread_mutex_init""... $ac_c" 1>&6
  1775. echo "configure:1963: checking for pthread_mutex_init" >&5
  1776. if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_init'+set}'`\" = set"; then
  1777. echo $ac_n "(cached) $ac_c" 1>&6
  1778. else
  1779. cat > conftest.$ac_ext <<EOF
  1780. #line 1968 "configure"
  1781. #include "confdefs.h"
  1782. /* System header to define __stub macros and hopefully few prototypes,
  1783. which can conflict with char pthread_mutex_init(); below. */
  1784. #include <assert.h>
  1785. /* Override any gcc2 internal prototype to avoid an error. */
  1786. /* We use char because int might match the return type of a gcc2
  1787. builtin and then its argument prototype would still apply. */
  1788. char pthread_mutex_init();
  1789. int main() {
  1790. /* The GNU C library defines this for functions which it implements
  1791. to always fail with ENOSYS. Some functions are actually named
  1792. something starting with __ and the normal name is an alias. */
  1793. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  1794. choke me
  1795. #else
  1796. pthread_mutex_init();
  1797. #endif
  1798. ; return 0; }
  1799. EOF
  1800. if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1801. rm -rf conftest*
  1802. eval "ac_cv_func_pthread_mutex_init=yes"
  1803. else
  1804. echo "configure: failed program was:" >&5
  1805. cat conftest.$ac_ext >&5
  1806. rm -rf conftest*
  1807. eval "ac_cv_func_pthread_mutex_init=no"
  1808. fi
  1809. rm -f conftest*
  1810. fi
  1811. if eval "test \"`echo '$ac_cv_func_'pthread_mutex_init`\" = yes"; then
  1812. echo "$ac_t""yes" 1>&6
  1813. ac_cv_lib_pthread_pthread_mutex_init=yes
  1814. ac_cv_lib_pthread=""
  1815. else
  1816. echo "$ac_t""no" 1>&6
  1817. ac_cv_lib_pthread_pthread_mutex_init=no
  1818. fi
  1819. fi
  1820. fi
  1821. fi
  1822. if test "$SUNOS" = "yes"
  1823. then
  1824. # For suns without yp or something like that
  1825. echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
  1826. echo "configure:2022: checking for main in -ldl" >&5
  1827. ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
  1828. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1829. echo $ac_n "(cached) $ac_c" 1>&6
  1830. else
  1831. ac_save_LIBS="$LIBS"
  1832. LIBS="-ldl $LIBS"
  1833. cat > conftest.$ac_ext <<EOF
  1834. #line 2030 "configure"
  1835. #include "confdefs.h"
  1836. int main() {
  1837. main()
  1838. ; return 0; }
  1839. EOF
  1840. if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1841. rm -rf conftest*
  1842. eval "ac_cv_lib_$ac_lib_var=yes"
  1843. else
  1844. echo "configure: failed program was:" >&5
  1845. cat conftest.$ac_ext >&5
  1846. rm -rf conftest*
  1847. eval "ac_cv_lib_$ac_lib_var=no"
  1848. fi
  1849. rm -f conftest*
  1850. LIBS="$ac_save_LIBS"
  1851. fi
  1852. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1853. echo "$ac_t""yes" 1>&6
  1854. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1855. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1856. cat >> confdefs.h <<EOF
  1857. #define $ac_tr_lib 1
  1858. EOF
  1859. LIBS="-ldl $LIBS"
  1860. else
  1861. echo "$ac_t""no" 1>&6
  1862. fi
  1863. else
  1864. if test "$HPUX" = "yes"
  1865. then
  1866. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1867. echo "configure:2068: checking for shl_load in -ldld" >&5
  1868. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1869. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1870. echo $ac_n "(cached) $ac_c" 1>&6
  1871. else
  1872. ac_save_LIBS="$LIBS"
  1873. LIBS="-ldld $LIBS"
  1874. cat > conftest.$ac_ext <<EOF
  1875. #line 2076 "configure"
  1876. #include "confdefs.h"
  1877. /* Override any gcc2 internal prototype to avoid an error. */
  1878. /* We use char because int might match the return type of a gcc2
  1879. builtin and then its argument prototype would still apply. */
  1880. char shl_load();
  1881. int main() {
  1882. shl_load()
  1883. ; return 0; }
  1884. EOF
  1885. if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1886. rm -rf conftest*
  1887. eval "ac_cv_lib_$ac_lib_var=yes"
  1888. else
  1889. echo "configure: failed program was:" >&5
  1890. cat conftest.$ac_ext >&5
  1891. rm -rf conftest*
  1892. eval "ac_cv_lib_$ac_lib_var=no"
  1893. fi
  1894. rm -f conftest*
  1895. LIBS="$ac_save_LIBS"
  1896. fi
  1897. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1898. echo "$ac_t""yes" 1>&6
  1899. ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1900. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1901. cat >> confdefs.h <<EOF
  1902. #define $ac_tr_lib 1
  1903. EOF
  1904. LIBS="-ldld $LIBS"
  1905. else
  1906. echo "$ac_t""no" 1>&6
  1907. fi
  1908. fi
  1909. fi
  1910. fi
  1911. for ac_hdr in unistd.h
  1912. do
  1913. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1914. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1915. echo "configure:2123: checking for $ac_hdr" >&5
  1916. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1917. echo $ac_n "(cached) $ac_c" 1>&6
  1918. else
  1919. cat > conftest.$ac_ext <<EOF
  1920. #line 2128 "configure"
  1921. #include "confdefs.h"
  1922. #include <$ac_hdr>
  1923. EOF
  1924. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1925. { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1926. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1927. if test -z "$ac_err"; then
  1928. rm -rf conftest*
  1929. eval "ac_cv_header_$ac_safe=yes"
  1930. else
  1931. echo "$ac_err" >&5
  1932. echo "configure: failed program was:" >&5
  1933. cat conftest.$ac_ext >&5
  1934. rm -rf conftest*
  1935. eval "ac_cv_header_$ac_safe=no"
  1936. fi
  1937. rm -f conftest*
  1938. fi
  1939. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1940. echo "$ac_t""yes" 1>&6
  1941. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1942. cat >> confdefs.h <<EOF
  1943. #define $ac_tr_hdr 1
  1944. EOF
  1945. else
  1946. echo "$ac_t""no" 1>&6
  1947. fi
  1948. done
  1949. for ac_func in getpagesize
  1950. do
  1951. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1952. echo "configure:2162: checking for $ac_func" >&5
  1953. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1954. echo $ac_n "(cached) $ac_c" 1>&6
  1955. else
  1956. cat > conftest.$ac_ext <<EOF
  1957. #line 2167 "configure"
  1958. #include "confdefs.h"
  1959. /* System header to define __stub macros and hopefully few prototypes,
  1960. which can conflict with char $ac_func(); below. */
  1961. #include <assert.h>
  1962. /* Override any gcc2 internal prototype to avoid an error. */
  1963. /* We use char because int might match the return type of a gcc2
  1964. builtin and then its argument prototype would still apply. */
  1965. char $ac_func();
  1966. int main() {
  1967. /* The GNU C library defines this for functions which it implements
  1968. to always fail with ENOSYS. Some functions are actually named
  1969. something starting with __ and the normal name is an alias. */
  1970. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1971. choke me
  1972. #else
  1973. $ac_func();
  1974. #endif
  1975. ; return 0; }
  1976. EOF
  1977. if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1978. rm -rf conftest*
  1979. eval "ac_cv_func_$ac_func=yes"
  1980. else
  1981. echo "configure: failed program was:" >&5
  1982. cat conftest.$ac_ext >&5
  1983. rm -rf conftest*
  1984. eval "ac_cv_func_$ac_func=no"
  1985. fi
  1986. rm -f conftest*
  1987. fi
  1988. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1989. echo "$ac_t""yes" 1>&6
  1990. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1991. cat >> confdefs.h <<EOF
  1992. #define $ac_tr_func 1
  1993. EOF
  1994. else
  1995. echo "$ac_t""no" 1>&6
  1996. fi
  1997. done
  1998. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  1999. echo "configure:2215: checking for working mmap" >&5
  2000. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  2001. echo $ac_n "(cached) $ac_c" 1>&6
  2002. else
  2003. if test "$cross_compiling" = yes; then
  2004. ac_cv_func_mmap_fixed_mapped=no
  2005. else
  2006. cat > conftest.$ac_ext <<EOF
  2007. #line 2223 "configure"
  2008. #include "confdefs.h"
  2009. /* Thanks to Mike Haertel and Jim Avera for this test.
  2010. Here is a matrix of mmap possibilities:
  2011. mmap private not fixed
  2012. mmap private fixed at somewhere currently unmapped
  2013. mmap private fixed at somewhere already mapped
  2014. mmap shared not fixed
  2015. mmap shared fixed at somewhere currently unmapped
  2016. mmap shared fixed at somewhere already mapped
  2017. For private mappings, we should verify that changes cannot be read()
  2018. back from the file, nor mmap's back from the file at a different
  2019. address. (There have been systems where private was not correctly
  2020. implemented like the infamous i386 svr4.0, and systems where the
  2021. VM page cache was not coherent with the filesystem buffer cache
  2022. like early versions of FreeBSD and possibly contemporary NetBSD.)
  2023. For shared mappings, we should conversely verify that changes get
  2024. propogated back to all the places they're supposed to be.
  2025. Grep wants private fixed already mapped.
  2026. The main things grep needs to know about mmap are:
  2027. * does it exist and is it safe to write into the mmap'd area
  2028. * how to use it (BSD variants) */
  2029. #include <sys/types.h>
  2030. #include <fcntl.h>
  2031. #include <sys/mman.h>
  2032. /* This mess was copied from the GNU getpagesize.h. */
  2033. #ifndef HAVE_GETPAGESIZE
  2034. # ifdef HAVE_UNISTD_H
  2035. # include <unistd.h>
  2036. # endif
  2037. /* Assume that all systems that can run configure have sys/param.h. */
  2038. # ifndef HAVE_SYS_PARAM_H
  2039. # define HAVE_SYS_PARAM_H 1
  2040. # endif
  2041. # ifdef _SC_PAGESIZE
  2042. # define getpagesize() sysconf(_SC_PAGESIZE)
  2043. # else /* no _SC_PAGESIZE */
  2044. # ifdef HAVE_SYS_PARAM_H
  2045. # include <sys/param.h>
  2046. # ifdef EXEC_PAGESIZE
  2047. # define getpagesize() EXEC_PAGESIZE
  2048. # else /* no EXEC_PAGESIZE */
  2049. # ifdef NBPG
  2050. # define getpagesize() NBPG * CLSIZE
  2051. # ifndef CLSIZE
  2052. # define CLSIZE 1
  2053. # endif /* no CLSIZE */
  2054. # else /* no NBPG */
  2055. # ifdef NBPC
  2056. # define getpagesize() NBPC
  2057. # else /* no NBPC */
  2058. # ifdef PAGESIZE
  2059. # define getpagesize() PAGESIZE
  2060. # endif /* PAGESIZE */
  2061. # endif /* no NBPC */
  2062. # endif /* no NBPG */
  2063. # endif /* no EXEC_PAGESIZE */
  2064. # else /* no HAVE_SYS_PARAM_H */
  2065. # define getpagesize() 8192 /* punt totally */
  2066. # endif /* no HAVE_SYS_PARAM_H */
  2067. # endif /* no _SC_PAGESIZE */
  2068. #endif /* no HAVE_GETPAGESIZE */
  2069. #ifdef __cplusplus
  2070. extern "C" { void *malloc(unsigned); }
  2071. #else
  2072. char *malloc();
  2073. #endif
  2074. int
  2075. main()
  2076. {
  2077. char *data, *data2, *data3;
  2078. int i, pagesize;
  2079. int fd;
  2080. pagesize = getpagesize();
  2081. /*
  2082. * First, make a file with some known garbage in it.
  2083. */
  2084. data = malloc(pagesize);
  2085. if (!data)
  2086. exit(1);
  2087. for (i = 0; i < pagesize; ++i)
  2088. *(data + i) = rand();
  2089. umask(0);
  2090. fd = creat("conftestmmap", 0600);
  2091. if (fd < 0)
  2092. exit(1);
  2093. if (write(fd, data, pagesize) != pagesize)
  2094. exit(1);
  2095. close(fd);
  2096. /*
  2097. * Next, try to mmap the file at a fixed address which
  2098. * already has something else allocated at it. If we can,
  2099. * also make sure that we see the same garbage.
  2100. */
  2101. fd = open("conftestmmap", O_RDWR);
  2102. if (fd < 0)
  2103. exit(1);
  2104. data2 = malloc(2 * pagesize);
  2105. if (!data2)
  2106. exit(1);
  2107. data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  2108. if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  2109. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  2110. exit(1);
  2111. for (i = 0; i < pagesize; ++i)
  2112. if (*(data + i) != *(data2 + i))
  2113. exit(1);
  2114. /*
  2115. * Finally, make sure that changes to the mapped area
  2116. * do not percolate back to the file as seen by read().
  2117. * (This is a bug on some variants of i386 svr4.0.)
  2118. */
  2119. for (i = 0; i < pagesize; ++i)
  2120. *(data2 + i) = *(data2 + i) + 1;
  2121. data3 = malloc(pagesize);
  2122. if (!data3)
  2123. exit(1);
  2124. if (read(fd, data3, pagesize) != pagesize)
  2125. exit(1);
  2126. for (i = 0; i < pagesize; ++i)
  2127. if (*(data + i) != *(data3 + i))
  2128. exit(1);
  2129. close(fd);
  2130. unlink("conftestmmap");
  2131. exit(0);
  2132. }
  2133. EOF
  2134. if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2135. then
  2136. ac_cv_func_mmap_fixed_mapped=yes
  2137. else
  2138. echo "configure: failed program was:" >&5
  2139. cat conftest.$ac_ext >&5
  2140. rm -fr conftest*
  2141. ac_cv_func_mmap_fixed_mapped=no
  2142. fi
  2143. rm -fr conftest*
  2144. fi
  2145. fi
  2146. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  2147. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  2148. cat >> confdefs.h <<\EOF
  2149. #define HAVE_MMAP 1
  2150. EOF
  2151. fi
  2152. # Checks for header files
  2153. ac_header_dirent=no
  2154. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2155. do
  2156. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2157. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  2158. echo "configure:2392: checking for $ac_hdr that defines DIR" >&5
  2159. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2160. echo $ac_n "(cached) $ac_c" 1>&6
  2161. else
  2162. cat > conftest.$ac_ext <<EOF
  2163. #line 2397 "configure"
  2164. #include "confdefs.h"
  2165. #include <sys/types.h>
  2166. #include <$ac_hdr>
  2167. int main() {
  2168. DIR *dirp = 0;
  2169. ; return 0; }
  2170. EOF
  2171. if { (eval echo configure:2405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2172. rm -rf conftest*
  2173. eval "ac_cv_header_dirent_$ac_safe=yes"
  2174. else
  2175. echo "configure: failed program was:" >&5
  2176. cat conftest.$ac_ext >&5
  2177. rm -rf conftest*
  2178. eval "ac_cv_header_dirent_$ac_safe=no"
  2179. fi
  2180. rm -f conftest*
  2181. fi
  2182. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2183. echo "$ac_t""yes" 1>&6
  2184. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2185. cat >> confdefs.h <<EOF
  2186. #define $ac_tr_hdr 1
  2187. EOF
  2188. ac_header_dirent=$ac_hdr; break
  2189. else
  2190. echo "$ac_t""no" 1>&6
  2191. fi
  2192. done
  2193. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2194. if test $ac_header_dirent = dirent.h; then
  2195. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  2196. echo "configure:2430: checking for opendir in -ldir" >&5
  2197. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  2198. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2199. echo $ac_n "(cached) $ac_c" 1>&6
  2200. else
  2201. ac_save_LIBS="$LIBS"
  2202. LIBS="-ldir $LIBS"
  2203. cat > conftest.$ac_ext <<EOF
  2204. #line 2438 "configure"
  2205. #include "confdefs.h"
  2206. /* Override any gcc2 internal prototype to avoid an error. */
  2207. /* We use char because int might match the return type of a gcc2
  2208. builtin and then its argument prototype would still apply. */
  2209. char opendir();
  2210. int main() {
  2211. opendir()
  2212. ; return 0; }
  2213. EOF
  2214. if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2215. rm -rf conftest*
  2216. eval "ac_cv_lib_$ac_lib_var=yes"
  2217. else
  2218. echo "configure: failed program was:" >&5
  2219. cat conftest.$ac_ext >&5
  2220. rm -rf conftest*
  2221. eval "ac_cv_lib_$ac_lib_var=no"
  2222. fi
  2223. rm -f conftest*
  2224. LIBS="$ac_save_LIBS"
  2225. fi
  2226. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2227. echo "$ac_t""yes" 1>&6
  2228. LIBS="$LIBS -ldir"
  2229. else
  2230. echo "$ac_t""no" 1>&6
  2231. fi
  2232. else
  2233. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  2234. echo "configure:2471: checking for opendir in -lx" >&5
  2235. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  2236. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2237. echo $ac_n "(cached) $ac_c" 1>&6
  2238. else
  2239. ac_save_LIBS="$LIBS"
  2240. LIBS="-lx $LIBS"
  2241. cat > conftest.$ac_ext <<EOF
  2242. #line 2479 "configure"
  2243. #include "confdefs.h"
  2244. /* Override any gcc2 internal prototype to avoid an error. */
  2245. /* We use char because int might match the return type of a gcc2
  2246. builtin and then its argument prototype would still apply. */
  2247. char opendir();
  2248. int main() {
  2249. opendir()
  2250. ; return 0; }
  2251. EOF
  2252. if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2253. rm -rf conftest*
  2254. eval "ac_cv_lib_$ac_lib_var=yes"
  2255. else
  2256. echo "configure: failed program was:" >&5
  2257. cat conftest.$ac_ext >&5
  2258. rm -rf conftest*
  2259. eval "ac_cv_lib_$ac_lib_var=no"
  2260. fi
  2261. rm -f conftest*
  2262. LIBS="$ac_save_LIBS"
  2263. fi
  2264. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2265. echo "$ac_t""yes" 1>&6
  2266. LIBS="$LIBS -lx"
  2267. else
  2268. echo "$ac_t""no" 1>&6
  2269. fi
  2270. fi
  2271. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2272. echo "configure:2513: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2273. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2274. echo $ac_n "(cached) $ac_c" 1>&6
  2275. else
  2276. cat > conftest.$ac_ext <<EOF
  2277. #line 2518 "configure"
  2278. #include "confdefs.h"
  2279. #include <sys/types.h>
  2280. #include <sys/wait.h>
  2281. #ifndef WEXITSTATUS
  2282. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2283. #endif
  2284. #ifndef WIFEXITED
  2285. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2286. #endif
  2287. int main() {
  2288. int s;
  2289. wait (&s);
  2290. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2291. ; return 0; }
  2292. EOF
  2293. if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2294. rm -rf conftest*
  2295. ac_cv_header_sys_wait_h=yes
  2296. else
  2297. echo "configure: failed program was:" >&5
  2298. cat conftest.$ac_ext >&5
  2299. rm -rf conftest*
  2300. ac_cv_header_sys_wait_h=no
  2301. fi
  2302. rm -f conftest*
  2303. fi
  2304. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2305. if test $ac_cv_header_sys_wait_h = yes; then
  2306. cat >> confdefs.h <<\EOF
  2307. #define HAVE_SYS_WAIT_H 1
  2308. EOF
  2309. fi
  2310. for ac_hdr in sys/time.h
  2311. do
  2312. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2313. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2314. echo "configure:2558: checking for $ac_hdr" >&5
  2315. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2316. echo $ac_n "(cached) $ac_c" 1>&6
  2317. else
  2318. cat > conftest.$ac_ext <<EOF
  2319. #line 2563 "configure"
  2320. #include "confdefs.h"
  2321. #include <$ac_hdr>
  2322. EOF
  2323. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2324. { (eval echo configure:2568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2325. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2326. if test -z "$ac_err"; then
  2327. rm -rf conftest*
  2328. eval "ac_cv_header_$ac_safe=yes"
  2329. else
  2330. echo "$ac_err" >&5
  2331. echo "configure: failed program was:" >&5
  2332. cat conftest.$ac_ext >&5
  2333. rm -rf conftest*
  2334. eval "ac_cv_header_$ac_safe=no"
  2335. fi
  2336. rm -f conftest*
  2337. fi
  2338. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2339. echo "$ac_t""yes" 1>&6
  2340. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2341. cat >> confdefs.h <<EOF
  2342. #define $ac_tr_hdr 1
  2343. EOF
  2344. else
  2345. echo "$ac_t""no" 1>&6
  2346. fi
  2347. done
  2348. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2349. echo "configure:2595: checking whether time.h and sys/time.h may both be included" >&5
  2350. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2351. echo $ac_n "(cached) $ac_c" 1>&6
  2352. else
  2353. cat > conftest.$ac_ext <<EOF
  2354. #line 2600 "configure"
  2355. #include "confdefs.h"
  2356. #include <sys/types.h>
  2357. #include <sys/time.h>
  2358. #include <time.h>
  2359. int main() {
  2360. struct tm *tp;
  2361. ; return 0; }
  2362. EOF
  2363. if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2364. rm -rf conftest*
  2365. ac_cv_header_time=yes
  2366. else
  2367. echo "configure: failed program was:" >&5
  2368. cat conftest.$ac_ext >&5
  2369. rm -rf conftest*
  2370. ac_cv_header_time=no
  2371. fi
  2372. rm -f conftest*
  2373. fi
  2374. echo "$ac_t""$ac_cv_header_time" 1>&6
  2375. if test $ac_cv_header_time = yes; then
  2376. cat >> confdefs.h <<\EOF
  2377. #define TIME_WITH_SYS_TIME 1
  2378. EOF
  2379. fi
  2380. for ac_hdr in zlib.h
  2381. do
  2382. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2383. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2384. echo "configure:2633: checking for $ac_hdr" >&5
  2385. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2386. echo $ac_n "(cached) $ac_c" 1>&6
  2387. else
  2388. cat > conftest.$ac_ext <<EOF
  2389. #line 2638 "configure"
  2390. #include "confdefs.h"
  2391. #include <$ac_hdr>
  2392. EOF
  2393. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2394. { (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2395. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2396. if test -z "$ac_err"; then
  2397. rm -rf conftest*
  2398. eval "ac_cv_header_$ac_safe=yes"
  2399. else
  2400. echo "$ac_err" >&5
  2401. echo "configure: failed program was:" >&5
  2402. cat conftest.$ac_ext >&5
  2403. rm -rf conftest*
  2404. eval "ac_cv_header_$ac_safe=no"
  2405. fi
  2406. rm -f conftest*
  2407. fi
  2408. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2409. echo "$ac_t""yes" 1>&6
  2410. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2411. cat >> confdefs.h <<EOF
  2412. #define $ac_tr_hdr 1
  2413. EOF
  2414. else
  2415. echo "$ac_t""no" 1>&6
  2416. fi
  2417. done
  2418. if test "x${ZLIB}" = x; then
  2419. cat >&2 <<EOF
  2420. configure: error:
  2421. Your system does not provide a working zlib compression library.
  2422. It is required.
  2423. EOF
  2424. exit 1
  2425. else
  2426. if test "${ac_cv_header_zlib_h}" != yes; then
  2427. cat >&2 <<EOF
  2428. configure: error:
  2429. Your system does not provide the necessary zlib header file.
  2430. It is required.
  2431. EOF
  2432. exit 1
  2433. fi
  2434. fi
  2435. for ac_hdr in openssl/ssl.h openssl/crypto.h
  2436. do
  2437. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2438. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2439. echo "configure:2695: checking for $ac_hdr" >&5
  2440. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2441. echo $ac_n "(cached) $ac_c" 1>&6
  2442. else
  2443. cat > conftest.$ac_ext <<EOF
  2444. #line 2700 "configure"
  2445. #include "confdefs.h"
  2446. #include <$ac_hdr>
  2447. EOF
  2448. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2449. { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2450. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2451. if test -z "$ac_err"; then
  2452. rm -rf conftest*
  2453. eval "ac_cv_header_$ac_safe=yes"
  2454. else
  2455. echo "$ac_err" >&5
  2456. echo "configure: failed program was:" >&5
  2457. cat conftest.$ac_ext >&5
  2458. rm -rf conftest*
  2459. eval "ac_cv_header_$ac_safe=no"
  2460. fi
  2461. rm -f conftest*
  2462. fi
  2463. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2464. echo "$ac_t""yes" 1>&6
  2465. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2466. cat >> confdefs.h <<EOF
  2467. #define $ac_tr_hdr 1
  2468. EOF
  2469. else
  2470. echo "$ac_t""no" 1>&6
  2471. fi
  2472. done
  2473. if test "x${SSL}" = x; then
  2474. cat >&2 <<EOF
  2475. configure: error:
  2476. Your system does not provide a working ssl library.
  2477. It is required. Download openssl at www.openssl.org
  2478. EOF
  2479. exit 1
  2480. else
  2481. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  2482. cat >&2 <<EOF
  2483. configure: error:
  2484. Your system does not provide the necessary ssl header file.
  2485. It is required. Download openssl at www.openssl.org
  2486. EOF
  2487. exit 1
  2488. fi
  2489. fi
  2490. for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h
  2491. do
  2492. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2493. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2494. echo "configure:2758: checking for $ac_hdr" >&5
  2495. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2496. echo $ac_n "(cached) $ac_c" 1>&6
  2497. else
  2498. cat > conftest.$ac_ext <<EOF
  2499. #line 2763 "configure"
  2500. #include "confdefs.h"
  2501. #include <$ac_hdr>
  2502. EOF
  2503. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2504. { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2505. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2506. if test -z "$ac_err"; then
  2507. rm -rf conftest*
  2508. eval "ac_cv_header_$ac_safe=yes"
  2509. else
  2510. echo "$ac_err" >&5
  2511. echo "configure: failed program was:" >&5
  2512. cat conftest.$ac_ext >&5
  2513. rm -rf conftest*
  2514. eval "ac_cv_header_$ac_safe=no"
  2515. fi
  2516. rm -f conftest*
  2517. fi
  2518. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2519. echo "$ac_t""yes" 1>&6
  2520. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2521. cat >> confdefs.h <<EOF
  2522. #define $ac_tr_hdr 1
  2523. EOF
  2524. else
  2525. echo "$ac_t""no" 1>&6
  2526. fi
  2527. done
  2528. # Checks for typedefs, structures, and compiler characteristics
  2529. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2530. echo "configure:2798: checking for ANSI C header files" >&5
  2531. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2532. echo $ac_n "(cached) $ac_c" 1>&6
  2533. else
  2534. cat > conftest.$ac_ext <<EOF
  2535. #line 2803 "configure"
  2536. #include "confdefs.h"
  2537. #include <stdlib.h>
  2538. #include <stdarg.h>
  2539. #include <string.h>
  2540. #include <float.h>
  2541. EOF
  2542. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2543. { (eval echo configure:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2544. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2545. if test -z "$ac_err"; then
  2546. rm -rf conftest*
  2547. ac_cv_header_stdc=yes
  2548. else
  2549. echo "$ac_err" >&5
  2550. echo "configure: failed program was:" >&5
  2551. cat conftest.$ac_ext >&5
  2552. rm -rf conftest*
  2553. ac_cv_header_stdc=no
  2554. fi
  2555. rm -f conftest*
  2556. if test $ac_cv_header_stdc = yes; then
  2557. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2558. cat > conftest.$ac_ext <<EOF
  2559. #line 2828 "configure"
  2560. #include "confdefs.h"
  2561. #include <string.h>
  2562. EOF
  2563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2564. egrep "memchr" >/dev/null 2>&1; then
  2565. :
  2566. else
  2567. rm -rf conftest*
  2568. ac_cv_header_stdc=no
  2569. fi
  2570. rm -f conftest*
  2571. fi
  2572. if test $ac_cv_header_stdc = yes; then
  2573. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2574. cat > conftest.$ac_ext <<EOF
  2575. #line 2846 "configure"
  2576. #include "confdefs.h"
  2577. #include <stdlib.h>
  2578. EOF
  2579. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2580. egrep "free" >/dev/null 2>&1; then
  2581. :
  2582. else
  2583. rm -rf conftest*
  2584. ac_cv_header_stdc=no
  2585. fi
  2586. rm -f conftest*
  2587. fi
  2588. if test $ac_cv_header_stdc = yes; then
  2589. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2590. if test "$cross_compiling" = yes; then
  2591. :
  2592. else
  2593. cat > conftest.$ac_ext <<EOF
  2594. #line 2867 "configure"
  2595. #include "confdefs.h"
  2596. #include <ctype.h>
  2597. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2598. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2599. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2600. int main () { int i; for (i = 0; i < 256; i++)
  2601. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2602. exit (0); }
  2603. EOF
  2604. if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2605. then
  2606. :
  2607. else
  2608. echo "configure: failed program was:" >&5
  2609. cat conftest.$ac_ext >&5
  2610. rm -fr conftest*
  2611. ac_cv_header_stdc=no
  2612. fi
  2613. rm -fr conftest*
  2614. fi
  2615. fi
  2616. fi
  2617. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2618. if test $ac_cv_header_stdc = yes; then
  2619. cat >> confdefs.h <<\EOF
  2620. #define STDC_HEADERS 1
  2621. EOF
  2622. fi
  2623. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2624. echo "configure:2902: checking for pid_t" >&5
  2625. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2626. echo $ac_n "(cached) $ac_c" 1>&6
  2627. else
  2628. cat > conftest.$ac_ext <<EOF
  2629. #line 2907 "configure"
  2630. #include "confdefs.h"
  2631. #include <sys/types.h>
  2632. #if STDC_HEADERS
  2633. #include <stdlib.h>
  2634. #include <stddef.h>
  2635. #endif
  2636. EOF
  2637. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2638. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2639. rm -rf conftest*
  2640. ac_cv_type_pid_t=yes
  2641. else
  2642. rm -rf conftest*
  2643. ac_cv_type_pid_t=no
  2644. fi
  2645. rm -f conftest*
  2646. fi
  2647. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2648. if test $ac_cv_type_pid_t = no; then
  2649. cat >> confdefs.h <<\EOF
  2650. #define pid_t int
  2651. EOF
  2652. fi
  2653. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2654. echo "configure:2935: checking for size_t" >&5
  2655. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2656. echo $ac_n "(cached) $ac_c" 1>&6
  2657. else
  2658. cat > conftest.$ac_ext <<EOF
  2659. #line 2940 "configure"
  2660. #include "confdefs.h"
  2661. #include <sys/types.h>
  2662. #if STDC_HEADERS
  2663. #include <stdlib.h>
  2664. #include <stddef.h>
  2665. #endif
  2666. EOF
  2667. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2668. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2669. rm -rf conftest*
  2670. ac_cv_type_size_t=yes
  2671. else
  2672. rm -rf conftest*
  2673. ac_cv_type_size_t=no
  2674. fi
  2675. rm -f conftest*
  2676. fi
  2677. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2678. if test $ac_cv_type_size_t = no; then
  2679. cat >> confdefs.h <<\EOF
  2680. #define size_t unsigned
  2681. EOF
  2682. fi
  2683. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2684. echo "configure:2968: checking for working const" >&5
  2685. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2686. echo $ac_n "(cached) $ac_c" 1>&6
  2687. else
  2688. cat > conftest.$ac_ext <<EOF
  2689. #line 2973 "configure"
  2690. #include "confdefs.h"
  2691. int main() {
  2692. /* Ultrix mips cc rejects this. */
  2693. typedef int charset[2]; const charset x;
  2694. /* SunOS 4.1.1 cc rejects this. */
  2695. char const *const *ccp;
  2696. char **p;
  2697. /* NEC SVR4.0.2 mips cc rejects this. */
  2698. struct point {int x, y;};
  2699. static struct point const zero = {0,0};
  2700. /* AIX XL C 1.02.0.0 rejects this.
  2701. It does not let you subtract one const X* pointer from another in an arm
  2702. of an if-expression whose if-part is not a constant expression */
  2703. const char *g = "string";
  2704. ccp = &g + (g ? g-g : 0);
  2705. /* HPUX 7.0 cc rejects these. */
  2706. ++ccp;
  2707. p = (char**) ccp;
  2708. ccp = (char const *const *) p;
  2709. { /* SCO 3.2v4 cc rejects this. */
  2710. char *t;
  2711. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2712. *t++ = 0;
  2713. }
  2714. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2715. int x[] = {25, 17};
  2716. const int *foo = &x[0];
  2717. ++foo;
  2718. }
  2719. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2720. typedef const int *iptr;
  2721. iptr p = 0;
  2722. ++p;
  2723. }
  2724. { /* AIX XL C 1.02.0.0 rejects this saying
  2725. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2726. struct s { int j; const int *ap[3]; };
  2727. struct s *b; b->j = 5;
  2728. }
  2729. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2730. const int foo = 10;
  2731. }
  2732. ; return 0; }
  2733. EOF
  2734. if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2735. rm -rf conftest*
  2736. ac_cv_c_const=yes
  2737. else
  2738. echo "configure: failed program was:" >&5
  2739. cat conftest.$ac_ext >&5
  2740. rm -rf conftest*
  2741. ac_cv_c_const=no
  2742. fi
  2743. rm -f conftest*
  2744. fi
  2745. echo "$ac_t""$ac_cv_c_const" 1>&6
  2746. if test $ac_cv_c_const = no; then
  2747. cat >> confdefs.h <<\EOF
  2748. #define const
  2749. EOF
  2750. fi
  2751. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2752. echo "configure:3043: checking whether byte ordering is bigendian" >&5
  2753. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2754. echo $ac_n "(cached) $ac_c" 1>&6
  2755. else
  2756. ac_cv_c_bigendian=unknown
  2757. # See if sys/param.h defines the BYTE_ORDER macro.
  2758. cat > conftest.$ac_ext <<EOF
  2759. #line 3050 "configure"
  2760. #include "confdefs.h"
  2761. #include <sys/types.h>
  2762. #include <sys/param.h>
  2763. int main() {
  2764. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2765. bogus endian macros
  2766. #endif
  2767. ; return 0; }
  2768. EOF
  2769. if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2770. rm -rf conftest*
  2771. # It does; now see whether it defined to BIG_ENDIAN or not.
  2772. cat > conftest.$ac_ext <<EOF
  2773. #line 3065 "configure"
  2774. #include "confdefs.h"
  2775. #include <sys/types.h>
  2776. #include <sys/param.h>
  2777. int main() {
  2778. #if BYTE_ORDER != BIG_ENDIAN
  2779. not big endian
  2780. #endif
  2781. ; return 0; }
  2782. EOF
  2783. if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2784. rm -rf conftest*
  2785. ac_cv_c_bigendian=yes
  2786. else
  2787. echo "configure: failed program was:" >&5
  2788. cat conftest.$ac_ext >&5
  2789. rm -rf conftest*
  2790. ac_cv_c_bigendian=no
  2791. fi
  2792. rm -f conftest*
  2793. else
  2794. echo "configure: failed program was:" >&5
  2795. cat conftest.$ac_ext >&5
  2796. fi
  2797. rm -f conftest*
  2798. if test $ac_cv_c_bigendian = unknown; then
  2799. if test "$cross_compiling" = yes; then
  2800. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2801. else
  2802. cat > conftest.$ac_ext <<EOF
  2803. #line 3096 "configure"
  2804. #include "confdefs.h"
  2805. main () {
  2806. /* Are we little or big endian? From Harbison&Steele. */
  2807. union
  2808. {
  2809. long l;
  2810. char c[sizeof (long)];
  2811. } u;
  2812. u.l = 1;
  2813. exit (u.c[sizeof (long) - 1] == 1);
  2814. }
  2815. EOF
  2816. if { (eval echo configure:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2817. then
  2818. ac_cv_c_bigendian=no
  2819. else
  2820. echo "configure: failed program was:" >&5
  2821. cat conftest.$ac_ext >&5
  2822. rm -fr conftest*
  2823. ac_cv_c_bigendian=yes
  2824. fi
  2825. rm -fr conftest*
  2826. fi
  2827. fi
  2828. fi
  2829. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2830. if test $ac_cv_c_bigendian = yes; then
  2831. cat >> confdefs.h <<\EOF
  2832. #define WORDS_BIGENDIAN 1
  2833. EOF
  2834. fi
  2835. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2836. echo "configure:3133: checking for inline" >&5
  2837. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2838. echo $ac_n "(cached) $ac_c" 1>&6
  2839. else
  2840. ac_cv_c_inline=no
  2841. for ac_kw in inline __inline__ __inline; do
  2842. cat > conftest.$ac_ext <<EOF
  2843. #line 3140 "configure"
  2844. #include "confdefs.h"
  2845. int main() {
  2846. } $ac_kw foo() {
  2847. ; return 0; }
  2848. EOF
  2849. if { (eval echo configure:3147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2850. rm -rf conftest*
  2851. ac_cv_c_inline=$ac_kw; break
  2852. else
  2853. echo "configure: failed program was:" >&5
  2854. cat conftest.$ac_ext >&5
  2855. fi
  2856. rm -f conftest*
  2857. done
  2858. fi
  2859. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2860. case "$ac_cv_c_inline" in
  2861. inline | yes) ;;
  2862. no) cat >> confdefs.h <<\EOF
  2863. #define inline
  2864. EOF
  2865. ;;
  2866. *) cat >> confdefs.h <<EOF
  2867. #define inline $ac_cv_c_inline
  2868. EOF
  2869. ;;
  2870. esac
  2871. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2872. echo "configure:3173: checking size of long" >&5
  2873. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2874. echo $ac_n "(cached) $ac_c" 1>&6
  2875. else
  2876. if test "$cross_compiling" = yes; then
  2877. ac_cv_sizeof_long=0
  2878. else
  2879. cat > conftest.$ac_ext <<EOF
  2880. #line 3181 "configure"
  2881. #include "confdefs.h"
  2882. #include <stdio.h>
  2883. #include <sys/types.h>
  2884. main()
  2885. {
  2886. FILE *f=fopen("conftestval", "w");
  2887. if (!f) exit(1);
  2888. fprintf(f, "%d\n", sizeof(long));
  2889. exit(0);
  2890. }
  2891. EOF
  2892. if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2893. then
  2894. ac_cv_sizeof_long=`cat conftestval`
  2895. else
  2896. echo "configure: failed program was:" >&5
  2897. cat conftest.$ac_ext >&5
  2898. rm -fr conftest*
  2899. ac_cv_sizeof_long=0
  2900. fi
  2901. rm -fr conftest*
  2902. fi
  2903. fi
  2904. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2905. cat >> confdefs.h <<EOF
  2906. #define SIZEOF_LONG $ac_cv_sizeof_long
  2907. EOF
  2908. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2909. echo "configure:3213: checking size of int" >&5
  2910. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2911. echo $ac_n "(cached) $ac_c" 1>&6
  2912. else
  2913. if test "$cross_compiling" = yes; then
  2914. ac_cv_sizeof_int=0
  2915. else
  2916. cat > conftest.$ac_ext <<EOF
  2917. #line 3221 "configure"
  2918. #include "confdefs.h"
  2919. #include <stdio.h>
  2920. #include <sys/types.h>
  2921. main()
  2922. {
  2923. FILE *f=fopen("conftestval", "w");
  2924. if (!f) exit(1);
  2925. fprintf(f, "%d\n", sizeof(int));
  2926. exit(0);
  2927. }
  2928. EOF
  2929. if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2930. then
  2931. ac_cv_sizeof_int=`cat conftestval`
  2932. else
  2933. echo "configure: failed program was:" >&5
  2934. cat conftest.$ac_ext >&5
  2935. rm -fr conftest*
  2936. ac_cv_sizeof_int=0
  2937. fi
  2938. rm -fr conftest*
  2939. fi
  2940. fi
  2941. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2942. cat >> confdefs.h <<EOF
  2943. #define SIZEOF_INT $ac_cv_sizeof_int
  2944. EOF
  2945. # Check for IPv6 support
  2946. #EGG_IPV6_SUPPORTED
  2947. echo $ac_n "checking whether or not you disabled IPv6 support""... $ac_c" 1>&6
  2948. echo "configure:3257: checking whether or not you disabled IPv6 support" >&5
  2949. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  2950. if test "${enable_ipv6+set}" = set; then
  2951. enableval="$enable_ipv6"
  2952. ac_cv_dipv6="yes"
  2953. echo "$ac_t""yes" 1>&6
  2954. else
  2955. ac_cv_dipv6="no"
  2956. if test "$egg_cv_ipv6_supported" = "no"; then
  2957. ac_cv_dipv6="no"
  2958. fi
  2959. echo "$ac_t""$ac_cv_dipv6" 1>&6
  2960. fi
  2961. if test "$ac_cv_dipv6" = "no"; then
  2962. cat >> confdefs.h <<\EOF
  2963. #define HAVE_IPV6 1
  2964. EOF
  2965. fi
  2966. echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  2967. echo "configure:3281: checking for socklen_t" >&5
  2968. if eval "test \"`echo '$''{'egg_cv_socklen_t'+set}'`\" = set"; then
  2969. echo $ac_n "(cached) $ac_c" 1>&6
  2970. else
  2971. if test "$cross_compiling" = yes; then
  2972. egg_cv_socklen_t=no
  2973. else
  2974. cat > conftest.$ac_ext <<EOF
  2975. #line 3290 "configure"
  2976. #include "confdefs.h"
  2977. #include <unistd.h>
  2978. #include <sys/types.h>
  2979. #include <sys/socket.h>
  2980. #include <netinet/in.h>
  2981. #include <arpa/inet.h>
  2982. int main()
  2983. {
  2984. socklen_t test = sizeof(int);
  2985. return 0;
  2986. }
  2987. EOF
  2988. if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2989. then
  2990. egg_cv_socklen_t=yes
  2991. else
  2992. echo "configure: failed program was:" >&5
  2993. cat conftest.$ac_ext >&5
  2994. rm -fr conftest*
  2995. egg_cv_socklen_t=no
  2996. fi
  2997. rm -fr conftest*
  2998. fi
  2999. fi
  3000. if test "$egg_cv_socklen_t" = "yes"; then
  3001. cat >> confdefs.h <<\EOF
  3002. #define HAVE_SOCKLEN_T 1
  3003. EOF
  3004. echo "$ac_t""yes" 1>&6
  3005. else
  3006. echo "$ac_t""no" 1>&6
  3007. fi
  3008. # Checks for library functions
  3009. for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom
  3010. do
  3011. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3012. echo "configure:3336: checking for $ac_func" >&5
  3013. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3014. echo $ac_n "(cached) $ac_c" 1>&6
  3015. else
  3016. cat > conftest.$ac_ext <<EOF
  3017. #line 3341 "configure"
  3018. #include "confdefs.h"
  3019. /* System header to define __stub macros and hopefully few prototypes,
  3020. which can conflict with char $ac_func(); below. */
  3021. #include <assert.h>
  3022. /* Override any gcc2 internal prototype to avoid an error. */
  3023. /* We use char because int might match the return type of a gcc2
  3024. builtin and then its argument prototype would still apply. */
  3025. char $ac_func();
  3026. int main() {
  3027. /* The GNU C library defines this for functions which it implements
  3028. to always fail with ENOSYS. Some functions are actually named
  3029. something starting with __ and the normal name is an alias. */
  3030. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3031. choke me
  3032. #else
  3033. $ac_func();
  3034. #endif
  3035. ; return 0; }
  3036. EOF
  3037. if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3038. rm -rf conftest*
  3039. eval "ac_cv_func_$ac_func=yes"
  3040. else
  3041. echo "configure: failed program was:" >&5
  3042. cat conftest.$ac_ext >&5
  3043. rm -rf conftest*
  3044. eval "ac_cv_func_$ac_func=no"
  3045. fi
  3046. rm -f conftest*
  3047. fi
  3048. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3049. echo "$ac_t""yes" 1>&6
  3050. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3051. cat >> confdefs.h <<EOF
  3052. #define $ac_tr_func 1
  3053. EOF
  3054. else
  3055. echo "$ac_t""no" 1>&6
  3056. fi
  3057. done
  3058. for ac_func in dlopen dprintf snprintf vsnprintf isascii inet_aton inet_ntop memcpy strftime fsync gethostbyname2 getipnodebyname
  3059. do
  3060. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3061. echo "configure:3391: checking for $ac_func" >&5
  3062. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3063. echo $ac_n "(cached) $ac_c" 1>&6
  3064. else
  3065. cat > conftest.$ac_ext <<EOF
  3066. #line 3396 "configure"
  3067. #include "confdefs.h"
  3068. /* System header to define __stub macros and hopefully few prototypes,
  3069. which can conflict with char $ac_func(); below. */
  3070. #include <assert.h>
  3071. /* Override any gcc2 internal prototype to avoid an error. */
  3072. /* We use char because int might match the return type of a gcc2
  3073. builtin and then its argument prototype would still apply. */
  3074. char $ac_func();
  3075. int main() {
  3076. /* The GNU C library defines this for functions which it implements
  3077. to always fail with ENOSYS. Some functions are actually named
  3078. something starting with __ and the normal name is an alias. */
  3079. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3080. choke me
  3081. #else
  3082. $ac_func();
  3083. #endif
  3084. ; return 0; }
  3085. EOF
  3086. if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3087. rm -rf conftest*
  3088. eval "ac_cv_func_$ac_func=yes"
  3089. else
  3090. echo "configure: failed program was:" >&5
  3091. cat conftest.$ac_ext >&5
  3092. rm -rf conftest*
  3093. eval "ac_cv_func_$ac_func=no"
  3094. fi
  3095. rm -f conftest*
  3096. fi
  3097. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3098. echo "$ac_t""yes" 1>&6
  3099. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3100. cat >> confdefs.h <<EOF
  3101. #define $ac_tr_func 1
  3102. EOF
  3103. else
  3104. echo "$ac_t""no" 1>&6
  3105. fi
  3106. done
  3107. for ac_func in vsprintf
  3108. do
  3109. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3110. echo "configure:3446: checking for $ac_func" >&5
  3111. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3112. echo $ac_n "(cached) $ac_c" 1>&6
  3113. else
  3114. cat > conftest.$ac_ext <<EOF
  3115. #line 3451 "configure"
  3116. #include "confdefs.h"
  3117. /* System header to define __stub macros and hopefully few prototypes,
  3118. which can conflict with char $ac_func(); below. */
  3119. #include <assert.h>
  3120. /* Override any gcc2 internal prototype to avoid an error. */
  3121. /* We use char because int might match the return type of a gcc2
  3122. builtin and then its argument prototype would still apply. */
  3123. char $ac_func();
  3124. int main() {
  3125. /* The GNU C library defines this for functions which it implements
  3126. to always fail with ENOSYS. Some functions are actually named
  3127. something starting with __ and the normal name is an alias. */
  3128. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3129. choke me
  3130. #else
  3131. $ac_func();
  3132. #endif
  3133. ; return 0; }
  3134. EOF
  3135. if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3136. rm -rf conftest*
  3137. eval "ac_cv_func_$ac_func=yes"
  3138. else
  3139. echo "configure: failed program was:" >&5
  3140. cat conftest.$ac_ext >&5
  3141. rm -rf conftest*
  3142. eval "ac_cv_func_$ac_func=no"
  3143. fi
  3144. rm -f conftest*
  3145. fi
  3146. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3147. echo "$ac_t""yes" 1>&6
  3148. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3149. cat >> confdefs.h <<EOF
  3150. #define $ac_tr_func 1
  3151. EOF
  3152. else
  3153. echo "$ac_t""no" 1>&6
  3154. fi
  3155. done
  3156. if test "$ac_cv_func_vsprintf" = "no"
  3157. then
  3158. cat << 'EOF' >&2
  3159. configure: error:
  3160. Your system does not have the sprintf/vsprintf libraries.
  3161. These are required to compile almost anything. Sorry.
  3162. EOF
  3163. exit 1
  3164. fi
  3165. for ac_func in uname
  3166. do
  3167. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3168. echo "configure:3513: checking for $ac_func" >&5
  3169. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3170. echo $ac_n "(cached) $ac_c" 1>&6
  3171. else
  3172. cat > conftest.$ac_ext <<EOF
  3173. #line 3518 "configure"
  3174. #include "confdefs.h"
  3175. /* System header to define __stub macros and hopefully few prototypes,
  3176. which can conflict with char $ac_func(); below. */
  3177. #include <assert.h>
  3178. /* Override any gcc2 internal prototype to avoid an error. */
  3179. /* We use char because int might match the return type of a gcc2
  3180. builtin and then its argument prototype would still apply. */
  3181. char $ac_func();
  3182. int main() {
  3183. /* The GNU C library defines this for functions which it implements
  3184. to always fail with ENOSYS. Some functions are actually named
  3185. something starting with __ and the normal name is an alias. */
  3186. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3187. choke me
  3188. #else
  3189. $ac_func();
  3190. #endif
  3191. ; return 0; }
  3192. EOF
  3193. if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3194. rm -rf conftest*
  3195. eval "ac_cv_func_$ac_func=yes"
  3196. else
  3197. echo "configure: failed program was:" >&5
  3198. cat conftest.$ac_ext >&5
  3199. rm -rf conftest*
  3200. eval "ac_cv_func_$ac_func=no"
  3201. fi
  3202. rm -f conftest*
  3203. fi
  3204. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3205. echo "$ac_t""yes" 1>&6
  3206. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3207. cat >> confdefs.h <<EOF
  3208. #define $ac_tr_func 1
  3209. EOF
  3210. else
  3211. echo "$ac_t""no" 1>&6
  3212. fi
  3213. done
  3214. if test "$ac_cv_func_uname" = "no"
  3215. then
  3216. cat << 'EOF' >&2
  3217. configure: error:
  3218. Your system does not have the uname() function.
  3219. This is required for the botpack.
  3220. EOF
  3221. exit 1
  3222. fi
  3223. # Make sure we have stdc headers, since we can't compile without them
  3224. if test "$ac_cv_header_stdc" = "no"
  3225. then
  3226. cat << 'EOF' >&2
  3227. configure: error:
  3228. Your system must support ANSI C Header files.
  3229. These are required for the language support. Sorry.
  3230. EOF
  3231. exit 1
  3232. fi
  3233. # Make sure we are using the correct result from a broken libsafe sscanf
  3234. echo $ac_n "checking for broken libsafe sscanf""... $ac_c" 1>&6
  3235. echo "configure:3594: checking for broken libsafe sscanf" >&5
  3236. if eval "test \"`echo '$''{'egg_cv_var_libsafe_sscanf'+set}'`\" = set"; then
  3237. echo $ac_n "(cached) $ac_c" 1>&6
  3238. else
  3239. if test "$cross_compiling" = yes; then
  3240. egg_cv_var_libsafe_sscanf="no"
  3241. else
  3242. cat > conftest.$ac_ext <<EOF
  3243. #line 3602 "configure"
  3244. #include "confdefs.h"
  3245. #include <stdio.h>
  3246. int main()
  3247. {
  3248. char *src = "0x001,guppyism\n";
  3249. char dst[10];
  3250. int idx;
  3251. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  3252. exit(1);
  3253. return 0;
  3254. }
  3255. EOF
  3256. if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3257. then
  3258. egg_cv_var_libsafe_sscanf="no"
  3259. else
  3260. echo "configure: failed program was:" >&5
  3261. cat conftest.$ac_ext >&5
  3262. rm -fr conftest*
  3263. egg_cv_var_libsafe_sscanf="yes"
  3264. fi
  3265. rm -fr conftest*
  3266. fi
  3267. fi
  3268. echo "$ac_t""$egg_cv_var_libsafe_sscanf" 1>&6
  3269. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  3270. then
  3271. cat >> confdefs.h <<\EOF
  3272. #define LIBSAFE_HACKS 1
  3273. EOF
  3274. fi
  3275. # Where is Tcl? Is it here?
  3276. # ---------- begin robey's Tcl thingies
  3277. # (well, what used to be robey's Tcl thingies...)
  3278. # Latest tested Tcl version to recommend if Tcl isn't found
  3279. tclrecommendver="8.4"
  3280. # Site recommended to download Tcl from
  3281. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  3282. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  3283. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  3284. tcl8.0 tcl80"
  3285. # Tcl library filename suffixes
  3286. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  3287. # Tcl library search paths
  3288. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  3289. /usr/local/lib /usr/local/pkgs/tcl/lib \
  3290. /usr/lib /lib /usr/i486-linuxaout/lib \
  3291. /beos/system/lib /sys/lib"
  3292. # Tcl header filenames
  3293. tclheadernames="tcl.h"
  3294. # Tcl header search paths
  3295. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  3296. /usr/local/include /usr/local/pkgs/tcl/include \
  3297. /usr/include /beos/system/include /beos/devel/include \
  3298. /sys/include"
  3299. # oohh new configure --variables for those with multiple Tcl libs
  3300. # Check whether --with-tcllib or --without-tcllib was given.
  3301. if test "${with_tcllib+set}" = set; then
  3302. withval="$with_tcllib"
  3303. tcllibname="$withval"
  3304. fi
  3305. # Check whether --with-tclinc or --without-tclinc was given.
  3306. if test "${with_tclinc+set}" = set; then
  3307. withval="$with_tclinc"
  3308. tclincname="$withval"
  3309. fi
  3310. WARN=0
  3311. # Make sure either both or neither $tcllibname and $tclincname are set
  3312. if test ! "${tcllibname-x}" = "x"
  3313. then
  3314. if test "${tclincname-x}" = "x"
  3315. then
  3316. WARN=1
  3317. tcllibname=""
  3318. TCLLIB=""
  3319. TCLINC=""
  3320. fi
  3321. else
  3322. if test ! "${tclincname-x}" = "x"
  3323. then
  3324. WARN=1
  3325. tclincname=""
  3326. TCLLIB=""
  3327. TCLINC=""
  3328. fi
  3329. fi
  3330. if test "$WARN" = 1
  3331. then
  3332. cat << 'EOF' >&2
  3333. configure: warning:
  3334. You must specify both --with-tcllib and --with-tclinc for them to work.
  3335. configure will now attempt to autodetect both the Tcl library and header...
  3336. EOF
  3337. fi
  3338. WARN=0
  3339. # Make sure either both or neither $TCLLIB and $TCLINC are set
  3340. if test ! "${TCLLIB-x}" = "x"
  3341. then
  3342. if test "${TCLINC-x}" = "x"
  3343. then
  3344. WARN=1
  3345. WVAR1=TCLLIB
  3346. WVAR2=TCLINC
  3347. TCLLIB=""
  3348. fi
  3349. else
  3350. if test ! "${TCLINC-x}" = "x"
  3351. then
  3352. WARN=1
  3353. WVAR1=TCLINC
  3354. WVAR2=TCLLIB
  3355. TCLINC=""
  3356. fi
  3357. fi
  3358. if test "$WARN" = 1
  3359. then
  3360. cat << EOF >&2
  3361. configure: warning:
  3362. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  3363. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3364. configure will now attempt to autodetect both the Tcl library and header...
  3365. EOF
  3366. fi
  3367. # Look for Tcl library: if $tcllibname is set, check there first
  3368. if test ! "${tcllibname-x}" = "x"
  3369. then
  3370. if test -f "$tcllibname" && test -r "$tcllibname"
  3371. then
  3372. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  3373. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  3374. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  3375. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  3376. else
  3377. cat << EOF >&2
  3378. configure: warning:
  3379. The file '$tcllibname' given to option --with-tcllib is not valid.
  3380. configure will now attempt to autodetect both the Tcl library and header...
  3381. EOF
  3382. tcllibname=""
  3383. tclincname=""
  3384. TCLLIB=""
  3385. TCLLIBFN=""
  3386. TCLINC=""
  3387. TCLINCFN=""
  3388. fi
  3389. fi
  3390. # Look for Tcl header: if $tclincname is set, check there first
  3391. if test ! "${tclincname-x}" = "x"
  3392. then
  3393. if test -f "$tclincname" && test -r "$tclincname"
  3394. then
  3395. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  3396. TCLINCFN=`$BASENAME $tclincname`
  3397. else
  3398. cat << EOF >&2
  3399. configure: warning:
  3400. The file '$tclincname' given to option --with-tclinc is not valid.
  3401. configure will now attempt to autodetect both the Tcl library and header...
  3402. EOF
  3403. tcllibname=""
  3404. tclincname=""
  3405. TCLLIB=""
  3406. TCLLIBFN=""
  3407. TCLINC=""
  3408. TCLINCFN=""
  3409. fi
  3410. fi
  3411. # Look for Tcl library: if $TCLLIB is set, check there first
  3412. if test "${TCLLIBFN-x}" = "x"
  3413. then
  3414. if test ! "${TCLLIB-x}" = "x"
  3415. then
  3416. if test -d "$TCLLIB"
  3417. then
  3418. for tcllibfns in $tcllibnames
  3419. do
  3420. for tcllibext in $tcllibextensions
  3421. do
  3422. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  3423. then
  3424. TCLLIBFN="$tcllibfns$tcllibext"
  3425. TCLLIBEXT="$tcllibext"
  3426. TCLLIBFNS="$tcllibfns"
  3427. break 2
  3428. fi
  3429. done
  3430. done
  3431. fi
  3432. if test "${TCLLIBFN-x}" = "x"
  3433. then
  3434. cat << 'EOF' >&2
  3435. configure: warning:
  3436. Environment variable TCLLIB was set, but incorrect.
  3437. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3438. configure will now attempt to autodetect both the Tcl library and header...
  3439. EOF
  3440. TCLLIB=""
  3441. TCLLIBFN=""
  3442. TCLINC=""
  3443. TCLINCFN=""
  3444. fi
  3445. fi
  3446. fi
  3447. # Look for Tcl header: if $TCLINC is set, check there first
  3448. if test "${TCLINCFN-x}" = "x"
  3449. then
  3450. if test ! "${TCLINC-x}" = "x"
  3451. then
  3452. if test -d "$TCLINC"
  3453. then
  3454. for tclheaderfn in $tclheadernames
  3455. do
  3456. if test -r "$TCLINC/$tclheaderfn"
  3457. then
  3458. TCLINCFN="$tclheaderfn"
  3459. break
  3460. fi
  3461. done
  3462. fi
  3463. if test "${TCLINCFN-x}" = "x"
  3464. then
  3465. cat << 'EOF' >&2
  3466. configure: warning:
  3467. Environment variable TCLINC was set, but incorrect.
  3468. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3469. configure will now attempt to autodetect both the Tcl library and header...
  3470. EOF
  3471. TCLLIB=""
  3472. TCLLIBFN=""
  3473. TCLINC=""
  3474. TCLINCFN=""
  3475. fi
  3476. fi
  3477. fi
  3478. echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
  3479. echo "configure:3875: checking for Tcl library" >&5
  3480. # Attempt autodetect for $TCLLIBFN if it's not set
  3481. if test ! "${TCLLIBFN-x}" = "x"
  3482. then
  3483. echo "$ac_t""using $TCLLIB/lib$TCLLIBFN" 1>&6
  3484. else
  3485. for tcllibfns in $tcllibnames
  3486. do
  3487. for tcllibext in $tcllibextensions
  3488. do
  3489. for tcllibpath in $tcllibpaths
  3490. do
  3491. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  3492. then
  3493. echo "$ac_t""found $tcllibpath/lib$tcllibfns$tcllibext" 1>&6
  3494. TCLLIB="$tcllibpath"
  3495. TCLLIBFN="$tcllibfns$tcllibext"
  3496. TCLLIBEXT="$tcllibext"
  3497. TCLLIBFNS="$tcllibfns"
  3498. break 3
  3499. fi
  3500. done
  3501. done
  3502. done
  3503. fi
  3504. # Show if $TCLLIBFN wasn't found
  3505. if test "${TCLLIBFN-x}" = "x"
  3506. then
  3507. echo "$ac_t""not found" 1>&6
  3508. fi
  3509. echo $ac_n "checking for Tcl header""... $ac_c" 1>&6
  3510. echo "configure:3909: checking for Tcl header" >&5
  3511. # Attempt autodetect for $TCLINCFN if it's not set
  3512. if test ! "${TCLINCFN-x}" = "x"
  3513. then
  3514. echo "$ac_t""using $TCLINC/$TCLINCFN" 1>&6
  3515. else
  3516. for tclheaderpath in $tclheaderpaths
  3517. do
  3518. for tclheaderfn in $tclheadernames
  3519. do
  3520. if test -r "$tclheaderpath/$tclheaderfn"
  3521. then
  3522. echo "$ac_t""found $tclheaderpath/$tclheaderfn" 1>&6
  3523. TCLINC="$tclheaderpath"
  3524. TCLINCFN="$tclheaderfn"
  3525. break 2
  3526. fi
  3527. done
  3528. done
  3529. # FreeBSD hack ...
  3530. if test "${TCLINCFN-x}" = "x"
  3531. then
  3532. for tcllibfns in $tcllibnames
  3533. do
  3534. for tclheaderpath in $tclheaderpaths
  3535. do
  3536. for tclheaderfn in $tclheadernames
  3537. do
  3538. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  3539. then
  3540. echo "$ac_t""found $tclheaderpath/$tcllibfns/$tclheaderfn" 1>&6
  3541. TCLINC="$tclheaderpath/$tcllibfns"
  3542. TCLINCFN="$tclheaderfn"
  3543. break 3
  3544. fi
  3545. done
  3546. done
  3547. done
  3548. fi
  3549. fi
  3550. # Show if $TCLINCFN wasn't found
  3551. if test "${TCLINCFN-x}" = "x"
  3552. then
  3553. echo "$ac_t""not found" 1>&6
  3554. fi
  3555. echo $ac_n "checking whether the Tcl system has changed""... $ac_c" 1>&6
  3556. echo "configure:3958: checking whether the Tcl system has changed" >&5
  3557. egg_tcl_changed=yes
  3558. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  3559. if test ! "$egg_tcl_id" = ":::"
  3560. then
  3561. egg_tcl_cached=yes
  3562. if eval "test \"`echo '$''{'egg_cv_var_tcl_id'+set}'`\" = set"; then
  3563. echo $ac_n "(cached) $ac_c" 1>&6
  3564. else
  3565. egg_cv_var_tcl_id="$egg_tcl_id"
  3566. egg_tcl_cached=no
  3567. fi
  3568. if test "$egg_tcl_cached" = "yes"
  3569. then
  3570. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  3571. then
  3572. egg_tcl_changed=no
  3573. else
  3574. egg_cv_var_tcl_id="$egg_tcl_id"
  3575. fi
  3576. fi
  3577. fi
  3578. if test "$egg_tcl_changed" = "yes"
  3579. then
  3580. echo "$ac_t""yes" 1>&6
  3581. else
  3582. echo "$ac_t""no" 1>&6
  3583. fi
  3584. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  3585. TCL_FOUND=0
  3586. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  3587. then
  3588. TCL_FOUND=1
  3589. # Check Tcl's version
  3590. if test "$egg_tcl_changed" = "yes"
  3591. then
  3592. unset egg_cv_var_tcl_version
  3593. fi
  3594. echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
  3595. echo "configure:4003: checking for Tcl version" >&5
  3596. if eval "test \"`echo '$''{'egg_cv_var_tcl_version'+set}'`\" = set"; then
  3597. echo $ac_n "(cached) $ac_c" 1>&6
  3598. else
  3599. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  3600. fi
  3601. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  3602. then
  3603. echo "$ac_t""$egg_cv_var_tcl_version" 1>&6
  3604. else
  3605. echo "$ac_t""not found" 1>&6
  3606. TCL_FOUND=0
  3607. fi
  3608. # Check Tcl's patch level (if available)
  3609. if test "$egg_tcl_changed" = "yes"
  3610. then
  3611. unset egg_cv_var_tcl_patch_level
  3612. fi
  3613. echo $ac_n "checking for Tcl patch level""... $ac_c" 1>&6
  3614. echo "configure:4027: checking for Tcl patch level" >&5
  3615. if eval "test \"`echo '$''{'egg_cv_var_tcl_patch_level'+set}'`\" = set"; then
  3616. echo $ac_n "(cached) $ac_c" 1>&6
  3617. else
  3618. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  3619. fi
  3620. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  3621. then
  3622. echo "$ac_t""$egg_cv_var_tcl_patch_level" 1>&6
  3623. else
  3624. egg_cv_var_tcl_patch_level="unknown"
  3625. echo "$ac_t""unknown" 1>&6
  3626. fi
  3627. fi
  3628. # Check if we found Tcl's version
  3629. if test "$TCL_FOUND" = 0
  3630. then
  3631. cat << 'EOF' >&2
  3632. configure: error:
  3633. I can't find Tcl on this system.
  3634. You must set the path for it in pack/conf.h
  3635. EOF
  3636. exit 1
  3637. fi
  3638. # Is this version of Tcl too old for us to use ?
  3639. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  3640. if test "$TCL_VER_PRE80" = "yes"
  3641. then
  3642. cat << EOF >&2
  3643. configure: error:
  3644. Your Tcl version is much too old for Eggdrop to use.
  3645. I suggest you download and compile a more recent version.
  3646. The most reliable current version is $tclrecommendver and
  3647. can be downloaded from $tclrecommendsite
  3648. EOF
  3649. exit 1
  3650. fi
  3651. # Set variables for Tcl library tests
  3652. TCL_TEST_LIB="$TCLLIBFNS"
  3653. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  3654. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3655. then
  3656. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  3657. fi
  3658. if test "$egg_tcl_changed" = "yes"
  3659. then
  3660. unset egg_cv_var_tcl_free
  3661. fi
  3662. # Check for Tcl_Free()
  3663. echo $ac_n "checking for Tcl_Free in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3664. echo "configure:4091: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  3665. ac_lib_var=`echo $TCL_TEST_LIB'_'Tcl_Free | sed 'y%./+-%__p_%'`
  3666. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3667. echo $ac_n "(cached) $ac_c" 1>&6
  3668. else
  3669. ac_save_LIBS="$LIBS"
  3670. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3671. cat > conftest.$ac_ext <<EOF
  3672. #line 4099 "configure"
  3673. #include "confdefs.h"
  3674. /* Override any gcc2 internal prototype to avoid an error. */
  3675. /* We use char because int might match the return type of a gcc2
  3676. builtin and then its argument prototype would still apply. */
  3677. char Tcl_Free();
  3678. int main() {
  3679. Tcl_Free()
  3680. ; return 0; }
  3681. EOF
  3682. if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3683. rm -rf conftest*
  3684. eval "ac_cv_lib_$ac_lib_var=yes"
  3685. else
  3686. echo "configure: failed program was:" >&5
  3687. cat conftest.$ac_ext >&5
  3688. rm -rf conftest*
  3689. eval "ac_cv_lib_$ac_lib_var=no"
  3690. fi
  3691. rm -f conftest*
  3692. LIBS="$ac_save_LIBS"
  3693. fi
  3694. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3695. echo "$ac_t""yes" 1>&6
  3696. egg_cv_var_tcl_free="yes"
  3697. else
  3698. echo "$ac_t""no" 1>&6
  3699. egg_cv_var_tcl_free="no"
  3700. fi
  3701. if test "$egg_cv_var_tcl_free" = "yes"
  3702. then
  3703. cat >> confdefs.h <<\EOF
  3704. #define HAVE_TCL_FREE 1
  3705. EOF
  3706. fi
  3707. if test "$egg_tcl_changed" = "yes"
  3708. then
  3709. unset egg_cv_var_tcl_threaded
  3710. fi
  3711. # Check for TclpFinalizeThreadData()
  3712. echo $ac_n "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3713. echo "configure:4147: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  3714. ac_lib_var=`echo $TCL_TEST_LIB'_'TclpFinalizeThreadData | sed 'y%./+-%__p_%'`
  3715. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3716. echo $ac_n "(cached) $ac_c" 1>&6
  3717. else
  3718. ac_save_LIBS="$LIBS"
  3719. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3720. cat > conftest.$ac_ext <<EOF
  3721. #line 4155 "configure"
  3722. #include "confdefs.h"
  3723. /* Override any gcc2 internal prototype to avoid an error. */
  3724. /* We use char because int might match the return type of a gcc2
  3725. builtin and then its argument prototype would still apply. */
  3726. char TclpFinalizeThreadData();
  3727. int main() {
  3728. TclpFinalizeThreadData()
  3729. ; return 0; }
  3730. EOF
  3731. if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3732. rm -rf conftest*
  3733. eval "ac_cv_lib_$ac_lib_var=yes"
  3734. else
  3735. echo "configure: failed program was:" >&5
  3736. cat conftest.$ac_ext >&5
  3737. rm -rf conftest*
  3738. eval "ac_cv_lib_$ac_lib_var=no"
  3739. fi
  3740. rm -f conftest*
  3741. LIBS="$ac_save_LIBS"
  3742. fi
  3743. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3744. echo "$ac_t""yes" 1>&6
  3745. egg_cv_var_tcl_threaded="yes"
  3746. else
  3747. echo "$ac_t""no" 1>&6
  3748. egg_cv_var_tcl_threaded="no"
  3749. fi
  3750. enable_tcl_threads=no
  3751. if test "$egg_cv_var_tcl_threaded" = "yes"
  3752. then
  3753. if test "$enable_tcl_threads" = "no"
  3754. then
  3755. cat << 'EOF' >&2
  3756. configure: warning:
  3757. You have disabled threads support on a system with a threaded Tcl library.
  3758. Tcl features that rely on scheduled events may not function properly.
  3759. EOF
  3760. fi
  3761. # Add pthread library to $LIBS if we need it
  3762. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3763. then
  3764. LIBS="$ac_cv_lib_pthread $LIBS"
  3765. fi
  3766. fi
  3767. if test "$EGG_CYGWIN" = "yes"
  3768. then
  3769. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3770. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3771. else
  3772. if test ! "$TCLLIBEXT" = ".a"
  3773. then
  3774. cat << 'EOF' >&2
  3775. configure: warning:
  3776. Your Tcl library is not compiled statically.
  3777. You will need to compile Tcl statically to successfully compile wraith.
  3778. EOF
  3779. exit 1
  3780. else
  3781. # Was the --with-tcllib option given ?
  3782. if test ! "${tcllibname-x}" = "x"
  3783. then
  3784. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3785. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  3786. else
  3787. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3788. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3789. fi
  3790. fi
  3791. fi
  3792. # ---------- end of (what used to be) robey's Tcl thingies
  3793. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  3794. then
  3795. if test "$LINUX" = "yes"
  3796. then
  3797. cat << 'EOF' >&2
  3798. configure: warning:
  3799. Since you are on a Linux system, this has a known problem...
  3800. I know a kludge for it,
  3801. EOF
  3802. if test -r "/lib/libdl.so.1"
  3803. then
  3804. cat << 'EOF' >&2
  3805. and you seem to have it, so we'll do that...
  3806. EOF
  3807. cat >> confdefs.h <<\EOF
  3808. #define HAVE_DLOPEN 1
  3809. EOF
  3810. LIBS="/lib/libdl.so.1 $LIBS"
  3811. else
  3812. cat << 'EOF' >&2
  3813. which you DON'T seem to have... doh!
  3814. perhaps you may still have the stuff lying around somewhere
  3815. if you work out where it is, add it to your XLIBS= lines
  3816. and #define HAVE_DLOPEN in config.h
  3817. we'll proceed on anyway, but you probably won't be able
  3818. to 'make eggdrop' but you might be able to make the
  3819. static bot (I'll default your make to this version).
  3820. EOF
  3821. fi
  3822. else
  3823. cat << 'EOF' >&2
  3824. configure: warning:
  3825. You don't seem to have libdl anywhere I can find it, this will
  3826. prevent you from doing dynamic modules, I'll set your default
  3827. make to static linking.
  3828. EOF
  3829. fi
  3830. fi
  3831. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $4}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  3832. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $4}' | sed -e 's/\;//g'`
  3833. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  3834. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  3835. cat >> confdefs.h <<EOF
  3836. #define EGG_VERSION $version_num
  3837. EOF
  3838. case "$srcdir" in
  3839. [\\/]* | ?:[\\/]*)
  3840. MOD_UPDIR=""
  3841. ;;
  3842. *)
  3843. MOD_UPDIR="../"
  3844. ;;
  3845. esac
  3846. trap '' 1 2 15
  3847. cat > confcache <<\EOF
  3848. # This file is a shell script that caches the results of configure
  3849. # tests run on this system so they can be shared between configure
  3850. # scripts and configure runs. It is not useful on other systems.
  3851. # If it contains results you don't want to keep, you may remove or edit it.
  3852. #
  3853. # By default, configure uses ./config.cache as the cache file,
  3854. # creating it if it does not exist already. You can give configure
  3855. # the --cache-file=FILE option to use a different cache file; that is
  3856. # what configure does when it calls configure scripts in
  3857. # subdirectories, so they share the cache.
  3858. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3859. # config.status only pays attention to the cache file if you give it the
  3860. # --recheck option to rerun configure.
  3861. #
  3862. EOF
  3863. # The following way of writing the cache mishandles newlines in values,
  3864. # but we know of no workaround that is simple, portable, and efficient.
  3865. # So, don't put newlines in cache variables' values.
  3866. # Ultrix sh set writes to stderr and can't be redirected directly,
  3867. # and sets the high bit in the cache file unless we assign to the vars.
  3868. (set) 2>&1 |
  3869. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3870. *ac_space=\ *)
  3871. # `set' does not quote correctly, so add quotes (double-quote substitution
  3872. # turns \\\\ into \\, and sed turns \\ into \).
  3873. sed -n \
  3874. -e "s/'/'\\\\''/g" \
  3875. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3876. ;;
  3877. *)
  3878. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3879. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3880. ;;
  3881. esac >> confcache
  3882. if cmp -s $cache_file confcache; then
  3883. :
  3884. else
  3885. if test -w $cache_file; then
  3886. echo "updating cache $cache_file"
  3887. cat confcache > $cache_file
  3888. else
  3889. echo "not updating unwritable cache $cache_file"
  3890. fi
  3891. fi
  3892. rm -f confcache
  3893. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3894. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3895. # Let make expand exec_prefix.
  3896. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3897. # Any assignment to VPATH causes Sun make to only execute
  3898. # the first set of double-colon rules, so remove it if not needed.
  3899. # If there is a colon in the path, we need to keep it.
  3900. if test "x$srcdir" = x.; then
  3901. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  3902. fi
  3903. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3904. DEFS=-DHAVE_CONFIG_H
  3905. # Without the "./", some shells look in PATH for config.status.
  3906. : ${CONFIG_STATUS=./config.status}
  3907. echo creating $CONFIG_STATUS
  3908. rm -f $CONFIG_STATUS
  3909. cat > $CONFIG_STATUS <<EOF
  3910. #! /bin/sh
  3911. # Generated automatically by configure.
  3912. # Run this file to recreate the current configuration.
  3913. # This directory was configured as follows,
  3914. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3915. #
  3916. # $0 $ac_configure_args
  3917. #
  3918. # Compiler output produced by configure, useful for debugging
  3919. # configure, is in ./config.log if it exists.
  3920. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3921. for ac_option
  3922. do
  3923. case "\$ac_option" in
  3924. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3925. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3926. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3927. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3928. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3929. exit 0 ;;
  3930. -help | --help | --hel | --he | --h)
  3931. echo "\$ac_cs_usage"; exit 0 ;;
  3932. *) echo "\$ac_cs_usage"; exit 1 ;;
  3933. esac
  3934. done
  3935. ac_given_srcdir=$srcdir
  3936. trap 'rm -fr `echo "Makefile src/Makefile src/compat/Makefile src/mod/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3937. EOF
  3938. cat >> $CONFIG_STATUS <<EOF
  3939. # Protect against being on the right side of a sed subst in config.status.
  3940. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3941. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3942. $ac_vpsub
  3943. $extrasub
  3944. s%@SHELL@%$SHELL%g
  3945. s%@CFLAGS@%$CFLAGS%g
  3946. s%@CPPFLAGS@%$CPPFLAGS%g
  3947. s%@CXXFLAGS@%$CXXFLAGS%g
  3948. s%@FFLAGS@%$FFLAGS%g
  3949. s%@DEFS@%$DEFS%g
  3950. s%@LDFLAGS@%$LDFLAGS%g
  3951. s%@LIBS@%$LIBS%g
  3952. s%@exec_prefix@%$exec_prefix%g
  3953. s%@prefix@%$prefix%g
  3954. s%@program_transform_name@%$program_transform_name%g
  3955. s%@bindir@%$bindir%g
  3956. s%@sbindir@%$sbindir%g
  3957. s%@libexecdir@%$libexecdir%g
  3958. s%@datadir@%$datadir%g
  3959. s%@sysconfdir@%$sysconfdir%g
  3960. s%@sharedstatedir@%$sharedstatedir%g
  3961. s%@localstatedir@%$localstatedir%g
  3962. s%@libdir@%$libdir%g
  3963. s%@includedir@%$includedir%g
  3964. s%@oldincludedir@%$oldincludedir%g
  3965. s%@infodir@%$infodir%g
  3966. s%@mandir@%$mandir%g
  3967. s%@egg_ac_parameters@%$egg_ac_parameters%g
  3968. s%@CC@%$CC%g
  3969. s%@CPP@%$CPP%g
  3970. s%@SET_MAKE@%$SET_MAKE%g
  3971. s%@STRIP@%$STRIP%g
  3972. s%@AWK@%$AWK%g
  3973. s%@BASENAME@%$BASENAME%g
  3974. s%@UNAME@%$UNAME%g
  3975. s%@ZLIB@%$ZLIB%g
  3976. s%@SSL@%$SSL%g
  3977. s%@TCLLIB@%$TCLLIB%g
  3978. s%@TCLLIBFN@%$TCLLIBFN%g
  3979. s%@TCLINC@%$TCLINC%g
  3980. s%@TCLINCFN@%$TCLINCFN%g
  3981. s%@TCL_REQS@%$TCL_REQS%g
  3982. s%@TCL_LIBS@%$TCL_LIBS%g
  3983. s%@VERSION@%$VERSION%g
  3984. s%@NUMVER@%$NUMVER%g
  3985. s%@PACKNAME@%$PACKNAME%g
  3986. s%@MOD_UPDIR@%$MOD_UPDIR%g
  3987. CEOF
  3988. EOF
  3989. cat >> $CONFIG_STATUS <<\EOF
  3990. # Split the substitutions into bite-sized pieces for seds with
  3991. # small command number limits, like on Digital OSF/1 and HP-UX.
  3992. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3993. ac_file=1 # Number of current file.
  3994. ac_beg=1 # First line for current file.
  3995. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3996. ac_more_lines=:
  3997. ac_sed_cmds=""
  3998. while $ac_more_lines; do
  3999. if test $ac_beg -gt 1; then
  4000. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  4001. else
  4002. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  4003. fi
  4004. if test ! -s conftest.s$ac_file; then
  4005. ac_more_lines=false
  4006. rm -f conftest.s$ac_file
  4007. else
  4008. if test -z "$ac_sed_cmds"; then
  4009. ac_sed_cmds="sed -f conftest.s$ac_file"
  4010. else
  4011. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  4012. fi
  4013. ac_file=`expr $ac_file + 1`
  4014. ac_beg=$ac_end
  4015. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  4016. fi
  4017. done
  4018. if test -z "$ac_sed_cmds"; then
  4019. ac_sed_cmds=cat
  4020. fi
  4021. EOF
  4022. cat >> $CONFIG_STATUS <<EOF
  4023. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/compat/Makefile src/mod/Makefile"}
  4024. EOF
  4025. cat >> $CONFIG_STATUS <<\EOF
  4026. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4027. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4028. case "$ac_file" in
  4029. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4030. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4031. *) ac_file_in="${ac_file}.in" ;;
  4032. esac
  4033. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  4034. # Remove last slash and all that follows it. Not all systems have dirname.
  4035. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4036. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4037. # The file is in a subdirectory.
  4038. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4039. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4040. # A "../" for each directory in $ac_dir_suffix.
  4041. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4042. else
  4043. ac_dir_suffix= ac_dots=
  4044. fi
  4045. case "$ac_given_srcdir" in
  4046. .) srcdir=.
  4047. if test -z "$ac_dots"; then top_srcdir=.
  4048. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4049. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4050. *) # Relative path.
  4051. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4052. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4053. esac
  4054. echo creating "$ac_file"
  4055. rm -f "$ac_file"
  4056. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4057. case "$ac_file" in
  4058. *Makefile*) ac_comsub="1i\\
  4059. # $configure_input" ;;
  4060. *) ac_comsub= ;;
  4061. esac
  4062. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4063. sed -e "$ac_comsub
  4064. s%@configure_input@%$configure_input%g
  4065. s%@srcdir@%$srcdir%g
  4066. s%@top_srcdir@%$top_srcdir%g
  4067. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  4068. fi; done
  4069. rm -f conftest.s*
  4070. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4071. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4072. #
  4073. # ac_d sets the value in "#define NAME VALUE" lines.
  4074. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4075. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  4076. ac_dC='\3'
  4077. ac_dD='%g'
  4078. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4079. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4080. ac_uB='\([ ]\)%\1#\2define\3'
  4081. ac_uC=' '
  4082. ac_uD='\4%g'
  4083. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4084. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4085. ac_eB='$%\1#\2define\3'
  4086. ac_eC=' '
  4087. ac_eD='%g'
  4088. if test "${CONFIG_HEADERS+set}" != set; then
  4089. EOF
  4090. cat >> $CONFIG_STATUS <<EOF
  4091. CONFIG_HEADERS="config.h"
  4092. EOF
  4093. cat >> $CONFIG_STATUS <<\EOF
  4094. fi
  4095. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4096. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4097. case "$ac_file" in
  4098. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4099. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4100. *) ac_file_in="${ac_file}.in" ;;
  4101. esac
  4102. echo creating $ac_file
  4103. rm -f conftest.frag conftest.in conftest.out
  4104. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4105. cat $ac_file_inputs > conftest.in
  4106. EOF
  4107. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4108. # the proper values into config.h.in to produce config.h. And first:
  4109. # Protect against being on the right side of a sed subst in config.status.
  4110. # Protect against being in an unquoted here document in config.status.
  4111. rm -f conftest.vals
  4112. cat > conftest.hdr <<\EOF
  4113. s/[\\&%]/\\&/g
  4114. s%[\\$`]%\\&%g
  4115. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4116. s%ac_d%ac_u%gp
  4117. s%ac_u%ac_e%gp
  4118. EOF
  4119. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4120. rm -f conftest.hdr
  4121. # This sed command replaces #undef with comments. This is necessary, for
  4122. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4123. # on some systems where configure will not decide to define it.
  4124. cat >> conftest.vals <<\EOF
  4125. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4126. EOF
  4127. # Break up conftest.vals because some shells have a limit on
  4128. # the size of here documents, and old seds have small limits too.
  4129. rm -f conftest.tail
  4130. while :
  4131. do
  4132. ac_lines=`grep -c . conftest.vals`
  4133. # grep -c gives empty output for an empty file on some AIX systems.
  4134. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4135. # Write a limited-size here document to conftest.frag.
  4136. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4137. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4138. echo 'CEOF
  4139. sed -f conftest.frag conftest.in > conftest.out
  4140. rm -f conftest.in
  4141. mv conftest.out conftest.in
  4142. ' >> $CONFIG_STATUS
  4143. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4144. rm -f conftest.vals
  4145. mv conftest.tail conftest.vals
  4146. done
  4147. rm -f conftest.vals
  4148. cat >> $CONFIG_STATUS <<\EOF
  4149. rm -f conftest.frag conftest.h
  4150. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  4151. cat conftest.in >> conftest.h
  4152. rm -f conftest.in
  4153. if cmp -s $ac_file conftest.h 2>/dev/null; then
  4154. echo "$ac_file is unchanged"
  4155. rm -f conftest.h
  4156. else
  4157. # Remove last slash and all that follows it. Not all systems have dirname.
  4158. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4159. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4160. # The file is in a subdirectory.
  4161. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4162. fi
  4163. rm -f $ac_file
  4164. mv conftest.h $ac_file
  4165. fi
  4166. fi; done
  4167. EOF
  4168. cat >> $CONFIG_STATUS <<EOF
  4169. egg_tclinc="$TCLINC"
  4170. egg_tclincfn="$TCLINCFN"
  4171. EOF
  4172. cat >> $CONFIG_STATUS <<\EOF
  4173. egg_replace_file="lush.h"
  4174. echo "creating lush.h"
  4175. cat > conftest.out << EGGEOF
  4176. /* Ignore me but do not erase me. I am a kludge. */
  4177. #include "$egg_tclinc/$egg_tclincfn"
  4178. EGGEOF
  4179. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file
  4180. then
  4181. echo "lush.h is unchanged"
  4182. else
  4183. mv conftest.out $egg_replace_file
  4184. fi
  4185. rm -f conftest.out
  4186. if test -f .modules
  4187. then
  4188. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  4189. fi
  4190. exit 0
  4191. EOF
  4192. chmod +x $CONFIG_STATUS
  4193. rm -fr confdefs* $ac_clean_files
  4194. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1