configure 116 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322
  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. --with-tcllib=PATH full path to Tcl library"
  14. ac_help="$ac_help
  15. --with-tclinc=PATH full path to Tcl header"
  16. ac_help="$ac_help
  17. --disable-tcl-threads Disable threaded Tcl support if detected. (Ignore this
  18. option unless you know what you are doing)"
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. bindir='${exec_prefix}/bin'
  41. sbindir='${exec_prefix}/sbin'
  42. libexecdir='${exec_prefix}/libexec'
  43. datadir='${prefix}/share'
  44. sysconfdir='${prefix}/etc'
  45. sharedstatedir='${prefix}/com'
  46. localstatedir='${prefix}/var'
  47. libdir='${exec_prefix}/lib'
  48. includedir='${prefix}/include'
  49. oldincludedir='/usr/include'
  50. infodir='${prefix}/info'
  51. mandir='${prefix}/man'
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55. SHELL=${CONFIG_SHELL-/bin/sh}
  56. # Maximum number of lines to put in a shell here document.
  57. ac_max_here_lines=12
  58. ac_prev=
  59. for ac_option
  60. do
  61. # If the previous option needs an argument, assign it.
  62. if test -n "$ac_prev"; then
  63. eval "$ac_prev=\$ac_option"
  64. ac_prev=
  65. continue
  66. fi
  67. case "$ac_option" in
  68. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69. *) ac_optarg= ;;
  70. esac
  71. # Accept the important Cygnus configure options, so we can diagnose typos.
  72. case "$ac_option" in
  73. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74. ac_prev=bindir ;;
  75. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76. bindir="$ac_optarg" ;;
  77. -build | --build | --buil | --bui | --bu)
  78. ac_prev=build ;;
  79. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  80. build="$ac_optarg" ;;
  81. -cache-file | --cache-file | --cache-fil | --cache-fi \
  82. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  83. ac_prev=cache_file ;;
  84. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  85. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  86. cache_file="$ac_optarg" ;;
  87. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  88. ac_prev=datadir ;;
  89. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  90. | --da=*)
  91. datadir="$ac_optarg" ;;
  92. -disable-* | --disable-*)
  93. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  94. # Reject names that are not valid shell variable names.
  95. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  96. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  97. fi
  98. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  99. eval "enable_${ac_feature}=no" ;;
  100. -enable-* | --enable-*)
  101. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  102. # Reject names that are not valid shell variable names.
  103. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  104. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105. fi
  106. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107. case "$ac_option" in
  108. *=*) ;;
  109. *) ac_optarg=yes ;;
  110. esac
  111. eval "enable_${ac_feature}='$ac_optarg'" ;;
  112. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114. | --exec | --exe | --ex)
  115. ac_prev=exec_prefix ;;
  116. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118. | --exec=* | --exe=* | --ex=*)
  119. exec_prefix="$ac_optarg" ;;
  120. -gas | --gas | --ga | --g)
  121. # Obsolete; use --with-gas.
  122. with_gas=yes ;;
  123. -help | --help | --hel | --he)
  124. # Omit some internal or obsolete options to make the list less imposing.
  125. # This message is too long to be a string in the A/UX 3.1 sh.
  126. cat << EOF
  127. Usage: configure [options] [host]
  128. Options: [defaults in brackets after descriptions]
  129. Configuration:
  130. --cache-file=FILE cache test results in FILE
  131. --help print this message
  132. --no-create do not create output files
  133. --quiet, --silent do not print \`checking...' messages
  134. --version print the version of autoconf that created configure
  135. Directory and file names:
  136. --prefix=PREFIX install architecture-independent files in PREFIX
  137. [$ac_default_prefix]
  138. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  139. [same as prefix]
  140. --bindir=DIR user executables in DIR [EPREFIX/bin]
  141. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  142. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  143. --datadir=DIR read-only architecture-independent data in DIR
  144. [PREFIX/share]
  145. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  146. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  147. [PREFIX/com]
  148. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  149. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  150. --includedir=DIR C header files in DIR [PREFIX/include]
  151. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  152. --infodir=DIR info documentation in DIR [PREFIX/info]
  153. --mandir=DIR man documentation in DIR [PREFIX/man]
  154. --srcdir=DIR find the sources in DIR [configure dir or ..]
  155. --program-prefix=PREFIX prepend PREFIX to installed program names
  156. --program-suffix=SUFFIX append SUFFIX to installed program names
  157. --program-transform-name=PROGRAM
  158. run sed PROGRAM on installed program names
  159. EOF
  160. cat << EOF
  161. Host type:
  162. --build=BUILD configure for building on BUILD [BUILD=HOST]
  163. --host=HOST configure for HOST [guessed]
  164. --target=TARGET configure for TARGET [TARGET=HOST]
  165. Features and packages:
  166. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  167. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  168. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  169. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  170. --x-includes=DIR X include files are in DIR
  171. --x-libraries=DIR X library files are in DIR
  172. EOF
  173. if test -n "$ac_help"; then
  174. echo "--enable and --with options recognized:$ac_help"
  175. fi
  176. exit 0 ;;
  177. -host | --host | --hos | --ho)
  178. ac_prev=host ;;
  179. -host=* | --host=* | --hos=* | --ho=*)
  180. host="$ac_optarg" ;;
  181. -includedir | --includedir | --includedi | --included | --include \
  182. | --includ | --inclu | --incl | --inc)
  183. ac_prev=includedir ;;
  184. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  185. | --includ=* | --inclu=* | --incl=* | --inc=*)
  186. includedir="$ac_optarg" ;;
  187. -infodir | --infodir | --infodi | --infod | --info | --inf)
  188. ac_prev=infodir ;;
  189. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  190. infodir="$ac_optarg" ;;
  191. -libdir | --libdir | --libdi | --libd)
  192. ac_prev=libdir ;;
  193. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  194. libdir="$ac_optarg" ;;
  195. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  196. | --libexe | --libex | --libe)
  197. ac_prev=libexecdir ;;
  198. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  199. | --libexe=* | --libex=* | --libe=*)
  200. libexecdir="$ac_optarg" ;;
  201. -localstatedir | --localstatedir | --localstatedi | --localstated \
  202. | --localstate | --localstat | --localsta | --localst \
  203. | --locals | --local | --loca | --loc | --lo)
  204. ac_prev=localstatedir ;;
  205. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  206. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  207. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  208. localstatedir="$ac_optarg" ;;
  209. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  210. ac_prev=mandir ;;
  211. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  212. mandir="$ac_optarg" ;;
  213. -nfp | --nfp | --nf)
  214. # Obsolete; use --without-fp.
  215. with_fp=no ;;
  216. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  217. | --no-cr | --no-c)
  218. no_create=yes ;;
  219. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  220. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  221. no_recursion=yes ;;
  222. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  223. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  224. | --oldin | --oldi | --old | --ol | --o)
  225. ac_prev=oldincludedir ;;
  226. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  227. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  228. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  229. oldincludedir="$ac_optarg" ;;
  230. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  231. ac_prev=prefix ;;
  232. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  233. prefix="$ac_optarg" ;;
  234. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  235. | --program-pre | --program-pr | --program-p)
  236. ac_prev=program_prefix ;;
  237. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  238. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  239. program_prefix="$ac_optarg" ;;
  240. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  241. | --program-suf | --program-su | --program-s)
  242. ac_prev=program_suffix ;;
  243. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  244. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  245. program_suffix="$ac_optarg" ;;
  246. -program-transform-name | --program-transform-name \
  247. | --program-transform-nam | --program-transform-na \
  248. | --program-transform-n | --program-transform- \
  249. | --program-transform | --program-transfor \
  250. | --program-transfo | --program-transf \
  251. | --program-trans | --program-tran \
  252. | --progr-tra | --program-tr | --program-t)
  253. ac_prev=program_transform_name ;;
  254. -program-transform-name=* | --program-transform-name=* \
  255. | --program-transform-nam=* | --program-transform-na=* \
  256. | --program-transform-n=* | --program-transform-=* \
  257. | --program-transform=* | --program-transfor=* \
  258. | --program-transfo=* | --program-transf=* \
  259. | --program-trans=* | --program-tran=* \
  260. | --progr-tra=* | --program-tr=* | --program-t=*)
  261. program_transform_name="$ac_optarg" ;;
  262. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  263. | -silent | --silent | --silen | --sile | --sil)
  264. silent=yes ;;
  265. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  266. ac_prev=sbindir ;;
  267. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  268. | --sbi=* | --sb=*)
  269. sbindir="$ac_optarg" ;;
  270. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  271. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  272. | --sharedst | --shareds | --shared | --share | --shar \
  273. | --sha | --sh)
  274. ac_prev=sharedstatedir ;;
  275. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  276. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  277. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  278. | --sha=* | --sh=*)
  279. sharedstatedir="$ac_optarg" ;;
  280. -site | --site | --sit)
  281. ac_prev=site ;;
  282. -site=* | --site=* | --sit=*)
  283. site="$ac_optarg" ;;
  284. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  285. ac_prev=srcdir ;;
  286. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  287. srcdir="$ac_optarg" ;;
  288. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  289. | --syscon | --sysco | --sysc | --sys | --sy)
  290. ac_prev=sysconfdir ;;
  291. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  292. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  293. sysconfdir="$ac_optarg" ;;
  294. -target | --target | --targe | --targ | --tar | --ta | --t)
  295. ac_prev=target ;;
  296. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  297. target="$ac_optarg" ;;
  298. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  299. verbose=yes ;;
  300. -version | --version | --versio | --versi | --vers)
  301. echo "configure generated by autoconf version 2.13"
  302. exit 0 ;;
  303. -with-* | --with-*)
  304. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  305. # Reject names that are not valid shell variable names.
  306. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  307. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  308. fi
  309. ac_package=`echo $ac_package| sed 's/-/_/g'`
  310. case "$ac_option" in
  311. *=*) ;;
  312. *) ac_optarg=yes ;;
  313. esac
  314. eval "with_${ac_package}='$ac_optarg'" ;;
  315. -without-* | --without-*)
  316. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  317. # Reject names that are not valid shell variable names.
  318. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  319. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  320. fi
  321. ac_package=`echo $ac_package| sed 's/-/_/g'`
  322. eval "with_${ac_package}=no" ;;
  323. --x)
  324. # Obsolete; use --with-x.
  325. with_x=yes ;;
  326. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  327. | --x-incl | --x-inc | --x-in | --x-i)
  328. ac_prev=x_includes ;;
  329. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  330. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  331. x_includes="$ac_optarg" ;;
  332. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  333. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  334. ac_prev=x_libraries ;;
  335. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  336. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  337. x_libraries="$ac_optarg" ;;
  338. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  339. ;;
  340. *)
  341. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  342. echo "configure: warning: $ac_option: invalid host type" 1>&2
  343. fi
  344. if test "x$nonopt" != xNONE; then
  345. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  346. fi
  347. nonopt="$ac_option"
  348. ;;
  349. esac
  350. done
  351. if test -n "$ac_prev"; then
  352. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  353. fi
  354. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  355. # File descriptor usage:
  356. # 0 standard input
  357. # 1 file creation
  358. # 2 errors and warnings
  359. # 3 some systems may open it to /dev/tty
  360. # 4 used on the Kubota Titan
  361. # 6 checking for... messages and results
  362. # 5 compiler messages saved in config.log
  363. if test "$silent" = yes; then
  364. exec 6>/dev/null
  365. else
  366. exec 6>&1
  367. fi
  368. exec 5>./config.log
  369. echo "\
  370. This file contains any messages produced by compilers while
  371. running configure, to aid debugging if configure makes a mistake.
  372. " 1>&5
  373. # Strip out --no-create and --no-recursion so they do not pile up.
  374. # Also quote any args containing shell metacharacters.
  375. ac_configure_args=
  376. for ac_arg
  377. do
  378. case "$ac_arg" in
  379. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  380. | --no-cr | --no-c) ;;
  381. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  382. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  383. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  384. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  385. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  386. esac
  387. done
  388. # NLS nuisances.
  389. # Only set these to C if already set. These must not be set unconditionally
  390. # because not all systems understand e.g. LANG=C (notably SCO).
  391. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  392. # Non-C LC_CTYPE values break the ctype check.
  393. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  394. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  395. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  396. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  397. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  398. rm -rf conftest* confdefs.h
  399. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  400. echo > confdefs.h
  401. # A filename unique to this package, relative to the directory that
  402. # configure is in, which we can look for to find out if srcdir is correct.
  403. ac_unique_file=src/eggdrop.h
  404. # Find the source files, if location was not specified.
  405. if test -z "$srcdir"; then
  406. ac_srcdir_defaulted=yes
  407. # Try the directory containing this script, then its parent.
  408. ac_prog=$0
  409. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  410. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  411. srcdir=$ac_confdir
  412. if test ! -r $srcdir/$ac_unique_file; then
  413. srcdir=..
  414. fi
  415. else
  416. ac_srcdir_defaulted=no
  417. fi
  418. if test ! -r $srcdir/$ac_unique_file; then
  419. if test "$ac_srcdir_defaulted" = yes; then
  420. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  421. else
  422. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  423. fi
  424. fi
  425. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  426. # Prefer explicitly selected file to automatically selected ones.
  427. if test -z "$CONFIG_SITE"; then
  428. if test "x$prefix" != xNONE; then
  429. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  430. else
  431. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  432. fi
  433. fi
  434. for ac_site_file in $CONFIG_SITE; do
  435. if test -r "$ac_site_file"; then
  436. echo "loading site script $ac_site_file"
  437. . "$ac_site_file"
  438. fi
  439. done
  440. if test -r "$cache_file"; then
  441. echo "loading cache $cache_file"
  442. . $cache_file
  443. else
  444. echo "creating cache $cache_file"
  445. > $cache_file
  446. fi
  447. ac_ext=c
  448. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  449. ac_cpp='$CPP $CPPFLAGS'
  450. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  451. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  452. cross_compiling=$ac_cv_prog_cc_cross
  453. ac_exeext=
  454. ac_objext=o
  455. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  456. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  457. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  458. ac_n= ac_c='
  459. ' ac_t=' '
  460. else
  461. ac_n=-n ac_c= ac_t=
  462. fi
  463. else
  464. ac_n= ac_c='\c' ac_t=
  465. fi
  466. ac_aux_dir=
  467. for ac_dir in misc $srcdir/misc; do
  468. if test -f $ac_dir/install-sh; then
  469. ac_aux_dir=$ac_dir
  470. ac_install_sh="$ac_aux_dir/install-sh -c"
  471. break
  472. elif test -f $ac_dir/install.sh; then
  473. ac_aux_dir=$ac_dir
  474. ac_install_sh="$ac_aux_dir/install.sh -c"
  475. break
  476. fi
  477. done
  478. if test -z "$ac_aux_dir"; then
  479. { echo "configure: error: can not find install-sh or install.sh in misc $srcdir/misc" 1>&2; exit 1; }
  480. fi
  481. ac_config_guess=$ac_aux_dir/config.guess
  482. ac_config_sub=$ac_aux_dir/config.sub
  483. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  484. # Remove --cache-file and --srcdir arguments so they do not pile up.
  485. egg_ac_parameters=
  486. ac_prev=
  487. for ac_arg in $ac_configure_args; do
  488. if test -n "$ac_prev"; then
  489. ac_prev=
  490. continue
  491. fi
  492. case $ac_arg in
  493. -cache-file | --cache-file | --cache-fil | --cache-fi \
  494. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  495. ac_prev=cache_file ;;
  496. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  497. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  498. | --c=*)
  499. ;;
  500. --config-cache | -C)
  501. ;;
  502. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  503. ac_prev=srcdir ;;
  504. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  505. ;;
  506. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  507. esac
  508. done
  509. # Setup build environment
  510. # Extract the first word of "gcc", so it can be a program name with args.
  511. set dummy gcc; ac_word=$2
  512. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  513. echo "configure:585: checking for $ac_word" >&5
  514. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  515. echo $ac_n "(cached) $ac_c" 1>&6
  516. else
  517. if test -n "$CC"; then
  518. ac_cv_prog_CC="$CC" # Let the user override the test.
  519. else
  520. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  521. ac_dummy="$PATH"
  522. for ac_dir in $ac_dummy; do
  523. test -z "$ac_dir" && ac_dir=.
  524. if test -f $ac_dir/$ac_word; then
  525. ac_cv_prog_CC="gcc"
  526. break
  527. fi
  528. done
  529. IFS="$ac_save_ifs"
  530. fi
  531. fi
  532. CC="$ac_cv_prog_CC"
  533. if test -n "$CC"; then
  534. echo "$ac_t""$CC" 1>&6
  535. else
  536. echo "$ac_t""no" 1>&6
  537. fi
  538. if test -z "$CC"; then
  539. # Extract the first word of "cc", so it can be a program name with args.
  540. set dummy cc; ac_word=$2
  541. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  542. echo "configure:615: checking for $ac_word" >&5
  543. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  544. echo $ac_n "(cached) $ac_c" 1>&6
  545. else
  546. if test -n "$CC"; then
  547. ac_cv_prog_CC="$CC" # Let the user override the test.
  548. else
  549. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  550. ac_prog_rejected=no
  551. ac_dummy="$PATH"
  552. for ac_dir in $ac_dummy; do
  553. test -z "$ac_dir" && ac_dir=.
  554. if test -f $ac_dir/$ac_word; then
  555. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  556. ac_prog_rejected=yes
  557. continue
  558. fi
  559. ac_cv_prog_CC="cc"
  560. break
  561. fi
  562. done
  563. IFS="$ac_save_ifs"
  564. if test $ac_prog_rejected = yes; then
  565. # We found a bogon in the path, so make sure we never use it.
  566. set dummy $ac_cv_prog_CC
  567. shift
  568. if test $# -gt 0; then
  569. # We chose a different compiler from the bogus one.
  570. # However, it has the same basename, so the bogon will be chosen
  571. # first if we set CC to just the basename; use the full file name.
  572. shift
  573. set dummy "$ac_dir/$ac_word" "$@"
  574. shift
  575. ac_cv_prog_CC="$@"
  576. fi
  577. fi
  578. fi
  579. fi
  580. CC="$ac_cv_prog_CC"
  581. if test -n "$CC"; then
  582. echo "$ac_t""$CC" 1>&6
  583. else
  584. echo "$ac_t""no" 1>&6
  585. fi
  586. if test -z "$CC"; then
  587. case "`uname -s`" in
  588. *win32* | *WIN32*)
  589. # Extract the first word of "cl", so it can be a program name with args.
  590. set dummy cl; ac_word=$2
  591. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  592. echo "configure:666: checking for $ac_word" >&5
  593. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  594. echo $ac_n "(cached) $ac_c" 1>&6
  595. else
  596. if test -n "$CC"; then
  597. ac_cv_prog_CC="$CC" # Let the user override the test.
  598. else
  599. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  600. ac_dummy="$PATH"
  601. for ac_dir in $ac_dummy; do
  602. test -z "$ac_dir" && ac_dir=.
  603. if test -f $ac_dir/$ac_word; then
  604. ac_cv_prog_CC="cl"
  605. break
  606. fi
  607. done
  608. IFS="$ac_save_ifs"
  609. fi
  610. fi
  611. CC="$ac_cv_prog_CC"
  612. if test -n "$CC"; then
  613. echo "$ac_t""$CC" 1>&6
  614. else
  615. echo "$ac_t""no" 1>&6
  616. fi
  617. ;;
  618. esac
  619. fi
  620. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  621. fi
  622. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  623. echo "configure:698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  624. ac_ext=c
  625. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  626. ac_cpp='$CPP $CPPFLAGS'
  627. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  628. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  629. cross_compiling=$ac_cv_prog_cc_cross
  630. cat > conftest.$ac_ext << EOF
  631. #line 709 "configure"
  632. #include "confdefs.h"
  633. main(){return(0);}
  634. EOF
  635. if { (eval echo configure:714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  636. ac_cv_prog_cc_works=yes
  637. # If we can't run a trivial program, we are probably using a cross compiler.
  638. if (./conftest; exit) 2>/dev/null; then
  639. ac_cv_prog_cc_cross=no
  640. else
  641. ac_cv_prog_cc_cross=yes
  642. fi
  643. else
  644. echo "configure: failed program was:" >&5
  645. cat conftest.$ac_ext >&5
  646. ac_cv_prog_cc_works=no
  647. fi
  648. rm -fr conftest*
  649. ac_ext=c
  650. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  651. ac_cpp='$CPP $CPPFLAGS'
  652. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  653. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  654. cross_compiling=$ac_cv_prog_cc_cross
  655. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  656. if test $ac_cv_prog_cc_works = no; then
  657. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  658. fi
  659. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  660. echo "configure:740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  661. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  662. cross_compiling=$ac_cv_prog_cc_cross
  663. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  664. echo "configure:745: checking whether we are using GNU C" >&5
  665. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  666. echo $ac_n "(cached) $ac_c" 1>&6
  667. else
  668. cat > conftest.c <<EOF
  669. #ifdef __GNUC__
  670. yes;
  671. #endif
  672. EOF
  673. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  674. ac_cv_prog_gcc=yes
  675. else
  676. ac_cv_prog_gcc=no
  677. fi
  678. fi
  679. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  680. if test $ac_cv_prog_gcc = yes; then
  681. GCC=yes
  682. else
  683. GCC=
  684. fi
  685. ac_test_CFLAGS="${CFLAGS+set}"
  686. ac_save_CFLAGS="$CFLAGS"
  687. CFLAGS=
  688. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  689. echo "configure:773: checking whether ${CC-cc} accepts -g" >&5
  690. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  691. echo $ac_n "(cached) $ac_c" 1>&6
  692. else
  693. echo 'void f(){}' > conftest.c
  694. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  695. ac_cv_prog_cc_g=yes
  696. else
  697. ac_cv_prog_cc_g=no
  698. fi
  699. rm -f conftest*
  700. fi
  701. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  702. if test "$ac_test_CFLAGS" = set; then
  703. CFLAGS="$ac_save_CFLAGS"
  704. elif test $ac_cv_prog_cc_g = yes; then
  705. if test "$GCC" = yes; then
  706. CFLAGS="-g -O2"
  707. else
  708. CFLAGS="-g"
  709. fi
  710. else
  711. if test "$GCC" = yes; then
  712. CFLAGS="-O2"
  713. else
  714. CFLAGS=
  715. fi
  716. fi
  717. if test "${cross_compiling-x}" = "x"
  718. then
  719. cat << 'EOF' >&2
  720. configure: error:
  721. This system does not appear to have a working C compiler.
  722. A working C compiler is required to compile Eggdrop.
  723. EOF
  724. exit 1
  725. fi
  726. # Crazy machines
  727. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  728. echo "configure:819: checking how to run the C preprocessor" >&5
  729. # On Suns, sometimes $CPP names a directory.
  730. if test -n "$CPP" && test -d "$CPP"; then
  731. CPP=
  732. fi
  733. if test -z "$CPP"; then
  734. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  735. echo $ac_n "(cached) $ac_c" 1>&6
  736. else
  737. # This must be in double quotes, not single quotes, because CPP may get
  738. # substituted into the Makefile and "${CC-cc}" will confuse make.
  739. CPP="${CC-cc} -E"
  740. # On the NeXT, cc -E runs the code through the compiler's parser,
  741. # not just through cpp.
  742. cat > conftest.$ac_ext <<EOF
  743. #line 834 "configure"
  744. #include "confdefs.h"
  745. #include <assert.h>
  746. Syntax Error
  747. EOF
  748. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  749. { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  750. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  751. if test -z "$ac_err"; then
  752. :
  753. else
  754. echo "$ac_err" >&5
  755. echo "configure: failed program was:" >&5
  756. cat conftest.$ac_ext >&5
  757. rm -rf conftest*
  758. CPP="${CC-cc} -E -traditional-cpp"
  759. cat > conftest.$ac_ext <<EOF
  760. #line 851 "configure"
  761. #include "confdefs.h"
  762. #include <assert.h>
  763. Syntax Error
  764. EOF
  765. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  766. { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  767. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  768. if test -z "$ac_err"; then
  769. :
  770. else
  771. echo "$ac_err" >&5
  772. echo "configure: failed program was:" >&5
  773. cat conftest.$ac_ext >&5
  774. rm -rf conftest*
  775. CPP="${CC-cc} -nologo -E"
  776. cat > conftest.$ac_ext <<EOF
  777. #line 868 "configure"
  778. #include "confdefs.h"
  779. #include <assert.h>
  780. Syntax Error
  781. EOF
  782. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  783. { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  784. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  785. if test -z "$ac_err"; then
  786. :
  787. else
  788. echo "$ac_err" >&5
  789. echo "configure: failed program was:" >&5
  790. cat conftest.$ac_ext >&5
  791. rm -rf conftest*
  792. CPP=/lib/cpp
  793. fi
  794. rm -f conftest*
  795. fi
  796. rm -f conftest*
  797. fi
  798. rm -f conftest*
  799. ac_cv_prog_CPP="$CPP"
  800. fi
  801. CPP="$ac_cv_prog_CPP"
  802. else
  803. ac_cv_prog_CPP="$CPP"
  804. fi
  805. echo "$ac_t""$CPP" 1>&6
  806. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  807. echo "configure:899: checking for AIX" >&5
  808. cat > conftest.$ac_ext <<EOF
  809. #line 901 "configure"
  810. #include "confdefs.h"
  811. #ifdef _AIX
  812. yes
  813. #endif
  814. EOF
  815. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  816. egrep "yes" >/dev/null 2>&1; then
  817. rm -rf conftest*
  818. echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  819. #define _ALL_SOURCE 1
  820. EOF
  821. else
  822. rm -rf conftest*
  823. echo "$ac_t""no" 1>&6
  824. fi
  825. rm -f conftest*
  826. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  827. echo "configure:923: checking for POSIXized ISC" >&5
  828. if test -d /etc/conf/kconfig.d &&
  829. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  830. then
  831. echo "$ac_t""yes" 1>&6
  832. ISC=yes # If later tests want to check for ISC.
  833. cat >> confdefs.h <<\EOF
  834. #define _POSIX_SOURCE 1
  835. EOF
  836. if test "$GCC" = yes; then
  837. CC="$CC -posix"
  838. else
  839. CC="$CC -Xp"
  840. fi
  841. else
  842. echo "$ac_t""no" 1>&6
  843. ISC=
  844. fi
  845. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  846. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  847. echo "configure:945: checking for minix/config.h" >&5
  848. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  849. echo $ac_n "(cached) $ac_c" 1>&6
  850. else
  851. cat > conftest.$ac_ext <<EOF
  852. #line 950 "configure"
  853. #include "confdefs.h"
  854. #include <minix/config.h>
  855. EOF
  856. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  857. { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  858. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  859. if test -z "$ac_err"; then
  860. rm -rf conftest*
  861. eval "ac_cv_header_$ac_safe=yes"
  862. else
  863. echo "$ac_err" >&5
  864. echo "configure: failed program was:" >&5
  865. cat conftest.$ac_ext >&5
  866. rm -rf conftest*
  867. eval "ac_cv_header_$ac_safe=no"
  868. fi
  869. rm -f conftest*
  870. fi
  871. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  872. echo "$ac_t""yes" 1>&6
  873. MINIX=yes
  874. else
  875. echo "$ac_t""no" 1>&6
  876. MINIX=
  877. fi
  878. if test "$MINIX" = yes; then
  879. cat >> confdefs.h <<\EOF
  880. #define _POSIX_SOURCE 1
  881. EOF
  882. cat >> confdefs.h <<\EOF
  883. #define _POSIX_1_SOURCE 2
  884. EOF
  885. cat >> confdefs.h <<\EOF
  886. #define _MINIX 1
  887. EOF
  888. fi
  889. # Speedup compile
  890. if test -z "$no_pipe"
  891. then
  892. if test -n "$GCC"
  893. then
  894. echo $ac_n "checking whether the compiler understands -pipe""... $ac_c" 1>&6
  895. echo "configure:999: checking whether the compiler understands -pipe" >&5
  896. if eval "test \"`echo '$''{'egg_cv_var_ccpipe'+set}'`\" = set"; then
  897. echo $ac_n "(cached) $ac_c" 1>&6
  898. else
  899. ac_old_CC="$CC"
  900. CC="$CC -pipe"
  901. cat > conftest.$ac_ext <<EOF
  902. #line 1006 "configure"
  903. #include "confdefs.h"
  904. int main() {
  905. ; return 0; }
  906. EOF
  907. if { (eval echo configure:1013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  908. rm -rf conftest*
  909. egg_cv_var_ccpipe="yes"
  910. else
  911. echo "configure: failed program was:" >&5
  912. cat conftest.$ac_ext >&5
  913. rm -rf conftest*
  914. egg_cv_var_ccpipe="no"
  915. fi
  916. rm -f conftest*
  917. CC="$ac_old_CC"
  918. fi
  919. echo "$ac_t""$egg_cv_var_ccpipe" 1>&6
  920. if test "$egg_cv_var_ccpipe" = "yes"
  921. then
  922. CC="$CC -pipe"
  923. fi
  924. fi
  925. fi
  926. # Checks for programs
  927. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  928. echo "configure:1038: checking whether ${MAKE-make} sets \${MAKE}" >&5
  929. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  930. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  931. echo $ac_n "(cached) $ac_c" 1>&6
  932. else
  933. cat > conftestmake <<\EOF
  934. all:
  935. @echo 'ac_maketemp="${MAKE}"'
  936. EOF
  937. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  938. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  939. if test -n "$ac_maketemp"; then
  940. eval ac_cv_prog_make_${ac_make}_set=yes
  941. else
  942. eval ac_cv_prog_make_${ac_make}_set=no
  943. fi
  944. rm -f conftestmake
  945. fi
  946. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  947. echo "$ac_t""yes" 1>&6
  948. SET_MAKE=
  949. else
  950. echo "$ac_t""no" 1>&6
  951. SET_MAKE="MAKE=${MAKE-make}"
  952. fi
  953. # Extract the first word of "ranlib", so it can be a program name with args.
  954. set dummy ranlib; ac_word=$2
  955. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  956. echo "configure:1067: checking for $ac_word" >&5
  957. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  958. echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960. if test -n "$RANLIB"; then
  961. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  962. else
  963. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  964. ac_dummy="$PATH"
  965. for ac_dir in $ac_dummy; do
  966. test -z "$ac_dir" && ac_dir=.
  967. if test -f $ac_dir/$ac_word; then
  968. ac_cv_prog_RANLIB="ranlib"
  969. break
  970. fi
  971. done
  972. IFS="$ac_save_ifs"
  973. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  974. fi
  975. fi
  976. RANLIB="$ac_cv_prog_RANLIB"
  977. if test -n "$RANLIB"; then
  978. echo "$ac_t""$RANLIB" 1>&6
  979. else
  980. echo "$ac_t""no" 1>&6
  981. fi
  982. # Find a good install program. We prefer a C program (faster),
  983. # so one script is as good as another. But avoid the broken or
  984. # incompatible versions:
  985. # SysV /etc/install, /usr/sbin/install
  986. # SunOS /usr/etc/install
  987. # IRIX /sbin/install
  988. # AIX /bin/install
  989. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  990. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  991. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  992. # ./install, which can be erroneously created by make from ./install.sh.
  993. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  994. echo "configure:1106: checking for a BSD compatible install" >&5
  995. if test -z "$INSTALL"; then
  996. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  997. echo $ac_n "(cached) $ac_c" 1>&6
  998. else
  999. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1000. for ac_dir in $PATH; do
  1001. # Account for people who put trailing slashes in PATH elements.
  1002. case "$ac_dir/" in
  1003. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1004. *)
  1005. # OSF1 and SCO ODT 3.0 have their own names for install.
  1006. # Don't use installbsd from OSF since it installs stuff as root
  1007. # by default.
  1008. for ac_prog in ginstall scoinst install; do
  1009. if test -f $ac_dir/$ac_prog; then
  1010. if test $ac_prog = install &&
  1011. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1012. # AIX install. It has an incompatible calling convention.
  1013. :
  1014. else
  1015. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1016. break 2
  1017. fi
  1018. fi
  1019. done
  1020. ;;
  1021. esac
  1022. done
  1023. IFS="$ac_save_IFS"
  1024. fi
  1025. if test "${ac_cv_path_install+set}" = set; then
  1026. INSTALL="$ac_cv_path_install"
  1027. else
  1028. # As a last resort, use the slow shell script. We don't cache a
  1029. # path for INSTALL within a source directory, because that will
  1030. # break other packages using the cache if that directory is
  1031. # removed, or if the path is relative.
  1032. INSTALL="$ac_install_sh"
  1033. fi
  1034. fi
  1035. echo "$ac_t""$INSTALL" 1>&6
  1036. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1037. # It thinks the first close brace ends the variable substitution.
  1038. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1039. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1040. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1041. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1042. echo "configure:1159: checking whether ln -s works" >&5
  1043. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1044. echo $ac_n "(cached) $ac_c" 1>&6
  1045. else
  1046. rm -f conftestdata
  1047. if ln -s X conftestdata 2>/dev/null
  1048. then
  1049. rm -f conftestdata
  1050. ac_cv_prog_LN_S="ln -s"
  1051. else
  1052. ac_cv_prog_LN_S=ln
  1053. fi
  1054. fi
  1055. LN_S="$ac_cv_prog_LN_S"
  1056. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1057. echo "$ac_t""yes" 1>&6
  1058. else
  1059. echo "$ac_t""no" 1>&6
  1060. fi
  1061. # Extract the first word of "strip", so it can be a program name with args.
  1062. set dummy strip; ac_word=$2
  1063. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1064. echo "configure:1182: checking for $ac_word" >&5
  1065. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1066. echo $ac_n "(cached) $ac_c" 1>&6
  1067. else
  1068. if test -n "$STRIP"; then
  1069. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1070. else
  1071. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1072. ac_dummy="$PATH"
  1073. for ac_dir in $ac_dummy; do
  1074. test -z "$ac_dir" && ac_dir=.
  1075. if test -f $ac_dir/$ac_word; then
  1076. ac_cv_prog_STRIP="strip"
  1077. break
  1078. fi
  1079. done
  1080. IFS="$ac_save_ifs"
  1081. fi
  1082. fi
  1083. STRIP="$ac_cv_prog_STRIP"
  1084. if test -n "$STRIP"; then
  1085. echo "$ac_t""$STRIP" 1>&6
  1086. else
  1087. echo "$ac_t""no" 1>&6
  1088. fi
  1089. if test "${STRIP-x}" = "x"
  1090. then
  1091. STRIP=touch
  1092. fi
  1093. # awk is needed for Tcl library and header checks, and eggdrop version subst
  1094. for ac_prog in mawk gawk nawk awk
  1095. do
  1096. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1097. set dummy $ac_prog; ac_word=$2
  1098. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1099. echo "configure:1219: checking for $ac_word" >&5
  1100. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1101. echo $ac_n "(cached) $ac_c" 1>&6
  1102. else
  1103. if test -n "$AWK"; then
  1104. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1105. else
  1106. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1107. ac_dummy="$PATH"
  1108. for ac_dir in $ac_dummy; do
  1109. test -z "$ac_dir" && ac_dir=.
  1110. if test -f $ac_dir/$ac_word; then
  1111. ac_cv_prog_AWK="$ac_prog"
  1112. break
  1113. fi
  1114. done
  1115. IFS="$ac_save_ifs"
  1116. fi
  1117. fi
  1118. AWK="$ac_cv_prog_AWK"
  1119. if test -n "$AWK"; then
  1120. echo "$ac_t""$AWK" 1>&6
  1121. else
  1122. echo "$ac_t""no" 1>&6
  1123. fi
  1124. test -n "$AWK" && break
  1125. done
  1126. if test "${AWK-x}" = "x"
  1127. then
  1128. cat << 'EOF' >&2
  1129. configure: error:
  1130. This system seems to lack a working 'awk' command.
  1131. A working 'awk' command is required to compile Eggdrop.
  1132. EOF
  1133. exit 1
  1134. fi
  1135. # basename is needed for Tcl library and header checks
  1136. # Extract the first word of "basename", so it can be a program name with args.
  1137. set dummy basename; ac_word=$2
  1138. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1139. echo "configure:1264: checking for $ac_word" >&5
  1140. if eval "test \"`echo '$''{'ac_cv_prog_BASENAME'+set}'`\" = set"; then
  1141. echo $ac_n "(cached) $ac_c" 1>&6
  1142. else
  1143. if test -n "$BASENAME"; then
  1144. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  1145. else
  1146. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1147. ac_dummy="$PATH"
  1148. for ac_dir in $ac_dummy; do
  1149. test -z "$ac_dir" && ac_dir=.
  1150. if test -f $ac_dir/$ac_word; then
  1151. ac_cv_prog_BASENAME="basename"
  1152. break
  1153. fi
  1154. done
  1155. IFS="$ac_save_ifs"
  1156. fi
  1157. fi
  1158. BASENAME="$ac_cv_prog_BASENAME"
  1159. if test -n "$BASENAME"; then
  1160. echo "$ac_t""$BASENAME" 1>&6
  1161. else
  1162. echo "$ac_t""no" 1>&6
  1163. fi
  1164. if test "${BASENAME-x}" = "x"
  1165. then
  1166. cat << 'EOF' >&2
  1167. configure: error:
  1168. This system seems to lack a working 'basename' command.
  1169. A working 'basename' command is required to compile Eggdrop.
  1170. EOF
  1171. exit 1
  1172. fi
  1173. # Extract the first word of "uname", so it can be a program name with args.
  1174. set dummy uname; ac_word=$2
  1175. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1176. echo "configure:1305: checking for $ac_word" >&5
  1177. if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
  1178. echo $ac_n "(cached) $ac_c" 1>&6
  1179. else
  1180. if test -n "$UNAME"; then
  1181. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  1182. else
  1183. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1184. ac_dummy="$PATH"
  1185. for ac_dir in $ac_dummy; do
  1186. test -z "$ac_dir" && ac_dir=.
  1187. if test -f $ac_dir/$ac_word; then
  1188. ac_cv_prog_UNAME="uname"
  1189. break
  1190. fi
  1191. done
  1192. IFS="$ac_save_ifs"
  1193. fi
  1194. fi
  1195. UNAME="$ac_cv_prog_UNAME"
  1196. if test -n "$UNAME"; then
  1197. echo "$ac_t""$UNAME" 1>&6
  1198. else
  1199. echo "$ac_t""no" 1>&6
  1200. fi
  1201. # Test the os and set the module linking settings
  1202. LINUX=no
  1203. IRIX=no
  1204. SUNOS=no
  1205. HPUX=no
  1206. EGG_CYGWIN=no
  1207. MOD_CC="$CC"
  1208. MOD_LD="$CC"
  1209. MOD_STRIP="$STRIP"
  1210. SHLIB_CC="$CC"
  1211. SHLIB_LD="$CC"
  1212. SHLIB_STRIP="$STRIP"
  1213. NEED_DL=1
  1214. echo $ac_n "checking system type""... $ac_c" 1>&6
  1215. echo "configure:1347: checking system type" >&5
  1216. if eval "test \"`echo '$''{'egg_cv_var_system_type'+set}'`\" = set"; then
  1217. echo $ac_n "(cached) $ac_c" 1>&6
  1218. else
  1219. egg_cv_var_system_type=`$UNAME -s`
  1220. fi
  1221. echo "$ac_t""$egg_cv_var_system_type" 1>&6
  1222. echo $ac_n "checking system release""... $ac_c" 1>&6
  1223. echo "configure:1356: checking system release" >&5
  1224. if eval "test \"`echo '$''{'egg_cv_var_system_release'+set}'`\" = set"; then
  1225. echo $ac_n "(cached) $ac_c" 1>&6
  1226. else
  1227. egg_cv_var_system_release=`$UNAME -r`
  1228. fi
  1229. echo "$ac_t""$egg_cv_var_system_release" 1>&6
  1230. case "$egg_cv_var_system_type" in
  1231. BSD/OS)
  1232. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1233. 2)
  1234. NEED_DL=0
  1235. ;;
  1236. 3)
  1237. MOD_CC=shlicc
  1238. MOD_LD=shlicc
  1239. MOD_STRIP="$STRIP -d"
  1240. SHLIB_LD="shlicc -r"
  1241. SHLIB_STRIP=touch
  1242. cat >> confdefs.h <<\EOF
  1243. #define MODULES_OK 1
  1244. EOF
  1245. ;;
  1246. *)
  1247. CFLAGS="$CFLAGS -Wall"
  1248. MOD_LD="$CC"
  1249. MOD_STRIP="$STRIP -d"
  1250. SHLIB_CC="$CC -export-dynamic -fPIC"
  1251. SHLIB_LD="$CC -shared -nostartfiles"
  1252. cat >> confdefs.h <<\EOF
  1253. #define MODULES_OK 1
  1254. EOF
  1255. ;;
  1256. esac
  1257. ;;
  1258. CYGWI*)
  1259. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  1260. 1.*)
  1261. NEED_DL=0
  1262. SHLIB_LD="$CC -shared"
  1263. echo $ac_n "checking how to access the Win32 API""... $ac_c" 1>&6
  1264. echo "configure:1400: checking how to access the Win32 API" >&5
  1265. WIN32FLAGS=
  1266. cat > conftest.$ac_ext <<EOF
  1267. #line 1403 "configure"
  1268. #include "confdefs.h"
  1269. int main() {
  1270. #ifndef WIN32
  1271. # ifndef _WIN32
  1272. # error WIN32 or _WIN32 not defined
  1273. # endif
  1274. #endif
  1275. ; return 0; }
  1276. EOF
  1277. if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1278. rm -rf conftest*
  1279. echo "$ac_t""present by default" 1>&6
  1280. else
  1281. echo "configure: failed program was:" >&5
  1282. cat conftest.$ac_ext >&5
  1283. rm -rf conftest*
  1284. ac_compile_save="$ac_compile"
  1285. save_CC="$CC"
  1286. ac_compile="$ac_compile -mwin32"
  1287. CC="$CC -mwin32"
  1288. cat > conftest.$ac_ext <<EOF
  1289. #line 1430 "configure"
  1290. #include "confdefs.h"
  1291. int main() {
  1292. #ifndef WIN32
  1293. # ifndef _WIN32
  1294. # error WIN32 or _WIN32 not defined
  1295. # endif
  1296. #endif
  1297. ; return 0; }
  1298. EOF
  1299. if { (eval echo configure:1442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1300. rm -rf conftest*
  1301. echo "$ac_t""found via -mwin32" 1>&6
  1302. ac_compile="$ac_compile_save"
  1303. CC="$save_CC"
  1304. WIN32FLAGS="-mwin32"
  1305. else
  1306. echo "configure: failed program was:" >&5
  1307. cat conftest.$ac_ext >&5
  1308. rm -rf conftest*
  1309. ac_compile="$ac_compile_save"
  1310. CC="$save_CC"
  1311. echo "$ac_t""not found" 1>&6
  1312. fi
  1313. rm -f conftest*
  1314. fi
  1315. rm -f conftest*
  1316. CC="$CC $WIN32FLAGS"
  1317. MOD_CC="$CC"
  1318. MOD_LD="$CC"
  1319. echo $ac_n "checking for /usr/lib/binmode.o""... $ac_c" 1>&6
  1320. echo "configure:1470: checking for /usr/lib/binmode.o" >&5
  1321. if test -r /usr/lib/binmode.o
  1322. then
  1323. echo "$ac_t""yes" 1>&6
  1324. LIBS="$LIBS /usr/lib/binmode.o"
  1325. else
  1326. echo "$ac_t""no" 1>&6
  1327. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1328. fi
  1329. cat >> confdefs.h <<\EOF
  1330. #define MODULES_OK 1
  1331. EOF
  1332. ;;
  1333. *)
  1334. NEED_DL=0
  1335. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1336. ;;
  1337. esac
  1338. EGG_CYGWIN=yes
  1339. cat >> confdefs.h <<\EOF
  1340. #define CYGWIN_HACKS 1
  1341. EOF
  1342. ;;
  1343. HP-UX)
  1344. HPUX=yes
  1345. MOD_LD="$CC -fPIC -shared"
  1346. SHLIB_CC="$CC -fPIC"
  1347. SHLIB_LD="ld -b"
  1348. NEED_DL=0
  1349. cat >> confdefs.h <<\EOF
  1350. #define MODULES_OK 1
  1351. EOF
  1352. cat >> confdefs.h <<\EOF
  1353. #define HPUX_HACKS 1
  1354. EOF
  1355. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  1356. then
  1357. cat >> confdefs.h <<\EOF
  1358. #define HPUX10_HACKS 1
  1359. EOF
  1360. fi
  1361. ;;
  1362. dell)
  1363. echo "$ac_t""Dell SVR4" 1>&6
  1364. SHLIB_STRIP=touch
  1365. NEED_DL=0
  1366. MOD_LD="$CC -lelf -lucb"
  1367. ;;
  1368. IRIX)
  1369. SHLIB_LD="ld -n32 -shared -rdata_shared"
  1370. IRIX=yes
  1371. SHLIB_STRIP=touch
  1372. NEED_DL=0
  1373. ;;
  1374. Ultrix)
  1375. NEED_DL=0
  1376. SHLIB_STRIP=touch
  1377. SHELL=/bin/sh5
  1378. ;;
  1379. SINIX*)
  1380. NEED_DL=0
  1381. SHLIB_STRIP=touch
  1382. SHLIB_CC="cc -G"
  1383. ;;
  1384. BeOS)
  1385. NEED_DL=0
  1386. SHLIB_STRIP=strip
  1387. ;;
  1388. Linux)
  1389. LINUX=yes
  1390. CFLAGS="$CFLAGS -Wall"
  1391. MOD_LD="$CC"
  1392. SHLIB_CC="$CC -fPIC"
  1393. SHLIB_LD="$CC -shared -nostartfiles"
  1394. cat >> confdefs.h <<\EOF
  1395. #define MODULES_OK 1
  1396. EOF
  1397. ;;
  1398. Lynx)
  1399. NEED_DL=0
  1400. SHLIB_STRIP=strip
  1401. ;;
  1402. QNX)
  1403. NEED_DL=0
  1404. SHLIB_LD="ld -shared"
  1405. SHLIB_STRIP=strip
  1406. ;;
  1407. OSF1)
  1408. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1409. V*)
  1410. # FIXME: we should check this in a separate test
  1411. # Digital OSF uses an ancient version of gawk
  1412. if test "$AWK" = "gawk"
  1413. then
  1414. AWK=awk
  1415. fi
  1416. MOD_CC=cc
  1417. MOD_LD=cc
  1418. SHLIB_CC=cc
  1419. SHLIB_LD="ld -shared -expect_unresolved \"'*'\""
  1420. SHLIB_STRIP=touch
  1421. cat >> confdefs.h <<\EOF
  1422. #define MODULES_OK 1
  1423. EOF
  1424. ;;
  1425. 1.0|1.1|1.2)
  1426. SHLIB_LD="ld -R -export :"
  1427. cat >> confdefs.h <<\EOF
  1428. #define MODULES_OK 1
  1429. EOF
  1430. cat >> confdefs.h <<\EOF
  1431. #define OSF1_HACKS 1
  1432. EOF
  1433. ;;
  1434. 1.*)
  1435. SHLIB_CC="$CC -fpic"
  1436. SHLIB_LD="ld -shared"
  1437. cat >> confdefs.h <<\EOF
  1438. #define MODULES_OK 1
  1439. EOF
  1440. cat >> confdefs.h <<\EOF
  1441. #define OSF1_HACKS 1
  1442. EOF
  1443. ;;
  1444. *)
  1445. NEED_DL=0
  1446. ;;
  1447. esac
  1448. cat >> confdefs.h <<\EOF
  1449. #define STOP_UAC 1
  1450. EOF
  1451. ;;
  1452. SunOS)
  1453. if test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  1454. then
  1455. # Solaris
  1456. if test -n "$GCC"
  1457. then
  1458. SHLIB_CC="$CC -fPIC"
  1459. SHLIB_LD="$CC -shared"
  1460. else
  1461. SHLIB_CC="$CC -KPIC"
  1462. SHLIB_LD="$CC -G -z text"
  1463. fi
  1464. else
  1465. # SunOS 4
  1466. SUNOS=yes
  1467. SHLIB_LD=ld
  1468. SHLIB_CC="$CC -PIC"
  1469. cat >> confdefs.h <<\EOF
  1470. #define DLOPEN_1 1
  1471. EOF
  1472. fi
  1473. cat >> confdefs.h <<\EOF
  1474. #define MODULES_OK 1
  1475. EOF
  1476. ;;
  1477. *BSD)
  1478. # FreeBSD/OpenBSD/NetBSD
  1479. SHLIB_CC="$CC -fPIC"
  1480. SHLIB_LD="ld -Bshareable -x"
  1481. cat >> confdefs.h <<\EOF
  1482. #define MODULES_OK 1
  1483. EOF
  1484. ;;
  1485. *)
  1486. echo $ac_n "checking if system is Mach based""... $ac_c" 1>&6
  1487. echo "configure:1638: checking if system is Mach based" >&5
  1488. if test -r /mach
  1489. then
  1490. echo "$ac_t""yes" 1>&6
  1491. NEED_DL=0
  1492. cat >> confdefs.h <<\EOF
  1493. #define BORGCUBES 1
  1494. EOF
  1495. else
  1496. echo "$ac_t""no" 1>&6
  1497. echo $ac_n "checking if system is QNX""... $ac_c" 1>&6
  1498. echo "configure:1649: checking if system is QNX" >&5
  1499. if test -r /cmds
  1500. then
  1501. echo "$ac_t""yes" 1>&6
  1502. SHLIB_STRIP=touch
  1503. NEED_DL=0
  1504. else
  1505. echo "$ac_t""no" 1>&6
  1506. echo "$ac_t""Something unknown!" 1>&6
  1507. echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
  1508. NEED_DL=0
  1509. fi
  1510. fi
  1511. ;;
  1512. esac
  1513. # Checks for system libraries
  1514. # FIXME: this needs to be fixed so that it works on IRIX
  1515. if test "$IRIX" = "yes"
  1516. then
  1517. echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
  1518. else
  1519. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  1520. echo "configure:1673: checking for socket in -lsocket" >&5
  1521. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  1522. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1523. echo $ac_n "(cached) $ac_c" 1>&6
  1524. else
  1525. ac_save_LIBS="$LIBS"
  1526. LIBS="-lsocket $LIBS"
  1527. cat > conftest.$ac_ext <<EOF
  1528. #line 1681 "configure"
  1529. #include "confdefs.h"
  1530. /* Override any gcc2 internal prototype to avoid an error. */
  1531. /* We use char because int might match the return type of a gcc2
  1532. builtin and then its argument prototype would still apply. */
  1533. char socket();
  1534. int main() {
  1535. socket()
  1536. ; return 0; }
  1537. EOF
  1538. if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1539. rm -rf conftest*
  1540. eval "ac_cv_lib_$ac_lib_var=yes"
  1541. else
  1542. echo "configure: failed program was:" >&5
  1543. cat conftest.$ac_ext >&5
  1544. rm -rf conftest*
  1545. eval "ac_cv_lib_$ac_lib_var=no"
  1546. fi
  1547. rm -f conftest*
  1548. LIBS="$ac_save_LIBS"
  1549. fi
  1550. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1551. echo "$ac_t""yes" 1>&6
  1552. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1553. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1554. cat >> confdefs.h <<EOF
  1555. #define $ac_tr_lib 1
  1556. EOF
  1557. LIBS="-lsocket $LIBS"
  1558. else
  1559. echo "$ac_t""no" 1>&6
  1560. fi
  1561. echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
  1562. echo "configure:1720: checking for connect in -lnsl" >&5
  1563. ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
  1564. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1565. echo $ac_n "(cached) $ac_c" 1>&6
  1566. else
  1567. ac_save_LIBS="$LIBS"
  1568. LIBS="-lnsl $LIBS"
  1569. cat > conftest.$ac_ext <<EOF
  1570. #line 1728 "configure"
  1571. #include "confdefs.h"
  1572. /* Override any gcc2 internal prototype to avoid an error. */
  1573. /* We use char because int might match the return type of a gcc2
  1574. builtin and then its argument prototype would still apply. */
  1575. char connect();
  1576. int main() {
  1577. connect()
  1578. ; return 0; }
  1579. EOF
  1580. if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1581. rm -rf conftest*
  1582. eval "ac_cv_lib_$ac_lib_var=yes"
  1583. else
  1584. echo "configure: failed program was:" >&5
  1585. cat conftest.$ac_ext >&5
  1586. rm -rf conftest*
  1587. eval "ac_cv_lib_$ac_lib_var=no"
  1588. fi
  1589. rm -f conftest*
  1590. LIBS="$ac_save_LIBS"
  1591. fi
  1592. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1593. echo "$ac_t""yes" 1>&6
  1594. ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1595. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1596. cat >> confdefs.h <<EOF
  1597. #define $ac_tr_lib 1
  1598. EOF
  1599. LIBS="-lnsl $LIBS"
  1600. else
  1601. echo "$ac_t""no" 1>&6
  1602. fi
  1603. echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
  1604. echo "configure:1767: checking for gethostbyname in -ldns" >&5
  1605. ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
  1606. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1607. echo $ac_n "(cached) $ac_c" 1>&6
  1608. else
  1609. ac_save_LIBS="$LIBS"
  1610. LIBS="-ldns $LIBS"
  1611. cat > conftest.$ac_ext <<EOF
  1612. #line 1775 "configure"
  1613. #include "confdefs.h"
  1614. /* Override any gcc2 internal prototype to avoid an error. */
  1615. /* We use char because int might match the return type of a gcc2
  1616. builtin and then its argument prototype would still apply. */
  1617. char gethostbyname();
  1618. int main() {
  1619. gethostbyname()
  1620. ; return 0; }
  1621. EOF
  1622. if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1623. rm -rf conftest*
  1624. eval "ac_cv_lib_$ac_lib_var=yes"
  1625. else
  1626. echo "configure: failed program was:" >&5
  1627. cat conftest.$ac_ext >&5
  1628. rm -rf conftest*
  1629. eval "ac_cv_lib_$ac_lib_var=no"
  1630. fi
  1631. rm -f conftest*
  1632. LIBS="$ac_save_LIBS"
  1633. fi
  1634. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1635. echo "$ac_t""yes" 1>&6
  1636. ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1637. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1638. cat >> confdefs.h <<EOF
  1639. #define $ac_tr_lib 1
  1640. EOF
  1641. LIBS="-ldns $LIBS"
  1642. else
  1643. echo "$ac_t""no" 1>&6
  1644. fi
  1645. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1646. echo "configure:1814: checking for dlopen in -ldl" >&5
  1647. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1648. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1649. echo $ac_n "(cached) $ac_c" 1>&6
  1650. else
  1651. ac_save_LIBS="$LIBS"
  1652. LIBS="-ldl $LIBS"
  1653. cat > conftest.$ac_ext <<EOF
  1654. #line 1822 "configure"
  1655. #include "confdefs.h"
  1656. /* Override any gcc2 internal prototype to avoid an error. */
  1657. /* We use char because int might match the return type of a gcc2
  1658. builtin and then its argument prototype would still apply. */
  1659. char dlopen();
  1660. int main() {
  1661. dlopen()
  1662. ; return 0; }
  1663. EOF
  1664. if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1665. rm -rf conftest*
  1666. eval "ac_cv_lib_$ac_lib_var=yes"
  1667. else
  1668. echo "configure: failed program was:" >&5
  1669. cat conftest.$ac_ext >&5
  1670. rm -rf conftest*
  1671. eval "ac_cv_lib_$ac_lib_var=no"
  1672. fi
  1673. rm -f conftest*
  1674. LIBS="$ac_save_LIBS"
  1675. fi
  1676. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1677. echo "$ac_t""yes" 1>&6
  1678. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1679. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1680. cat >> confdefs.h <<EOF
  1681. #define $ac_tr_lib 1
  1682. EOF
  1683. LIBS="-ldl $LIBS"
  1684. else
  1685. echo "$ac_t""no" 1>&6
  1686. fi
  1687. echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
  1688. echo "configure:1861: checking for tan in -lm" >&5
  1689. ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
  1690. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1691. echo $ac_n "(cached) $ac_c" 1>&6
  1692. else
  1693. ac_save_LIBS="$LIBS"
  1694. LIBS="-lm $LIBS"
  1695. cat > conftest.$ac_ext <<EOF
  1696. #line 1869 "configure"
  1697. #include "confdefs.h"
  1698. /* Override any gcc2 internal prototype to avoid an error. */
  1699. /* We use char because int might match the return type of a gcc2
  1700. builtin and then its argument prototype would still apply. */
  1701. char tan();
  1702. int main() {
  1703. tan()
  1704. ; return 0; }
  1705. EOF
  1706. if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1707. rm -rf conftest*
  1708. eval "ac_cv_lib_$ac_lib_var=yes"
  1709. else
  1710. echo "configure: failed program was:" >&5
  1711. cat conftest.$ac_ext >&5
  1712. rm -rf conftest*
  1713. eval "ac_cv_lib_$ac_lib_var=no"
  1714. fi
  1715. rm -f conftest*
  1716. LIBS="$ac_save_LIBS"
  1717. fi
  1718. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1719. echo "$ac_t""yes" 1>&6
  1720. EGG_MATH_LIB="-lm"
  1721. else
  1722. echo "$ac_t""no" 1>&6
  1723. fi
  1724. # This is needed for Tcl libraries compiled with thread support
  1725. echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1726. echo "configure:1902: checking for pthread_mutex_init in -lpthread" >&5
  1727. ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1728. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1729. echo $ac_n "(cached) $ac_c" 1>&6
  1730. else
  1731. ac_save_LIBS="$LIBS"
  1732. LIBS="-lpthread $LIBS"
  1733. cat > conftest.$ac_ext <<EOF
  1734. #line 1910 "configure"
  1735. #include "confdefs.h"
  1736. /* Override any gcc2 internal prototype to avoid an error. */
  1737. /* We use char because int might match the return type of a gcc2
  1738. builtin and then its argument prototype would still apply. */
  1739. char pthread_mutex_init();
  1740. int main() {
  1741. pthread_mutex_init()
  1742. ; return 0; }
  1743. EOF
  1744. if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1745. rm -rf conftest*
  1746. eval "ac_cv_lib_$ac_lib_var=yes"
  1747. else
  1748. echo "configure: failed program was:" >&5
  1749. cat conftest.$ac_ext >&5
  1750. rm -rf conftest*
  1751. eval "ac_cv_lib_$ac_lib_var=no"
  1752. fi
  1753. rm -f conftest*
  1754. LIBS="$ac_save_LIBS"
  1755. fi
  1756. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1757. echo "$ac_t""yes" 1>&6
  1758. ac_cv_lib_pthread_pthread_mutex_init=yes
  1759. ac_cv_lib_pthread="-lpthread"
  1760. else
  1761. echo "$ac_t""no" 1>&6
  1762. echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1763. echo "configure:1941: checking for __pthread_mutex_init in -lpthread" >&5
  1764. ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`
  1765. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1766. echo $ac_n "(cached) $ac_c" 1>&6
  1767. else
  1768. ac_save_LIBS="$LIBS"
  1769. LIBS="-lpthread $LIBS"
  1770. cat > conftest.$ac_ext <<EOF
  1771. #line 1949 "configure"
  1772. #include "confdefs.h"
  1773. /* Override any gcc2 internal prototype to avoid an error. */
  1774. /* We use char because int might match the return type of a gcc2
  1775. builtin and then its argument prototype would still apply. */
  1776. char __pthread_mutex_init();
  1777. int main() {
  1778. __pthread_mutex_init()
  1779. ; return 0; }
  1780. EOF
  1781. if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1782. rm -rf conftest*
  1783. eval "ac_cv_lib_$ac_lib_var=yes"
  1784. else
  1785. echo "configure: failed program was:" >&5
  1786. cat conftest.$ac_ext >&5
  1787. rm -rf conftest*
  1788. eval "ac_cv_lib_$ac_lib_var=no"
  1789. fi
  1790. rm -f conftest*
  1791. LIBS="$ac_save_LIBS"
  1792. fi
  1793. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1794. echo "$ac_t""yes" 1>&6
  1795. ac_cv_lib_pthread_pthread_mutex_init=yes
  1796. ac_cv_lib_pthread="-lpthread"
  1797. else
  1798. echo "$ac_t""no" 1>&6
  1799. echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6
  1800. echo "configure:1980: checking for pthread_mutex_init in -lpthreads" >&5
  1801. ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1802. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1803. echo $ac_n "(cached) $ac_c" 1>&6
  1804. else
  1805. ac_save_LIBS="$LIBS"
  1806. LIBS="-lpthreads $LIBS"
  1807. cat > conftest.$ac_ext <<EOF
  1808. #line 1988 "configure"
  1809. #include "confdefs.h"
  1810. /* Override any gcc2 internal prototype to avoid an error. */
  1811. /* We use char because int might match the return type of a gcc2
  1812. builtin and then its argument prototype would still apply. */
  1813. char pthread_mutex_init();
  1814. int main() {
  1815. pthread_mutex_init()
  1816. ; return 0; }
  1817. EOF
  1818. if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1819. rm -rf conftest*
  1820. eval "ac_cv_lib_$ac_lib_var=yes"
  1821. else
  1822. echo "configure: failed program was:" >&5
  1823. cat conftest.$ac_ext >&5
  1824. rm -rf conftest*
  1825. eval "ac_cv_lib_$ac_lib_var=no"
  1826. fi
  1827. rm -f conftest*
  1828. LIBS="$ac_save_LIBS"
  1829. fi
  1830. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1831. echo "$ac_t""yes" 1>&6
  1832. ac_cv_lib_pthread_pthread_mutex_init=yes
  1833. ac_cv_lib_pthread="-lpthreads"
  1834. else
  1835. echo "$ac_t""no" 1>&6
  1836. echo $ac_n "checking for pthread_mutex_init""... $ac_c" 1>&6
  1837. echo "configure:2019: checking for pthread_mutex_init" >&5
  1838. if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_init'+set}'`\" = set"; then
  1839. echo $ac_n "(cached) $ac_c" 1>&6
  1840. else
  1841. cat > conftest.$ac_ext <<EOF
  1842. #line 2024 "configure"
  1843. #include "confdefs.h"
  1844. /* System header to define __stub macros and hopefully few prototypes,
  1845. which can conflict with char pthread_mutex_init(); below. */
  1846. #include <assert.h>
  1847. /* Override any gcc2 internal prototype to avoid an error. */
  1848. /* We use char because int might match the return type of a gcc2
  1849. builtin and then its argument prototype would still apply. */
  1850. char pthread_mutex_init();
  1851. int main() {
  1852. /* The GNU C library defines this for functions which it implements
  1853. to always fail with ENOSYS. Some functions are actually named
  1854. something starting with __ and the normal name is an alias. */
  1855. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  1856. choke me
  1857. #else
  1858. pthread_mutex_init();
  1859. #endif
  1860. ; return 0; }
  1861. EOF
  1862. if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1863. rm -rf conftest*
  1864. eval "ac_cv_func_pthread_mutex_init=yes"
  1865. else
  1866. echo "configure: failed program was:" >&5
  1867. cat conftest.$ac_ext >&5
  1868. rm -rf conftest*
  1869. eval "ac_cv_func_pthread_mutex_init=no"
  1870. fi
  1871. rm -f conftest*
  1872. fi
  1873. if eval "test \"`echo '$ac_cv_func_'pthread_mutex_init`\" = yes"; then
  1874. echo "$ac_t""yes" 1>&6
  1875. ac_cv_lib_pthread_pthread_mutex_init=yes
  1876. ac_cv_lib_pthread=""
  1877. else
  1878. echo "$ac_t""no" 1>&6
  1879. ac_cv_lib_pthread_pthread_mutex_init=no
  1880. fi
  1881. fi
  1882. fi
  1883. fi
  1884. if test "$SUNOS" = "yes"
  1885. then
  1886. # For suns without yp or something like that
  1887. echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
  1888. echo "configure:2078: checking for main in -ldl" >&5
  1889. ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
  1890. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1891. echo $ac_n "(cached) $ac_c" 1>&6
  1892. else
  1893. ac_save_LIBS="$LIBS"
  1894. LIBS="-ldl $LIBS"
  1895. cat > conftest.$ac_ext <<EOF
  1896. #line 2086 "configure"
  1897. #include "confdefs.h"
  1898. int main() {
  1899. main()
  1900. ; return 0; }
  1901. EOF
  1902. if { (eval echo configure:2093: \"$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 dl | 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="-ldl $LIBS"
  1922. else
  1923. echo "$ac_t""no" 1>&6
  1924. fi
  1925. else
  1926. if test "$HPUX" = "yes"
  1927. then
  1928. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1929. echo "configure:2124: checking for shl_load in -ldld" >&5
  1930. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1931. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1932. echo $ac_n "(cached) $ac_c" 1>&6
  1933. else
  1934. ac_save_LIBS="$LIBS"
  1935. LIBS="-ldld $LIBS"
  1936. cat > conftest.$ac_ext <<EOF
  1937. #line 2132 "configure"
  1938. #include "confdefs.h"
  1939. /* Override any gcc2 internal prototype to avoid an error. */
  1940. /* We use char because int might match the return type of a gcc2
  1941. builtin and then its argument prototype would still apply. */
  1942. char shl_load();
  1943. int main() {
  1944. shl_load()
  1945. ; return 0; }
  1946. EOF
  1947. if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1948. rm -rf conftest*
  1949. eval "ac_cv_lib_$ac_lib_var=yes"
  1950. else
  1951. echo "configure: failed program was:" >&5
  1952. cat conftest.$ac_ext >&5
  1953. rm -rf conftest*
  1954. eval "ac_cv_lib_$ac_lib_var=no"
  1955. fi
  1956. rm -f conftest*
  1957. LIBS="$ac_save_LIBS"
  1958. fi
  1959. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1960. echo "$ac_t""yes" 1>&6
  1961. ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1962. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1963. cat >> confdefs.h <<EOF
  1964. #define $ac_tr_lib 1
  1965. EOF
  1966. LIBS="-ldld $LIBS"
  1967. else
  1968. echo "$ac_t""no" 1>&6
  1969. fi
  1970. fi
  1971. fi
  1972. fi
  1973. # Checks for header files
  1974. ac_header_dirent=no
  1975. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1976. do
  1977. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1978. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1979. echo "configure:2181: checking for $ac_hdr that defines DIR" >&5
  1980. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1981. echo $ac_n "(cached) $ac_c" 1>&6
  1982. else
  1983. cat > conftest.$ac_ext <<EOF
  1984. #line 2186 "configure"
  1985. #include "confdefs.h"
  1986. #include <sys/types.h>
  1987. #include <$ac_hdr>
  1988. int main() {
  1989. DIR *dirp = 0;
  1990. ; return 0; }
  1991. EOF
  1992. if { (eval echo configure:2194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1993. rm -rf conftest*
  1994. eval "ac_cv_header_dirent_$ac_safe=yes"
  1995. else
  1996. echo "configure: failed program was:" >&5
  1997. cat conftest.$ac_ext >&5
  1998. rm -rf conftest*
  1999. eval "ac_cv_header_dirent_$ac_safe=no"
  2000. fi
  2001. rm -f conftest*
  2002. fi
  2003. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2004. echo "$ac_t""yes" 1>&6
  2005. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2006. cat >> confdefs.h <<EOF
  2007. #define $ac_tr_hdr 1
  2008. EOF
  2009. ac_header_dirent=$ac_hdr; break
  2010. else
  2011. echo "$ac_t""no" 1>&6
  2012. fi
  2013. done
  2014. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2015. if test $ac_header_dirent = dirent.h; then
  2016. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  2017. echo "configure:2219: checking for opendir in -ldir" >&5
  2018. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  2019. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2020. echo $ac_n "(cached) $ac_c" 1>&6
  2021. else
  2022. ac_save_LIBS="$LIBS"
  2023. LIBS="-ldir $LIBS"
  2024. cat > conftest.$ac_ext <<EOF
  2025. #line 2227 "configure"
  2026. #include "confdefs.h"
  2027. /* Override any gcc2 internal prototype to avoid an error. */
  2028. /* We use char because int might match the return type of a gcc2
  2029. builtin and then its argument prototype would still apply. */
  2030. char opendir();
  2031. int main() {
  2032. opendir()
  2033. ; return 0; }
  2034. EOF
  2035. if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2036. rm -rf conftest*
  2037. eval "ac_cv_lib_$ac_lib_var=yes"
  2038. else
  2039. echo "configure: failed program was:" >&5
  2040. cat conftest.$ac_ext >&5
  2041. rm -rf conftest*
  2042. eval "ac_cv_lib_$ac_lib_var=no"
  2043. fi
  2044. rm -f conftest*
  2045. LIBS="$ac_save_LIBS"
  2046. fi
  2047. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2048. echo "$ac_t""yes" 1>&6
  2049. LIBS="$LIBS -ldir"
  2050. else
  2051. echo "$ac_t""no" 1>&6
  2052. fi
  2053. else
  2054. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  2055. echo "configure:2260: checking for opendir in -lx" >&5
  2056. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  2057. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2058. echo $ac_n "(cached) $ac_c" 1>&6
  2059. else
  2060. ac_save_LIBS="$LIBS"
  2061. LIBS="-lx $LIBS"
  2062. cat > conftest.$ac_ext <<EOF
  2063. #line 2268 "configure"
  2064. #include "confdefs.h"
  2065. /* Override any gcc2 internal prototype to avoid an error. */
  2066. /* We use char because int might match the return type of a gcc2
  2067. builtin and then its argument prototype would still apply. */
  2068. char opendir();
  2069. int main() {
  2070. opendir()
  2071. ; return 0; }
  2072. EOF
  2073. if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2074. rm -rf conftest*
  2075. eval "ac_cv_lib_$ac_lib_var=yes"
  2076. else
  2077. echo "configure: failed program was:" >&5
  2078. cat conftest.$ac_ext >&5
  2079. rm -rf conftest*
  2080. eval "ac_cv_lib_$ac_lib_var=no"
  2081. fi
  2082. rm -f conftest*
  2083. LIBS="$ac_save_LIBS"
  2084. fi
  2085. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2086. echo "$ac_t""yes" 1>&6
  2087. LIBS="$LIBS -lx"
  2088. else
  2089. echo "$ac_t""no" 1>&6
  2090. fi
  2091. fi
  2092. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2093. echo "configure:2302: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2094. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2095. echo $ac_n "(cached) $ac_c" 1>&6
  2096. else
  2097. cat > conftest.$ac_ext <<EOF
  2098. #line 2307 "configure"
  2099. #include "confdefs.h"
  2100. #include <sys/types.h>
  2101. #include <sys/wait.h>
  2102. #ifndef WEXITSTATUS
  2103. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2104. #endif
  2105. #ifndef WIFEXITED
  2106. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2107. #endif
  2108. int main() {
  2109. int s;
  2110. wait (&s);
  2111. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2112. ; return 0; }
  2113. EOF
  2114. if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2115. rm -rf conftest*
  2116. ac_cv_header_sys_wait_h=yes
  2117. else
  2118. echo "configure: failed program was:" >&5
  2119. cat conftest.$ac_ext >&5
  2120. rm -rf conftest*
  2121. ac_cv_header_sys_wait_h=no
  2122. fi
  2123. rm -f conftest*
  2124. fi
  2125. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2126. if test $ac_cv_header_sys_wait_h = yes; then
  2127. cat >> confdefs.h <<\EOF
  2128. #define HAVE_SYS_WAIT_H 1
  2129. EOF
  2130. fi
  2131. for ac_hdr in sys/time.h
  2132. do
  2133. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2134. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2135. echo "configure:2347: checking for $ac_hdr" >&5
  2136. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2137. echo $ac_n "(cached) $ac_c" 1>&6
  2138. else
  2139. cat > conftest.$ac_ext <<EOF
  2140. #line 2352 "configure"
  2141. #include "confdefs.h"
  2142. #include <$ac_hdr>
  2143. EOF
  2144. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2145. { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2146. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2147. if test -z "$ac_err"; then
  2148. rm -rf conftest*
  2149. eval "ac_cv_header_$ac_safe=yes"
  2150. else
  2151. echo "$ac_err" >&5
  2152. echo "configure: failed program was:" >&5
  2153. cat conftest.$ac_ext >&5
  2154. rm -rf conftest*
  2155. eval "ac_cv_header_$ac_safe=no"
  2156. fi
  2157. rm -f conftest*
  2158. fi
  2159. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2160. echo "$ac_t""yes" 1>&6
  2161. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2162. cat >> confdefs.h <<EOF
  2163. #define $ac_tr_hdr 1
  2164. EOF
  2165. else
  2166. echo "$ac_t""no" 1>&6
  2167. fi
  2168. done
  2169. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2170. echo "configure:2384: checking whether time.h and sys/time.h may both be included" >&5
  2171. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2172. echo $ac_n "(cached) $ac_c" 1>&6
  2173. else
  2174. cat > conftest.$ac_ext <<EOF
  2175. #line 2389 "configure"
  2176. #include "confdefs.h"
  2177. #include <sys/types.h>
  2178. #include <sys/time.h>
  2179. #include <time.h>
  2180. int main() {
  2181. struct tm *tp;
  2182. ; return 0; }
  2183. EOF
  2184. if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2185. rm -rf conftest*
  2186. ac_cv_header_time=yes
  2187. else
  2188. echo "configure: failed program was:" >&5
  2189. cat conftest.$ac_ext >&5
  2190. rm -rf conftest*
  2191. ac_cv_header_time=no
  2192. fi
  2193. rm -f conftest*
  2194. fi
  2195. echo "$ac_t""$ac_cv_header_time" 1>&6
  2196. if test $ac_cv_header_time = yes; then
  2197. cat >> confdefs.h <<\EOF
  2198. #define TIME_WITH_SYS_TIME 1
  2199. EOF
  2200. fi
  2201. for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h
  2202. do
  2203. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2204. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2205. echo "configure:2422: checking for $ac_hdr" >&5
  2206. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2207. echo $ac_n "(cached) $ac_c" 1>&6
  2208. else
  2209. cat > conftest.$ac_ext <<EOF
  2210. #line 2427 "configure"
  2211. #include "confdefs.h"
  2212. #include <$ac_hdr>
  2213. EOF
  2214. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2215. { (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2216. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2217. if test -z "$ac_err"; then
  2218. rm -rf conftest*
  2219. eval "ac_cv_header_$ac_safe=yes"
  2220. else
  2221. echo "$ac_err" >&5
  2222. echo "configure: failed program was:" >&5
  2223. cat conftest.$ac_ext >&5
  2224. rm -rf conftest*
  2225. eval "ac_cv_header_$ac_safe=no"
  2226. fi
  2227. rm -f conftest*
  2228. fi
  2229. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2230. echo "$ac_t""yes" 1>&6
  2231. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2232. cat >> confdefs.h <<EOF
  2233. #define $ac_tr_hdr 1
  2234. EOF
  2235. else
  2236. echo "$ac_t""no" 1>&6
  2237. fi
  2238. done
  2239. # Checks for typedefs, structures, and compiler characteristics
  2240. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2241. echo "configure:2461: checking for ANSI C header files" >&5
  2242. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2243. echo $ac_n "(cached) $ac_c" 1>&6
  2244. else
  2245. cat > conftest.$ac_ext <<EOF
  2246. #line 2466 "configure"
  2247. #include "confdefs.h"
  2248. #include <stdlib.h>
  2249. #include <stdarg.h>
  2250. #include <string.h>
  2251. #include <float.h>
  2252. EOF
  2253. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2254. { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2255. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2256. if test -z "$ac_err"; then
  2257. rm -rf conftest*
  2258. ac_cv_header_stdc=yes
  2259. else
  2260. echo "$ac_err" >&5
  2261. echo "configure: failed program was:" >&5
  2262. cat conftest.$ac_ext >&5
  2263. rm -rf conftest*
  2264. ac_cv_header_stdc=no
  2265. fi
  2266. rm -f conftest*
  2267. if test $ac_cv_header_stdc = yes; then
  2268. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2269. cat > conftest.$ac_ext <<EOF
  2270. #line 2491 "configure"
  2271. #include "confdefs.h"
  2272. #include <string.h>
  2273. EOF
  2274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2275. egrep "memchr" >/dev/null 2>&1; then
  2276. :
  2277. else
  2278. rm -rf conftest*
  2279. ac_cv_header_stdc=no
  2280. fi
  2281. rm -f conftest*
  2282. fi
  2283. if test $ac_cv_header_stdc = yes; then
  2284. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2285. cat > conftest.$ac_ext <<EOF
  2286. #line 2509 "configure"
  2287. #include "confdefs.h"
  2288. #include <stdlib.h>
  2289. EOF
  2290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2291. egrep "free" >/dev/null 2>&1; then
  2292. :
  2293. else
  2294. rm -rf conftest*
  2295. ac_cv_header_stdc=no
  2296. fi
  2297. rm -f conftest*
  2298. fi
  2299. if test $ac_cv_header_stdc = yes; then
  2300. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2301. if test "$cross_compiling" = yes; then
  2302. :
  2303. else
  2304. cat > conftest.$ac_ext <<EOF
  2305. #line 2530 "configure"
  2306. #include "confdefs.h"
  2307. #include <ctype.h>
  2308. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2309. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2310. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2311. int main () { int i; for (i = 0; i < 256; i++)
  2312. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2313. exit (0); }
  2314. EOF
  2315. if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2316. then
  2317. :
  2318. else
  2319. echo "configure: failed program was:" >&5
  2320. cat conftest.$ac_ext >&5
  2321. rm -fr conftest*
  2322. ac_cv_header_stdc=no
  2323. fi
  2324. rm -fr conftest*
  2325. fi
  2326. fi
  2327. fi
  2328. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2329. if test $ac_cv_header_stdc = yes; then
  2330. cat >> confdefs.h <<\EOF
  2331. #define STDC_HEADERS 1
  2332. EOF
  2333. fi
  2334. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2335. echo "configure:2565: checking for pid_t" >&5
  2336. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2337. echo $ac_n "(cached) $ac_c" 1>&6
  2338. else
  2339. cat > conftest.$ac_ext <<EOF
  2340. #line 2570 "configure"
  2341. #include "confdefs.h"
  2342. #include <sys/types.h>
  2343. #if STDC_HEADERS
  2344. #include <stdlib.h>
  2345. #include <stddef.h>
  2346. #endif
  2347. EOF
  2348. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2349. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2350. rm -rf conftest*
  2351. ac_cv_type_pid_t=yes
  2352. else
  2353. rm -rf conftest*
  2354. ac_cv_type_pid_t=no
  2355. fi
  2356. rm -f conftest*
  2357. fi
  2358. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2359. if test $ac_cv_type_pid_t = no; then
  2360. cat >> confdefs.h <<\EOF
  2361. #define pid_t int
  2362. EOF
  2363. fi
  2364. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2365. echo "configure:2598: checking for size_t" >&5
  2366. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2367. echo $ac_n "(cached) $ac_c" 1>&6
  2368. else
  2369. cat > conftest.$ac_ext <<EOF
  2370. #line 2603 "configure"
  2371. #include "confdefs.h"
  2372. #include <sys/types.h>
  2373. #if STDC_HEADERS
  2374. #include <stdlib.h>
  2375. #include <stddef.h>
  2376. #endif
  2377. EOF
  2378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2379. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2380. rm -rf conftest*
  2381. ac_cv_type_size_t=yes
  2382. else
  2383. rm -rf conftest*
  2384. ac_cv_type_size_t=no
  2385. fi
  2386. rm -f conftest*
  2387. fi
  2388. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2389. if test $ac_cv_type_size_t = no; then
  2390. cat >> confdefs.h <<\EOF
  2391. #define size_t unsigned
  2392. EOF
  2393. fi
  2394. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2395. echo "configure:2631: checking for working const" >&5
  2396. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2397. echo $ac_n "(cached) $ac_c" 1>&6
  2398. else
  2399. cat > conftest.$ac_ext <<EOF
  2400. #line 2636 "configure"
  2401. #include "confdefs.h"
  2402. int main() {
  2403. /* Ultrix mips cc rejects this. */
  2404. typedef int charset[2]; const charset x;
  2405. /* SunOS 4.1.1 cc rejects this. */
  2406. char const *const *ccp;
  2407. char **p;
  2408. /* NEC SVR4.0.2 mips cc rejects this. */
  2409. struct point {int x, y;};
  2410. static struct point const zero = {0,0};
  2411. /* AIX XL C 1.02.0.0 rejects this.
  2412. It does not let you subtract one const X* pointer from another in an arm
  2413. of an if-expression whose if-part is not a constant expression */
  2414. const char *g = "string";
  2415. ccp = &g + (g ? g-g : 0);
  2416. /* HPUX 7.0 cc rejects these. */
  2417. ++ccp;
  2418. p = (char**) ccp;
  2419. ccp = (char const *const *) p;
  2420. { /* SCO 3.2v4 cc rejects this. */
  2421. char *t;
  2422. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2423. *t++ = 0;
  2424. }
  2425. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2426. int x[] = {25, 17};
  2427. const int *foo = &x[0];
  2428. ++foo;
  2429. }
  2430. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2431. typedef const int *iptr;
  2432. iptr p = 0;
  2433. ++p;
  2434. }
  2435. { /* AIX XL C 1.02.0.0 rejects this saying
  2436. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2437. struct s { int j; const int *ap[3]; };
  2438. struct s *b; b->j = 5;
  2439. }
  2440. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2441. const int foo = 10;
  2442. }
  2443. ; return 0; }
  2444. EOF
  2445. if { (eval echo configure:2685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2446. rm -rf conftest*
  2447. ac_cv_c_const=yes
  2448. else
  2449. echo "configure: failed program was:" >&5
  2450. cat conftest.$ac_ext >&5
  2451. rm -rf conftest*
  2452. ac_cv_c_const=no
  2453. fi
  2454. rm -f conftest*
  2455. fi
  2456. echo "$ac_t""$ac_cv_c_const" 1>&6
  2457. if test $ac_cv_c_const = no; then
  2458. cat >> confdefs.h <<\EOF
  2459. #define const
  2460. EOF
  2461. fi
  2462. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2463. echo "configure:2706: checking whether byte ordering is bigendian" >&5
  2464. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2465. echo $ac_n "(cached) $ac_c" 1>&6
  2466. else
  2467. ac_cv_c_bigendian=unknown
  2468. # See if sys/param.h defines the BYTE_ORDER macro.
  2469. cat > conftest.$ac_ext <<EOF
  2470. #line 2713 "configure"
  2471. #include "confdefs.h"
  2472. #include <sys/types.h>
  2473. #include <sys/param.h>
  2474. int main() {
  2475. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2476. bogus endian macros
  2477. #endif
  2478. ; return 0; }
  2479. EOF
  2480. if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2481. rm -rf conftest*
  2482. # It does; now see whether it defined to BIG_ENDIAN or not.
  2483. cat > conftest.$ac_ext <<EOF
  2484. #line 2728 "configure"
  2485. #include "confdefs.h"
  2486. #include <sys/types.h>
  2487. #include <sys/param.h>
  2488. int main() {
  2489. #if BYTE_ORDER != BIG_ENDIAN
  2490. not big endian
  2491. #endif
  2492. ; return 0; }
  2493. EOF
  2494. if { (eval echo configure:2739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2495. rm -rf conftest*
  2496. ac_cv_c_bigendian=yes
  2497. else
  2498. echo "configure: failed program was:" >&5
  2499. cat conftest.$ac_ext >&5
  2500. rm -rf conftest*
  2501. ac_cv_c_bigendian=no
  2502. fi
  2503. rm -f conftest*
  2504. else
  2505. echo "configure: failed program was:" >&5
  2506. cat conftest.$ac_ext >&5
  2507. fi
  2508. rm -f conftest*
  2509. if test $ac_cv_c_bigendian = unknown; then
  2510. if test "$cross_compiling" = yes; then
  2511. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2512. else
  2513. cat > conftest.$ac_ext <<EOF
  2514. #line 2759 "configure"
  2515. #include "confdefs.h"
  2516. main () {
  2517. /* Are we little or big endian? From Harbison&Steele. */
  2518. union
  2519. {
  2520. long l;
  2521. char c[sizeof (long)];
  2522. } u;
  2523. u.l = 1;
  2524. exit (u.c[sizeof (long) - 1] == 1);
  2525. }
  2526. EOF
  2527. if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2528. then
  2529. ac_cv_c_bigendian=no
  2530. else
  2531. echo "configure: failed program was:" >&5
  2532. cat conftest.$ac_ext >&5
  2533. rm -fr conftest*
  2534. ac_cv_c_bigendian=yes
  2535. fi
  2536. rm -fr conftest*
  2537. fi
  2538. fi
  2539. fi
  2540. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2541. if test $ac_cv_c_bigendian = yes; then
  2542. cat >> confdefs.h <<\EOF
  2543. #define WORDS_BIGENDIAN 1
  2544. EOF
  2545. fi
  2546. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2547. echo "configure:2796: checking for inline" >&5
  2548. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2549. echo $ac_n "(cached) $ac_c" 1>&6
  2550. else
  2551. ac_cv_c_inline=no
  2552. for ac_kw in inline __inline__ __inline; do
  2553. cat > conftest.$ac_ext <<EOF
  2554. #line 2803 "configure"
  2555. #include "confdefs.h"
  2556. int main() {
  2557. } $ac_kw foo() {
  2558. ; return 0; }
  2559. EOF
  2560. if { (eval echo configure:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2561. rm -rf conftest*
  2562. ac_cv_c_inline=$ac_kw; break
  2563. else
  2564. echo "configure: failed program was:" >&5
  2565. cat conftest.$ac_ext >&5
  2566. fi
  2567. rm -f conftest*
  2568. done
  2569. fi
  2570. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2571. case "$ac_cv_c_inline" in
  2572. inline | yes) ;;
  2573. no) cat >> confdefs.h <<\EOF
  2574. #define inline
  2575. EOF
  2576. ;;
  2577. *) cat >> confdefs.h <<EOF
  2578. #define inline $ac_cv_c_inline
  2579. EOF
  2580. ;;
  2581. esac
  2582. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2583. echo "configure:2836: checking size of long" >&5
  2584. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2585. echo $ac_n "(cached) $ac_c" 1>&6
  2586. else
  2587. if test "$cross_compiling" = yes; then
  2588. ac_cv_sizeof_long=0
  2589. else
  2590. cat > conftest.$ac_ext <<EOF
  2591. #line 2844 "configure"
  2592. #include "confdefs.h"
  2593. #include <stdio.h>
  2594. #include <sys/types.h>
  2595. main()
  2596. {
  2597. FILE *f=fopen("conftestval", "w");
  2598. if (!f) exit(1);
  2599. fprintf(f, "%d\n", sizeof(long));
  2600. exit(0);
  2601. }
  2602. EOF
  2603. if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2604. then
  2605. ac_cv_sizeof_long=`cat conftestval`
  2606. else
  2607. echo "configure: failed program was:" >&5
  2608. cat conftest.$ac_ext >&5
  2609. rm -fr conftest*
  2610. ac_cv_sizeof_long=0
  2611. fi
  2612. rm -fr conftest*
  2613. fi
  2614. fi
  2615. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2616. cat >> confdefs.h <<EOF
  2617. #define SIZEOF_LONG $ac_cv_sizeof_long
  2618. EOF
  2619. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2620. echo "configure:2876: checking size of int" >&5
  2621. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2622. echo $ac_n "(cached) $ac_c" 1>&6
  2623. else
  2624. if test "$cross_compiling" = yes; then
  2625. ac_cv_sizeof_int=0
  2626. else
  2627. cat > conftest.$ac_ext <<EOF
  2628. #line 2884 "configure"
  2629. #include "confdefs.h"
  2630. #include <stdio.h>
  2631. #include <sys/types.h>
  2632. main()
  2633. {
  2634. FILE *f=fopen("conftestval", "w");
  2635. if (!f) exit(1);
  2636. fprintf(f, "%d\n", sizeof(int));
  2637. exit(0);
  2638. }
  2639. EOF
  2640. if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2641. then
  2642. ac_cv_sizeof_int=`cat conftestval`
  2643. else
  2644. echo "configure: failed program was:" >&5
  2645. cat conftest.$ac_ext >&5
  2646. rm -fr conftest*
  2647. ac_cv_sizeof_int=0
  2648. fi
  2649. rm -fr conftest*
  2650. fi
  2651. fi
  2652. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2653. cat >> confdefs.h <<EOF
  2654. #define SIZEOF_INT $ac_cv_sizeof_int
  2655. EOF
  2656. # Checks for library functions
  2657. for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom dlopen dprintf snprintf vsnprintf isascii inet_aton memcpy strftime fsync
  2658. do
  2659. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2660. echo "configure:2920: checking for $ac_func" >&5
  2661. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2662. echo $ac_n "(cached) $ac_c" 1>&6
  2663. else
  2664. cat > conftest.$ac_ext <<EOF
  2665. #line 2925 "configure"
  2666. #include "confdefs.h"
  2667. /* System header to define __stub macros and hopefully few prototypes,
  2668. which can conflict with char $ac_func(); below. */
  2669. #include <assert.h>
  2670. /* Override any gcc2 internal prototype to avoid an error. */
  2671. /* We use char because int might match the return type of a gcc2
  2672. builtin and then its argument prototype would still apply. */
  2673. char $ac_func();
  2674. int main() {
  2675. /* The GNU C library defines this for functions which it implements
  2676. to always fail with ENOSYS. Some functions are actually named
  2677. something starting with __ and the normal name is an alias. */
  2678. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2679. choke me
  2680. #else
  2681. $ac_func();
  2682. #endif
  2683. ; return 0; }
  2684. EOF
  2685. if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2686. rm -rf conftest*
  2687. eval "ac_cv_func_$ac_func=yes"
  2688. else
  2689. echo "configure: failed program was:" >&5
  2690. cat conftest.$ac_ext >&5
  2691. rm -rf conftest*
  2692. eval "ac_cv_func_$ac_func=no"
  2693. fi
  2694. rm -f conftest*
  2695. fi
  2696. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2697. echo "$ac_t""yes" 1>&6
  2698. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2699. cat >> confdefs.h <<EOF
  2700. #define $ac_tr_func 1
  2701. EOF
  2702. else
  2703. echo "$ac_t""no" 1>&6
  2704. fi
  2705. done
  2706. for ac_func in vsprintf
  2707. do
  2708. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2709. echo "configure:2975: checking for $ac_func" >&5
  2710. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2711. echo $ac_n "(cached) $ac_c" 1>&6
  2712. else
  2713. cat > conftest.$ac_ext <<EOF
  2714. #line 2980 "configure"
  2715. #include "confdefs.h"
  2716. /* System header to define __stub macros and hopefully few prototypes,
  2717. which can conflict with char $ac_func(); below. */
  2718. #include <assert.h>
  2719. /* Override any gcc2 internal prototype to avoid an error. */
  2720. /* We use char because int might match the return type of a gcc2
  2721. builtin and then its argument prototype would still apply. */
  2722. char $ac_func();
  2723. int main() {
  2724. /* The GNU C library defines this for functions which it implements
  2725. to always fail with ENOSYS. Some functions are actually named
  2726. something starting with __ and the normal name is an alias. */
  2727. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2728. choke me
  2729. #else
  2730. $ac_func();
  2731. #endif
  2732. ; return 0; }
  2733. EOF
  2734. if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2735. rm -rf conftest*
  2736. eval "ac_cv_func_$ac_func=yes"
  2737. else
  2738. echo "configure: failed program was:" >&5
  2739. cat conftest.$ac_ext >&5
  2740. rm -rf conftest*
  2741. eval "ac_cv_func_$ac_func=no"
  2742. fi
  2743. rm -f conftest*
  2744. fi
  2745. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2746. echo "$ac_t""yes" 1>&6
  2747. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2748. cat >> confdefs.h <<EOF
  2749. #define $ac_tr_func 1
  2750. EOF
  2751. else
  2752. echo "$ac_t""no" 1>&6
  2753. fi
  2754. done
  2755. if test "$ac_cv_func_vsprintf" = "no"
  2756. then
  2757. cat << 'EOF' >&2
  2758. configure: error:
  2759. Your system does not have the sprintf/vsprintf libraries.
  2760. These are required to compile almost anything. Sorry.
  2761. EOF
  2762. exit 1
  2763. fi
  2764. # Make sure we have stdc headers, since we can't compile without them
  2765. if test "$ac_cv_header_stdc" = "no"
  2766. then
  2767. cat << 'EOF' >&2
  2768. configure: error:
  2769. Your system must support ANSI C Header files.
  2770. These are required for the language support. Sorry.
  2771. EOF
  2772. exit 1
  2773. fi
  2774. # Make sure we are using the correct result from a broken libsafe sscanf
  2775. echo $ac_n "checking for broken libsafe sscanf""... $ac_c" 1>&6
  2776. echo "configure:3056: checking for broken libsafe sscanf" >&5
  2777. if eval "test \"`echo '$''{'egg_cv_var_libsafe_sscanf'+set}'`\" = set"; then
  2778. echo $ac_n "(cached) $ac_c" 1>&6
  2779. else
  2780. if test "$cross_compiling" = yes; then
  2781. egg_cv_var_libsafe_sscanf="no"
  2782. else
  2783. cat > conftest.$ac_ext <<EOF
  2784. #line 3064 "configure"
  2785. #include "confdefs.h"
  2786. #include <stdio.h>
  2787. int main()
  2788. {
  2789. char *src = "0x001,guppyism\n";
  2790. char dst[10];
  2791. int idx;
  2792. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  2793. exit(1);
  2794. return 0;
  2795. }
  2796. EOF
  2797. if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2798. then
  2799. egg_cv_var_libsafe_sscanf="no"
  2800. else
  2801. echo "configure: failed program was:" >&5
  2802. cat conftest.$ac_ext >&5
  2803. rm -fr conftest*
  2804. egg_cv_var_libsafe_sscanf="yes"
  2805. fi
  2806. rm -fr conftest*
  2807. fi
  2808. fi
  2809. echo "$ac_t""$egg_cv_var_libsafe_sscanf" 1>&6
  2810. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  2811. then
  2812. cat >> confdefs.h <<\EOF
  2813. #define LIBSAFE_HACKS 1
  2814. EOF
  2815. fi
  2816. # Checks for executable extension
  2817. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2818. echo "configure:3106: checking for Cygwin environment" >&5
  2819. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  2820. echo $ac_n "(cached) $ac_c" 1>&6
  2821. else
  2822. cat > conftest.$ac_ext <<EOF
  2823. #line 3111 "configure"
  2824. #include "confdefs.h"
  2825. int main() {
  2826. #ifndef __CYGWIN__
  2827. #define __CYGWIN__ __CYGWIN32__
  2828. #endif
  2829. return __CYGWIN__;
  2830. ; return 0; }
  2831. EOF
  2832. if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2833. rm -rf conftest*
  2834. ac_cv_cygwin=yes
  2835. else
  2836. echo "configure: failed program was:" >&5
  2837. cat conftest.$ac_ext >&5
  2838. rm -rf conftest*
  2839. ac_cv_cygwin=no
  2840. fi
  2841. rm -f conftest*
  2842. rm -f conftest*
  2843. fi
  2844. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2845. CYGWIN=
  2846. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2847. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  2848. echo "configure:3139: checking for mingw32 environment" >&5
  2849. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  2850. echo $ac_n "(cached) $ac_c" 1>&6
  2851. else
  2852. cat > conftest.$ac_ext <<EOF
  2853. #line 3144 "configure"
  2854. #include "confdefs.h"
  2855. int main() {
  2856. return __MINGW32__;
  2857. ; return 0; }
  2858. EOF
  2859. if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2860. rm -rf conftest*
  2861. ac_cv_mingw32=yes
  2862. else
  2863. echo "configure: failed program was:" >&5
  2864. cat conftest.$ac_ext >&5
  2865. rm -rf conftest*
  2866. ac_cv_mingw32=no
  2867. fi
  2868. rm -f conftest*
  2869. rm -f conftest*
  2870. fi
  2871. echo "$ac_t""$ac_cv_mingw32" 1>&6
  2872. MINGW32=
  2873. test "$ac_cv_mingw32" = yes && MINGW32=yes
  2874. EGGEXEC=eggdrop
  2875. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  2876. echo "configure:3171: checking for executable suffix" >&5
  2877. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  2878. echo $ac_n "(cached) $ac_c" 1>&6
  2879. else
  2880. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  2881. ac_cv_exeext=.exe
  2882. else
  2883. rm -f conftest*
  2884. echo 'int main () { return 0; }' > conftest.$ac_ext
  2885. ac_cv_exeext=
  2886. if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2887. for file in conftest.*; do
  2888. case $file in
  2889. *.$ac_ext | *.c | *.o | *.obj) ;;
  2890. *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  2891. esac
  2892. done
  2893. else
  2894. { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  2895. fi
  2896. rm -f conftest*
  2897. test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  2898. fi
  2899. fi
  2900. EXEEXT=""
  2901. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  2902. echo "$ac_t""${ac_cv_exeext}" 1>&6
  2903. ac_exeext=$EXEEXT
  2904. if test ! "${EXEEXT-x}" = "x"
  2905. then
  2906. EGGEXEC="eggdrop$EXEEXT"
  2907. fi
  2908. # Where is Tcl? Is it here?
  2909. # ---------- begin robey's Tcl thingies
  2910. # (well, what used to be robey's Tcl thingies...)
  2911. # Latest tested Tcl version to recommend if Tcl isn't found
  2912. tclrecommendver="8.3.3"
  2913. # Site recommended to download Tcl from
  2914. tclrecommendsite="ftp://ftp.eggheads.org/pub/tcl/tcl8_3/"
  2915. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  2916. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  2917. tcl8.0 tcl80 tcl7.6 tcl76 tcl7.5 tcl75 tcl7.4 tcl74 \
  2918. tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 tcl7.0 tcl70"
  2919. # Tcl library filename suffixes
  2920. tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .a .sl .dll"
  2921. # Tcl library search paths
  2922. tcllibpaths="$HOME/lib $HOME/tcl/lib $HOME \
  2923. /usr/local/lib /usr/local/pkgs/tcl/lib \
  2924. /usr/lib /lib /usr/i486-linuxaout/lib \
  2925. /beos/system/lib /sys/lib"
  2926. # Tcl header filenames
  2927. tclheadernames="tcl.h"
  2928. # Tcl header search paths
  2929. tclheaderpaths="$HOME/include $HOME/tcl/include $HOME \
  2930. /usr/local/include /usr/local/pkgs/tcl/include \
  2931. /usr/include /beos/system/include /beos/devel/include \
  2932. /sys/include"
  2933. # oohh new configure --variables for those with multiple Tcl libs
  2934. # Check whether --with-tcllib or --without-tcllib was given.
  2935. if test "${with_tcllib+set}" = set; then
  2936. withval="$with_tcllib"
  2937. tcllibname="$withval"
  2938. fi
  2939. # Check whether --with-tclinc or --without-tclinc was given.
  2940. if test "${with_tclinc+set}" = set; then
  2941. withval="$with_tclinc"
  2942. tclincname="$withval"
  2943. fi
  2944. WARN=0
  2945. # Make sure either both or neither $tcllibname and $tclincname are set
  2946. if test ! "${tcllibname-x}" = "x"
  2947. then
  2948. if test "${tclincname-x}" = "x"
  2949. then
  2950. WARN=1
  2951. tcllibname=""
  2952. TCLLIB=""
  2953. TCLINC=""
  2954. fi
  2955. else
  2956. if test ! "${tclincname-x}" = "x"
  2957. then
  2958. WARN=1
  2959. tclincname=""
  2960. TCLLIB=""
  2961. TCLINC=""
  2962. fi
  2963. fi
  2964. if test "$WARN" = 1
  2965. then
  2966. cat << 'EOF' >&2
  2967. configure: warning:
  2968. You must specify both --with-tcllib and --with-tclinc for them to work.
  2969. configure will now attempt to autodetect both the Tcl library and header...
  2970. EOF
  2971. fi
  2972. WARN=0
  2973. # Make sure either both or neither $TCLLIB and $TCLINC are set
  2974. if test ! "${TCLLIB-x}" = "x"
  2975. then
  2976. if test "${TCLINC-x}" = "x"
  2977. then
  2978. WARN=1
  2979. WVAR1=TCLLIB
  2980. WVAR2=TCLINC
  2981. TCLLIB=""
  2982. fi
  2983. else
  2984. if test ! "${TCLINC-x}" = "x"
  2985. then
  2986. WARN=1
  2987. WVAR1=TCLINC
  2988. WVAR2=TCLLIB
  2989. TCLINC=""
  2990. fi
  2991. fi
  2992. if test "$WARN" = 1
  2993. then
  2994. cat << EOF >&2
  2995. configure: warning:
  2996. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  2997. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  2998. configure will now attempt to autodetect both the Tcl library and header...
  2999. EOF
  3000. fi
  3001. # Look for Tcl library: if $tcllibname is set, check there first
  3002. if test ! "${tcllibname-x}" = "x"
  3003. then
  3004. if test -f "$tcllibname" && test -r "$tcllibname"
  3005. then
  3006. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  3007. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  3008. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  3009. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  3010. else
  3011. cat << EOF >&2
  3012. configure: warning:
  3013. The file '$tcllibname' given to option --with-tcllib is not valid.
  3014. configure will now attempt to autodetect both the Tcl library and header...
  3015. EOF
  3016. tcllibname=""
  3017. tclincname=""
  3018. TCLLIB=""
  3019. TCLLIBFN=""
  3020. TCLINC=""
  3021. TCLINCFN=""
  3022. fi
  3023. fi
  3024. # Look for Tcl header: if $tclincname is set, check there first
  3025. if test ! "${tclincname-x}" = "x"
  3026. then
  3027. if test -f "$tclincname" && test -r "$tclincname"
  3028. then
  3029. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  3030. TCLINCFN=`$BASENAME $tclincname`
  3031. else
  3032. cat << EOF >&2
  3033. configure: warning:
  3034. The file '$tclincname' given to option --with-tclinc is not valid.
  3035. configure will now attempt to autodetect both the Tcl library and header...
  3036. EOF
  3037. tcllibname=""
  3038. tclincname=""
  3039. TCLLIB=""
  3040. TCLLIBFN=""
  3041. TCLINC=""
  3042. TCLINCFN=""
  3043. fi
  3044. fi
  3045. # Look for Tcl library: if $TCLLIB is set, check there first
  3046. if test "${TCLLIBFN-x}" = "x"
  3047. then
  3048. if test ! "${TCLLIB-x}" = "x"
  3049. then
  3050. if test -d "$TCLLIB"
  3051. then
  3052. for tcllibfns in $tcllibnames
  3053. do
  3054. for tcllibext in $tcllibextensions
  3055. do
  3056. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  3057. then
  3058. TCLLIBFN="$tcllibfns$tcllibext"
  3059. TCLLIBEXT="$tcllibext"
  3060. TCLLIBFNS="$tcllibfns"
  3061. break 2
  3062. fi
  3063. done
  3064. done
  3065. fi
  3066. if test "${TCLLIBFN-x}" = "x"
  3067. then
  3068. cat << 'EOF' >&2
  3069. configure: warning:
  3070. Environment variable TCLLIB was set, but incorrect.
  3071. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3072. configure will now attempt to autodetect both the Tcl library and header...
  3073. EOF
  3074. TCLLIB=""
  3075. TCLLIBFN=""
  3076. TCLINC=""
  3077. TCLINCFN=""
  3078. fi
  3079. fi
  3080. fi
  3081. # Look for Tcl header: if $TCLINC is set, check there first
  3082. if test "${TCLINCFN-x}" = "x"
  3083. then
  3084. if test ! "${TCLINC-x}" = "x"
  3085. then
  3086. if test -d "$TCLINC"
  3087. then
  3088. for tclheaderfn in $tclheadernames
  3089. do
  3090. if test -r "$TCLINC/$tclheaderfn"
  3091. then
  3092. TCLINCFN="$tclheaderfn"
  3093. break
  3094. fi
  3095. done
  3096. fi
  3097. if test "${TCLINCFN-x}" = "x"
  3098. then
  3099. cat << 'EOF' >&2
  3100. configure: warning:
  3101. Environment variable TCLINC was set, but incorrect.
  3102. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3103. configure will now attempt to autodetect both the Tcl library and header...
  3104. EOF
  3105. TCLLIB=""
  3106. TCLLIBFN=""
  3107. TCLINC=""
  3108. TCLINCFN=""
  3109. fi
  3110. fi
  3111. fi
  3112. echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
  3113. echo "configure:3441: checking for Tcl library" >&5
  3114. # Attempt autodetect for $TCLLIBFN if it's not set
  3115. if test ! "${TCLLIBFN-x}" = "x"
  3116. then
  3117. echo "$ac_t""using $TCLLIB/lib$TCLLIBFN" 1>&6
  3118. else
  3119. for tcllibfns in $tcllibnames
  3120. do
  3121. for tcllibext in $tcllibextensions
  3122. do
  3123. for tcllibpath in $tcllibpaths
  3124. do
  3125. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  3126. then
  3127. echo "$ac_t""found $tcllibpath/lib$tcllibfns$tcllibext" 1>&6
  3128. TCLLIB="$tcllibpath"
  3129. TCLLIBFN="$tcllibfns$tcllibext"
  3130. TCLLIBEXT="$tcllibext"
  3131. TCLLIBFNS="$tcllibfns"
  3132. break 3
  3133. fi
  3134. done
  3135. done
  3136. done
  3137. fi
  3138. # Show if $TCLLIBFN wasn't found
  3139. if test "${TCLLIBFN-x}" = "x"
  3140. then
  3141. echo "$ac_t""not found" 1>&6
  3142. fi
  3143. echo $ac_n "checking for Tcl header""... $ac_c" 1>&6
  3144. echo "configure:3475: checking for Tcl header" >&5
  3145. # Attempt autodetect for $TCLINCFN if it's not set
  3146. if test ! "${TCLINCFN-x}" = "x"
  3147. then
  3148. echo "$ac_t""using $TCLINC/$TCLINCFN" 1>&6
  3149. else
  3150. for tclheaderpath in $tclheaderpaths
  3151. do
  3152. for tclheaderfn in $tclheadernames
  3153. do
  3154. if test -r "$tclheaderpath/$tclheaderfn"
  3155. then
  3156. echo "$ac_t""found $tclheaderpath/$tclheaderfn" 1>&6
  3157. TCLINC="$tclheaderpath"
  3158. TCLINCFN="$tclheaderfn"
  3159. break 2
  3160. fi
  3161. done
  3162. done
  3163. # FreeBSD hack ...
  3164. if test "${TCLINCFN-x}" = "x"
  3165. then
  3166. for tcllibfns in $tcllibnames
  3167. do
  3168. for tclheaderpath in $tclheaderpaths
  3169. do
  3170. for tclheaderfn in $tclheadernames
  3171. do
  3172. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  3173. then
  3174. echo "$ac_t""found $tclheaderpath/$tcllibfns/$tclheaderfn" 1>&6
  3175. TCLINC="$tclheaderpath/$tcllibfns"
  3176. TCLINCFN="$tclheaderfn"
  3177. break 3
  3178. fi
  3179. done
  3180. done
  3181. done
  3182. fi
  3183. fi
  3184. # Show if $TCLINCFN wasn't found
  3185. if test "${TCLINCFN-x}" = "x"
  3186. then
  3187. echo "$ac_t""not found" 1>&6
  3188. fi
  3189. echo $ac_n "checking whether the Tcl system has changed""... $ac_c" 1>&6
  3190. echo "configure:3524: checking whether the Tcl system has changed" >&5
  3191. egg_tcl_changed=yes
  3192. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  3193. if test ! "$egg_tcl_id" = ":::"
  3194. then
  3195. egg_tcl_cached=yes
  3196. if eval "test \"`echo '$''{'egg_cv_var_tcl_id'+set}'`\" = set"; then
  3197. echo $ac_n "(cached) $ac_c" 1>&6
  3198. else
  3199. egg_cv_var_tcl_id="$egg_tcl_id"
  3200. egg_tcl_cached=no
  3201. fi
  3202. if test "$egg_tcl_cached" = "yes"
  3203. then
  3204. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  3205. then
  3206. egg_tcl_changed=no
  3207. else
  3208. egg_cv_var_tcl_id="$egg_tcl_id"
  3209. fi
  3210. fi
  3211. fi
  3212. if test "$egg_tcl_changed" = "yes"
  3213. then
  3214. echo "$ac_t""yes" 1>&6
  3215. else
  3216. echo "$ac_t""no" 1>&6
  3217. fi
  3218. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  3219. TCL_FOUND=0
  3220. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  3221. then
  3222. TCL_FOUND=1
  3223. # Check Tcl's version
  3224. if test "$egg_tcl_changed" = "yes"
  3225. then
  3226. unset egg_cv_var_tcl_version
  3227. fi
  3228. echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
  3229. echo "configure:3569: checking for Tcl version" >&5
  3230. if eval "test \"`echo '$''{'egg_cv_var_tcl_version'+set}'`\" = set"; then
  3231. echo $ac_n "(cached) $ac_c" 1>&6
  3232. else
  3233. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  3234. fi
  3235. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  3236. then
  3237. echo "$ac_t""$egg_cv_var_tcl_version" 1>&6
  3238. else
  3239. echo "$ac_t""not found" 1>&6
  3240. TCL_FOUND=0
  3241. fi
  3242. # Check Tcl's patch level (if available)
  3243. if test "$egg_tcl_changed" = "yes"
  3244. then
  3245. unset egg_cv_var_tcl_patch_level
  3246. fi
  3247. echo $ac_n "checking for Tcl patch level""... $ac_c" 1>&6
  3248. echo "configure:3593: checking for Tcl patch level" >&5
  3249. if eval "test \"`echo '$''{'egg_cv_var_tcl_patch_level'+set}'`\" = set"; then
  3250. echo $ac_n "(cached) $ac_c" 1>&6
  3251. else
  3252. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  3253. fi
  3254. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  3255. then
  3256. echo "$ac_t""$egg_cv_var_tcl_patch_level" 1>&6
  3257. else
  3258. egg_cv_var_tcl_patch_level="unknown"
  3259. echo "$ac_t""unknown" 1>&6
  3260. fi
  3261. fi
  3262. # Check if we found Tcl's version
  3263. if test "$TCL_FOUND" = 0
  3264. then
  3265. cat << 'EOF' >&2
  3266. configure: error:
  3267. I can't find Tcl on this system.
  3268. You must set the path for it in pack/conf.h
  3269. EOF
  3270. exit 1
  3271. fi
  3272. # Is this version of Tcl too old for us to use ?
  3273. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  3274. if test "$TCL_VER_PRE70" = "yes"
  3275. then
  3276. cat << EOF >&2
  3277. configure: error:
  3278. Your Tcl version is much too old for Eggdrop to use.
  3279. I suggest you download and compile a more recent version.
  3280. The most reliable current version is $tclrecommendver and
  3281. can be downloaded from $tclrecommendsite
  3282. EOF
  3283. exit 1
  3284. fi
  3285. # Are we using a pre 7.5 Tcl version ?
  3286. TCL_VER_PRE75=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 5)) || (i[1] < 7)) print "yes"; else print "no"}'`
  3287. if test "$TCL_VER_PRE75" = "yes"
  3288. then
  3289. cat >> confdefs.h <<\EOF
  3290. #define HAVE_PRE7_5_TCL 1
  3291. EOF
  3292. fi
  3293. # Set variables for Tcl library tests
  3294. TCL_TEST_LIB="$TCLLIBFNS"
  3295. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  3296. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3297. then
  3298. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  3299. fi
  3300. if test "$egg_tcl_changed" = "yes"
  3301. then
  3302. unset egg_cv_var_tcl_free
  3303. fi
  3304. # Check for Tcl_Free()
  3305. echo $ac_n "checking for Tcl_Free in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3306. echo "configure:3666: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  3307. ac_lib_var=`echo $TCL_TEST_LIB'_'Tcl_Free | sed 'y%./+-%__p_%'`
  3308. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3309. echo $ac_n "(cached) $ac_c" 1>&6
  3310. else
  3311. ac_save_LIBS="$LIBS"
  3312. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3313. cat > conftest.$ac_ext <<EOF
  3314. #line 3674 "configure"
  3315. #include "confdefs.h"
  3316. /* Override any gcc2 internal prototype to avoid an error. */
  3317. /* We use char because int might match the return type of a gcc2
  3318. builtin and then its argument prototype would still apply. */
  3319. char Tcl_Free();
  3320. int main() {
  3321. Tcl_Free()
  3322. ; return 0; }
  3323. EOF
  3324. if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3325. rm -rf conftest*
  3326. eval "ac_cv_lib_$ac_lib_var=yes"
  3327. else
  3328. echo "configure: failed program was:" >&5
  3329. cat conftest.$ac_ext >&5
  3330. rm -rf conftest*
  3331. eval "ac_cv_lib_$ac_lib_var=no"
  3332. fi
  3333. rm -f conftest*
  3334. LIBS="$ac_save_LIBS"
  3335. fi
  3336. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3337. echo "$ac_t""yes" 1>&6
  3338. egg_cv_var_tcl_free="yes"
  3339. else
  3340. echo "$ac_t""no" 1>&6
  3341. egg_cv_var_tcl_free="no"
  3342. fi
  3343. if test "$egg_cv_var_tcl_free" = "yes"
  3344. then
  3345. cat >> confdefs.h <<\EOF
  3346. #define HAVE_TCL_FREE 1
  3347. EOF
  3348. fi
  3349. # Check whether --enable-tcl-threads or --disable-tcl-threads was given.
  3350. if test "${enable_tcl_threads+set}" = set; then
  3351. enableval="$enable_tcl_threads"
  3352. enable_tcl_threads="$enableval"
  3353. else
  3354. enable_tcl_threads=yes
  3355. fi
  3356. if test "$egg_tcl_changed" = "yes"
  3357. then
  3358. unset egg_cv_var_tcl_threaded
  3359. fi
  3360. # Check for TclpFinalizeThreadData()
  3361. echo $ac_n "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3362. echo "configure:3731: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  3363. ac_lib_var=`echo $TCL_TEST_LIB'_'TclpFinalizeThreadData | sed 'y%./+-%__p_%'`
  3364. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3365. echo $ac_n "(cached) $ac_c" 1>&6
  3366. else
  3367. ac_save_LIBS="$LIBS"
  3368. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3369. cat > conftest.$ac_ext <<EOF
  3370. #line 3739 "configure"
  3371. #include "confdefs.h"
  3372. /* Override any gcc2 internal prototype to avoid an error. */
  3373. /* We use char because int might match the return type of a gcc2
  3374. builtin and then its argument prototype would still apply. */
  3375. char TclpFinalizeThreadData();
  3376. int main() {
  3377. TclpFinalizeThreadData()
  3378. ; return 0; }
  3379. EOF
  3380. if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3381. rm -rf conftest*
  3382. eval "ac_cv_lib_$ac_lib_var=yes"
  3383. else
  3384. echo "configure: failed program was:" >&5
  3385. cat conftest.$ac_ext >&5
  3386. rm -rf conftest*
  3387. eval "ac_cv_lib_$ac_lib_var=no"
  3388. fi
  3389. rm -f conftest*
  3390. LIBS="$ac_save_LIBS"
  3391. fi
  3392. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3393. echo "$ac_t""yes" 1>&6
  3394. egg_cv_var_tcl_threaded="yes"
  3395. else
  3396. echo "$ac_t""no" 1>&6
  3397. egg_cv_var_tcl_threaded="no"
  3398. fi
  3399. if test "$egg_cv_var_tcl_threaded" = "yes"
  3400. then
  3401. if test "$enable_tcl_threads" = "no"
  3402. then
  3403. cat << 'EOF' >&2
  3404. configure: warning:
  3405. You have disabled threads support on a system with a threaded Tcl library.
  3406. Tcl features that rely on scheduled events may not function properly.
  3407. EOF
  3408. else
  3409. cat >> confdefs.h <<\EOF
  3410. #define HAVE_TCL_THREADS 1
  3411. EOF
  3412. fi
  3413. # Add pthread library to $LIBS if we need it
  3414. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3415. then
  3416. LIBS="$ac_cv_lib_pthread $LIBS"
  3417. fi
  3418. fi
  3419. if test "$EGG_CYGWIN" = "yes"
  3420. then
  3421. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3422. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3423. else
  3424. if test ! "$TCLLIBEXT" = ".a"
  3425. then
  3426. cat << 'EOF' >&2
  3427. configure: warning:
  3428. Your Tcl library is not compiled statically.
  3429. You will need to compile Tcl statically to successfully compile wraith.
  3430. EOF
  3431. exit 1
  3432. # TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3433. # TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3434. else
  3435. # Are we using a pre 7.4 Tcl version ?
  3436. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  3437. if test "$TCL_VER_PRE74" = "no"
  3438. then
  3439. # Was the --with-tcllib option given ?
  3440. if test ! "${tcllibname-x}" = "x"
  3441. then
  3442. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3443. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  3444. else
  3445. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3446. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3447. fi
  3448. else
  3449. cat << EOF >&2
  3450. configure: warning:
  3451. Your Tcl version ($egg_cv_var_tcl_version) is older then 7.4.
  3452. There are known problems, but we will attempt to work around them.
  3453. EOF
  3454. TCL_REQS="libtcle.a"
  3455. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  3456. fi
  3457. fi
  3458. fi
  3459. # ---------- end of (what used to be) robey's Tcl thingies
  3460. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  3461. then
  3462. if test "$LINUX" = "yes"
  3463. then
  3464. cat << 'EOF' >&2
  3465. configure: warning:
  3466. Since you are on a Linux system, this has a known problem...
  3467. I know a kludge for it,
  3468. EOF
  3469. if test -r "/lib/libdl.so.1"
  3470. then
  3471. cat << 'EOF' >&2
  3472. and you seem to have it, so we'll do that...
  3473. EOF
  3474. cat >> confdefs.h <<\EOF
  3475. #define HAVE_DLOPEN 1
  3476. EOF
  3477. LIBS="/lib/libdl.so.1 $LIBS"
  3478. else
  3479. cat << 'EOF' >&2
  3480. which you DON'T seem to have... doh!
  3481. perhaps you may still have the stuff lying around somewhere
  3482. if you work out where it is, add it to your XLIBS= lines
  3483. and #define HAVE_DLOPEN in config.h
  3484. we'll proceed on anyway, but you probably won't be able
  3485. to 'make eggdrop' but you might be able to make the
  3486. static bot (I'll default your make to this version).
  3487. EOF
  3488. fi
  3489. else
  3490. cat << 'EOF' >&2
  3491. configure: warning:
  3492. You don't seem to have libdl anywhere I can find it, this will
  3493. prevent you from doing dynamic modules, I'll set your default
  3494. make to static linking.
  3495. EOF
  3496. fi
  3497. fi
  3498. EGGVERSION=`grep 'char.egg_version' $srcdir/src/main.c | $AWK '{gsub(/(\"|\;)/, "", $4); print $4}'`
  3499. egg_version_num=`echo $EGGVERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  3500. cat >> confdefs.h <<EOF
  3501. #define EGG_VERSION $egg_version_num
  3502. EOF
  3503. if test "${DEST-x}" = "x"
  3504. then
  3505. DEST=\${prefix}
  3506. fi
  3507. case "$srcdir" in
  3508. [\\/]* | ?:[\\/]*)
  3509. MOD_UPDIR=""
  3510. ;;
  3511. *)
  3512. MOD_UPDIR="../"
  3513. ;;
  3514. esac
  3515. trap '' 1 2 15
  3516. cat > confcache <<\EOF
  3517. # This file is a shell script that caches the results of configure
  3518. # tests run on this system so they can be shared between configure
  3519. # scripts and configure runs. It is not useful on other systems.
  3520. # If it contains results you don't want to keep, you may remove or edit it.
  3521. #
  3522. # By default, configure uses ./config.cache as the cache file,
  3523. # creating it if it does not exist already. You can give configure
  3524. # the --cache-file=FILE option to use a different cache file; that is
  3525. # what configure does when it calls configure scripts in
  3526. # subdirectories, so they share the cache.
  3527. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3528. # config.status only pays attention to the cache file if you give it the
  3529. # --recheck option to rerun configure.
  3530. #
  3531. EOF
  3532. # The following way of writing the cache mishandles newlines in values,
  3533. # but we know of no workaround that is simple, portable, and efficient.
  3534. # So, don't put newlines in cache variables' values.
  3535. # Ultrix sh set writes to stderr and can't be redirected directly,
  3536. # and sets the high bit in the cache file unless we assign to the vars.
  3537. (set) 2>&1 |
  3538. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3539. *ac_space=\ *)
  3540. # `set' does not quote correctly, so add quotes (double-quote substitution
  3541. # turns \\\\ into \\, and sed turns \\ into \).
  3542. sed -n \
  3543. -e "s/'/'\\\\''/g" \
  3544. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3545. ;;
  3546. *)
  3547. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3548. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3549. ;;
  3550. esac >> confcache
  3551. if cmp -s $cache_file confcache; then
  3552. :
  3553. else
  3554. if test -w $cache_file; then
  3555. echo "updating cache $cache_file"
  3556. cat confcache > $cache_file
  3557. else
  3558. echo "not updating unwritable cache $cache_file"
  3559. fi
  3560. fi
  3561. rm -f confcache
  3562. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3563. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3564. # Let make expand exec_prefix.
  3565. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3566. # Any assignment to VPATH causes Sun make to only execute
  3567. # the first set of double-colon rules, so remove it if not needed.
  3568. # If there is a colon in the path, we need to keep it.
  3569. if test "x$srcdir" = x.; then
  3570. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  3571. fi
  3572. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3573. DEFS=-DHAVE_CONFIG_H
  3574. # Without the "./", some shells look in PATH for config.status.
  3575. : ${CONFIG_STATUS=./config.status}
  3576. echo creating $CONFIG_STATUS
  3577. rm -f $CONFIG_STATUS
  3578. cat > $CONFIG_STATUS <<EOF
  3579. #! /bin/sh
  3580. # Generated automatically by configure.
  3581. # Run this file to recreate the current configuration.
  3582. # This directory was configured as follows,
  3583. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3584. #
  3585. # $0 $ac_configure_args
  3586. #
  3587. # Compiler output produced by configure, useful for debugging
  3588. # configure, is in ./config.log if it exists.
  3589. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3590. for ac_option
  3591. do
  3592. case "\$ac_option" in
  3593. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3594. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3595. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3596. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3597. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3598. exit 0 ;;
  3599. -help | --help | --hel | --he | --h)
  3600. echo "\$ac_cs_usage"; exit 0 ;;
  3601. *) echo "\$ac_cs_usage"; exit 1 ;;
  3602. esac
  3603. done
  3604. ac_given_srcdir=$srcdir
  3605. ac_given_INSTALL="$INSTALL"
  3606. trap 'rm -fr `echo "Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3607. EOF
  3608. cat >> $CONFIG_STATUS <<EOF
  3609. # Protect against being on the right side of a sed subst in config.status.
  3610. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3611. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3612. $ac_vpsub
  3613. $extrasub
  3614. s%@SHELL@%$SHELL%g
  3615. s%@CFLAGS@%$CFLAGS%g
  3616. s%@CPPFLAGS@%$CPPFLAGS%g
  3617. s%@CXXFLAGS@%$CXXFLAGS%g
  3618. s%@FFLAGS@%$FFLAGS%g
  3619. s%@DEFS@%$DEFS%g
  3620. s%@LDFLAGS@%$LDFLAGS%g
  3621. s%@LIBS@%$LIBS%g
  3622. s%@exec_prefix@%$exec_prefix%g
  3623. s%@prefix@%$prefix%g
  3624. s%@program_transform_name@%$program_transform_name%g
  3625. s%@bindir@%$bindir%g
  3626. s%@sbindir@%$sbindir%g
  3627. s%@libexecdir@%$libexecdir%g
  3628. s%@datadir@%$datadir%g
  3629. s%@sysconfdir@%$sysconfdir%g
  3630. s%@sharedstatedir@%$sharedstatedir%g
  3631. s%@localstatedir@%$localstatedir%g
  3632. s%@libdir@%$libdir%g
  3633. s%@includedir@%$includedir%g
  3634. s%@oldincludedir@%$oldincludedir%g
  3635. s%@infodir@%$infodir%g
  3636. s%@mandir@%$mandir%g
  3637. s%@egg_ac_parameters@%$egg_ac_parameters%g
  3638. s%@CC@%$CC%g
  3639. s%@CPP@%$CPP%g
  3640. s%@SET_MAKE@%$SET_MAKE%g
  3641. s%@RANLIB@%$RANLIB%g
  3642. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3643. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3644. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3645. s%@LN_S@%$LN_S%g
  3646. s%@STRIP@%$STRIP%g
  3647. s%@AWK@%$AWK%g
  3648. s%@BASENAME@%$BASENAME%g
  3649. s%@UNAME@%$UNAME%g
  3650. s%@MOD_LD@%$MOD_LD%g
  3651. s%@MOD_CC@%$MOD_CC%g
  3652. s%@MOD_STRIP@%$MOD_STRIP%g
  3653. s%@SHLIB_LD@%$SHLIB_LD%g
  3654. s%@SHLIB_CC@%$SHLIB_CC%g
  3655. s%@SHLIB_STRIP@%$SHLIB_STRIP%g
  3656. s%@EXEEXT@%$EXEEXT%g
  3657. s%@EGGEXEC@%$EGGEXEC%g
  3658. s%@TCLLIB@%$TCLLIB%g
  3659. s%@TCLLIBFN@%$TCLLIBFN%g
  3660. s%@TCLINC@%$TCLINC%g
  3661. s%@TCLINCFN@%$TCLINCFN%g
  3662. s%@TCL_REQS@%$TCL_REQS%g
  3663. s%@TCL_LIBS@%$TCL_LIBS%g
  3664. s%@EGGVERSION@%$EGGVERSION%g
  3665. s%@DEST@%$DEST%g
  3666. s%@MOD_UPDIR@%$MOD_UPDIR%g
  3667. CEOF
  3668. EOF
  3669. cat >> $CONFIG_STATUS <<\EOF
  3670. # Split the substitutions into bite-sized pieces for seds with
  3671. # small command number limits, like on Digital OSF/1 and HP-UX.
  3672. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3673. ac_file=1 # Number of current file.
  3674. ac_beg=1 # First line for current file.
  3675. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3676. ac_more_lines=:
  3677. ac_sed_cmds=""
  3678. while $ac_more_lines; do
  3679. if test $ac_beg -gt 1; then
  3680. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3681. else
  3682. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3683. fi
  3684. if test ! -s conftest.s$ac_file; then
  3685. ac_more_lines=false
  3686. rm -f conftest.s$ac_file
  3687. else
  3688. if test -z "$ac_sed_cmds"; then
  3689. ac_sed_cmds="sed -f conftest.s$ac_file"
  3690. else
  3691. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3692. fi
  3693. ac_file=`expr $ac_file + 1`
  3694. ac_beg=$ac_end
  3695. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3696. fi
  3697. done
  3698. if test -z "$ac_sed_cmds"; then
  3699. ac_sed_cmds=cat
  3700. fi
  3701. EOF
  3702. cat >> $CONFIG_STATUS <<EOF
  3703. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile"}
  3704. EOF
  3705. cat >> $CONFIG_STATUS <<\EOF
  3706. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3707. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3708. case "$ac_file" in
  3709. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3710. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3711. *) ac_file_in="${ac_file}.in" ;;
  3712. esac
  3713. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3714. # Remove last slash and all that follows it. Not all systems have dirname.
  3715. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3716. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3717. # The file is in a subdirectory.
  3718. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3719. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3720. # A "../" for each directory in $ac_dir_suffix.
  3721. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3722. else
  3723. ac_dir_suffix= ac_dots=
  3724. fi
  3725. case "$ac_given_srcdir" in
  3726. .) srcdir=.
  3727. if test -z "$ac_dots"; then top_srcdir=.
  3728. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3729. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3730. *) # Relative path.
  3731. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3732. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3733. esac
  3734. case "$ac_given_INSTALL" in
  3735. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3736. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3737. esac
  3738. echo creating "$ac_file"
  3739. rm -f "$ac_file"
  3740. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3741. case "$ac_file" in
  3742. *Makefile*) ac_comsub="1i\\
  3743. # $configure_input" ;;
  3744. *) ac_comsub= ;;
  3745. esac
  3746. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3747. sed -e "$ac_comsub
  3748. s%@configure_input@%$configure_input%g
  3749. s%@srcdir@%$srcdir%g
  3750. s%@top_srcdir@%$top_srcdir%g
  3751. s%@INSTALL@%$INSTALL%g
  3752. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3753. fi; done
  3754. rm -f conftest.s*
  3755. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3756. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3757. #
  3758. # ac_d sets the value in "#define NAME VALUE" lines.
  3759. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  3760. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  3761. ac_dC='\3'
  3762. ac_dD='%g'
  3763. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3764. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3765. ac_uB='\([ ]\)%\1#\2define\3'
  3766. ac_uC=' '
  3767. ac_uD='\4%g'
  3768. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3769. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3770. ac_eB='$%\1#\2define\3'
  3771. ac_eC=' '
  3772. ac_eD='%g'
  3773. if test "${CONFIG_HEADERS+set}" != set; then
  3774. EOF
  3775. cat >> $CONFIG_STATUS <<EOF
  3776. CONFIG_HEADERS="config.h"
  3777. EOF
  3778. cat >> $CONFIG_STATUS <<\EOF
  3779. fi
  3780. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3781. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3782. case "$ac_file" in
  3783. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3784. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3785. *) ac_file_in="${ac_file}.in" ;;
  3786. esac
  3787. echo creating $ac_file
  3788. rm -f conftest.frag conftest.in conftest.out
  3789. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3790. cat $ac_file_inputs > conftest.in
  3791. EOF
  3792. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3793. # the proper values into config.h.in to produce config.h. And first:
  3794. # Protect against being on the right side of a sed subst in config.status.
  3795. # Protect against being in an unquoted here document in config.status.
  3796. rm -f conftest.vals
  3797. cat > conftest.hdr <<\EOF
  3798. s/[\\&%]/\\&/g
  3799. s%[\\$`]%\\&%g
  3800. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3801. s%ac_d%ac_u%gp
  3802. s%ac_u%ac_e%gp
  3803. EOF
  3804. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3805. rm -f conftest.hdr
  3806. # This sed command replaces #undef with comments. This is necessary, for
  3807. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3808. # on some systems where configure will not decide to define it.
  3809. cat >> conftest.vals <<\EOF
  3810. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3811. EOF
  3812. # Break up conftest.vals because some shells have a limit on
  3813. # the size of here documents, and old seds have small limits too.
  3814. rm -f conftest.tail
  3815. while :
  3816. do
  3817. ac_lines=`grep -c . conftest.vals`
  3818. # grep -c gives empty output for an empty file on some AIX systems.
  3819. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3820. # Write a limited-size here document to conftest.frag.
  3821. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3822. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3823. echo 'CEOF
  3824. sed -f conftest.frag conftest.in > conftest.out
  3825. rm -f conftest.in
  3826. mv conftest.out conftest.in
  3827. ' >> $CONFIG_STATUS
  3828. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3829. rm -f conftest.vals
  3830. mv conftest.tail conftest.vals
  3831. done
  3832. rm -f conftest.vals
  3833. cat >> $CONFIG_STATUS <<\EOF
  3834. rm -f conftest.frag conftest.h
  3835. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  3836. cat conftest.in >> conftest.h
  3837. rm -f conftest.in
  3838. if cmp -s $ac_file conftest.h 2>/dev/null; then
  3839. echo "$ac_file is unchanged"
  3840. rm -f conftest.h
  3841. else
  3842. # Remove last slash and all that follows it. Not all systems have dirname.
  3843. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3844. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3845. # The file is in a subdirectory.
  3846. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3847. fi
  3848. rm -f $ac_file
  3849. mv conftest.h $ac_file
  3850. fi
  3851. fi; done
  3852. EOF
  3853. cat >> $CONFIG_STATUS <<EOF
  3854. egg_tclinc="$TCLINC"
  3855. egg_tclincfn="$TCLINCFN"
  3856. EOF
  3857. cat >> $CONFIG_STATUS <<\EOF
  3858. egg_replace_file="lush.h"
  3859. echo "creating lush.h"
  3860. cat > conftest.out << EGGEOF
  3861. /* Ignore me but do not erase me. I am a kludge. */
  3862. #include "$egg_tclinc/$egg_tclincfn"
  3863. EGGEOF
  3864. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file
  3865. then
  3866. echo "lush.h is unchanged"
  3867. else
  3868. mv conftest.out $egg_replace_file
  3869. fi
  3870. rm -f conftest.out
  3871. if test -f .modules
  3872. then
  3873. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  3874. fi
  3875. exit 0
  3876. EOF
  3877. chmod +x $CONFIG_STATUS
  3878. rm -fr confdefs* $ac_clean_files
  3879. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1