configure 125 KB

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