configure 182 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. # Avoid depending upon Character Ranges.
  10. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13. as_cr_digits='0123456789'
  14. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15. # Sed expression to map a string onto a valid variable name.
  16. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  17. # Sed expression to map a string onto a valid CPP name.
  18. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19. # Be Bourne compatible
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. emulate sh
  22. NULLCMD=:
  23. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24. set -o posix
  25. fi
  26. # Name of the executable.
  27. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  28. if expr a : '\(a\)' >/dev/null 2>&1; then
  29. as_expr=expr
  30. else
  31. as_expr=false
  32. fi
  33. rm -f conf$$ conf$$.exe conf$$.file
  34. echo >conf$$.file
  35. if ln -s conf$$.file conf$$ 2>/dev/null; then
  36. # We could just check for DJGPP; but this test a) works b) is more generic
  37. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  38. if test -f conf$$.exe; then
  39. # Don't use ln at all; we don't have any links
  40. as_ln_s='cp -p'
  41. else
  42. as_ln_s='ln -s'
  43. fi
  44. elif ln conf$$.file conf$$ 2>/dev/null; then
  45. as_ln_s=ln
  46. else
  47. as_ln_s='cp -p'
  48. fi
  49. rm -f conf$$ conf$$.exe conf$$.file
  50. as_executable_p="test -f"
  51. # Support unset when possible.
  52. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  53. as_unset=unset
  54. else
  55. as_unset=false
  56. fi
  57. # NLS nuisances.
  58. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  59. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  60. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  61. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  62. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  63. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  64. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  65. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  66. # IFS
  67. # We need space, tab and new line, in precisely that order.
  68. as_nl='
  69. '
  70. IFS=" $as_nl"
  71. # CDPATH.
  72. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  73. # Name of the host.
  74. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  75. # so uname gets run too.
  76. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  77. exec 6>&1
  78. #
  79. # Initializations.
  80. #
  81. ac_default_prefix=/usr/local
  82. cross_compiling=no
  83. subdirs=
  84. MFLAGS= MAKEFLAGS=
  85. SHELL=${CONFIG_SHELL-/bin/sh}
  86. # Maximum number of lines to put in a shell here document.
  87. # This variable seems obsolete. It should probably be removed, and
  88. # only ac_max_sed_lines should be used.
  89. : ${ac_max_here_lines=38}
  90. ac_unique_file="src/main.c"
  91. # Factoring default headers for most tests.
  92. ac_includes_default="\
  93. #include <stdio.h>
  94. #if HAVE_SYS_TYPES_H
  95. # include <sys/types.h>
  96. #endif
  97. #if HAVE_SYS_STAT_H
  98. # include <sys/stat.h>
  99. #endif
  100. #if STDC_HEADERS
  101. # include <stdlib.h>
  102. # include <stddef.h>
  103. #else
  104. # if HAVE_STDLIB_H
  105. # include <stdlib.h>
  106. # endif
  107. #endif
  108. #if HAVE_STRING_H
  109. # if !STDC_HEADERS && HAVE_MEMORY_H
  110. # include <memory.h>
  111. # endif
  112. # include <string.h>
  113. #endif
  114. #if HAVE_STRINGS_H
  115. # include <strings.h>
  116. #endif
  117. #if HAVE_INTTYPES_H
  118. # include <inttypes.h>
  119. #else
  120. # if HAVE_STDINT_H
  121. # include <stdint.h>
  122. # endif
  123. #endif
  124. #if HAVE_UNISTD_H
  125. # include <unistd.h>
  126. #endif"
  127. # Initialize some variables set by options.
  128. ac_init_help=
  129. ac_init_version=false
  130. # The variables have the same names as the options, with
  131. # dashes changed to underlines.
  132. cache_file=/dev/null
  133. exec_prefix=NONE
  134. no_create=
  135. no_recursion=
  136. prefix=NONE
  137. program_prefix=NONE
  138. program_suffix=NONE
  139. program_transform_name=s,x,x,
  140. silent=
  141. site=
  142. srcdir=
  143. verbose=
  144. x_includes=NONE
  145. x_libraries=NONE
  146. # Installation directory options.
  147. # These are left unexpanded so users can "make install exec_prefix=/foo"
  148. # and all the variables that are supposed to be based on exec_prefix
  149. # by default will actually change.
  150. # Use braces instead of parens because sh, perl, etc. also accept them.
  151. bindir='${exec_prefix}/bin'
  152. sbindir='${exec_prefix}/sbin'
  153. libexecdir='${exec_prefix}/libexec'
  154. datadir='${prefix}/share'
  155. sysconfdir='${prefix}/etc'
  156. sharedstatedir='${prefix}/com'
  157. localstatedir='${prefix}/var'
  158. libdir='${exec_prefix}/lib'
  159. includedir='${prefix}/include'
  160. oldincludedir='/usr/include'
  161. infodir='${prefix}/info'
  162. mandir='${prefix}/man'
  163. # Identity of this package.
  164. PACKAGE_NAME=
  165. PACKAGE_TARNAME=
  166. PACKAGE_VERSION=
  167. PACKAGE_STRING=
  168. PACKAGE_BUGREPORT=
  169. ac_prev=
  170. for ac_option
  171. do
  172. # If the previous option needs an argument, assign it.
  173. if test -n "$ac_prev"; then
  174. eval "$ac_prev=\$ac_option"
  175. ac_prev=
  176. continue
  177. fi
  178. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  179. # Accept the important Cygnus configure options, so we can diagnose typos.
  180. case $ac_option in
  181. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  182. ac_prev=bindir ;;
  183. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  184. bindir=$ac_optarg ;;
  185. -build | --build | --buil | --bui | --bu)
  186. ac_prev=build_alias ;;
  187. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  188. build_alias=$ac_optarg ;;
  189. -cache-file | --cache-file | --cache-fil | --cache-fi \
  190. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  191. ac_prev=cache_file ;;
  192. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  193. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  194. cache_file=$ac_optarg ;;
  195. --config-cache | -C)
  196. cache_file=config.cache ;;
  197. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  198. ac_prev=datadir ;;
  199. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  200. | --da=*)
  201. datadir=$ac_optarg ;;
  202. -disable-* | --disable-*)
  203. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  204. # Reject names that are not valid shell variable names.
  205. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  206. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  207. { (exit 1); exit 1; }; }
  208. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  209. eval "enable_$ac_feature=no" ;;
  210. -enable-* | --enable-*)
  211. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  212. # Reject names that are not valid shell variable names.
  213. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  214. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  215. { (exit 1); exit 1; }; }
  216. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  217. case $ac_option in
  218. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  219. *) ac_optarg=yes ;;
  220. esac
  221. eval "enable_$ac_feature='$ac_optarg'" ;;
  222. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  223. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  224. | --exec | --exe | --ex)
  225. ac_prev=exec_prefix ;;
  226. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  227. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  228. | --exec=* | --exe=* | --ex=*)
  229. exec_prefix=$ac_optarg ;;
  230. -gas | --gas | --ga | --g)
  231. # Obsolete; use --with-gas.
  232. with_gas=yes ;;
  233. -help | --help | --hel | --he | -h)
  234. ac_init_help=long ;;
  235. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  236. ac_init_help=recursive ;;
  237. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  238. ac_init_help=short ;;
  239. -host | --host | --hos | --ho)
  240. ac_prev=host_alias ;;
  241. -host=* | --host=* | --hos=* | --ho=*)
  242. host_alias=$ac_optarg ;;
  243. -includedir | --includedir | --includedi | --included | --include \
  244. | --includ | --inclu | --incl | --inc)
  245. ac_prev=includedir ;;
  246. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  247. | --includ=* | --inclu=* | --incl=* | --inc=*)
  248. includedir=$ac_optarg ;;
  249. -infodir | --infodir | --infodi | --infod | --info | --inf)
  250. ac_prev=infodir ;;
  251. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  252. infodir=$ac_optarg ;;
  253. -libdir | --libdir | --libdi | --libd)
  254. ac_prev=libdir ;;
  255. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  256. libdir=$ac_optarg ;;
  257. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  258. | --libexe | --libex | --libe)
  259. ac_prev=libexecdir ;;
  260. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  261. | --libexe=* | --libex=* | --libe=*)
  262. libexecdir=$ac_optarg ;;
  263. -localstatedir | --localstatedir | --localstatedi | --localstated \
  264. | --localstate | --localstat | --localsta | --localst \
  265. | --locals | --local | --loca | --loc | --lo)
  266. ac_prev=localstatedir ;;
  267. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  268. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  269. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  270. localstatedir=$ac_optarg ;;
  271. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  272. ac_prev=mandir ;;
  273. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  274. mandir=$ac_optarg ;;
  275. -nfp | --nfp | --nf)
  276. # Obsolete; use --without-fp.
  277. with_fp=no ;;
  278. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  279. | --no-cr | --no-c)
  280. no_create=yes ;;
  281. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  282. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  283. no_recursion=yes ;;
  284. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  285. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  286. | --oldin | --oldi | --old | --ol | --o)
  287. ac_prev=oldincludedir ;;
  288. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  289. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  290. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  291. oldincludedir=$ac_optarg ;;
  292. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  293. ac_prev=prefix ;;
  294. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  295. prefix=$ac_optarg ;;
  296. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  297. | --program-pre | --program-pr | --program-p)
  298. ac_prev=program_prefix ;;
  299. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  300. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  301. program_prefix=$ac_optarg ;;
  302. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  303. | --program-suf | --program-su | --program-s)
  304. ac_prev=program_suffix ;;
  305. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  306. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  307. program_suffix=$ac_optarg ;;
  308. -program-transform-name | --program-transform-name \
  309. | --program-transform-nam | --program-transform-na \
  310. | --program-transform-n | --program-transform- \
  311. | --program-transform | --program-transfor \
  312. | --program-transfo | --program-transf \
  313. | --program-trans | --program-tran \
  314. | --progr-tra | --program-tr | --program-t)
  315. ac_prev=program_transform_name ;;
  316. -program-transform-name=* | --program-transform-name=* \
  317. | --program-transform-nam=* | --program-transform-na=* \
  318. | --program-transform-n=* | --program-transform-=* \
  319. | --program-transform=* | --program-transfor=* \
  320. | --program-transfo=* | --program-transf=* \
  321. | --program-trans=* | --program-tran=* \
  322. | --progr-tra=* | --program-tr=* | --program-t=*)
  323. program_transform_name=$ac_optarg ;;
  324. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  325. | -silent | --silent | --silen | --sile | --sil)
  326. silent=yes ;;
  327. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  328. ac_prev=sbindir ;;
  329. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  330. | --sbi=* | --sb=*)
  331. sbindir=$ac_optarg ;;
  332. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  333. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  334. | --sharedst | --shareds | --shared | --share | --shar \
  335. | --sha | --sh)
  336. ac_prev=sharedstatedir ;;
  337. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  338. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  339. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  340. | --sha=* | --sh=*)
  341. sharedstatedir=$ac_optarg ;;
  342. -site | --site | --sit)
  343. ac_prev=site ;;
  344. -site=* | --site=* | --sit=*)
  345. site=$ac_optarg ;;
  346. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  347. ac_prev=srcdir ;;
  348. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  349. srcdir=$ac_optarg ;;
  350. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  351. | --syscon | --sysco | --sysc | --sys | --sy)
  352. ac_prev=sysconfdir ;;
  353. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  354. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  355. sysconfdir=$ac_optarg ;;
  356. -target | --target | --targe | --targ | --tar | --ta | --t)
  357. ac_prev=target_alias ;;
  358. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  359. target_alias=$ac_optarg ;;
  360. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  361. verbose=yes ;;
  362. -version | --version | --versio | --versi | --vers | -V)
  363. ac_init_version=: ;;
  364. -with-* | --with-*)
  365. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  366. # Reject names that are not valid shell variable names.
  367. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  368. { echo "$as_me: error: invalid package name: $ac_package" >&2
  369. { (exit 1); exit 1; }; }
  370. ac_package=`echo $ac_package| sed 's/-/_/g'`
  371. case $ac_option in
  372. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  373. *) ac_optarg=yes ;;
  374. esac
  375. eval "with_$ac_package='$ac_optarg'" ;;
  376. -without-* | --without-*)
  377. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  378. # Reject names that are not valid shell variable names.
  379. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  380. { echo "$as_me: error: invalid package name: $ac_package" >&2
  381. { (exit 1); exit 1; }; }
  382. ac_package=`echo $ac_package | sed 's/-/_/g'`
  383. eval "with_$ac_package=no" ;;
  384. --x)
  385. # Obsolete; use --with-x.
  386. with_x=yes ;;
  387. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  388. | --x-incl | --x-inc | --x-in | --x-i)
  389. ac_prev=x_includes ;;
  390. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  391. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  392. x_includes=$ac_optarg ;;
  393. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  394. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  395. ac_prev=x_libraries ;;
  396. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  397. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  398. x_libraries=$ac_optarg ;;
  399. -*) { echo "$as_me: error: unrecognized option: $ac_option
  400. Try \`$0 --help' for more information." >&2
  401. { (exit 1); exit 1; }; }
  402. ;;
  403. *=*)
  404. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  405. # Reject names that are not valid shell variable names.
  406. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  407. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  408. { (exit 1); exit 1; }; }
  409. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  410. eval "$ac_envvar='$ac_optarg'"
  411. export $ac_envvar ;;
  412. *)
  413. # FIXME: should be removed in autoconf 3.0.
  414. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  415. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  416. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  417. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  418. ;;
  419. esac
  420. done
  421. if test -n "$ac_prev"; then
  422. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  423. { echo "$as_me: error: missing argument to $ac_option" >&2
  424. { (exit 1); exit 1; }; }
  425. fi
  426. # Be sure to have absolute paths.
  427. for ac_var in exec_prefix prefix
  428. do
  429. eval ac_val=$`echo $ac_var`
  430. case $ac_val in
  431. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  432. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  433. { (exit 1); exit 1; }; };;
  434. esac
  435. done
  436. # Be sure to have absolute paths.
  437. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  438. localstatedir libdir includedir oldincludedir infodir mandir
  439. do
  440. eval ac_val=$`echo $ac_var`
  441. case $ac_val in
  442. [\\/$]* | ?:[\\/]* ) ;;
  443. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  444. { (exit 1); exit 1; }; };;
  445. esac
  446. done
  447. # There might be people who depend on the old broken behavior: `$host'
  448. # used to hold the argument of --host etc.
  449. build=$build_alias
  450. host=$host_alias
  451. target=$target_alias
  452. # FIXME: should be removed in autoconf 3.0.
  453. if test "x$host_alias" != x; then
  454. if test "x$build_alias" = x; then
  455. cross_compiling=maybe
  456. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  457. If a cross compiler is detected then cross compile mode will be used." >&2
  458. elif test "x$build_alias" != "x$host_alias"; then
  459. cross_compiling=yes
  460. fi
  461. fi
  462. ac_tool_prefix=
  463. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  464. test "$silent" = yes && exec 6>/dev/null
  465. # Find the source files, if location was not specified.
  466. if test -z "$srcdir"; then
  467. ac_srcdir_defaulted=yes
  468. # Try the directory containing this script, then its parent.
  469. ac_prog=$0
  470. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  471. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  472. srcdir=$ac_confdir
  473. if test ! -r $srcdir/$ac_unique_file; then
  474. srcdir=..
  475. fi
  476. else
  477. ac_srcdir_defaulted=no
  478. fi
  479. if test ! -r $srcdir/$ac_unique_file; then
  480. if test "$ac_srcdir_defaulted" = yes; then
  481. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  482. { (exit 1); exit 1; }; }
  483. else
  484. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  485. { (exit 1); exit 1; }; }
  486. fi
  487. fi
  488. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  489. ac_env_build_alias_set=${build_alias+set}
  490. ac_env_build_alias_value=$build_alias
  491. ac_cv_env_build_alias_set=${build_alias+set}
  492. ac_cv_env_build_alias_value=$build_alias
  493. ac_env_host_alias_set=${host_alias+set}
  494. ac_env_host_alias_value=$host_alias
  495. ac_cv_env_host_alias_set=${host_alias+set}
  496. ac_cv_env_host_alias_value=$host_alias
  497. ac_env_target_alias_set=${target_alias+set}
  498. ac_env_target_alias_value=$target_alias
  499. ac_cv_env_target_alias_set=${target_alias+set}
  500. ac_cv_env_target_alias_value=$target_alias
  501. ac_env_CC_set=${CC+set}
  502. ac_env_CC_value=$CC
  503. ac_cv_env_CC_set=${CC+set}
  504. ac_cv_env_CC_value=$CC
  505. ac_env_CFLAGS_set=${CFLAGS+set}
  506. ac_env_CFLAGS_value=$CFLAGS
  507. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  508. ac_cv_env_CFLAGS_value=$CFLAGS
  509. ac_env_LDFLAGS_set=${LDFLAGS+set}
  510. ac_env_LDFLAGS_value=$LDFLAGS
  511. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  512. ac_cv_env_LDFLAGS_value=$LDFLAGS
  513. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  514. ac_env_CPPFLAGS_value=$CPPFLAGS
  515. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  516. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  517. ac_env_CPP_set=${CPP+set}
  518. ac_env_CPP_value=$CPP
  519. ac_cv_env_CPP_set=${CPP+set}
  520. ac_cv_env_CPP_value=$CPP
  521. #
  522. # Report the --help message.
  523. #
  524. if test "$ac_init_help" = "long"; then
  525. # Omit some internal or obsolete options to make the list less imposing.
  526. # This message is too long to be a string in the A/UX 3.1 sh.
  527. cat <<EOF
  528. \`configure' configures this package to adapt to many kinds of systems.
  529. Usage: $0 [OPTION]... [VAR=VALUE]...
  530. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  531. VAR=VALUE. See below for descriptions of some of the useful variables.
  532. Defaults for the options are specified in brackets.
  533. Configuration:
  534. -h, --help display this help and exit
  535. --help=short display options specific to this package
  536. --help=recursive display the short help of all the included packages
  537. -V, --version display version information and exit
  538. -q, --quiet, --silent do not print \`checking...' messages
  539. --cache-file=FILE cache test results in FILE [disabled]
  540. -C, --config-cache alias for \`--cache-file=config.cache'
  541. -n, --no-create do not create output files
  542. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  543. EOF
  544. cat <<EOF
  545. Installation directories:
  546. --prefix=PREFIX install architecture-independent files in PREFIX
  547. [$ac_default_prefix]
  548. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  549. [PREFIX]
  550. By default, \`make install' will install all the files in
  551. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  552. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  553. for instance \`--prefix=\$HOME'.
  554. For better control, use the options below.
  555. Fine tuning of the installation directories:
  556. --bindir=DIR user executables [EPREFIX/bin]
  557. --sbindir=DIR system admin executables [EPREFIX/sbin]
  558. --libexecdir=DIR program executables [EPREFIX/libexec]
  559. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  560. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  561. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  562. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  563. --libdir=DIR object code libraries [EPREFIX/lib]
  564. --includedir=DIR C header files [PREFIX/include]
  565. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  566. --infodir=DIR info documentation [PREFIX/info]
  567. --mandir=DIR man documentation [PREFIX/man]
  568. EOF
  569. cat <<\EOF
  570. Program names:
  571. --program-prefix=PREFIX prepend PREFIX to installed program names
  572. --program-suffix=SUFFIX append SUFFIX to installed program names
  573. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  574. EOF
  575. fi
  576. if test -n "$ac_init_help"; then
  577. cat <<\EOF
  578. Optional Features:
  579. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  580. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  581. --enable-maintainer-mode enable make rules and dependencies not useful
  582. (and sometimes confusing) to the casual installer
  583. Optional Packages:
  584. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  585. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  586. --with-libwrap=PATH compile in libwrap (tcp_wrappers) support.
  587. --with-crypt use crypt() to encrypt server passwords.
  588. --with-python=ARG enable usage of the python interpreter ARG=yes
  589. --with-python-includes=DIR Python include files are in DIR
  590. --with-python-libraries=DIR Python library file are in DIR
  591. Some influential environment variables:
  592. CC C compiler command
  593. CFLAGS C compiler flags
  594. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  595. nonstandard directory <lib dir>
  596. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  597. headers in a nonstandard directory <include dir>
  598. CPP C preprocessor
  599. Use these variables to override the choices made by `configure' or to help
  600. it to find libraries and programs with nonstandard names/locations.
  601. EOF
  602. fi
  603. if test "$ac_init_help" = "recursive"; then
  604. # If there are subdirs, report their specific --help.
  605. ac_popdir=`pwd`
  606. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  607. cd $ac_subdir
  608. # A "../" for each directory in /$ac_subdir.
  609. ac_dots=`echo $ac_subdir |
  610. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  611. case $srcdir in
  612. .) # No --srcdir option. We are building in place.
  613. ac_sub_srcdir=$srcdir ;;
  614. [\\/]* | ?:[\\/]* ) # Absolute path.
  615. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  616. *) # Relative path.
  617. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  618. esac
  619. # Check for guested configure; otherwise get Cygnus style configure.
  620. if test -f $ac_sub_srcdir/configure.gnu; then
  621. echo
  622. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  623. elif test -f $ac_sub_srcdir/configure; then
  624. echo
  625. $SHELL $ac_sub_srcdir/configure --help=recursive
  626. elif test -f $ac_sub_srcdir/configure.ac ||
  627. test -f $ac_sub_srcdir/configure.in; then
  628. echo
  629. $ac_configure --help
  630. else
  631. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  632. fi
  633. cd $ac_popdir
  634. done
  635. fi
  636. test -n "$ac_init_help" && exit 0
  637. if $ac_init_version; then
  638. cat <<\EOF
  639. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  640. Free Software Foundation, Inc.
  641. This configure script is free software; the Free Software Foundation
  642. gives unlimited permission to copy, distribute and modify it.
  643. EOF
  644. exit 0
  645. fi
  646. exec 5>config.log
  647. cat >&5 <<EOF
  648. This file contains any messages produced by compilers while
  649. running configure, to aid debugging if configure makes a mistake.
  650. It was created by $as_me, which was
  651. generated by GNU Autoconf 2.52. Invocation command line was
  652. $ $0 $@
  653. EOF
  654. {
  655. cat <<_ASUNAME
  656. ## ---------- ##
  657. ## Platform. ##
  658. ## ---------- ##
  659. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  660. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  661. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  662. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  663. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  664. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  665. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  666. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  667. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  668. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  669. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  670. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  671. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  672. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  673. PATH = $PATH
  674. _ASUNAME
  675. } >&5
  676. cat >&5 <<EOF
  677. ## ------------ ##
  678. ## Core tests. ##
  679. ## ------------ ##
  680. EOF
  681. # Keep a trace of the command line.
  682. # Strip out --no-create and --no-recursion so they do not pile up.
  683. # Also quote any args containing shell meta-characters.
  684. ac_configure_args=
  685. ac_sep=
  686. for ac_arg
  687. do
  688. case $ac_arg in
  689. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  690. | --no-cr | --no-c) ;;
  691. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  692. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  693. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  694. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  695. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  696. ac_sep=" " ;;
  697. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  698. ac_sep=" " ;;
  699. esac
  700. # Get rid of the leading space.
  701. done
  702. # When interrupted or exit'd, cleanup temporary files, and complete
  703. # config.log. We remove comments because anyway the quotes in there
  704. # would cause problems or look ugly.
  705. trap 'exit_status=$?
  706. # Save into config.log some information that might help in debugging.
  707. echo >&5
  708. echo "## ----------------- ##" >&5
  709. echo "## Cache variables. ##" >&5
  710. echo "## ----------------- ##" >&5
  711. echo >&5
  712. # The following way of writing the cache mishandles newlines in values,
  713. {
  714. (set) 2>&1 |
  715. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  716. *ac_space=\ *)
  717. sed -n \
  718. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  719. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  720. ;;
  721. *)
  722. sed -n \
  723. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  724. ;;
  725. esac;
  726. } >&5
  727. sed "/^$/d" confdefs.h >conftest.log
  728. if test -s conftest.log; then
  729. echo >&5
  730. echo "## ------------ ##" >&5
  731. echo "## confdefs.h. ##" >&5
  732. echo "## ------------ ##" >&5
  733. echo >&5
  734. cat conftest.log >&5
  735. fi
  736. (echo; echo) >&5
  737. test "$ac_signal" != 0 &&
  738. echo "$as_me: caught signal $ac_signal" >&5
  739. echo "$as_me: exit $exit_status" >&5
  740. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  741. exit $exit_status
  742. ' 0
  743. for ac_signal in 1 2 13 15; do
  744. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  745. done
  746. ac_signal=0
  747. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  748. rm -rf conftest* confdefs.h
  749. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  750. echo >confdefs.h
  751. # Let the site file select an alternate cache file if it wants to.
  752. # Prefer explicitly selected file to automatically selected ones.
  753. if test -z "$CONFIG_SITE"; then
  754. if test "x$prefix" != xNONE; then
  755. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  756. else
  757. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  758. fi
  759. fi
  760. for ac_site_file in $CONFIG_SITE; do
  761. if test -r "$ac_site_file"; then
  762. { echo "$as_me:875: loading site script $ac_site_file" >&5
  763. echo "$as_me: loading site script $ac_site_file" >&6;}
  764. cat "$ac_site_file" >&5
  765. . "$ac_site_file"
  766. fi
  767. done
  768. if test -r "$cache_file"; then
  769. # Some versions of bash will fail to source /dev/null (special
  770. # files actually), so we avoid doing that.
  771. if test -f "$cache_file"; then
  772. { echo "$as_me:886: loading cache $cache_file" >&5
  773. echo "$as_me: loading cache $cache_file" >&6;}
  774. case $cache_file in
  775. [\\/]* | ?:[\\/]* ) . $cache_file;;
  776. *) . ./$cache_file;;
  777. esac
  778. fi
  779. else
  780. { echo "$as_me:894: creating cache $cache_file" >&5
  781. echo "$as_me: creating cache $cache_file" >&6;}
  782. >$cache_file
  783. fi
  784. # Check that the precious variables saved in the cache have kept the same
  785. # value.
  786. ac_cache_corrupted=false
  787. for ac_var in `(set) 2>&1 |
  788. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  789. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  790. eval ac_new_set=\$ac_env_${ac_var}_set
  791. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  792. eval ac_new_val="\$ac_env_${ac_var}_value"
  793. case $ac_old_set,$ac_new_set in
  794. set,)
  795. { echo "$as_me:910: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  796. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  797. ac_cache_corrupted=: ;;
  798. ,set)
  799. { echo "$as_me:914: error: \`$ac_var' was not set in the previous run" >&5
  800. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  801. ac_cache_corrupted=: ;;
  802. ,);;
  803. *)
  804. if test "x$ac_old_val" != "x$ac_new_val"; then
  805. { echo "$as_me:920: error: \`$ac_var' has changed since the previous run:" >&5
  806. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  807. { echo "$as_me:922: former value: $ac_old_val" >&5
  808. echo "$as_me: former value: $ac_old_val" >&2;}
  809. { echo "$as_me:924: current value: $ac_new_val" >&5
  810. echo "$as_me: current value: $ac_new_val" >&2;}
  811. ac_cache_corrupted=:
  812. fi;;
  813. esac
  814. # Pass precious variables to config.status. It doesn't matter if
  815. # we pass some twice (in addition to the command line arguments).
  816. if test "$ac_new_set" = set; then
  817. case $ac_new_val in
  818. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  819. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  820. ac_configure_args="$ac_configure_args '$ac_arg'"
  821. ;;
  822. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  823. ;;
  824. esac
  825. fi
  826. done
  827. if $ac_cache_corrupted; then
  828. { echo "$as_me:943: error: changes in the environment can compromise the build" >&5
  829. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  830. { { echo "$as_me:945: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  831. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  832. { (exit 1); exit 1; }; }
  833. fi
  834. ac_ext=c
  835. ac_cpp='$CPP $CPPFLAGS'
  836. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  837. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  838. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  839. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  840. *c*,-n*) ECHO_N= ECHO_C='
  841. ' ECHO_T=' ' ;;
  842. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  843. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  844. esac
  845. echo "#! $SHELL" >conftest.sh
  846. echo "exit 0" >>conftest.sh
  847. chmod +x conftest.sh
  848. if { (echo "$as_me:965: PATH=\".;.\"; conftest.sh") >&5
  849. (PATH=".;."; conftest.sh) 2>&5
  850. ac_status=$?
  851. echo "$as_me:968: \$? = $ac_status" >&5
  852. (exit $ac_status); }; then
  853. ac_path_separator=';'
  854. else
  855. ac_path_separator=:
  856. fi
  857. PATH_SEPARATOR="$ac_path_separator"
  858. rm -f conftest.sh
  859. NTRIPCASTER_MAJOR=0
  860. NTRIPCASTER_MINOR=1
  861. NTRIPCASTER_MICRO=5
  862. NTRIPCASTER_VERSION=$NTRIPCASTER_MAJOR.$NTRIPCASTER_MINOR.$NTRIPCASTER_MICRO
  863. PACKAGE=ntripcaster
  864. VERSION="$NTRIPCASTER_VERSION"
  865. echo "Building Ntripcaster-$VERSION..."
  866. ac_aux_dir=
  867. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  868. if test -f $ac_dir/install-sh; then
  869. ac_aux_dir=$ac_dir
  870. ac_install_sh="$ac_aux_dir/install-sh -c"
  871. break
  872. elif test -f $ac_dir/install.sh; then
  873. ac_aux_dir=$ac_dir
  874. ac_install_sh="$ac_aux_dir/install.sh -c"
  875. break
  876. elif test -f $ac_dir/shtool; then
  877. ac_aux_dir=$ac_dir
  878. ac_install_sh="$ac_aux_dir/shtool install -c"
  879. break
  880. fi
  881. done
  882. if test -z "$ac_aux_dir"; then
  883. { { echo "$as_me:1005: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  884. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  885. { (exit 1); exit 1; }; }
  886. fi
  887. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  888. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  889. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  890. # Find a good install program. We prefer a C program (faster),
  891. # so one script is as good as another. But avoid the broken or
  892. # incompatible versions:
  893. # SysV /etc/install, /usr/sbin/install
  894. # SunOS /usr/etc/install
  895. # IRIX /sbin/install
  896. # AIX /bin/install
  897. # AmigaOS /C/install, which installs bootblocks on floppy discs
  898. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  899. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  900. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  901. # ./install, which can be erroneously created by make from ./install.sh.
  902. echo "$as_me:1025: checking for a BSD compatible install" >&5
  903. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  904. if test -z "$INSTALL"; then
  905. if test "${ac_cv_path_install+set}" = set; then
  906. echo $ECHO_N "(cached) $ECHO_C" >&6
  907. else
  908. ac_save_IFS=$IFS; IFS=$ac_path_separator
  909. for ac_dir in $PATH; do
  910. IFS=$ac_save_IFS
  911. # Account for people who put trailing slashes in PATH elements.
  912. case $ac_dir/ in
  913. / | ./ | .// | /cC/* \
  914. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  915. | /usr/ucb/* ) ;;
  916. *)
  917. # OSF1 and SCO ODT 3.0 have their own names for install.
  918. # Don't use installbsd from OSF since it installs stuff as root
  919. # by default.
  920. for ac_prog in ginstall scoinst install; do
  921. if $as_executable_p "$ac_dir/$ac_prog"; then
  922. if test $ac_prog = install &&
  923. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  924. # AIX install. It has an incompatible calling convention.
  925. :
  926. elif test $ac_prog = install &&
  927. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  928. # program-specific install script used by HP pwplus--don't use.
  929. :
  930. else
  931. ac_cv_path_install="$ac_dir/$ac_prog -c"
  932. break 2
  933. fi
  934. fi
  935. done
  936. ;;
  937. esac
  938. done
  939. fi
  940. if test "${ac_cv_path_install+set}" = set; then
  941. INSTALL=$ac_cv_path_install
  942. else
  943. # As a last resort, use the slow shell script. We don't cache a
  944. # path for INSTALL within a source directory, because that will
  945. # break other packages using the cache if that directory is
  946. # removed, or if the path is relative.
  947. INSTALL=$ac_install_sh
  948. fi
  949. fi
  950. echo "$as_me:1074: result: $INSTALL" >&5
  951. echo "${ECHO_T}$INSTALL" >&6
  952. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  953. # It thinks the first close brace ends the variable substitution.
  954. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  955. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  956. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  957. echo "$as_me:1085: checking whether build environment is sane" >&5
  958. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  959. # Just in case
  960. sleep 1
  961. echo timestamp > conftestfile
  962. # Do `set' in a subshell so we don't clobber the current shell's
  963. # arguments. Must try -L first in case configure is actually a
  964. # symlink; some systems play weird games with the mod time of symlinks
  965. # (eg FreeBSD returns the mod time of the symlink's containing
  966. # directory).
  967. if (
  968. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  969. if test "$*" = "X"; then
  970. # -L didn't work.
  971. set X `ls -t $srcdir/configure conftestfile`
  972. fi
  973. if test "$*" != "X $srcdir/configure conftestfile" \
  974. && test "$*" != "X conftestfile $srcdir/configure"; then
  975. # If neither matched, then we have a broken ls. This can happen
  976. # if, for instance, CONFIG_SHELL is bash and it inherits a
  977. # broken ls alias from the environment. This has actually
  978. # happened. Such a system could not be considered "sane".
  979. { { echo "$as_me:1108: error: ls -t appears to fail. Make sure there is not a broken
  980. alias in your environment" >&5
  981. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  982. alias in your environment" >&2;}
  983. { (exit 1); exit 1; }; }
  984. fi
  985. test "$2" = conftestfile
  986. )
  987. then
  988. # Ok.
  989. :
  990. else
  991. { { echo "$as_me:1121: error: newly created file is older than distributed files!
  992. Check your system clock" >&5
  993. echo "$as_me: error: newly created file is older than distributed files!
  994. Check your system clock" >&2;}
  995. { (exit 1); exit 1; }; }
  996. fi
  997. rm -f conftest*
  998. echo "$as_me:1128: result: yes" >&5
  999. echo "${ECHO_T}yes" >&6
  1000. test "$program_prefix" != NONE &&
  1001. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1002. # Use a double $ so make ignores it.
  1003. test "$program_suffix" != NONE &&
  1004. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1005. # Double any \ or $. echo might interpret backslashes.
  1006. # By default was `s,x,x', remove it if useless.
  1007. cat <<\_ACEOF >conftest.sed
  1008. s/[\\$]/&&/g;s/;s,x,x,$//
  1009. _ACEOF
  1010. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1011. rm conftest.sed
  1012. echo "$as_me:1143: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1013. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1014. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1015. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1016. echo $ECHO_N "(cached) $ECHO_C" >&6
  1017. else
  1018. cat >conftest.make <<\EOF
  1019. all:
  1020. @echo 'ac_maketemp="${MAKE}"'
  1021. EOF
  1022. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1023. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1024. if test -n "$ac_maketemp"; then
  1025. eval ac_cv_prog_make_${ac_make}_set=yes
  1026. else
  1027. eval ac_cv_prog_make_${ac_make}_set=no
  1028. fi
  1029. rm -f conftest.make
  1030. fi
  1031. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1032. echo "$as_me:1163: result: yes" >&5
  1033. echo "${ECHO_T}yes" >&6
  1034. SET_MAKE=
  1035. else
  1036. echo "$as_me:1167: result: no" >&5
  1037. echo "${ECHO_T}no" >&6
  1038. SET_MAKE="MAKE=${MAKE-make}"
  1039. fi
  1040. PACKAGE=$PACKAGE
  1041. VERSION=$VERSION
  1042. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1043. { { echo "$as_me:1177: error: source directory already configured; run \"make distclean\" there first" >&5
  1044. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1045. { (exit 1); exit 1; }; }
  1046. fi
  1047. cat >>confdefs.h <<EOF
  1048. #define PACKAGE "$PACKAGE"
  1049. EOF
  1050. cat >>confdefs.h <<EOF
  1051. #define VERSION "$VERSION"
  1052. EOF
  1053. missing_dir=`cd $ac_aux_dir && pwd`
  1054. echo "$as_me:1191: checking for working aclocal" >&5
  1055. echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1056. # Run test in a subshell; some versions of sh will print an error if
  1057. # an executable is not found, even if stderr is redirected.
  1058. # Redirect stdin to placate older versions of autoconf. Sigh.
  1059. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1060. ACLOCAL=aclocal
  1061. echo "$as_me:1198: result: found" >&5
  1062. echo "${ECHO_T}found" >&6
  1063. else
  1064. ACLOCAL="$missing_dir/missing aclocal"
  1065. echo "$as_me:1202: result: missing" >&5
  1066. echo "${ECHO_T}missing" >&6
  1067. fi
  1068. echo "$as_me:1206: checking for working autoconf" >&5
  1069. echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1070. # Run test in a subshell; some versions of sh will print an error if
  1071. # an executable is not found, even if stderr is redirected.
  1072. # Redirect stdin to placate older versions of autoconf. Sigh.
  1073. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1074. AUTOCONF=autoconf
  1075. echo "$as_me:1213: result: found" >&5
  1076. echo "${ECHO_T}found" >&6
  1077. else
  1078. AUTOCONF="$missing_dir/missing autoconf"
  1079. echo "$as_me:1217: result: missing" >&5
  1080. echo "${ECHO_T}missing" >&6
  1081. fi
  1082. echo "$as_me:1221: checking for working automake" >&5
  1083. echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1084. # Run test in a subshell; some versions of sh will print an error if
  1085. # an executable is not found, even if stderr is redirected.
  1086. # Redirect stdin to placate older versions of autoconf. Sigh.
  1087. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1088. AUTOMAKE=automake
  1089. echo "$as_me:1228: result: found" >&5
  1090. echo "${ECHO_T}found" >&6
  1091. else
  1092. AUTOMAKE="$missing_dir/missing automake"
  1093. echo "$as_me:1232: result: missing" >&5
  1094. echo "${ECHO_T}missing" >&6
  1095. fi
  1096. echo "$as_me:1236: checking for working autoheader" >&5
  1097. echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1098. # Run test in a subshell; some versions of sh will print an error if
  1099. # an executable is not found, even if stderr is redirected.
  1100. # Redirect stdin to placate older versions of autoconf. Sigh.
  1101. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1102. AUTOHEADER=autoheader
  1103. echo "$as_me:1243: result: found" >&5
  1104. echo "${ECHO_T}found" >&6
  1105. else
  1106. AUTOHEADER="$missing_dir/missing autoheader"
  1107. echo "$as_me:1247: result: missing" >&5
  1108. echo "${ECHO_T}missing" >&6
  1109. fi
  1110. echo "$as_me:1251: checking for working makeinfo" >&5
  1111. echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1112. # Run test in a subshell; some versions of sh will print an error if
  1113. # an executable is not found, even if stderr is redirected.
  1114. # Redirect stdin to placate older versions of autoconf. Sigh.
  1115. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1116. MAKEINFO=makeinfo
  1117. echo "$as_me:1258: result: found" >&5
  1118. echo "${ECHO_T}found" >&6
  1119. else
  1120. MAKEINFO="$missing_dir/missing makeinfo"
  1121. echo "$as_me:1262: result: missing" >&5
  1122. echo "${ECHO_T}missing" >&6
  1123. fi
  1124. echo "$as_me:1266: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1125. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1126. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1127. if test "${enable_maintainer_mode+set}" = set; then
  1128. enableval="$enable_maintainer_mode"
  1129. USE_MAINTAINER_MODE=$enableval
  1130. else
  1131. USE_MAINTAINER_MODE=no
  1132. fi;
  1133. echo "$as_me:1275: result: $USE_MAINTAINER_MODE" >&5
  1134. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1135. if test $USE_MAINTAINER_MODE = yes; then
  1136. MAINTAINER_MODE_TRUE=
  1137. MAINTAINER_MODE_FALSE='#'
  1138. else
  1139. MAINTAINER_MODE_TRUE='#'
  1140. MAINTAINER_MODE_FALSE=
  1141. fi
  1142. MAINT=$MAINTAINER_MODE_TRUE
  1143. if test "x$prefix" = "xNONE"; then
  1144. prefix="/usr/local/ntripcaster"
  1145. else
  1146. prefix=$prefix
  1147. fi
  1148. NTRIPCASTER_BINDIR=${prefix}/bin
  1149. NTRIPCASTER_ETCDIR_INST=${prefix}/conf
  1150. NTRIPCASTER_LOGDIR_INST=${prefix}/logs
  1151. NTRIPCASTER_ETCDIR=conf
  1152. NTRIPCASTER_LOGDIR=logs
  1153. NTRIPCASTER_SHAREDIR=${prefix}
  1154. ac_config_headers="$ac_config_headers config.h"
  1155. ac_config_commands="$ac_config_commands default-1"
  1156. cat >>confdefs.h <<EOF
  1157. #define VERSION "$VERSION"
  1158. EOF
  1159. cat >>confdefs.h <<EOF
  1160. #define NTRIPCASTER_ETCDIR "$NTRIPCASTER_ETCDIR"
  1161. EOF
  1162. cat >>confdefs.h <<EOF
  1163. #define NTRIPCASTER_LOGDIR "$NTRIPCASTER_LOGDIR"
  1164. EOF
  1165. if test -n "$ac_tool_prefix"; then
  1166. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1167. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1168. echo "$as_me:1319: checking for $ac_word" >&5
  1169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1170. if test "${ac_cv_prog_RANLIB+set}" = set; then
  1171. echo $ECHO_N "(cached) $ECHO_C" >&6
  1172. else
  1173. if test -n "$RANLIB"; then
  1174. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1175. else
  1176. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1177. ac_dummy="$PATH"
  1178. for ac_dir in $ac_dummy; do
  1179. IFS=$ac_save_IFS
  1180. test -z "$ac_dir" && ac_dir=.
  1181. $as_executable_p "$ac_dir/$ac_word" || continue
  1182. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1183. echo "$as_me:1334: found $ac_dir/$ac_word" >&5
  1184. break
  1185. done
  1186. fi
  1187. fi
  1188. RANLIB=$ac_cv_prog_RANLIB
  1189. if test -n "$RANLIB"; then
  1190. echo "$as_me:1342: result: $RANLIB" >&5
  1191. echo "${ECHO_T}$RANLIB" >&6
  1192. else
  1193. echo "$as_me:1345: result: no" >&5
  1194. echo "${ECHO_T}no" >&6
  1195. fi
  1196. fi
  1197. if test -z "$ac_cv_prog_RANLIB"; then
  1198. ac_ct_RANLIB=$RANLIB
  1199. # Extract the first word of "ranlib", so it can be a program name with args.
  1200. set dummy ranlib; ac_word=$2
  1201. echo "$as_me:1354: checking for $ac_word" >&5
  1202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1203. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1204. echo $ECHO_N "(cached) $ECHO_C" >&6
  1205. else
  1206. if test -n "$ac_ct_RANLIB"; then
  1207. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1208. else
  1209. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1210. ac_dummy="$PATH"
  1211. for ac_dir in $ac_dummy; do
  1212. IFS=$ac_save_IFS
  1213. test -z "$ac_dir" && ac_dir=.
  1214. $as_executable_p "$ac_dir/$ac_word" || continue
  1215. ac_cv_prog_ac_ct_RANLIB="ranlib"
  1216. echo "$as_me:1369: found $ac_dir/$ac_word" >&5
  1217. break
  1218. done
  1219. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  1220. fi
  1221. fi
  1222. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  1223. if test -n "$ac_ct_RANLIB"; then
  1224. echo "$as_me:1378: result: $ac_ct_RANLIB" >&5
  1225. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  1226. else
  1227. echo "$as_me:1381: result: no" >&5
  1228. echo "${ECHO_T}no" >&6
  1229. fi
  1230. RANLIB=$ac_ct_RANLIB
  1231. else
  1232. RANLIB="$ac_cv_prog_RANLIB"
  1233. fi
  1234. ac_ext=c
  1235. ac_cpp='$CPP $CPPFLAGS'
  1236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1239. if test -n "$ac_tool_prefix"; then
  1240. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1241. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1242. echo "$as_me:1398: checking for $ac_word" >&5
  1243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1244. if test "${ac_cv_prog_CC+set}" = set; then
  1245. echo $ECHO_N "(cached) $ECHO_C" >&6
  1246. else
  1247. if test -n "$CC"; then
  1248. ac_cv_prog_CC="$CC" # Let the user override the test.
  1249. else
  1250. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1251. ac_dummy="$PATH"
  1252. for ac_dir in $ac_dummy; do
  1253. IFS=$ac_save_IFS
  1254. test -z "$ac_dir" && ac_dir=.
  1255. $as_executable_p "$ac_dir/$ac_word" || continue
  1256. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1257. echo "$as_me:1413: found $ac_dir/$ac_word" >&5
  1258. break
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:1421: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:1424: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "gcc", so it can be a program name with args.
  1274. set dummy gcc; ac_word=$2
  1275. echo "$as_me:1433: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1284. ac_dummy="$PATH"
  1285. for ac_dir in $ac_dummy; do
  1286. IFS=$ac_save_IFS
  1287. test -z "$ac_dir" && ac_dir=.
  1288. $as_executable_p "$ac_dir/$ac_word" || continue
  1289. ac_cv_prog_ac_ct_CC="gcc"
  1290. echo "$as_me:1448: found $ac_dir/$ac_word" >&5
  1291. break
  1292. done
  1293. fi
  1294. fi
  1295. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1296. if test -n "$ac_ct_CC"; then
  1297. echo "$as_me:1456: result: $ac_ct_CC" >&5
  1298. echo "${ECHO_T}$ac_ct_CC" >&6
  1299. else
  1300. echo "$as_me:1459: result: no" >&5
  1301. echo "${ECHO_T}no" >&6
  1302. fi
  1303. CC=$ac_ct_CC
  1304. else
  1305. CC="$ac_cv_prog_CC"
  1306. fi
  1307. if test -z "$CC"; then
  1308. if test -n "$ac_tool_prefix"; then
  1309. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1310. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1311. echo "$as_me:1472: checking for $ac_word" >&5
  1312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1313. if test "${ac_cv_prog_CC+set}" = set; then
  1314. echo $ECHO_N "(cached) $ECHO_C" >&6
  1315. else
  1316. if test -n "$CC"; then
  1317. ac_cv_prog_CC="$CC" # Let the user override the test.
  1318. else
  1319. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1320. ac_dummy="$PATH"
  1321. for ac_dir in $ac_dummy; do
  1322. IFS=$ac_save_IFS
  1323. test -z "$ac_dir" && ac_dir=.
  1324. $as_executable_p "$ac_dir/$ac_word" || continue
  1325. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1326. echo "$as_me:1487: found $ac_dir/$ac_word" >&5
  1327. break
  1328. done
  1329. fi
  1330. fi
  1331. CC=$ac_cv_prog_CC
  1332. if test -n "$CC"; then
  1333. echo "$as_me:1495: result: $CC" >&5
  1334. echo "${ECHO_T}$CC" >&6
  1335. else
  1336. echo "$as_me:1498: result: no" >&5
  1337. echo "${ECHO_T}no" >&6
  1338. fi
  1339. fi
  1340. if test -z "$ac_cv_prog_CC"; then
  1341. ac_ct_CC=$CC
  1342. # Extract the first word of "cc", so it can be a program name with args.
  1343. set dummy cc; ac_word=$2
  1344. echo "$as_me:1507: checking for $ac_word" >&5
  1345. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1346. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1347. echo $ECHO_N "(cached) $ECHO_C" >&6
  1348. else
  1349. if test -n "$ac_ct_CC"; then
  1350. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1351. else
  1352. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1353. ac_dummy="$PATH"
  1354. for ac_dir in $ac_dummy; do
  1355. IFS=$ac_save_IFS
  1356. test -z "$ac_dir" && ac_dir=.
  1357. $as_executable_p "$ac_dir/$ac_word" || continue
  1358. ac_cv_prog_ac_ct_CC="cc"
  1359. echo "$as_me:1522: found $ac_dir/$ac_word" >&5
  1360. break
  1361. done
  1362. fi
  1363. fi
  1364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1365. if test -n "$ac_ct_CC"; then
  1366. echo "$as_me:1530: result: $ac_ct_CC" >&5
  1367. echo "${ECHO_T}$ac_ct_CC" >&6
  1368. else
  1369. echo "$as_me:1533: result: no" >&5
  1370. echo "${ECHO_T}no" >&6
  1371. fi
  1372. CC=$ac_ct_CC
  1373. else
  1374. CC="$ac_cv_prog_CC"
  1375. fi
  1376. fi
  1377. if test -z "$CC"; then
  1378. # Extract the first word of "cc", so it can be a program name with args.
  1379. set dummy cc; ac_word=$2
  1380. echo "$as_me:1546: checking for $ac_word" >&5
  1381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1382. if test "${ac_cv_prog_CC+set}" = set; then
  1383. echo $ECHO_N "(cached) $ECHO_C" >&6
  1384. else
  1385. if test -n "$CC"; then
  1386. ac_cv_prog_CC="$CC" # Let the user override the test.
  1387. else
  1388. ac_prog_rejected=no
  1389. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1390. ac_dummy="$PATH"
  1391. for ac_dir in $ac_dummy; do
  1392. IFS=$ac_save_IFS
  1393. test -z "$ac_dir" && ac_dir=.
  1394. $as_executable_p "$ac_dir/$ac_word" || continue
  1395. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1396. ac_prog_rejected=yes
  1397. continue
  1398. fi
  1399. ac_cv_prog_CC="cc"
  1400. echo "$as_me:1566: found $ac_dir/$ac_word" >&5
  1401. break
  1402. done
  1403. if test $ac_prog_rejected = yes; then
  1404. # We found a bogon in the path, so make sure we never use it.
  1405. set dummy $ac_cv_prog_CC
  1406. shift
  1407. if test $# != 0; then
  1408. # We chose a different compiler from the bogus one.
  1409. # However, it has the same basename, so the bogon will be chosen
  1410. # first if we set CC to just the basename; use the full file name.
  1411. shift
  1412. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  1413. shift
  1414. ac_cv_prog_CC="$@"
  1415. fi
  1416. fi
  1417. fi
  1418. fi
  1419. CC=$ac_cv_prog_CC
  1420. if test -n "$CC"; then
  1421. echo "$as_me:1588: result: $CC" >&5
  1422. echo "${ECHO_T}$CC" >&6
  1423. else
  1424. echo "$as_me:1591: result: no" >&5
  1425. echo "${ECHO_T}no" >&6
  1426. fi
  1427. fi
  1428. if test -z "$CC"; then
  1429. if test -n "$ac_tool_prefix"; then
  1430. for ac_prog in cl
  1431. do
  1432. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1433. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1434. echo "$as_me:1602: checking for $ac_word" >&5
  1435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1436. if test "${ac_cv_prog_CC+set}" = set; then
  1437. echo $ECHO_N "(cached) $ECHO_C" >&6
  1438. else
  1439. if test -n "$CC"; then
  1440. ac_cv_prog_CC="$CC" # Let the user override the test.
  1441. else
  1442. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1443. ac_dummy="$PATH"
  1444. for ac_dir in $ac_dummy; do
  1445. IFS=$ac_save_IFS
  1446. test -z "$ac_dir" && ac_dir=.
  1447. $as_executable_p "$ac_dir/$ac_word" || continue
  1448. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1449. echo "$as_me:1617: found $ac_dir/$ac_word" >&5
  1450. break
  1451. done
  1452. fi
  1453. fi
  1454. CC=$ac_cv_prog_CC
  1455. if test -n "$CC"; then
  1456. echo "$as_me:1625: result: $CC" >&5
  1457. echo "${ECHO_T}$CC" >&6
  1458. else
  1459. echo "$as_me:1628: result: no" >&5
  1460. echo "${ECHO_T}no" >&6
  1461. fi
  1462. test -n "$CC" && break
  1463. done
  1464. fi
  1465. if test -z "$CC"; then
  1466. ac_ct_CC=$CC
  1467. for ac_prog in cl
  1468. do
  1469. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1470. set dummy $ac_prog; ac_word=$2
  1471. echo "$as_me:1641: checking for $ac_word" >&5
  1472. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1473. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1474. echo $ECHO_N "(cached) $ECHO_C" >&6
  1475. else
  1476. if test -n "$ac_ct_CC"; then
  1477. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1478. else
  1479. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1480. ac_dummy="$PATH"
  1481. for ac_dir in $ac_dummy; do
  1482. IFS=$ac_save_IFS
  1483. test -z "$ac_dir" && ac_dir=.
  1484. $as_executable_p "$ac_dir/$ac_word" || continue
  1485. ac_cv_prog_ac_ct_CC="$ac_prog"
  1486. echo "$as_me:1656: found $ac_dir/$ac_word" >&5
  1487. break
  1488. done
  1489. fi
  1490. fi
  1491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1492. if test -n "$ac_ct_CC"; then
  1493. echo "$as_me:1664: result: $ac_ct_CC" >&5
  1494. echo "${ECHO_T}$ac_ct_CC" >&6
  1495. else
  1496. echo "$as_me:1667: result: no" >&5
  1497. echo "${ECHO_T}no" >&6
  1498. fi
  1499. test -n "$ac_ct_CC" && break
  1500. done
  1501. CC=$ac_ct_CC
  1502. fi
  1503. fi
  1504. test -z "$CC" && { { echo "$as_me:1679: error: no acceptable cc found in \$PATH" >&5
  1505. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1506. { (exit 1); exit 1; }; }
  1507. # Provide some information about the compiler.
  1508. echo "$as_me:1684:" \
  1509. "checking for C compiler version" >&5
  1510. ac_compiler=`set X $ac_compile; echo $2`
  1511. { (eval echo "$as_me:1687: \"$ac_compiler --version </dev/null >&5\"") >&5
  1512. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1513. ac_status=$?
  1514. echo "$as_me:1690: \$? = $ac_status" >&5
  1515. (exit $ac_status); }
  1516. { (eval echo "$as_me:1692: \"$ac_compiler -v </dev/null >&5\"") >&5
  1517. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1518. ac_status=$?
  1519. echo "$as_me:1695: \$? = $ac_status" >&5
  1520. (exit $ac_status); }
  1521. { (eval echo "$as_me:1697: \"$ac_compiler -V </dev/null >&5\"") >&5
  1522. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1523. ac_status=$?
  1524. echo "$as_me:1700: \$? = $ac_status" >&5
  1525. (exit $ac_status); }
  1526. cat >conftest.$ac_ext <<_ACEOF
  1527. #line 1704 "configure"
  1528. #include "confdefs.h"
  1529. int
  1530. main ()
  1531. {
  1532. ;
  1533. return 0;
  1534. }
  1535. _ACEOF
  1536. ac_clean_files_save=$ac_clean_files
  1537. ac_clean_files="$ac_clean_files a.out a.exe"
  1538. # Try to create an executable without -o first, disregard a.out.
  1539. # It will help us diagnose broken compilers, and finding out an intuition
  1540. # of exeext.
  1541. echo "$as_me:1720: checking for C compiler default output" >&5
  1542. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1543. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1544. if { (eval echo "$as_me:1723: \"$ac_link_default\"") >&5
  1545. (eval $ac_link_default) 2>&5
  1546. ac_status=$?
  1547. echo "$as_me:1726: \$? = $ac_status" >&5
  1548. (exit $ac_status); }; then
  1549. # Find the output, starting from the most likely. This scheme is
  1550. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1551. # resort.
  1552. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1553. ls a.out conftest 2>/dev/null;
  1554. ls a.* conftest.* 2>/dev/null`; do
  1555. case $ac_file in
  1556. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1557. a.out ) # We found the default executable, but exeext='' is most
  1558. # certainly right.
  1559. break;;
  1560. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1561. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1562. export ac_cv_exeext
  1563. break;;
  1564. * ) break;;
  1565. esac
  1566. done
  1567. else
  1568. echo "$as_me: failed program was:" >&5
  1569. cat conftest.$ac_ext >&5
  1570. { { echo "$as_me:1749: error: C compiler cannot create executables" >&5
  1571. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1572. { (exit 77); exit 77; }; }
  1573. fi
  1574. ac_exeext=$ac_cv_exeext
  1575. echo "$as_me:1755: result: $ac_file" >&5
  1576. echo "${ECHO_T}$ac_file" >&6
  1577. # Check the compiler produces executables we can run. If not, either
  1578. # the compiler is broken, or we cross compile.
  1579. echo "$as_me:1760: checking whether the C compiler works" >&5
  1580. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1581. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1582. # If not cross compiling, check that we can run a simple program.
  1583. if test "$cross_compiling" != yes; then
  1584. if { ac_try='./$ac_file'
  1585. { (eval echo "$as_me:1766: \"$ac_try\"") >&5
  1586. (eval $ac_try) 2>&5
  1587. ac_status=$?
  1588. echo "$as_me:1769: \$? = $ac_status" >&5
  1589. (exit $ac_status); }; }; then
  1590. cross_compiling=no
  1591. else
  1592. if test "$cross_compiling" = maybe; then
  1593. cross_compiling=yes
  1594. else
  1595. { { echo "$as_me:1776: error: cannot run C compiled programs.
  1596. If you meant to cross compile, use \`--host'." >&5
  1597. echo "$as_me: error: cannot run C compiled programs.
  1598. If you meant to cross compile, use \`--host'." >&2;}
  1599. { (exit 1); exit 1; }; }
  1600. fi
  1601. fi
  1602. fi
  1603. echo "$as_me:1784: result: yes" >&5
  1604. echo "${ECHO_T}yes" >&6
  1605. rm -f a.out a.exe conftest$ac_cv_exeext
  1606. ac_clean_files=$ac_clean_files_save
  1607. # Check the compiler produces executables we can run. If not, either
  1608. # the compiler is broken, or we cross compile.
  1609. echo "$as_me:1791: checking whether we are cross compiling" >&5
  1610. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1611. echo "$as_me:1793: result: $cross_compiling" >&5
  1612. echo "${ECHO_T}$cross_compiling" >&6
  1613. echo "$as_me:1796: checking for executable suffix" >&5
  1614. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1615. if { (eval echo "$as_me:1798: \"$ac_link\"") >&5
  1616. (eval $ac_link) 2>&5
  1617. ac_status=$?
  1618. echo "$as_me:1801: \$? = $ac_status" >&5
  1619. (exit $ac_status); }; then
  1620. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1621. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1622. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1623. # `rm'.
  1624. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1625. case $ac_file in
  1626. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1627. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1628. export ac_cv_exeext
  1629. break;;
  1630. * ) break;;
  1631. esac
  1632. done
  1633. else
  1634. { { echo "$as_me:1817: error: cannot compute EXEEXT: cannot compile and link" >&5
  1635. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1636. { (exit 1); exit 1; }; }
  1637. fi
  1638. rm -f conftest$ac_cv_exeext
  1639. echo "$as_me:1823: result: $ac_cv_exeext" >&5
  1640. echo "${ECHO_T}$ac_cv_exeext" >&6
  1641. rm -f conftest.$ac_ext
  1642. EXEEXT=$ac_cv_exeext
  1643. ac_exeext=$EXEEXT
  1644. echo "$as_me:1829: checking for object suffix" >&5
  1645. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1646. if test "${ac_cv_objext+set}" = set; then
  1647. echo $ECHO_N "(cached) $ECHO_C" >&6
  1648. else
  1649. cat >conftest.$ac_ext <<_ACEOF
  1650. #line 1835 "configure"
  1651. #include "confdefs.h"
  1652. int
  1653. main ()
  1654. {
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. rm -f conftest.o conftest.obj
  1660. if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
  1661. (eval $ac_compile) 2>&5
  1662. ac_status=$?
  1663. echo "$as_me:1850: \$? = $ac_status" >&5
  1664. (exit $ac_status); }; then
  1665. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1666. case $ac_file in
  1667. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1668. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1669. break;;
  1670. esac
  1671. done
  1672. else
  1673. echo "$as_me: failed program was:" >&5
  1674. cat conftest.$ac_ext >&5
  1675. { { echo "$as_me:1862: error: cannot compute OBJEXT: cannot compile" >&5
  1676. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1677. { (exit 1); exit 1; }; }
  1678. fi
  1679. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1680. fi
  1681. echo "$as_me:1869: result: $ac_cv_objext" >&5
  1682. echo "${ECHO_T}$ac_cv_objext" >&6
  1683. OBJEXT=$ac_cv_objext
  1684. ac_objext=$OBJEXT
  1685. echo "$as_me:1873: checking whether we are using the GNU C compiler" >&5
  1686. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1687. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1688. echo $ECHO_N "(cached) $ECHO_C" >&6
  1689. else
  1690. cat >conftest.$ac_ext <<_ACEOF
  1691. #line 1879 "configure"
  1692. #include "confdefs.h"
  1693. int
  1694. main ()
  1695. {
  1696. #ifndef __GNUC__
  1697. choke me
  1698. #endif
  1699. ;
  1700. return 0;
  1701. }
  1702. _ACEOF
  1703. rm -f conftest.$ac_objext
  1704. if { (eval echo "$as_me:1894: \"$ac_compile\"") >&5
  1705. (eval $ac_compile) 2>&5
  1706. ac_status=$?
  1707. echo "$as_me:1897: \$? = $ac_status" >&5
  1708. (exit $ac_status); } &&
  1709. { ac_try='test -s conftest.$ac_objext'
  1710. { (eval echo "$as_me:1900: \"$ac_try\"") >&5
  1711. (eval $ac_try) 2>&5
  1712. ac_status=$?
  1713. echo "$as_me:1903: \$? = $ac_status" >&5
  1714. (exit $ac_status); }; }; then
  1715. ac_compiler_gnu=yes
  1716. else
  1717. echo "$as_me: failed program was:" >&5
  1718. cat conftest.$ac_ext >&5
  1719. ac_compiler_gnu=no
  1720. fi
  1721. rm -f conftest.$ac_objext conftest.$ac_ext
  1722. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1723. fi
  1724. echo "$as_me:1915: result: $ac_cv_c_compiler_gnu" >&5
  1725. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1726. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1727. ac_test_CFLAGS=${CFLAGS+set}
  1728. ac_save_CFLAGS=$CFLAGS
  1729. CFLAGS="-g"
  1730. echo "$as_me:1921: checking whether $CC accepts -g" >&5
  1731. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1732. if test "${ac_cv_prog_cc_g+set}" = set; then
  1733. echo $ECHO_N "(cached) $ECHO_C" >&6
  1734. else
  1735. cat >conftest.$ac_ext <<_ACEOF
  1736. #line 1927 "configure"
  1737. #include "confdefs.h"
  1738. int
  1739. main ()
  1740. {
  1741. ;
  1742. return 0;
  1743. }
  1744. _ACEOF
  1745. rm -f conftest.$ac_objext
  1746. if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
  1747. (eval $ac_compile) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:1942: \$? = $ac_status" >&5
  1750. (exit $ac_status); } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:1945: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:1948: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. cat conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:1958: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. # Some people use a C++ compiler to compile C. Since we use `exit',
  1783. # in C++ we need to declare it. In case someone uses the same compiler
  1784. # for both compiling C and C++ we need to have the C++ compiler decide
  1785. # the declaration of exit, since it's the most demanding environment.
  1786. cat >conftest.$ac_ext <<_ACEOF
  1787. #ifndef __cplusplus
  1788. choke me
  1789. #endif
  1790. _ACEOF
  1791. rm -f conftest.$ac_objext
  1792. if { (eval echo "$as_me:1985: \"$ac_compile\"") >&5
  1793. (eval $ac_compile) 2>&5
  1794. ac_status=$?
  1795. echo "$as_me:1988: \$? = $ac_status" >&5
  1796. (exit $ac_status); } &&
  1797. { ac_try='test -s conftest.$ac_objext'
  1798. { (eval echo "$as_me:1991: \"$ac_try\"") >&5
  1799. (eval $ac_try) 2>&5
  1800. ac_status=$?
  1801. echo "$as_me:1994: \$? = $ac_status" >&5
  1802. (exit $ac_status); }; }; then
  1803. for ac_declaration in \
  1804. ''\
  1805. '#include <stdlib.h>' \
  1806. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1807. 'extern "C" void std::exit (int); using std::exit;' \
  1808. 'extern "C" void exit (int) throw ();' \
  1809. 'extern "C" void exit (int);' \
  1810. 'void exit (int);'
  1811. do
  1812. cat >conftest.$ac_ext <<_ACEOF
  1813. #line 2006 "configure"
  1814. #include "confdefs.h"
  1815. #include <stdlib.h>
  1816. $ac_declaration
  1817. int
  1818. main ()
  1819. {
  1820. exit (42);
  1821. ;
  1822. return 0;
  1823. }
  1824. _ACEOF
  1825. rm -f conftest.$ac_objext
  1826. if { (eval echo "$as_me:2019: \"$ac_compile\"") >&5
  1827. (eval $ac_compile) 2>&5
  1828. ac_status=$?
  1829. echo "$as_me:2022: \$? = $ac_status" >&5
  1830. (exit $ac_status); } &&
  1831. { ac_try='test -s conftest.$ac_objext'
  1832. { (eval echo "$as_me:2025: \"$ac_try\"") >&5
  1833. (eval $ac_try) 2>&5
  1834. ac_status=$?
  1835. echo "$as_me:2028: \$? = $ac_status" >&5
  1836. (exit $ac_status); }; }; then
  1837. :
  1838. else
  1839. echo "$as_me: failed program was:" >&5
  1840. cat conftest.$ac_ext >&5
  1841. continue
  1842. fi
  1843. rm -f conftest.$ac_objext conftest.$ac_ext
  1844. cat >conftest.$ac_ext <<_ACEOF
  1845. #line 2038 "configure"
  1846. #include "confdefs.h"
  1847. $ac_declaration
  1848. int
  1849. main ()
  1850. {
  1851. exit (42);
  1852. ;
  1853. return 0;
  1854. }
  1855. _ACEOF
  1856. rm -f conftest.$ac_objext
  1857. if { (eval echo "$as_me:2050: \"$ac_compile\"") >&5
  1858. (eval $ac_compile) 2>&5
  1859. ac_status=$?
  1860. echo "$as_me:2053: \$? = $ac_status" >&5
  1861. (exit $ac_status); } &&
  1862. { ac_try='test -s conftest.$ac_objext'
  1863. { (eval echo "$as_me:2056: \"$ac_try\"") >&5
  1864. (eval $ac_try) 2>&5
  1865. ac_status=$?
  1866. echo "$as_me:2059: \$? = $ac_status" >&5
  1867. (exit $ac_status); }; }; then
  1868. break
  1869. else
  1870. echo "$as_me: failed program was:" >&5
  1871. cat conftest.$ac_ext >&5
  1872. fi
  1873. rm -f conftest.$ac_objext conftest.$ac_ext
  1874. done
  1875. rm -f conftest*
  1876. if test -n "$ac_declaration"; then
  1877. echo '#ifdef __cplusplus' >>confdefs.h
  1878. echo $ac_declaration >>confdefs.h
  1879. echo '#endif' >>confdefs.h
  1880. fi
  1881. else
  1882. echo "$as_me: failed program was:" >&5
  1883. cat conftest.$ac_ext >&5
  1884. fi
  1885. rm -f conftest.$ac_objext conftest.$ac_ext
  1886. ac_ext=c
  1887. ac_cpp='$CPP $CPPFLAGS'
  1888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1891. if test "$CC" = "gcc"; then
  1892. CFLAGS="$CFLAGS -Wall"
  1893. fi
  1894. # Extract the first word of "uname", so it can be a program name with args.
  1895. set dummy uname; ac_word=$2
  1896. echo "$as_me:2092: checking for $ac_word" >&5
  1897. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1898. if test "${ac_cv_prog_UNAME+set}" = set; then
  1899. echo $ECHO_N "(cached) $ECHO_C" >&6
  1900. else
  1901. if test -n "$UNAME"; then
  1902. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  1903. else
  1904. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1905. ac_dummy="$PATH"
  1906. for ac_dir in $ac_dummy; do
  1907. IFS=$ac_save_IFS
  1908. test -z "$ac_dir" && ac_dir=.
  1909. $as_executable_p "$ac_dir/$ac_word" || continue
  1910. ac_cv_prog_UNAME="uname"
  1911. echo "$as_me:2107: found $ac_dir/$ac_word" >&5
  1912. break
  1913. done
  1914. fi
  1915. fi
  1916. UNAME=$ac_cv_prog_UNAME
  1917. if test -n "$UNAME"; then
  1918. echo "$as_me:2115: result: $UNAME" >&5
  1919. echo "${ECHO_T}$UNAME" >&6
  1920. else
  1921. echo "$as_me:2118: result: no" >&5
  1922. echo "${ECHO_T}no" >&6
  1923. fi
  1924. # Find a good install program. We prefer a C program (faster),
  1925. # so one script is as good as another. But avoid the broken or
  1926. # incompatible versions:
  1927. # SysV /etc/install, /usr/sbin/install
  1928. # SunOS /usr/etc/install
  1929. # IRIX /sbin/install
  1930. # AIX /bin/install
  1931. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1932. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1933. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1934. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1935. # ./install, which can be erroneously created by make from ./install.sh.
  1936. echo "$as_me:2134: checking for a BSD compatible install" >&5
  1937. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  1938. if test -z "$INSTALL"; then
  1939. if test "${ac_cv_path_install+set}" = set; then
  1940. echo $ECHO_N "(cached) $ECHO_C" >&6
  1941. else
  1942. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1943. for ac_dir in $PATH; do
  1944. IFS=$ac_save_IFS
  1945. # Account for people who put trailing slashes in PATH elements.
  1946. case $ac_dir/ in
  1947. / | ./ | .// | /cC/* \
  1948. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  1949. | /usr/ucb/* ) ;;
  1950. *)
  1951. # OSF1 and SCO ODT 3.0 have their own names for install.
  1952. # Don't use installbsd from OSF since it installs stuff as root
  1953. # by default.
  1954. for ac_prog in ginstall scoinst install; do
  1955. if $as_executable_p "$ac_dir/$ac_prog"; then
  1956. if test $ac_prog = install &&
  1957. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  1958. # AIX install. It has an incompatible calling convention.
  1959. :
  1960. elif test $ac_prog = install &&
  1961. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  1962. # program-specific install script used by HP pwplus--don't use.
  1963. :
  1964. else
  1965. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1966. break 2
  1967. fi
  1968. fi
  1969. done
  1970. ;;
  1971. esac
  1972. done
  1973. fi
  1974. if test "${ac_cv_path_install+set}" = set; then
  1975. INSTALL=$ac_cv_path_install
  1976. else
  1977. # As a last resort, use the slow shell script. We don't cache a
  1978. # path for INSTALL within a source directory, because that will
  1979. # break other packages using the cache if that directory is
  1980. # removed, or if the path is relative.
  1981. INSTALL=$ac_install_sh
  1982. fi
  1983. fi
  1984. echo "$as_me:2183: result: $INSTALL" >&5
  1985. echo "${ECHO_T}$INSTALL" >&6
  1986. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1987. # It thinks the first close brace ends the variable substitution.
  1988. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1989. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1990. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1991. ac_ext=c
  1992. ac_cpp='$CPP $CPPFLAGS'
  1993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1996. echo "$as_me:2199: checking how to run the C preprocessor" >&5
  1997. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1998. # On Suns, sometimes $CPP names a directory.
  1999. if test -n "$CPP" && test -d "$CPP"; then
  2000. CPP=
  2001. fi
  2002. if test -z "$CPP"; then
  2003. if test "${ac_cv_prog_CPP+set}" = set; then
  2004. echo $ECHO_N "(cached) $ECHO_C" >&6
  2005. else
  2006. # Double quotes because CPP needs to be expanded
  2007. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2008. do
  2009. ac_preproc_ok=false
  2010. for ac_c_preproc_warn_flag in '' yes
  2011. do
  2012. # Use a header file that comes with gcc, so configuring glibc
  2013. # with a fresh cross-compiler works.
  2014. # On the NeXT, cc -E runs the code through the compiler's parser,
  2015. # not just through cpp. "Syntax error" is here to catch this case.
  2016. cat >conftest.$ac_ext <<_ACEOF
  2017. #line 2220 "configure"
  2018. #include "confdefs.h"
  2019. #include <assert.h>
  2020. Syntax error
  2021. _ACEOF
  2022. if { (eval echo "$as_me:2225: \"$ac_cpp conftest.$ac_ext\"") >&5
  2023. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2024. ac_status=$?
  2025. egrep -v '^ *\+' conftest.er1 >conftest.err
  2026. rm -f conftest.er1
  2027. cat conftest.err >&5
  2028. echo "$as_me:2231: \$? = $ac_status" >&5
  2029. (exit $ac_status); } >/dev/null; then
  2030. if test -s conftest.err; then
  2031. ac_cpp_err=$ac_c_preproc_warn_flag
  2032. else
  2033. ac_cpp_err=
  2034. fi
  2035. else
  2036. ac_cpp_err=yes
  2037. fi
  2038. if test -z "$ac_cpp_err"; then
  2039. :
  2040. else
  2041. echo "$as_me: failed program was:" >&5
  2042. cat conftest.$ac_ext >&5
  2043. # Broken: fails on valid input.
  2044. continue
  2045. fi
  2046. rm -f conftest.err conftest.$ac_ext
  2047. # OK, works on sane cases. Now check whether non-existent headers
  2048. # can be detected and how.
  2049. cat >conftest.$ac_ext <<_ACEOF
  2050. #line 2254 "configure"
  2051. #include "confdefs.h"
  2052. #include <ac_nonexistent.h>
  2053. _ACEOF
  2054. if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
  2055. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2056. ac_status=$?
  2057. egrep -v '^ *\+' conftest.er1 >conftest.err
  2058. rm -f conftest.er1
  2059. cat conftest.err >&5
  2060. echo "$as_me:2264: \$? = $ac_status" >&5
  2061. (exit $ac_status); } >/dev/null; then
  2062. if test -s conftest.err; then
  2063. ac_cpp_err=$ac_c_preproc_warn_flag
  2064. else
  2065. ac_cpp_err=
  2066. fi
  2067. else
  2068. ac_cpp_err=yes
  2069. fi
  2070. if test -z "$ac_cpp_err"; then
  2071. # Broken: success on invalid input.
  2072. continue
  2073. else
  2074. echo "$as_me: failed program was:" >&5
  2075. cat conftest.$ac_ext >&5
  2076. # Passes both tests.
  2077. ac_preproc_ok=:
  2078. break
  2079. fi
  2080. rm -f conftest.err conftest.$ac_ext
  2081. done
  2082. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2083. rm -f conftest.err conftest.$ac_ext
  2084. if $ac_preproc_ok; then
  2085. break
  2086. fi
  2087. done
  2088. ac_cv_prog_CPP=$CPP
  2089. fi
  2090. CPP=$ac_cv_prog_CPP
  2091. else
  2092. ac_cv_prog_CPP=$CPP
  2093. fi
  2094. echo "$as_me:2301: result: $CPP" >&5
  2095. echo "${ECHO_T}$CPP" >&6
  2096. ac_preproc_ok=false
  2097. for ac_c_preproc_warn_flag in '' yes
  2098. do
  2099. # Use a header file that comes with gcc, so configuring glibc
  2100. # with a fresh cross-compiler works.
  2101. # On the NeXT, cc -E runs the code through the compiler's parser,
  2102. # not just through cpp. "Syntax error" is here to catch this case.
  2103. cat >conftest.$ac_ext <<_ACEOF
  2104. #line 2311 "configure"
  2105. #include "confdefs.h"
  2106. #include <assert.h>
  2107. Syntax error
  2108. _ACEOF
  2109. if { (eval echo "$as_me:2316: \"$ac_cpp conftest.$ac_ext\"") >&5
  2110. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2111. ac_status=$?
  2112. egrep -v '^ *\+' conftest.er1 >conftest.err
  2113. rm -f conftest.er1
  2114. cat conftest.err >&5
  2115. echo "$as_me:2322: \$? = $ac_status" >&5
  2116. (exit $ac_status); } >/dev/null; then
  2117. if test -s conftest.err; then
  2118. ac_cpp_err=$ac_c_preproc_warn_flag
  2119. else
  2120. ac_cpp_err=
  2121. fi
  2122. else
  2123. ac_cpp_err=yes
  2124. fi
  2125. if test -z "$ac_cpp_err"; then
  2126. :
  2127. else
  2128. echo "$as_me: failed program was:" >&5
  2129. cat conftest.$ac_ext >&5
  2130. # Broken: fails on valid input.
  2131. continue
  2132. fi
  2133. rm -f conftest.err conftest.$ac_ext
  2134. # OK, works on sane cases. Now check whether non-existent headers
  2135. # can be detected and how.
  2136. cat >conftest.$ac_ext <<_ACEOF
  2137. #line 2345 "configure"
  2138. #include "confdefs.h"
  2139. #include <ac_nonexistent.h>
  2140. _ACEOF
  2141. if { (eval echo "$as_me:2349: \"$ac_cpp conftest.$ac_ext\"") >&5
  2142. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2143. ac_status=$?
  2144. egrep -v '^ *\+' conftest.er1 >conftest.err
  2145. rm -f conftest.er1
  2146. cat conftest.err >&5
  2147. echo "$as_me:2355: \$? = $ac_status" >&5
  2148. (exit $ac_status); } >/dev/null; then
  2149. if test -s conftest.err; then
  2150. ac_cpp_err=$ac_c_preproc_warn_flag
  2151. else
  2152. ac_cpp_err=
  2153. fi
  2154. else
  2155. ac_cpp_err=yes
  2156. fi
  2157. if test -z "$ac_cpp_err"; then
  2158. # Broken: success on invalid input.
  2159. continue
  2160. else
  2161. echo "$as_me: failed program was:" >&5
  2162. cat conftest.$ac_ext >&5
  2163. # Passes both tests.
  2164. ac_preproc_ok=:
  2165. break
  2166. fi
  2167. rm -f conftest.err conftest.$ac_ext
  2168. done
  2169. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2170. rm -f conftest.err conftest.$ac_ext
  2171. if $ac_preproc_ok; then
  2172. :
  2173. else
  2174. { { echo "$as_me:2383: error: C preprocessor \"$CPP\" fails sanity check" >&5
  2175. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  2176. { (exit 1); exit 1; }; }
  2177. fi
  2178. ac_ext=c
  2179. ac_cpp='$CPP $CPPFLAGS'
  2180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2183. echo "$as_me:2394: checking for AIX" >&5
  2184. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2185. cat >conftest.$ac_ext <<_ACEOF
  2186. #line 2397 "configure"
  2187. #include "confdefs.h"
  2188. #ifdef _AIX
  2189. yes
  2190. #endif
  2191. _ACEOF
  2192. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2193. egrep "yes" >/dev/null 2>&1; then
  2194. echo "$as_me:2406: result: yes" >&5
  2195. echo "${ECHO_T}yes" >&6
  2196. cat >>confdefs.h <<\EOF
  2197. #define _ALL_SOURCE 1
  2198. EOF
  2199. else
  2200. echo "$as_me:2413: result: no" >&5
  2201. echo "${ECHO_T}no" >&6
  2202. fi
  2203. rm -f conftest*
  2204. echo "$as_me:2418: checking for POSIXized ISC" >&5
  2205. echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
  2206. if test -d /etc/conf/kconfig.d &&
  2207. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  2208. then
  2209. echo "$as_me:2423: result: yes" >&5
  2210. echo "${ECHO_T}yes" >&6
  2211. ISC=yes # If later tests want to check for ISC.
  2212. cat >>confdefs.h <<\EOF
  2213. #define _POSIX_SOURCE 1
  2214. EOF
  2215. if test "$GCC" = yes; then
  2216. CC="$CC -posix"
  2217. else
  2218. CC="$CC -Xp"
  2219. fi
  2220. else
  2221. echo "$as_me:2437: result: no" >&5
  2222. echo "${ECHO_T}no" >&6
  2223. ISC=
  2224. fi
  2225. echo "$as_me:2442: checking for minix/config.h" >&5
  2226. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2227. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2228. echo $ECHO_N "(cached) $ECHO_C" >&6
  2229. else
  2230. cat >conftest.$ac_ext <<_ACEOF
  2231. #line 2448 "configure"
  2232. #include "confdefs.h"
  2233. #include <minix/config.h>
  2234. _ACEOF
  2235. if { (eval echo "$as_me:2452: \"$ac_cpp conftest.$ac_ext\"") >&5
  2236. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2237. ac_status=$?
  2238. egrep -v '^ *\+' conftest.er1 >conftest.err
  2239. rm -f conftest.er1
  2240. cat conftest.err >&5
  2241. echo "$as_me:2458: \$? = $ac_status" >&5
  2242. (exit $ac_status); } >/dev/null; then
  2243. if test -s conftest.err; then
  2244. ac_cpp_err=$ac_c_preproc_warn_flag
  2245. else
  2246. ac_cpp_err=
  2247. fi
  2248. else
  2249. ac_cpp_err=yes
  2250. fi
  2251. if test -z "$ac_cpp_err"; then
  2252. ac_cv_header_minix_config_h=yes
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. cat conftest.$ac_ext >&5
  2256. ac_cv_header_minix_config_h=no
  2257. fi
  2258. rm -f conftest.err conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:2477: result: $ac_cv_header_minix_config_h" >&5
  2261. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2262. if test $ac_cv_header_minix_config_h = yes; then
  2263. MINIX=yes
  2264. else
  2265. MINIX=
  2266. fi
  2267. if test "$MINIX" = yes; then
  2268. cat >>confdefs.h <<\EOF
  2269. #define _POSIX_SOURCE 1
  2270. EOF
  2271. cat >>confdefs.h <<\EOF
  2272. #define _POSIX_1_SOURCE 2
  2273. EOF
  2274. cat >>confdefs.h <<\EOF
  2275. #define _MINIX 1
  2276. EOF
  2277. fi
  2278. echo "$as_me:2501: checking your OS" >&5
  2279. echo $ECHO_N "checking your OS... $ECHO_C" >&6
  2280. system=`$UNAME`
  2281. IRIX=no
  2282. case $system in
  2283. Linux)
  2284. LINUX=1
  2285. cat >>confdefs.h <<\EOF
  2286. #define LINUX 1
  2287. EOF
  2288. echo "$as_me:2512: result: Linux" >&5
  2289. echo "${ECHO_T}Linux" >&6
  2290. ;;
  2291. SunOS)
  2292. if test x`uname -r | cut -d . -f 1` = "x5"; then
  2293. SYSV=1
  2294. SVR4=1
  2295. SOLARIS=1
  2296. echo "$as_me:2520: result: Solaris" >&5
  2297. echo "${ECHO_T}Solaris" >&6
  2298. cat >>confdefs.h <<\EOF
  2299. #define SYSV 1
  2300. EOF
  2301. cat >>confdefs.h <<\EOF
  2302. #define SVR4 1
  2303. EOF
  2304. cat >>confdefs.h <<\EOF
  2305. #define SOLARIS 1
  2306. EOF
  2307. else
  2308. echo "$as_me:2535: result: SunOS" >&5
  2309. echo "${ECHO_T}SunOS" >&6
  2310. fi
  2311. if test "$CC" = cc; then
  2312. CFLAGS="$CFLAGS -mt"
  2313. fi
  2314. ;;
  2315. HP-UX)
  2316. hpux=1
  2317. cat >>confdefs.h <<\EOF
  2318. #define hpux 1
  2319. EOF
  2320. echo "$as_me:2548: result: HP-UX" >&5
  2321. echo "${ECHO_T}HP-UX" >&6
  2322. CFLAGS="$CFLAGS -D_HPUX_SOURCE -DHPUX"
  2323. if test "$CC" = cc; then
  2324. CFLAGS="$CFLAGS -Aa"
  2325. fi
  2326. ;;
  2327. IRIX)
  2328. IRIX=yes
  2329. cat >>confdefs.h <<\EOF
  2330. #define IRIX 1
  2331. EOF
  2332. echo "$as_me:2561: result: IRIX" >&5
  2333. echo "${ECHO_T}IRIX" >&6
  2334. ;;
  2335. BSD/OS)
  2336. __SOMEBSD__=yes
  2337. cat >>confdefs.h <<\EOF
  2338. #define __SOMEBSD__ 1
  2339. EOF
  2340. echo "$as_me:2570: result: BSD/OS" >&5
  2341. echo "${ECHO_T}BSD/OS" >&6
  2342. ;;
  2343. *BSD*)
  2344. __SOMEBSD__=yes
  2345. cat >>confdefs.h <<\EOF
  2346. #define __SOMEBSD__ 1
  2347. EOF
  2348. echo "$as_me:2579: result: Some BSD variant" >&5
  2349. echo "${ECHO_T}Some BSD variant" >&6
  2350. OLDCPPFLAGS=$CPPFLAGS
  2351. THREADCPPFLAGS="-pthread"
  2352. CPPFLAGS="$OLDCPPFLAGS $THREADCPPFLAGS"
  2353. cat >conftest.$ac_ext <<_ACEOF
  2354. #line 2585 "configure"
  2355. #include "confdefs.h"
  2356. #include <pthread.h>
  2357. int
  2358. main ()
  2359. {
  2360. pthread_t thread;
  2361. ;
  2362. return 0;
  2363. }
  2364. _ACEOF
  2365. rm -f conftest.$ac_objext
  2366. if { (eval echo "$as_me:2597: \"$ac_compile\"") >&5
  2367. (eval $ac_compile) 2>&5
  2368. ac_status=$?
  2369. echo "$as_me:2600: \$? = $ac_status" >&5
  2370. (exit $ac_status); } &&
  2371. { ac_try='test -s conftest.$ac_objext'
  2372. { (eval echo "$as_me:2603: \"$ac_try\"") >&5
  2373. (eval $ac_try) 2>&5
  2374. ac_status=$?
  2375. echo "$as_me:2606: \$? = $ac_status" >&5
  2376. (exit $ac_status); }; }; then
  2377. :
  2378. else
  2379. echo "$as_me: failed program was:" >&5
  2380. cat conftest.$ac_ext >&5
  2381. CPPFLAGS="$OLDCPPFLAGS"
  2382. fi
  2383. rm -f conftest.$ac_objext conftest.$ac_ext
  2384. CPPFLAGS=$OLDCPPFLAGS
  2385. if test "$CC" = gcc; then
  2386. CFLAGS="-pthreads $CFLAGS"
  2387. fi
  2388. ;;
  2389. *)
  2390. echo "$as_me:2621: result: $system" >&5
  2391. echo "${ECHO_T}$system" >&6
  2392. ;;
  2393. esac
  2394. if test ${IRIX} = yes; then
  2395. echo Skipping library tests because they confuse Irix.
  2396. else
  2397. for ac_func in socket
  2398. do
  2399. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2400. echo "$as_me:2633: checking for $ac_func" >&5
  2401. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2402. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2403. echo $ECHO_N "(cached) $ECHO_C" >&6
  2404. else
  2405. cat >conftest.$ac_ext <<_ACEOF
  2406. #line 2639 "configure"
  2407. #include "confdefs.h"
  2408. /* System header to define __stub macros and hopefully few prototypes,
  2409. which can conflict with char $ac_func (); below. */
  2410. #include <assert.h>
  2411. /* Override any gcc2 internal prototype to avoid an error. */
  2412. #ifdef __cplusplus
  2413. extern "C"
  2414. #endif
  2415. /* We use char because int might match the return type of a gcc2
  2416. builtin and then its argument prototype would still apply. */
  2417. char $ac_func ();
  2418. char (*f) ();
  2419. int
  2420. main ()
  2421. {
  2422. /* The GNU C library defines this for functions which it implements
  2423. to always fail with ENOSYS. Some functions are actually named
  2424. something starting with __ and the normal name is an alias. */
  2425. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2426. choke me
  2427. #else
  2428. f = $ac_func;
  2429. #endif
  2430. ;
  2431. return 0;
  2432. }
  2433. _ACEOF
  2434. rm -f conftest.$ac_objext conftest$ac_exeext
  2435. if { (eval echo "$as_me:2670: \"$ac_link\"") >&5
  2436. (eval $ac_link) 2>&5
  2437. ac_status=$?
  2438. echo "$as_me:2673: \$? = $ac_status" >&5
  2439. (exit $ac_status); } &&
  2440. { ac_try='test -s conftest$ac_exeext'
  2441. { (eval echo "$as_me:2676: \"$ac_try\"") >&5
  2442. (eval $ac_try) 2>&5
  2443. ac_status=$?
  2444. echo "$as_me:2679: \$? = $ac_status" >&5
  2445. (exit $ac_status); }; }; then
  2446. eval "$as_ac_var=yes"
  2447. else
  2448. echo "$as_me: failed program was:" >&5
  2449. cat conftest.$ac_ext >&5
  2450. eval "$as_ac_var=no"
  2451. fi
  2452. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2453. fi
  2454. echo "$as_me:2689: result: `eval echo '${'$as_ac_var'}'`" >&5
  2455. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2456. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2457. cat >>confdefs.h <<EOF
  2458. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2459. EOF
  2460. fi
  2461. done
  2462. if test "$ac_cv_func_socket" = no; then
  2463. for lib in socket inet; do
  2464. if test "$HAVE_SOCKET" != 1; then
  2465. as_ac_Lib=`echo "ac_cv_lib_$lib''_socket" | $as_tr_sh`
  2466. echo "$as_me:2703: checking for socket in -l$lib" >&5
  2467. echo $ECHO_N "checking for socket in -l$lib... $ECHO_C" >&6
  2468. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  2469. echo $ECHO_N "(cached) $ECHO_C" >&6
  2470. else
  2471. ac_check_lib_save_LIBS=$LIBS
  2472. LIBS="-l$lib $LIBS"
  2473. cat >conftest.$ac_ext <<_ACEOF
  2474. #line 2711 "configure"
  2475. #include "confdefs.h"
  2476. /* Override any gcc2 internal prototype to avoid an error. */
  2477. #ifdef __cplusplus
  2478. extern "C"
  2479. #endif
  2480. /* We use char because int might match the return type of a gcc2
  2481. builtin and then its argument prototype would still apply. */
  2482. char socket ();
  2483. int
  2484. main ()
  2485. {
  2486. socket ();
  2487. ;
  2488. return 0;
  2489. }
  2490. _ACEOF
  2491. rm -f conftest.$ac_objext conftest$ac_exeext
  2492. if { (eval echo "$as_me:2730: \"$ac_link\"") >&5
  2493. (eval $ac_link) 2>&5
  2494. ac_status=$?
  2495. echo "$as_me:2733: \$? = $ac_status" >&5
  2496. (exit $ac_status); } &&
  2497. { ac_try='test -s conftest$ac_exeext'
  2498. { (eval echo "$as_me:2736: \"$ac_try\"") >&5
  2499. (eval $ac_try) 2>&5
  2500. ac_status=$?
  2501. echo "$as_me:2739: \$? = $ac_status" >&5
  2502. (exit $ac_status); }; }; then
  2503. eval "$as_ac_Lib=yes"
  2504. else
  2505. echo "$as_me: failed program was:" >&5
  2506. cat conftest.$ac_ext >&5
  2507. eval "$as_ac_Lib=no"
  2508. fi
  2509. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2510. LIBS=$ac_check_lib_save_LIBS
  2511. fi
  2512. echo "$as_me:2750: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  2513. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  2514. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  2515. LIBS="$LIBS -l$lib";HAVE_SOCKET=1;cat >>confdefs.h <<\EOF
  2516. #define HAVE_SOCKET 1
  2517. EOF
  2518. fi
  2519. fi
  2520. done
  2521. fi
  2522. for ac_func in connect
  2523. do
  2524. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2525. echo "$as_me:2766: checking for $ac_func" >&5
  2526. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2527. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2528. echo $ECHO_N "(cached) $ECHO_C" >&6
  2529. else
  2530. cat >conftest.$ac_ext <<_ACEOF
  2531. #line 2772 "configure"
  2532. #include "confdefs.h"
  2533. /* System header to define __stub macros and hopefully few prototypes,
  2534. which can conflict with char $ac_func (); below. */
  2535. #include <assert.h>
  2536. /* Override any gcc2 internal prototype to avoid an error. */
  2537. #ifdef __cplusplus
  2538. extern "C"
  2539. #endif
  2540. /* We use char because int might match the return type of a gcc2
  2541. builtin and then its argument prototype would still apply. */
  2542. char $ac_func ();
  2543. char (*f) ();
  2544. int
  2545. main ()
  2546. {
  2547. /* The GNU C library defines this for functions which it implements
  2548. to always fail with ENOSYS. Some functions are actually named
  2549. something starting with __ and the normal name is an alias. */
  2550. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2551. choke me
  2552. #else
  2553. f = $ac_func;
  2554. #endif
  2555. ;
  2556. return 0;
  2557. }
  2558. _ACEOF
  2559. rm -f conftest.$ac_objext conftest$ac_exeext
  2560. if { (eval echo "$as_me:2803: \"$ac_link\"") >&5
  2561. (eval $ac_link) 2>&5
  2562. ac_status=$?
  2563. echo "$as_me:2806: \$? = $ac_status" >&5
  2564. (exit $ac_status); } &&
  2565. { ac_try='test -s conftest$ac_exeext'
  2566. { (eval echo "$as_me:2809: \"$ac_try\"") >&5
  2567. (eval $ac_try) 2>&5
  2568. ac_status=$?
  2569. echo "$as_me:2812: \$? = $ac_status" >&5
  2570. (exit $ac_status); }; }; then
  2571. eval "$as_ac_var=yes"
  2572. else
  2573. echo "$as_me: failed program was:" >&5
  2574. cat conftest.$ac_ext >&5
  2575. eval "$as_ac_var=no"
  2576. fi
  2577. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2578. fi
  2579. echo "$as_me:2822: result: `eval echo '${'$as_ac_var'}'`" >&5
  2580. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2581. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2582. cat >>confdefs.h <<EOF
  2583. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2584. EOF
  2585. fi
  2586. done
  2587. if test "$ac_cv_func_connect" = no; then
  2588. for lib in nsl; do
  2589. if test "$HAVE_CONNECT" != 1; then
  2590. as_ac_Lib=`echo "ac_cv_lib_$lib''_connect" | $as_tr_sh`
  2591. echo "$as_me:2836: checking for connect in -l$lib" >&5
  2592. echo $ECHO_N "checking for connect in -l$lib... $ECHO_C" >&6
  2593. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  2594. echo $ECHO_N "(cached) $ECHO_C" >&6
  2595. else
  2596. ac_check_lib_save_LIBS=$LIBS
  2597. LIBS="-l$lib $LIBS"
  2598. cat >conftest.$ac_ext <<_ACEOF
  2599. #line 2844 "configure"
  2600. #include "confdefs.h"
  2601. /* Override any gcc2 internal prototype to avoid an error. */
  2602. #ifdef __cplusplus
  2603. extern "C"
  2604. #endif
  2605. /* We use char because int might match the return type of a gcc2
  2606. builtin and then its argument prototype would still apply. */
  2607. char connect ();
  2608. int
  2609. main ()
  2610. {
  2611. connect ();
  2612. ;
  2613. return 0;
  2614. }
  2615. _ACEOF
  2616. rm -f conftest.$ac_objext conftest$ac_exeext
  2617. if { (eval echo "$as_me:2863: \"$ac_link\"") >&5
  2618. (eval $ac_link) 2>&5
  2619. ac_status=$?
  2620. echo "$as_me:2866: \$? = $ac_status" >&5
  2621. (exit $ac_status); } &&
  2622. { ac_try='test -s conftest$ac_exeext'
  2623. { (eval echo "$as_me:2869: \"$ac_try\"") >&5
  2624. (eval $ac_try) 2>&5
  2625. ac_status=$?
  2626. echo "$as_me:2872: \$? = $ac_status" >&5
  2627. (exit $ac_status); }; }; then
  2628. eval "$as_ac_Lib=yes"
  2629. else
  2630. echo "$as_me: failed program was:" >&5
  2631. cat conftest.$ac_ext >&5
  2632. eval "$as_ac_Lib=no"
  2633. fi
  2634. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2635. LIBS=$ac_check_lib_save_LIBS
  2636. fi
  2637. echo "$as_me:2883: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  2638. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  2639. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  2640. LIBS="$LIBS -l$lib";HAVE_CONNECT=1;cat >>confdefs.h <<\EOF
  2641. #define HAVE_CONNECT 1
  2642. EOF
  2643. fi
  2644. fi
  2645. done
  2646. fi
  2647. for ac_func in log
  2648. do
  2649. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2650. echo "$as_me:2899: checking for $ac_func" >&5
  2651. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2652. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2653. echo $ECHO_N "(cached) $ECHO_C" >&6
  2654. else
  2655. cat >conftest.$ac_ext <<_ACEOF
  2656. #line 2905 "configure"
  2657. #include "confdefs.h"
  2658. /* System header to define __stub macros and hopefully few prototypes,
  2659. which can conflict with char $ac_func (); below. */
  2660. #include <assert.h>
  2661. /* Override any gcc2 internal prototype to avoid an error. */
  2662. #ifdef __cplusplus
  2663. extern "C"
  2664. #endif
  2665. /* We use char because int might match the return type of a gcc2
  2666. builtin and then its argument prototype would still apply. */
  2667. char $ac_func ();
  2668. char (*f) ();
  2669. int
  2670. main ()
  2671. {
  2672. /* The GNU C library defines this for functions which it implements
  2673. to always fail with ENOSYS. Some functions are actually named
  2674. something starting with __ and the normal name is an alias. */
  2675. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2676. choke me
  2677. #else
  2678. f = $ac_func;
  2679. #endif
  2680. ;
  2681. return 0;
  2682. }
  2683. _ACEOF
  2684. rm -f conftest.$ac_objext conftest$ac_exeext
  2685. if { (eval echo "$as_me:2936: \"$ac_link\"") >&5
  2686. (eval $ac_link) 2>&5
  2687. ac_status=$?
  2688. echo "$as_me:2939: \$? = $ac_status" >&5
  2689. (exit $ac_status); } &&
  2690. { ac_try='test -s conftest$ac_exeext'
  2691. { (eval echo "$as_me:2942: \"$ac_try\"") >&5
  2692. (eval $ac_try) 2>&5
  2693. ac_status=$?
  2694. echo "$as_me:2945: \$? = $ac_status" >&5
  2695. (exit $ac_status); }; }; then
  2696. eval "$as_ac_var=yes"
  2697. else
  2698. echo "$as_me: failed program was:" >&5
  2699. cat conftest.$ac_ext >&5
  2700. eval "$as_ac_var=no"
  2701. fi
  2702. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2703. fi
  2704. echo "$as_me:2955: result: `eval echo '${'$as_ac_var'}'`" >&5
  2705. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2706. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2707. cat >>confdefs.h <<EOF
  2708. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2709. EOF
  2710. fi
  2711. done
  2712. if test "$ac_cv_func_log" = no; then
  2713. for lib in m; do
  2714. as_ac_Lib=`echo "ac_cv_lib_$lib''_log" | $as_tr_sh`
  2715. echo "$as_me:2969: checking for log in -l$lib" >&5
  2716. echo $ECHO_N "checking for log in -l$lib... $ECHO_C" >&6
  2717. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  2718. echo $ECHO_N "(cached) $ECHO_C" >&6
  2719. else
  2720. ac_check_lib_save_LIBS=$LIBS
  2721. LIBS="-l$lib $LIBS"
  2722. cat >conftest.$ac_ext <<_ACEOF
  2723. #line 2977 "configure"
  2724. #include "confdefs.h"
  2725. /* Override any gcc2 internal prototype to avoid an error. */
  2726. #ifdef __cplusplus
  2727. extern "C"
  2728. #endif
  2729. /* We use char because int might match the return type of a gcc2
  2730. builtin and then its argument prototype would still apply. */
  2731. char log ();
  2732. int
  2733. main ()
  2734. {
  2735. log ();
  2736. ;
  2737. return 0;
  2738. }
  2739. _ACEOF
  2740. rm -f conftest.$ac_objext conftest$ac_exeext
  2741. if { (eval echo "$as_me:2996: \"$ac_link\"") >&5
  2742. (eval $ac_link) 2>&5
  2743. ac_status=$?
  2744. echo "$as_me:2999: \$? = $ac_status" >&5
  2745. (exit $ac_status); } &&
  2746. { ac_try='test -s conftest$ac_exeext'
  2747. { (eval echo "$as_me:3002: \"$ac_try\"") >&5
  2748. (eval $ac_try) 2>&5
  2749. ac_status=$?
  2750. echo "$as_me:3005: \$? = $ac_status" >&5
  2751. (exit $ac_status); }; }; then
  2752. eval "$as_ac_Lib=yes"
  2753. else
  2754. echo "$as_me: failed program was:" >&5
  2755. cat conftest.$ac_ext >&5
  2756. eval "$as_ac_Lib=no"
  2757. fi
  2758. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2759. LIBS=$ac_check_lib_save_LIBS
  2760. fi
  2761. echo "$as_me:3016: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  2762. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  2763. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  2764. cat >>confdefs.h <<EOF
  2765. #define `echo "HAVE_LIB$lib" | $as_tr_cpp` 1
  2766. EOF
  2767. LIBS="-l$lib $LIBS"
  2768. fi
  2769. done
  2770. fi
  2771. for ac_func in gethostbyname
  2772. do
  2773. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2774. echo "$as_me:3033: checking for $ac_func" >&5
  2775. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2776. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2777. echo $ECHO_N "(cached) $ECHO_C" >&6
  2778. else
  2779. cat >conftest.$ac_ext <<_ACEOF
  2780. #line 3039 "configure"
  2781. #include "confdefs.h"
  2782. /* System header to define __stub macros and hopefully few prototypes,
  2783. which can conflict with char $ac_func (); below. */
  2784. #include <assert.h>
  2785. /* Override any gcc2 internal prototype to avoid an error. */
  2786. #ifdef __cplusplus
  2787. extern "C"
  2788. #endif
  2789. /* We use char because int might match the return type of a gcc2
  2790. builtin and then its argument prototype would still apply. */
  2791. char $ac_func ();
  2792. char (*f) ();
  2793. int
  2794. main ()
  2795. {
  2796. /* The GNU C library defines this for functions which it implements
  2797. to always fail with ENOSYS. Some functions are actually named
  2798. something starting with __ and the normal name is an alias. */
  2799. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2800. choke me
  2801. #else
  2802. f = $ac_func;
  2803. #endif
  2804. ;
  2805. return 0;
  2806. }
  2807. _ACEOF
  2808. rm -f conftest.$ac_objext conftest$ac_exeext
  2809. if { (eval echo "$as_me:3070: \"$ac_link\"") >&5
  2810. (eval $ac_link) 2>&5
  2811. ac_status=$?
  2812. echo "$as_me:3073: \$? = $ac_status" >&5
  2813. (exit $ac_status); } &&
  2814. { ac_try='test -s conftest$ac_exeext'
  2815. { (eval echo "$as_me:3076: \"$ac_try\"") >&5
  2816. (eval $ac_try) 2>&5
  2817. ac_status=$?
  2818. echo "$as_me:3079: \$? = $ac_status" >&5
  2819. (exit $ac_status); }; }; then
  2820. eval "$as_ac_var=yes"
  2821. else
  2822. echo "$as_me: failed program was:" >&5
  2823. cat conftest.$ac_ext >&5
  2824. eval "$as_ac_var=no"
  2825. fi
  2826. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2827. fi
  2828. echo "$as_me:3089: result: `eval echo '${'$as_ac_var'}'`" >&5
  2829. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2830. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2831. cat >>confdefs.h <<EOF
  2832. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2833. EOF
  2834. fi
  2835. done
  2836. if test "$ac_cv_func_gethostbyname" = no; then
  2837. for lib in dns nsl resolv; do
  2838. if test "$HAVE_GETHOSTBYNAME" != 1; then
  2839. as_ac_Lib=`echo "ac_cv_lib_$lib''_gethostbyname" | $as_tr_sh`
  2840. echo "$as_me:3103: checking for gethostbyname in -l$lib" >&5
  2841. echo $ECHO_N "checking for gethostbyname in -l$lib... $ECHO_C" >&6
  2842. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  2843. echo $ECHO_N "(cached) $ECHO_C" >&6
  2844. else
  2845. ac_check_lib_save_LIBS=$LIBS
  2846. LIBS="-l$lib $LIBS"
  2847. cat >conftest.$ac_ext <<_ACEOF
  2848. #line 3111 "configure"
  2849. #include "confdefs.h"
  2850. /* Override any gcc2 internal prototype to avoid an error. */
  2851. #ifdef __cplusplus
  2852. extern "C"
  2853. #endif
  2854. /* We use char because int might match the return type of a gcc2
  2855. builtin and then its argument prototype would still apply. */
  2856. char gethostbyname ();
  2857. int
  2858. main ()
  2859. {
  2860. gethostbyname ();
  2861. ;
  2862. return 0;
  2863. }
  2864. _ACEOF
  2865. rm -f conftest.$ac_objext conftest$ac_exeext
  2866. if { (eval echo "$as_me:3130: \"$ac_link\"") >&5
  2867. (eval $ac_link) 2>&5
  2868. ac_status=$?
  2869. echo "$as_me:3133: \$? = $ac_status" >&5
  2870. (exit $ac_status); } &&
  2871. { ac_try='test -s conftest$ac_exeext'
  2872. { (eval echo "$as_me:3136: \"$ac_try\"") >&5
  2873. (eval $ac_try) 2>&5
  2874. ac_status=$?
  2875. echo "$as_me:3139: \$? = $ac_status" >&5
  2876. (exit $ac_status); }; }; then
  2877. eval "$as_ac_Lib=yes"
  2878. else
  2879. echo "$as_me: failed program was:" >&5
  2880. cat conftest.$ac_ext >&5
  2881. eval "$as_ac_Lib=no"
  2882. fi
  2883. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2884. LIBS=$ac_check_lib_save_LIBS
  2885. fi
  2886. echo "$as_me:3150: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  2887. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  2888. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  2889. LIBS="$LIBS -l$lib";HAVE_GETHOSTBYNAME=1;cat >>confdefs.h <<\EOF
  2890. #define HAVE_GETHOSTBYNAME 1
  2891. EOF
  2892. fi
  2893. fi
  2894. done
  2895. fi
  2896. for ac_func in nanosleep
  2897. do
  2898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2899. echo "$as_me:3166: checking for $ac_func" >&5
  2900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2901. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2902. echo $ECHO_N "(cached) $ECHO_C" >&6
  2903. else
  2904. cat >conftest.$ac_ext <<_ACEOF
  2905. #line 3172 "configure"
  2906. #include "confdefs.h"
  2907. /* System header to define __stub macros and hopefully few prototypes,
  2908. which can conflict with char $ac_func (); below. */
  2909. #include <assert.h>
  2910. /* Override any gcc2 internal prototype to avoid an error. */
  2911. #ifdef __cplusplus
  2912. extern "C"
  2913. #endif
  2914. /* We use char because int might match the return type of a gcc2
  2915. builtin and then its argument prototype would still apply. */
  2916. char $ac_func ();
  2917. char (*f) ();
  2918. int
  2919. main ()
  2920. {
  2921. /* The GNU C library defines this for functions which it implements
  2922. to always fail with ENOSYS. Some functions are actually named
  2923. something starting with __ and the normal name is an alias. */
  2924. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2925. choke me
  2926. #else
  2927. f = $ac_func;
  2928. #endif
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. rm -f conftest.$ac_objext conftest$ac_exeext
  2934. if { (eval echo "$as_me:3203: \"$ac_link\"") >&5
  2935. (eval $ac_link) 2>&5
  2936. ac_status=$?
  2937. echo "$as_me:3206: \$? = $ac_status" >&5
  2938. (exit $ac_status); } &&
  2939. { ac_try='test -s conftest$ac_exeext'
  2940. { (eval echo "$as_me:3209: \"$ac_try\"") >&5
  2941. (eval $ac_try) 2>&5
  2942. ac_status=$?
  2943. echo "$as_me:3212: \$? = $ac_status" >&5
  2944. (exit $ac_status); }; }; then
  2945. eval "$as_ac_var=yes"
  2946. else
  2947. echo "$as_me: failed program was:" >&5
  2948. cat conftest.$ac_ext >&5
  2949. eval "$as_ac_var=no"
  2950. fi
  2951. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2952. fi
  2953. echo "$as_me:3222: result: `eval echo '${'$as_ac_var'}'`" >&5
  2954. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2955. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2956. cat >>confdefs.h <<EOF
  2957. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2958. EOF
  2959. fi
  2960. done
  2961. if test "$ac_cv_func_nanosleep" = no; then
  2962. for lib in rt; do
  2963. as_ac_Lib=`echo "ac_cv_lib_$lib''_nanosleep" | $as_tr_sh`
  2964. echo "$as_me:3235: checking for nanosleep in -l$lib" >&5
  2965. echo $ECHO_N "checking for nanosleep in -l$lib... $ECHO_C" >&6
  2966. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  2967. echo $ECHO_N "(cached) $ECHO_C" >&6
  2968. else
  2969. ac_check_lib_save_LIBS=$LIBS
  2970. LIBS="-l$lib $LIBS"
  2971. cat >conftest.$ac_ext <<_ACEOF
  2972. #line 3243 "configure"
  2973. #include "confdefs.h"
  2974. /* Override any gcc2 internal prototype to avoid an error. */
  2975. #ifdef __cplusplus
  2976. extern "C"
  2977. #endif
  2978. /* We use char because int might match the return type of a gcc2
  2979. builtin and then its argument prototype would still apply. */
  2980. char nanosleep ();
  2981. int
  2982. main ()
  2983. {
  2984. nanosleep ();
  2985. ;
  2986. return 0;
  2987. }
  2988. _ACEOF
  2989. rm -f conftest.$ac_objext conftest$ac_exeext
  2990. if { (eval echo "$as_me:3262: \"$ac_link\"") >&5
  2991. (eval $ac_link) 2>&5
  2992. ac_status=$?
  2993. echo "$as_me:3265: \$? = $ac_status" >&5
  2994. (exit $ac_status); } &&
  2995. { ac_try='test -s conftest$ac_exeext'
  2996. { (eval echo "$as_me:3268: \"$ac_try\"") >&5
  2997. (eval $ac_try) 2>&5
  2998. ac_status=$?
  2999. echo "$as_me:3271: \$? = $ac_status" >&5
  3000. (exit $ac_status); }; }; then
  3001. eval "$as_ac_Lib=yes"
  3002. else
  3003. echo "$as_me: failed program was:" >&5
  3004. cat conftest.$ac_ext >&5
  3005. eval "$as_ac_Lib=no"
  3006. fi
  3007. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3008. LIBS=$ac_check_lib_save_LIBS
  3009. fi
  3010. echo "$as_me:3282: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  3011. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  3012. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  3013. LIBS="$LIBS -l$lib";HAVE_NANOSLEEP=1;cat >>confdefs.h <<\EOF
  3014. #define HAVE_NANOSLEEP 1
  3015. EOF
  3016. fi
  3017. done
  3018. fi
  3019. fi
  3020. opt_readline="no"
  3021. if test "$opt_readline" = "unset"; then
  3022. if test -f "$withval/include/readline/readline.h"; then
  3023. READLINE_INCLUDE="-I$withval/include"
  3024. LDFLAGS="$LDFLAGS -L$withval/lib"
  3025. echo "$as_me:3301: result: yes" >&5
  3026. echo "${ECHO_T}yes" >&6
  3027. opt_readline="yes"
  3028. elif test -f "$withval/include/readline.h"; then
  3029. READLINE_INCLUDE="-I$withval/include"
  3030. LDFLAGS="$LDFLAGS -L$withval/lib"
  3031. echo "$as_me:3307: result: yes" >&5
  3032. echo "${ECHO_T}yes" >&6
  3033. opt_readline="yes"
  3034. elif test -f "$withval/readline.h"; then
  3035. READLINE_INCLUDE="-I$withval"
  3036. LDFLAGS="$LDFLAGS -L$withval"
  3037. echo "$as_me:3313: result: yes" >&5
  3038. echo "${ECHO_T}yes" >&6
  3039. opt_readline="yes"
  3040. elif test -f "/usr/include/readline/readline.h"; then
  3041. READLINE_INCLUDE="-I/usr/include/readline"
  3042. echo "$as_me:3318: result: yes" >&5
  3043. echo "${ECHO_T}yes" >&6
  3044. opt_readline="yes"
  3045. elif test -f "/usr/include/readline.h"; then
  3046. echo "$as_me:3322: result: yes" >&5
  3047. echo "${ECHO_T}yes" >&6
  3048. opt_readline="yes"
  3049. elif test -f "/usr/local/include/readline.h"; then
  3050. READLINE_INCLUDE="-I/usr/local/include"
  3051. LDFLAGS="$LDFLAGS -L/usr/local/lib"
  3052. echo "$as_me:3328: result: yes" >&5
  3053. echo "${ECHO_T}yes" >&6
  3054. opt_readline="yes"
  3055. elif test -f "/usr/local/include/readline/readline.h"; then
  3056. READLINE_INCLUDE="-I/usr/local/include/readline"
  3057. LDFLAGS="$LDFLAGS -L/usr/local/lib"
  3058. echo "$as_me:3334: result: yes" >&5
  3059. echo "${ECHO_T}yes" >&6
  3060. opt_readline="yes"
  3061. else
  3062. echo "$as_me:3338: result: no" >&5
  3063. echo "${ECHO_T}no" >&6
  3064. opt_readline="no"
  3065. fi
  3066. fi
  3067. if test "$opt_readline" = yes; then
  3068. echo "$as_me:3346: checking for readline in -lreadline" >&5
  3069. echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
  3070. if test "${ac_cv_lib_readline_readline+set}" = set; then
  3071. echo $ECHO_N "(cached) $ECHO_C" >&6
  3072. else
  3073. ac_check_lib_save_LIBS=$LIBS
  3074. LIBS="-lreadline $LIBS"
  3075. cat >conftest.$ac_ext <<_ACEOF
  3076. #line 3354 "configure"
  3077. #include "confdefs.h"
  3078. /* Override any gcc2 internal prototype to avoid an error. */
  3079. #ifdef __cplusplus
  3080. extern "C"
  3081. #endif
  3082. /* We use char because int might match the return type of a gcc2
  3083. builtin and then its argument prototype would still apply. */
  3084. char readline ();
  3085. int
  3086. main ()
  3087. {
  3088. readline ();
  3089. ;
  3090. return 0;
  3091. }
  3092. _ACEOF
  3093. rm -f conftest.$ac_objext conftest$ac_exeext
  3094. if { (eval echo "$as_me:3373: \"$ac_link\"") >&5
  3095. (eval $ac_link) 2>&5
  3096. ac_status=$?
  3097. echo "$as_me:3376: \$? = $ac_status" >&5
  3098. (exit $ac_status); } &&
  3099. { ac_try='test -s conftest$ac_exeext'
  3100. { (eval echo "$as_me:3379: \"$ac_try\"") >&5
  3101. (eval $ac_try) 2>&5
  3102. ac_status=$?
  3103. echo "$as_me:3382: \$? = $ac_status" >&5
  3104. (exit $ac_status); }; }; then
  3105. ac_cv_lib_readline_readline=yes
  3106. else
  3107. echo "$as_me: failed program was:" >&5
  3108. cat conftest.$ac_ext >&5
  3109. ac_cv_lib_readline_readline=no
  3110. fi
  3111. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3112. LIBS=$ac_check_lib_save_LIBS
  3113. fi
  3114. echo "$as_me:3393: result: $ac_cv_lib_readline_readline" >&5
  3115. echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
  3116. if test $ac_cv_lib_readline_readline = yes; then
  3117. cat >>confdefs.h <<EOF
  3118. #define HAVE_LIBREADLINE 1
  3119. EOF
  3120. LIBS="-lreadline $LIBS"
  3121. else
  3122. { echo "$as_me:3403: WARNING: Testing with -ltermcap" >&5
  3123. echo "$as_me: WARNING: Testing with -ltermcap" >&2;}
  3124. unset ac_cv_lib_readline_readline
  3125. echo "$as_me:3406: checking for readline in -lreadline" >&5
  3126. echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
  3127. if test "${ac_cv_lib_readline_readline+set}" = set; then
  3128. echo $ECHO_N "(cached) $ECHO_C" >&6
  3129. else
  3130. ac_check_lib_save_LIBS=$LIBS
  3131. LIBS="-lreadline -ltermcap $LIBS"
  3132. cat >conftest.$ac_ext <<_ACEOF
  3133. #line 3414 "configure"
  3134. #include "confdefs.h"
  3135. /* Override any gcc2 internal prototype to avoid an error. */
  3136. #ifdef __cplusplus
  3137. extern "C"
  3138. #endif
  3139. /* We use char because int might match the return type of a gcc2
  3140. builtin and then its argument prototype would still apply. */
  3141. char readline ();
  3142. int
  3143. main ()
  3144. {
  3145. readline ();
  3146. ;
  3147. return 0;
  3148. }
  3149. _ACEOF
  3150. rm -f conftest.$ac_objext conftest$ac_exeext
  3151. if { (eval echo "$as_me:3433: \"$ac_link\"") >&5
  3152. (eval $ac_link) 2>&5
  3153. ac_status=$?
  3154. echo "$as_me:3436: \$? = $ac_status" >&5
  3155. (exit $ac_status); } &&
  3156. { ac_try='test -s conftest$ac_exeext'
  3157. { (eval echo "$as_me:3439: \"$ac_try\"") >&5
  3158. (eval $ac_try) 2>&5
  3159. ac_status=$?
  3160. echo "$as_me:3442: \$? = $ac_status" >&5
  3161. (exit $ac_status); }; }; then
  3162. ac_cv_lib_readline_readline=yes
  3163. else
  3164. echo "$as_me: failed program was:" >&5
  3165. cat conftest.$ac_ext >&5
  3166. ac_cv_lib_readline_readline=no
  3167. fi
  3168. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3169. LIBS=$ac_check_lib_save_LIBS
  3170. fi
  3171. echo "$as_me:3453: result: $ac_cv_lib_readline_readline" >&5
  3172. echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
  3173. if test $ac_cv_lib_readline_readline = yes; then
  3174. LIBS="$LIBS -lreadline -ltermcap"
  3175. cat >>confdefs.h <<\EOF
  3176. #define HAVE_LIBREADLINE 1
  3177. EOF
  3178. else
  3179. { echo "$as_me:3462: WARNING: Compiling without readline support" >&5
  3180. echo "$as_me: WARNING: Compiling without readline support" >&2;}
  3181. fi
  3182. fi
  3183. fi
  3184. CPPFLAGS="$CPPFLAGS $READLINE_INCLUDE"
  3185. echo "$as_me:3472: checking whether to use libwrap" >&5
  3186. echo $ECHO_N "checking whether to use libwrap... $ECHO_C" >&6
  3187. # Check whether --with-libwrap or --without-libwrap was given.
  3188. if test "${with_libwrap+set}" = set; then
  3189. withval="$with_libwrap"
  3190. case "$withval" in
  3191. no)
  3192. echo "$as_me:3480: result: no" >&5
  3193. echo "${ECHO_T}no" >&6
  3194. ;;
  3195. yes)
  3196. echo "$as_me:3484: result: yes" >&5
  3197. echo "${ECHO_T}yes" >&6
  3198. echo "$as_me:3486: checking for request_init in -lwrap" >&5
  3199. echo $ECHO_N "checking for request_init in -lwrap... $ECHO_C" >&6
  3200. if test "${ac_cv_lib_wrap_request_init+set}" = set; then
  3201. echo $ECHO_N "(cached) $ECHO_C" >&6
  3202. else
  3203. ac_check_lib_save_LIBS=$LIBS
  3204. LIBS="-lwrap $LIBS"
  3205. cat >conftest.$ac_ext <<_ACEOF
  3206. #line 3494 "configure"
  3207. #include "confdefs.h"
  3208. /* Override any gcc2 internal prototype to avoid an error. */
  3209. #ifdef __cplusplus
  3210. extern "C"
  3211. #endif
  3212. /* We use char because int might match the return type of a gcc2
  3213. builtin and then its argument prototype would still apply. */
  3214. char request_init ();
  3215. int
  3216. main ()
  3217. {
  3218. request_init ();
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. rm -f conftest.$ac_objext conftest$ac_exeext
  3224. if { (eval echo "$as_me:3513: \"$ac_link\"") >&5
  3225. (eval $ac_link) 2>&5
  3226. ac_status=$?
  3227. echo "$as_me:3516: \$? = $ac_status" >&5
  3228. (exit $ac_status); } &&
  3229. { ac_try='test -s conftest$ac_exeext'
  3230. { (eval echo "$as_me:3519: \"$ac_try\"") >&5
  3231. (eval $ac_try) 2>&5
  3232. ac_status=$?
  3233. echo "$as_me:3522: \$? = $ac_status" >&5
  3234. (exit $ac_status); }; }; then
  3235. ac_cv_lib_wrap_request_init=yes
  3236. else
  3237. echo "$as_me: failed program was:" >&5
  3238. cat conftest.$ac_ext >&5
  3239. ac_cv_lib_wrap_request_init=no
  3240. fi
  3241. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3242. LIBS=$ac_check_lib_save_LIBS
  3243. fi
  3244. echo "$as_me:3533: result: $ac_cv_lib_wrap_request_init" >&5
  3245. echo "${ECHO_T}$ac_cv_lib_wrap_request_init" >&6
  3246. if test $ac_cv_lib_wrap_request_init = yes; then
  3247. WRAPLIBS="-lwrap";opt_libwrap="yes";
  3248. fi
  3249. ;;
  3250. *)
  3251. echo "$as_me:3541: result: yes" >&5
  3252. echo "${ECHO_T}yes" >&6
  3253. opt_libwrap="yes"
  3254. if test -d "$withval"; then
  3255. WRAPLIBS="-L$withval -lwrap"
  3256. WRAPINCLUDES="-I$withval/include"
  3257. else
  3258. WRAPLIBS="$withval"
  3259. fi
  3260. OLDLIBS="$LIBS"
  3261. LIBS="$WRAPLIBS $LIBS"
  3262. cat >conftest.$ac_ext <<_ACEOF
  3263. #line 3553 "configure"
  3264. #include "confdefs.h"
  3265. int allow_severity; int deny_severity;
  3266. int
  3267. main ()
  3268. {
  3269. hosts_access();
  3270. ;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. rm -f conftest.$ac_objext conftest$ac_exeext
  3275. if { (eval echo "$as_me:3565: \"$ac_link\"") >&5
  3276. (eval $ac_link) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:3568: \$? = $ac_status" >&5
  3279. (exit $ac_status); } &&
  3280. { ac_try='test -s conftest$ac_exeext'
  3281. { (eval echo "$as_me:3571: \"$ac_try\"") >&5
  3282. (eval $ac_try) 2>&5
  3283. ac_status=$?
  3284. echo "$as_me:3574: \$? = $ac_status" >&5
  3285. (exit $ac_status); }; }; then
  3286. :
  3287. else
  3288. echo "$as_me: failed program was:" >&5
  3289. cat conftest.$ac_ext >&5
  3290. { { echo "$as_me:3580: error: Could not find the $withval library. You must first install tcp_wrappers." >&5
  3291. echo "$as_me: error: Could not find the $withval library. You must first install tcp_wrappers." >&2;}
  3292. { (exit 1); exit 1; }; }
  3293. fi
  3294. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3295. LIBS="$OLDLIBS"
  3296. ;;
  3297. esac
  3298. else
  3299. echo "$as_me:3589: result: no" >&5
  3300. echo "${ECHO_T}no" >&6
  3301. fi;
  3302. if test "$opt_libwrap" = yes; then
  3303. cat >>confdefs.h <<\EOF
  3304. #define HAVE_LIBWRAP 1
  3305. EOF
  3306. for ac_func in yp_get_default_domain
  3307. do
  3308. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3309. echo "$as_me:3602: checking for $ac_func" >&5
  3310. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3311. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3312. echo $ECHO_N "(cached) $ECHO_C" >&6
  3313. else
  3314. cat >conftest.$ac_ext <<_ACEOF
  3315. #line 3608 "configure"
  3316. #include "confdefs.h"
  3317. /* System header to define __stub macros and hopefully few prototypes,
  3318. which can conflict with char $ac_func (); below. */
  3319. #include <assert.h>
  3320. /* Override any gcc2 internal prototype to avoid an error. */
  3321. #ifdef __cplusplus
  3322. extern "C"
  3323. #endif
  3324. /* We use char because int might match the return type of a gcc2
  3325. builtin and then its argument prototype would still apply. */
  3326. char $ac_func ();
  3327. char (*f) ();
  3328. int
  3329. main ()
  3330. {
  3331. /* The GNU C library defines this for functions which it implements
  3332. to always fail with ENOSYS. Some functions are actually named
  3333. something starting with __ and the normal name is an alias. */
  3334. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3335. choke me
  3336. #else
  3337. f = $ac_func;
  3338. #endif
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. rm -f conftest.$ac_objext conftest$ac_exeext
  3344. if { (eval echo "$as_me:3639: \"$ac_link\"") >&5
  3345. (eval $ac_link) 2>&5
  3346. ac_status=$?
  3347. echo "$as_me:3642: \$? = $ac_status" >&5
  3348. (exit $ac_status); } &&
  3349. { ac_try='test -s conftest$ac_exeext'
  3350. { (eval echo "$as_me:3645: \"$ac_try\"") >&5
  3351. (eval $ac_try) 2>&5
  3352. ac_status=$?
  3353. echo "$as_me:3648: \$? = $ac_status" >&5
  3354. (exit $ac_status); }; }; then
  3355. eval "$as_ac_var=yes"
  3356. else
  3357. echo "$as_me: failed program was:" >&5
  3358. cat conftest.$ac_ext >&5
  3359. eval "$as_ac_var=no"
  3360. fi
  3361. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3362. fi
  3363. echo "$as_me:3658: result: `eval echo '${'$as_ac_var'}'`" >&5
  3364. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3365. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3366. cat >>confdefs.h <<EOF
  3367. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3368. EOF
  3369. fi
  3370. done
  3371. if test "$ac_cv_func_yp_get_default_domain" = no; then
  3372. for lib in wrap nsl nss_nis; do
  3373. if test "$HAVE_YP_GET_DEFAULT_DOMAIN" != 1; then
  3374. as_ac_Lib=`echo "ac_cv_lib_$lib''_yp_get_default_domain" | $as_tr_sh`
  3375. echo "$as_me:3672: checking for yp_get_default_domain in -l$lib" >&5
  3376. echo $ECHO_N "checking for yp_get_default_domain in -l$lib... $ECHO_C" >&6
  3377. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. ac_check_lib_save_LIBS=$LIBS
  3381. LIBS="-l$lib $LIBS"
  3382. cat >conftest.$ac_ext <<_ACEOF
  3383. #line 3680 "configure"
  3384. #include "confdefs.h"
  3385. /* Override any gcc2 internal prototype to avoid an error. */
  3386. #ifdef __cplusplus
  3387. extern "C"
  3388. #endif
  3389. /* We use char because int might match the return type of a gcc2
  3390. builtin and then its argument prototype would still apply. */
  3391. char yp_get_default_domain ();
  3392. int
  3393. main ()
  3394. {
  3395. yp_get_default_domain ();
  3396. ;
  3397. return 0;
  3398. }
  3399. _ACEOF
  3400. rm -f conftest.$ac_objext conftest$ac_exeext
  3401. if { (eval echo "$as_me:3699: \"$ac_link\"") >&5
  3402. (eval $ac_link) 2>&5
  3403. ac_status=$?
  3404. echo "$as_me:3702: \$? = $ac_status" >&5
  3405. (exit $ac_status); } &&
  3406. { ac_try='test -s conftest$ac_exeext'
  3407. { (eval echo "$as_me:3705: \"$ac_try\"") >&5
  3408. (eval $ac_try) 2>&5
  3409. ac_status=$?
  3410. echo "$as_me:3708: \$? = $ac_status" >&5
  3411. (exit $ac_status); }; }; then
  3412. eval "$as_ac_Lib=yes"
  3413. else
  3414. echo "$as_me: failed program was:" >&5
  3415. cat conftest.$ac_ext >&5
  3416. eval "$as_ac_Lib=no"
  3417. fi
  3418. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3419. LIBS=$ac_check_lib_save_LIBS
  3420. fi
  3421. echo "$as_me:3719: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  3422. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  3423. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  3424. LIBS="$LIBS -l$lib";HAVE_YP_GET_DEFAULT_DOMAIN=1;cat >>confdefs.h <<\EOF
  3425. #define HAVE_YP_GET_DEFAULT_DOMAIN 1
  3426. EOF
  3427. fi
  3428. fi
  3429. done
  3430. fi
  3431. fi
  3432. echo "$as_me:3734: checking whether to use crypted passwords" >&5
  3433. echo $ECHO_N "checking whether to use crypted passwords... $ECHO_C" >&6
  3434. # Check whether --with-crypt or --without-crypt was given.
  3435. if test "${with_crypt+set}" = set; then
  3436. withval="$with_crypt"
  3437. case "$withval" in
  3438. yes)
  3439. echo "$as_me:3742: result: yes" >&5
  3440. echo "${ECHO_T}yes" >&6
  3441. opt_crypt="yes"
  3442. ;;
  3443. *)
  3444. echo "$as_me:3747: result: no" >&5
  3445. echo "${ECHO_T}no" >&6
  3446. ;;
  3447. esac
  3448. else
  3449. echo "$as_me:3752: result: no" >&5
  3450. echo "${ECHO_T}no" >&6
  3451. fi;
  3452. CRYPTLIB=
  3453. if test "$opt_crypt" = yes; then
  3454. echo "$as_me:3759: checking for crypt in -lcrypt" >&5
  3455. echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
  3456. if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  3457. echo $ECHO_N "(cached) $ECHO_C" >&6
  3458. else
  3459. ac_check_lib_save_LIBS=$LIBS
  3460. LIBS="-lcrypt $LIBS"
  3461. cat >conftest.$ac_ext <<_ACEOF
  3462. #line 3767 "configure"
  3463. #include "confdefs.h"
  3464. /* Override any gcc2 internal prototype to avoid an error. */
  3465. #ifdef __cplusplus
  3466. extern "C"
  3467. #endif
  3468. /* We use char because int might match the return type of a gcc2
  3469. builtin and then its argument prototype would still apply. */
  3470. char crypt ();
  3471. int
  3472. main ()
  3473. {
  3474. crypt ();
  3475. ;
  3476. return 0;
  3477. }
  3478. _ACEOF
  3479. rm -f conftest.$ac_objext conftest$ac_exeext
  3480. if { (eval echo "$as_me:3786: \"$ac_link\"") >&5
  3481. (eval $ac_link) 2>&5
  3482. ac_status=$?
  3483. echo "$as_me:3789: \$? = $ac_status" >&5
  3484. (exit $ac_status); } &&
  3485. { ac_try='test -s conftest$ac_exeext'
  3486. { (eval echo "$as_me:3792: \"$ac_try\"") >&5
  3487. (eval $ac_try) 2>&5
  3488. ac_status=$?
  3489. echo "$as_me:3795: \$? = $ac_status" >&5
  3490. (exit $ac_status); }; }; then
  3491. ac_cv_lib_crypt_crypt=yes
  3492. else
  3493. echo "$as_me: failed program was:" >&5
  3494. cat conftest.$ac_ext >&5
  3495. ac_cv_lib_crypt_crypt=no
  3496. fi
  3497. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3498. LIBS=$ac_check_lib_save_LIBS
  3499. fi
  3500. echo "$as_me:3806: result: $ac_cv_lib_crypt_crypt" >&5
  3501. echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
  3502. if test $ac_cv_lib_crypt_crypt = yes; then
  3503. CRYPTLIB="-lcrypt"
  3504. fi
  3505. cat >>confdefs.h <<\EOF
  3506. #define USE_CRYPT 1
  3507. EOF
  3508. fi
  3509. THREADLIBS="no"
  3510. echo "$as_me:3820: checking for pthread functions in standard libraries" >&5
  3511. echo $ECHO_N "checking for pthread functions in standard libraries... $ECHO_C" >&6
  3512. cat >conftest.$ac_ext <<_ACEOF
  3513. #line 3823 "configure"
  3514. #include "confdefs.h"
  3515. int
  3516. main ()
  3517. {
  3518. pthread_create();
  3519. ;
  3520. return 0;
  3521. }
  3522. _ACEOF
  3523. rm -f conftest.$ac_objext conftest$ac_exeext
  3524. if { (eval echo "$as_me:3835: \"$ac_link\"") >&5
  3525. (eval $ac_link) 2>&5
  3526. ac_status=$?
  3527. echo "$as_me:3838: \$? = $ac_status" >&5
  3528. (exit $ac_status); } &&
  3529. { ac_try='test -s conftest$ac_exeext'
  3530. { (eval echo "$as_me:3841: \"$ac_try\"") >&5
  3531. (eval $ac_try) 2>&5
  3532. ac_status=$?
  3533. echo "$as_me:3844: \$? = $ac_status" >&5
  3534. (exit $ac_status); }; }; then
  3535. echo "$as_me:3846: result: yes" >&5
  3536. echo "${ECHO_T}yes" >&6;THREADLIBS=""
  3537. else
  3538. echo "$as_me: failed program was:" >&5
  3539. cat conftest.$ac_ext >&5
  3540. echo "$as_me:3851: result: no" >&5
  3541. echo "${ECHO_T}no" >&6
  3542. fi
  3543. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3544. if test "$THREADLIBS" = ""; then
  3545. echo "$as_me:3857: checking if that definition really works" >&5
  3546. echo $ECHO_N "checking if that definition really works... $ECHO_C" >&6
  3547. if test "$cross_compiling" = yes; then
  3548. echo "$as_me:3860: result: crosscompiling so no" >&5
  3549. echo "${ECHO_T}crosscompiling so no" >&6;THREADLIBS="no"
  3550. else
  3551. cat >conftest.$ac_ext <<_ACEOF
  3552. #line 3864 "configure"
  3553. #include "confdefs.h"
  3554. int main() { return !pthread_equal(pthread_self(), pthread_self());}
  3555. _ACEOF
  3556. rm -f conftest$ac_exeext
  3557. if { (eval echo "$as_me:3869: \"$ac_link\"") >&5
  3558. (eval $ac_link) 2>&5
  3559. ac_status=$?
  3560. echo "$as_me:3872: \$? = $ac_status" >&5
  3561. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3562. { (eval echo "$as_me:3874: \"$ac_try\"") >&5
  3563. (eval $ac_try) 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:3877: \$? = $ac_status" >&5
  3566. (exit $ac_status); }; }; then
  3567. echo "$as_me:3879: result: yes" >&5
  3568. echo "${ECHO_T}yes" >&6;THREADLIBS=""
  3569. else
  3570. echo "$as_me: program exited with status $ac_status" >&5
  3571. echo "$as_me: failed program was:" >&5
  3572. cat conftest.$ac_ext >&5
  3573. echo "$as_me:3885: result: no" >&5
  3574. echo "${ECHO_T}no" >&6;THREADLIBS="no"
  3575. fi
  3576. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3577. fi
  3578. fi
  3579. if test "$THREADLIBS" = "no"; then
  3580. for lib in pthread c_r dce pthreads; do
  3581. as_ac_Lib=`echo "ac_cv_lib_$lib''_pthread_create" | $as_tr_sh`
  3582. echo "$as_me:3895: checking for pthread_create in -l$lib" >&5
  3583. echo $ECHO_N "checking for pthread_create in -l$lib... $ECHO_C" >&6
  3584. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  3585. echo $ECHO_N "(cached) $ECHO_C" >&6
  3586. else
  3587. ac_check_lib_save_LIBS=$LIBS
  3588. LIBS="-l$lib $LIBS"
  3589. cat >conftest.$ac_ext <<_ACEOF
  3590. #line 3903 "configure"
  3591. #include "confdefs.h"
  3592. /* Override any gcc2 internal prototype to avoid an error. */
  3593. #ifdef __cplusplus
  3594. extern "C"
  3595. #endif
  3596. /* We use char because int might match the return type of a gcc2
  3597. builtin and then its argument prototype would still apply. */
  3598. char pthread_create ();
  3599. int
  3600. main ()
  3601. {
  3602. pthread_create ();
  3603. ;
  3604. return 0;
  3605. }
  3606. _ACEOF
  3607. rm -f conftest.$ac_objext conftest$ac_exeext
  3608. if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
  3609. (eval $ac_link) 2>&5
  3610. ac_status=$?
  3611. echo "$as_me:3925: \$? = $ac_status" >&5
  3612. (exit $ac_status); } &&
  3613. { ac_try='test -s conftest$ac_exeext'
  3614. { (eval echo "$as_me:3928: \"$ac_try\"") >&5
  3615. (eval $ac_try) 2>&5
  3616. ac_status=$?
  3617. echo "$as_me:3931: \$? = $ac_status" >&5
  3618. (exit $ac_status); }; }; then
  3619. eval "$as_ac_Lib=yes"
  3620. else
  3621. echo "$as_me: failed program was:" >&5
  3622. cat conftest.$ac_ext >&5
  3623. eval "$as_ac_Lib=no"
  3624. fi
  3625. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3626. LIBS=$ac_check_lib_save_LIBS
  3627. fi
  3628. echo "$as_me:3942: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  3629. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  3630. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  3631. THREADLIBS="-l$lib"
  3632. fi
  3633. if test $THREADLIBS != "no"; then
  3634. break
  3635. fi
  3636. done
  3637. fi
  3638. if test "$THREADLIBS" = "no"; then
  3639. for ac_func in pthread_create
  3640. do
  3641. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3642. echo "$as_me:3959: checking for $ac_func" >&5
  3643. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3644. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3645. echo $ECHO_N "(cached) $ECHO_C" >&6
  3646. else
  3647. cat >conftest.$ac_ext <<_ACEOF
  3648. #line 3965 "configure"
  3649. #include "confdefs.h"
  3650. /* System header to define __stub macros and hopefully few prototypes,
  3651. which can conflict with char $ac_func (); below. */
  3652. #include <assert.h>
  3653. /* Override any gcc2 internal prototype to avoid an error. */
  3654. #ifdef __cplusplus
  3655. extern "C"
  3656. #endif
  3657. /* We use char because int might match the return type of a gcc2
  3658. builtin and then its argument prototype would still apply. */
  3659. char $ac_func ();
  3660. char (*f) ();
  3661. int
  3662. main ()
  3663. {
  3664. /* The GNU C library defines this for functions which it implements
  3665. to always fail with ENOSYS. Some functions are actually named
  3666. something starting with __ and the normal name is an alias. */
  3667. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3668. choke me
  3669. #else
  3670. f = $ac_func;
  3671. #endif
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. rm -f conftest.$ac_objext conftest$ac_exeext
  3677. if { (eval echo "$as_me:3996: \"$ac_link\"") >&5
  3678. (eval $ac_link) 2>&5
  3679. ac_status=$?
  3680. echo "$as_me:3999: \$? = $ac_status" >&5
  3681. (exit $ac_status); } &&
  3682. { ac_try='test -s conftest$ac_exeext'
  3683. { (eval echo "$as_me:4002: \"$ac_try\"") >&5
  3684. (eval $ac_try) 2>&5
  3685. ac_status=$?
  3686. echo "$as_me:4005: \$? = $ac_status" >&5
  3687. (exit $ac_status); }; }; then
  3688. eval "$as_ac_var=yes"
  3689. else
  3690. echo "$as_me: failed program was:" >&5
  3691. cat conftest.$ac_ext >&5
  3692. eval "$as_ac_var=no"
  3693. fi
  3694. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3695. fi
  3696. echo "$as_me:4015: result: `eval echo '${'$as_ac_var'}'`" >&5
  3697. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3698. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3699. cat >>confdefs.h <<EOF
  3700. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3701. EOF
  3702. THREADLIBS=""
  3703. fi
  3704. done
  3705. fi
  3706. if test "$THREADLIBS" = "no"; then
  3707. { { echo "$as_me:4028: error: Your system doesn't seem to support posix threads. Ntripcaster 0.2.0 and above won't work without threads support" >&5
  3708. echo "$as_me: error: Your system doesn't seem to support posix threads. Ntripcaster 0.2.0 and above won't work without threads support" >&2;}
  3709. { (exit 1); exit 1; }; }
  3710. exit
  3711. fi
  3712. LIBS="$LIBS $THREADLIBS"
  3713. CFLAGS="$THREADCPPFLAGS $CPPFLAGS $CFLAGS"
  3714. # Check whether --with-python or --without-python was given.
  3715. if test "${with_python+set}" = set; then
  3716. withval="$with_python"
  3717. fi;
  3718. # Check whether --with-python-includes or --without-python-includes was given.
  3719. if test "${with_python_includes+set}" = set; then
  3720. withval="$with_python_includes"
  3721. fi;
  3722. # Check whether --with-python-libraries or --without-python-libraries was given.
  3723. if test "${with_python_libraries+set}" = set; then
  3724. withval="$with_python_libraries"
  3725. fi;
  3726. if test "$with_python_includes"; then
  3727. CPPFLAGS="$CPPFLAGS -I$with_python_includes"
  3728. if test "$with_python" = ""; then
  3729. with_python=yes
  3730. fi
  3731. fi
  3732. if test "$with_python_libraries"; then
  3733. LIBS="$LIBS -L$with_python_libraries"
  3734. if test "$with_python" = ""; then
  3735. with_python=yes
  3736. fi
  3737. fi
  3738. if test "$with_python"; then
  3739. echo "$as_me:4071: checking for dlopen in -ldl" >&5
  3740. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3741. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3742. echo $ECHO_N "(cached) $ECHO_C" >&6
  3743. else
  3744. ac_check_lib_save_LIBS=$LIBS
  3745. LIBS="-ldl $LIBS"
  3746. cat >conftest.$ac_ext <<_ACEOF
  3747. #line 4079 "configure"
  3748. #include "confdefs.h"
  3749. /* Override any gcc2 internal prototype to avoid an error. */
  3750. #ifdef __cplusplus
  3751. extern "C"
  3752. #endif
  3753. /* We use char because int might match the return type of a gcc2
  3754. builtin and then its argument prototype would still apply. */
  3755. char dlopen ();
  3756. int
  3757. main ()
  3758. {
  3759. dlopen ();
  3760. ;
  3761. return 0;
  3762. }
  3763. _ACEOF
  3764. rm -f conftest.$ac_objext conftest$ac_exeext
  3765. if { (eval echo "$as_me:4098: \"$ac_link\"") >&5
  3766. (eval $ac_link) 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:4101: \$? = $ac_status" >&5
  3769. (exit $ac_status); } &&
  3770. { ac_try='test -s conftest$ac_exeext'
  3771. { (eval echo "$as_me:4104: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:4107: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; }; then
  3776. ac_cv_lib_dl_dlopen=yes
  3777. else
  3778. echo "$as_me: failed program was:" >&5
  3779. cat conftest.$ac_ext >&5
  3780. ac_cv_lib_dl_dlopen=no
  3781. fi
  3782. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3783. LIBS=$ac_check_lib_save_LIBS
  3784. fi
  3785. echo "$as_me:4118: result: $ac_cv_lib_dl_dlopen" >&5
  3786. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3787. if test $ac_cv_lib_dl_dlopen = yes; then
  3788. cat >>confdefs.h <<EOF
  3789. #define HAVE_LIBDL 1
  3790. EOF
  3791. LIBS="-ldl $LIBS"
  3792. fi
  3793. for lib in python python2.0 python1.6 python1.5; do
  3794. as_ac_Lib=`echo "ac_cv_lib_$lib''_Py_Initialize" | $as_tr_sh`
  3795. echo "$as_me:4132: checking for Py_Initialize in -l$lib" >&5
  3796. echo $ECHO_N "checking for Py_Initialize in -l$lib... $ECHO_C" >&6
  3797. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  3798. echo $ECHO_N "(cached) $ECHO_C" >&6
  3799. else
  3800. ac_check_lib_save_LIBS=$LIBS
  3801. LIBS="-l$lib $LIBS"
  3802. cat >conftest.$ac_ext <<_ACEOF
  3803. #line 4140 "configure"
  3804. #include "confdefs.h"
  3805. /* Override any gcc2 internal prototype to avoid an error. */
  3806. #ifdef __cplusplus
  3807. extern "C"
  3808. #endif
  3809. /* We use char because int might match the return type of a gcc2
  3810. builtin and then its argument prototype would still apply. */
  3811. char Py_Initialize ();
  3812. int
  3813. main ()
  3814. {
  3815. Py_Initialize ();
  3816. ;
  3817. return 0;
  3818. }
  3819. _ACEOF
  3820. rm -f conftest.$ac_objext conftest$ac_exeext
  3821. if { (eval echo "$as_me:4159: \"$ac_link\"") >&5
  3822. (eval $ac_link) 2>&5
  3823. ac_status=$?
  3824. echo "$as_me:4162: \$? = $ac_status" >&5
  3825. (exit $ac_status); } &&
  3826. { ac_try='test -s conftest$ac_exeext'
  3827. { (eval echo "$as_me:4165: \"$ac_try\"") >&5
  3828. (eval $ac_try) 2>&5
  3829. ac_status=$?
  3830. echo "$as_me:4168: \$? = $ac_status" >&5
  3831. (exit $ac_status); }; }; then
  3832. eval "$as_ac_Lib=yes"
  3833. else
  3834. echo "$as_me: failed program was:" >&5
  3835. cat conftest.$ac_ext >&5
  3836. eval "$as_ac_Lib=no"
  3837. fi
  3838. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3839. LIBS=$ac_check_lib_save_LIBS
  3840. fi
  3841. echo "$as_me:4179: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  3842. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  3843. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  3844. cat >>confdefs.h <<EOF
  3845. #define `echo "HAVE_LIB$lib" | $as_tr_cpp` 1
  3846. EOF
  3847. LIBS="-l$lib $LIBS"
  3848. fi
  3849. done
  3850. fi
  3851. cat >conftest.$ac_ext <<_ACEOF
  3852. #line 4194 "configure"
  3853. #include "confdefs.h"
  3854. #include <syslog.h>
  3855. int
  3856. main ()
  3857. {
  3858. int foo = LOG_DAEMON;
  3859. ;
  3860. return 0;
  3861. }
  3862. _ACEOF
  3863. rm -f conftest.$ac_objext
  3864. if { (eval echo "$as_me:4206: \"$ac_compile\"") >&5
  3865. (eval $ac_compile) 2>&5
  3866. ac_status=$?
  3867. echo "$as_me:4209: \$? = $ac_status" >&5
  3868. (exit $ac_status); } &&
  3869. { ac_try='test -s conftest.$ac_objext'
  3870. { (eval echo "$as_me:4212: \"$ac_try\"") >&5
  3871. (eval $ac_try) 2>&5
  3872. ac_status=$?
  3873. echo "$as_me:4215: \$? = $ac_status" >&5
  3874. (exit $ac_status); }; }; then
  3875. :
  3876. else
  3877. echo "$as_me: failed program was:" >&5
  3878. cat conftest.$ac_ext >&5
  3879. cat >>confdefs.h <<\EOF
  3880. #define NEED_SYS_SYSLOG_H 1
  3881. EOF
  3882. fi
  3883. rm -f conftest.$ac_objext conftest.$ac_ext
  3884. echo "$as_me:4228: checking for ANSI C header files" >&5
  3885. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3886. if test "${ac_cv_header_stdc+set}" = set; then
  3887. echo $ECHO_N "(cached) $ECHO_C" >&6
  3888. else
  3889. cat >conftest.$ac_ext <<_ACEOF
  3890. #line 4234 "configure"
  3891. #include "confdefs.h"
  3892. #include <stdlib.h>
  3893. #include <stdarg.h>
  3894. #include <string.h>
  3895. #include <float.h>
  3896. _ACEOF
  3897. if { (eval echo "$as_me:4242: \"$ac_cpp conftest.$ac_ext\"") >&5
  3898. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3899. ac_status=$?
  3900. egrep -v '^ *\+' conftest.er1 >conftest.err
  3901. rm -f conftest.er1
  3902. cat conftest.err >&5
  3903. echo "$as_me:4248: \$? = $ac_status" >&5
  3904. (exit $ac_status); } >/dev/null; then
  3905. if test -s conftest.err; then
  3906. ac_cpp_err=$ac_c_preproc_warn_flag
  3907. else
  3908. ac_cpp_err=
  3909. fi
  3910. else
  3911. ac_cpp_err=yes
  3912. fi
  3913. if test -z "$ac_cpp_err"; then
  3914. ac_cv_header_stdc=yes
  3915. else
  3916. echo "$as_me: failed program was:" >&5
  3917. cat conftest.$ac_ext >&5
  3918. ac_cv_header_stdc=no
  3919. fi
  3920. rm -f conftest.err conftest.$ac_ext
  3921. if test $ac_cv_header_stdc = yes; then
  3922. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3923. cat >conftest.$ac_ext <<_ACEOF
  3924. #line 4270 "configure"
  3925. #include "confdefs.h"
  3926. #include <string.h>
  3927. _ACEOF
  3928. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3929. egrep "memchr" >/dev/null 2>&1; then
  3930. :
  3931. else
  3932. ac_cv_header_stdc=no
  3933. fi
  3934. rm -f conftest*
  3935. fi
  3936. if test $ac_cv_header_stdc = yes; then
  3937. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3938. cat >conftest.$ac_ext <<_ACEOF
  3939. #line 4288 "configure"
  3940. #include "confdefs.h"
  3941. #include <stdlib.h>
  3942. _ACEOF
  3943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3944. egrep "free" >/dev/null 2>&1; then
  3945. :
  3946. else
  3947. ac_cv_header_stdc=no
  3948. fi
  3949. rm -f conftest*
  3950. fi
  3951. if test $ac_cv_header_stdc = yes; then
  3952. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3953. if test "$cross_compiling" = yes; then
  3954. :
  3955. else
  3956. cat >conftest.$ac_ext <<_ACEOF
  3957. #line 4309 "configure"
  3958. #include "confdefs.h"
  3959. #include <ctype.h>
  3960. #if ((' ' & 0x0FF) == 0x020)
  3961. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3962. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3963. #else
  3964. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3965. || ('j' <= (c) && (c) <= 'r') \
  3966. || ('s' <= (c) && (c) <= 'z'))
  3967. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3968. #endif
  3969. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3970. int
  3971. main ()
  3972. {
  3973. int i;
  3974. for (i = 0; i < 256; i++)
  3975. if (XOR (islower (i), ISLOWER (i))
  3976. || toupper (i) != TOUPPER (i))
  3977. exit(2);
  3978. exit (0);
  3979. }
  3980. _ACEOF
  3981. rm -f conftest$ac_exeext
  3982. if { (eval echo "$as_me:4335: \"$ac_link\"") >&5
  3983. (eval $ac_link) 2>&5
  3984. ac_status=$?
  3985. echo "$as_me:4338: \$? = $ac_status" >&5
  3986. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3987. { (eval echo "$as_me:4340: \"$ac_try\"") >&5
  3988. (eval $ac_try) 2>&5
  3989. ac_status=$?
  3990. echo "$as_me:4343: \$? = $ac_status" >&5
  3991. (exit $ac_status); }; }; then
  3992. :
  3993. else
  3994. echo "$as_me: program exited with status $ac_status" >&5
  3995. echo "$as_me: failed program was:" >&5
  3996. cat conftest.$ac_ext >&5
  3997. ac_cv_header_stdc=no
  3998. fi
  3999. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4000. fi
  4001. fi
  4002. fi
  4003. echo "$as_me:4356: result: $ac_cv_header_stdc" >&5
  4004. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4005. if test $ac_cv_header_stdc = yes; then
  4006. cat >>confdefs.h <<\EOF
  4007. #define STDC_HEADERS 1
  4008. EOF
  4009. fi
  4010. echo "$as_me:4366: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4011. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4012. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4013. echo $ECHO_N "(cached) $ECHO_C" >&6
  4014. else
  4015. cat >conftest.$ac_ext <<_ACEOF
  4016. #line 4372 "configure"
  4017. #include "confdefs.h"
  4018. #include <sys/types.h>
  4019. #include <sys/wait.h>
  4020. #ifndef WEXITSTATUS
  4021. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4022. #endif
  4023. #ifndef WIFEXITED
  4024. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4025. #endif
  4026. int
  4027. main ()
  4028. {
  4029. int s;
  4030. wait (&s);
  4031. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. rm -f conftest.$ac_objext
  4037. if { (eval echo "$as_me:4394: \"$ac_compile\"") >&5
  4038. (eval $ac_compile) 2>&5
  4039. ac_status=$?
  4040. echo "$as_me:4397: \$? = $ac_status" >&5
  4041. (exit $ac_status); } &&
  4042. { ac_try='test -s conftest.$ac_objext'
  4043. { (eval echo "$as_me:4400: \"$ac_try\"") >&5
  4044. (eval $ac_try) 2>&5
  4045. ac_status=$?
  4046. echo "$as_me:4403: \$? = $ac_status" >&5
  4047. (exit $ac_status); }; }; then
  4048. ac_cv_header_sys_wait_h=yes
  4049. else
  4050. echo "$as_me: failed program was:" >&5
  4051. cat conftest.$ac_ext >&5
  4052. ac_cv_header_sys_wait_h=no
  4053. fi
  4054. rm -f conftest.$ac_objext conftest.$ac_ext
  4055. fi
  4056. echo "$as_me:4413: result: $ac_cv_header_sys_wait_h" >&5
  4057. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4058. if test $ac_cv_header_sys_wait_h = yes; then
  4059. cat >>confdefs.h <<\EOF
  4060. #define HAVE_SYS_WAIT_H 1
  4061. EOF
  4062. fi
  4063. ac_header_dirent=no
  4064. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4065. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4066. echo "$as_me:4426: checking for $ac_hdr that defines DIR" >&5
  4067. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4068. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4069. echo $ECHO_N "(cached) $ECHO_C" >&6
  4070. else
  4071. cat >conftest.$ac_ext <<_ACEOF
  4072. #line 4432 "configure"
  4073. #include "confdefs.h"
  4074. #include <sys/types.h>
  4075. #include <$ac_hdr>
  4076. int
  4077. main ()
  4078. {
  4079. if ((DIR *) 0)
  4080. return 0;
  4081. ;
  4082. return 0;
  4083. }
  4084. _ACEOF
  4085. rm -f conftest.$ac_objext
  4086. if { (eval echo "$as_me:4447: \"$ac_compile\"") >&5
  4087. (eval $ac_compile) 2>&5
  4088. ac_status=$?
  4089. echo "$as_me:4450: \$? = $ac_status" >&5
  4090. (exit $ac_status); } &&
  4091. { ac_try='test -s conftest.$ac_objext'
  4092. { (eval echo "$as_me:4453: \"$ac_try\"") >&5
  4093. (eval $ac_try) 2>&5
  4094. ac_status=$?
  4095. echo "$as_me:4456: \$? = $ac_status" >&5
  4096. (exit $ac_status); }; }; then
  4097. eval "$as_ac_Header=yes"
  4098. else
  4099. echo "$as_me: failed program was:" >&5
  4100. cat conftest.$ac_ext >&5
  4101. eval "$as_ac_Header=no"
  4102. fi
  4103. rm -f conftest.$ac_objext conftest.$ac_ext
  4104. fi
  4105. echo "$as_me:4466: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4106. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4107. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4108. cat >>confdefs.h <<EOF
  4109. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4110. EOF
  4111. ac_header_dirent=$ac_hdr; break
  4112. fi
  4113. done
  4114. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4115. if test $ac_header_dirent = dirent.h; then
  4116. echo "$as_me:4479: checking for opendir in -ldir" >&5
  4117. echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
  4118. if test "${ac_cv_lib_dir_opendir+set}" = set; then
  4119. echo $ECHO_N "(cached) $ECHO_C" >&6
  4120. else
  4121. ac_check_lib_save_LIBS=$LIBS
  4122. LIBS="-ldir $LIBS"
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. #line 4487 "configure"
  4125. #include "confdefs.h"
  4126. /* Override any gcc2 internal prototype to avoid an error. */
  4127. #ifdef __cplusplus
  4128. extern "C"
  4129. #endif
  4130. /* We use char because int might match the return type of a gcc2
  4131. builtin and then its argument prototype would still apply. */
  4132. char opendir ();
  4133. int
  4134. main ()
  4135. {
  4136. opendir ();
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. rm -f conftest.$ac_objext conftest$ac_exeext
  4142. if { (eval echo "$as_me:4506: \"$ac_link\"") >&5
  4143. (eval $ac_link) 2>&5
  4144. ac_status=$?
  4145. echo "$as_me:4509: \$? = $ac_status" >&5
  4146. (exit $ac_status); } &&
  4147. { ac_try='test -s conftest$ac_exeext'
  4148. { (eval echo "$as_me:4512: \"$ac_try\"") >&5
  4149. (eval $ac_try) 2>&5
  4150. ac_status=$?
  4151. echo "$as_me:4515: \$? = $ac_status" >&5
  4152. (exit $ac_status); }; }; then
  4153. ac_cv_lib_dir_opendir=yes
  4154. else
  4155. echo "$as_me: failed program was:" >&5
  4156. cat conftest.$ac_ext >&5
  4157. ac_cv_lib_dir_opendir=no
  4158. fi
  4159. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4160. LIBS=$ac_check_lib_save_LIBS
  4161. fi
  4162. echo "$as_me:4526: result: $ac_cv_lib_dir_opendir" >&5
  4163. echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
  4164. if test $ac_cv_lib_dir_opendir = yes; then
  4165. LIBS="$LIBS -ldir"
  4166. fi
  4167. else
  4168. echo "$as_me:4533: checking for opendir in -lx" >&5
  4169. echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
  4170. if test "${ac_cv_lib_x_opendir+set}" = set; then
  4171. echo $ECHO_N "(cached) $ECHO_C" >&6
  4172. else
  4173. ac_check_lib_save_LIBS=$LIBS
  4174. LIBS="-lx $LIBS"
  4175. cat >conftest.$ac_ext <<_ACEOF
  4176. #line 4541 "configure"
  4177. #include "confdefs.h"
  4178. /* Override any gcc2 internal prototype to avoid an error. */
  4179. #ifdef __cplusplus
  4180. extern "C"
  4181. #endif
  4182. /* We use char because int might match the return type of a gcc2
  4183. builtin and then its argument prototype would still apply. */
  4184. char opendir ();
  4185. int
  4186. main ()
  4187. {
  4188. opendir ();
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. rm -f conftest.$ac_objext conftest$ac_exeext
  4194. if { (eval echo "$as_me:4560: \"$ac_link\"") >&5
  4195. (eval $ac_link) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:4563: \$? = $ac_status" >&5
  4198. (exit $ac_status); } &&
  4199. { ac_try='test -s conftest$ac_exeext'
  4200. { (eval echo "$as_me:4566: \"$ac_try\"") >&5
  4201. (eval $ac_try) 2>&5
  4202. ac_status=$?
  4203. echo "$as_me:4569: \$? = $ac_status" >&5
  4204. (exit $ac_status); }; }; then
  4205. ac_cv_lib_x_opendir=yes
  4206. else
  4207. echo "$as_me: failed program was:" >&5
  4208. cat conftest.$ac_ext >&5
  4209. ac_cv_lib_x_opendir=no
  4210. fi
  4211. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4212. LIBS=$ac_check_lib_save_LIBS
  4213. fi
  4214. echo "$as_me:4580: result: $ac_cv_lib_x_opendir" >&5
  4215. echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
  4216. if test $ac_cv_lib_x_opendir = yes; then
  4217. LIBS="$LIBS -lx"
  4218. fi
  4219. fi
  4220. for ac_header in fcntl.h sys/time.h unistd.h sys/soundcard.h machine/soundcard.h pthread.h assert.h sys/resource.h math.h signal.h sys/signal.h mcheck.h malloc.h history.h Python.h
  4221. do
  4222. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4223. echo "$as_me:4591: checking for $ac_header" >&5
  4224. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4225. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. cat >conftest.$ac_ext <<_ACEOF
  4229. #line 4597 "configure"
  4230. #include "confdefs.h"
  4231. #include <$ac_header>
  4232. _ACEOF
  4233. if { (eval echo "$as_me:4601: \"$ac_cpp conftest.$ac_ext\"") >&5
  4234. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4235. ac_status=$?
  4236. egrep -v '^ *\+' conftest.er1 >conftest.err
  4237. rm -f conftest.er1
  4238. cat conftest.err >&5
  4239. echo "$as_me:4607: \$? = $ac_status" >&5
  4240. (exit $ac_status); } >/dev/null; then
  4241. if test -s conftest.err; then
  4242. ac_cpp_err=$ac_c_preproc_warn_flag
  4243. else
  4244. ac_cpp_err=
  4245. fi
  4246. else
  4247. ac_cpp_err=yes
  4248. fi
  4249. if test -z "$ac_cpp_err"; then
  4250. eval "$as_ac_Header=yes"
  4251. else
  4252. echo "$as_me: failed program was:" >&5
  4253. cat conftest.$ac_ext >&5
  4254. eval "$as_ac_Header=no"
  4255. fi
  4256. rm -f conftest.err conftest.$ac_ext
  4257. fi
  4258. echo "$as_me:4626: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4259. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4260. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4261. cat >>confdefs.h <<EOF
  4262. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4263. EOF
  4264. fi
  4265. done
  4266. echo "$as_me:4636: checking for $CC option to accept ANSI C" >&5
  4267. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  4268. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. ac_cv_prog_cc_stdc=no
  4272. ac_save_CC=$CC
  4273. cat >conftest.$ac_ext <<_ACEOF
  4274. #line 4644 "configure"
  4275. #include "confdefs.h"
  4276. #include <stdarg.h>
  4277. #include <stdio.h>
  4278. #include <sys/types.h>
  4279. #include <sys/stat.h>
  4280. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4281. struct buf { int x; };
  4282. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4283. static char *e (p, i)
  4284. char **p;
  4285. int i;
  4286. {
  4287. return p[i];
  4288. }
  4289. static char *f (char * (*g) (char **, int), char **p, ...)
  4290. {
  4291. char *s;
  4292. va_list v;
  4293. va_start (v,p);
  4294. s = g (p, va_arg (v,int));
  4295. va_end (v);
  4296. return s;
  4297. }
  4298. int test (int i, double x);
  4299. struct s1 {int (*f) (int a);};
  4300. struct s2 {int (*f) (double a);};
  4301. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4302. int argc;
  4303. char **argv;
  4304. int
  4305. main ()
  4306. {
  4307. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4308. ;
  4309. return 0;
  4310. }
  4311. _ACEOF
  4312. # Don't try gcc -ansi; that turns off useful extensions and
  4313. # breaks some systems' header files.
  4314. # AIX -qlanglvl=ansi
  4315. # Ultrix and OSF/1 -std1
  4316. # HP-UX 10.20 and later -Ae
  4317. # HP-UX older versions -Aa -D_HPUX_SOURCE
  4318. # SVR4 -Xc -D__EXTENSIONS__
  4319. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4320. do
  4321. CC="$ac_save_CC $ac_arg"
  4322. rm -f conftest.$ac_objext
  4323. if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
  4324. (eval $ac_compile) 2>&5
  4325. ac_status=$?
  4326. echo "$as_me:4696: \$? = $ac_status" >&5
  4327. (exit $ac_status); } &&
  4328. { ac_try='test -s conftest.$ac_objext'
  4329. { (eval echo "$as_me:4699: \"$ac_try\"") >&5
  4330. (eval $ac_try) 2>&5
  4331. ac_status=$?
  4332. echo "$as_me:4702: \$? = $ac_status" >&5
  4333. (exit $ac_status); }; }; then
  4334. ac_cv_prog_cc_stdc=$ac_arg
  4335. break
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. cat conftest.$ac_ext >&5
  4339. fi
  4340. rm -f conftest.$ac_objext
  4341. done
  4342. rm -f conftest.$ac_ext conftest.$ac_objext
  4343. CC=$ac_save_CC
  4344. fi
  4345. case "x$ac_cv_prog_cc_stdc" in
  4346. x|xno)
  4347. echo "$as_me:4719: result: none needed" >&5
  4348. echo "${ECHO_T}none needed" >&6 ;;
  4349. *)
  4350. echo "$as_me:4722: result: $ac_cv_prog_cc_stdc" >&5
  4351. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  4352. CC="$CC $ac_cv_prog_cc_stdc" ;;
  4353. esac
  4354. echo "$as_me:4727: checking for an ANSI C-conforming const" >&5
  4355. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4356. if test "${ac_cv_c_const+set}" = set; then
  4357. echo $ECHO_N "(cached) $ECHO_C" >&6
  4358. else
  4359. cat >conftest.$ac_ext <<_ACEOF
  4360. #line 4733 "configure"
  4361. #include "confdefs.h"
  4362. int
  4363. main ()
  4364. {
  4365. /* FIXME: Include the comments suggested by Paul. */
  4366. #ifndef __cplusplus
  4367. /* Ultrix mips cc rejects this. */
  4368. typedef int charset[2];
  4369. const charset x;
  4370. /* SunOS 4.1.1 cc rejects this. */
  4371. char const *const *ccp;
  4372. char **p;
  4373. /* NEC SVR4.0.2 mips cc rejects this. */
  4374. struct point {int x, y;};
  4375. static struct point const zero = {0,0};
  4376. /* AIX XL C 1.02.0.0 rejects this.
  4377. It does not let you subtract one const X* pointer from another in
  4378. an arm of an if-expression whose if-part is not a constant
  4379. expression */
  4380. const char *g = "string";
  4381. ccp = &g + (g ? g-g : 0);
  4382. /* HPUX 7.0 cc rejects these. */
  4383. ++ccp;
  4384. p = (char**) ccp;
  4385. ccp = (char const *const *) p;
  4386. { /* SCO 3.2v4 cc rejects this. */
  4387. char *t;
  4388. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4389. *t++ = 0;
  4390. }
  4391. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4392. int x[] = {25, 17};
  4393. const int *foo = &x[0];
  4394. ++foo;
  4395. }
  4396. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4397. typedef const int *iptr;
  4398. iptr p = 0;
  4399. ++p;
  4400. }
  4401. { /* AIX XL C 1.02.0.0 rejects this saying
  4402. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4403. struct s { int j; const int *ap[3]; };
  4404. struct s *b; b->j = 5;
  4405. }
  4406. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4407. const int foo = 10;
  4408. }
  4409. #endif
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. rm -f conftest.$ac_objext
  4415. if { (eval echo "$as_me:4791: \"$ac_compile\"") >&5
  4416. (eval $ac_compile) 2>&5
  4417. ac_status=$?
  4418. echo "$as_me:4794: \$? = $ac_status" >&5
  4419. (exit $ac_status); } &&
  4420. { ac_try='test -s conftest.$ac_objext'
  4421. { (eval echo "$as_me:4797: \"$ac_try\"") >&5
  4422. (eval $ac_try) 2>&5
  4423. ac_status=$?
  4424. echo "$as_me:4800: \$? = $ac_status" >&5
  4425. (exit $ac_status); }; }; then
  4426. ac_cv_c_const=yes
  4427. else
  4428. echo "$as_me: failed program was:" >&5
  4429. cat conftest.$ac_ext >&5
  4430. ac_cv_c_const=no
  4431. fi
  4432. rm -f conftest.$ac_objext conftest.$ac_ext
  4433. fi
  4434. echo "$as_me:4810: result: $ac_cv_c_const" >&5
  4435. echo "${ECHO_T}$ac_cv_c_const" >&6
  4436. if test $ac_cv_c_const = no; then
  4437. cat >>confdefs.h <<\EOF
  4438. #define const
  4439. EOF
  4440. fi
  4441. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4442. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4443. inttypes.h stdint.h unistd.h
  4444. do
  4445. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4446. echo "$as_me:4826: checking for $ac_header" >&5
  4447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4448. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4449. echo $ECHO_N "(cached) $ECHO_C" >&6
  4450. else
  4451. cat >conftest.$ac_ext <<_ACEOF
  4452. #line 4832 "configure"
  4453. #include "confdefs.h"
  4454. $ac_includes_default
  4455. #include <$ac_header>
  4456. _ACEOF
  4457. rm -f conftest.$ac_objext
  4458. if { (eval echo "$as_me:4838: \"$ac_compile\"") >&5
  4459. (eval $ac_compile) 2>&5
  4460. ac_status=$?
  4461. echo "$as_me:4841: \$? = $ac_status" >&5
  4462. (exit $ac_status); } &&
  4463. { ac_try='test -s conftest.$ac_objext'
  4464. { (eval echo "$as_me:4844: \"$ac_try\"") >&5
  4465. (eval $ac_try) 2>&5
  4466. ac_status=$?
  4467. echo "$as_me:4847: \$? = $ac_status" >&5
  4468. (exit $ac_status); }; }; then
  4469. eval "$as_ac_Header=yes"
  4470. else
  4471. echo "$as_me: failed program was:" >&5
  4472. cat conftest.$ac_ext >&5
  4473. eval "$as_ac_Header=no"
  4474. fi
  4475. rm -f conftest.$ac_objext conftest.$ac_ext
  4476. fi
  4477. echo "$as_me:4857: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4478. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4479. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4480. cat >>confdefs.h <<EOF
  4481. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4482. EOF
  4483. fi
  4484. done
  4485. echo "$as_me:4867: checking for pid_t" >&5
  4486. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4487. if test "${ac_cv_type_pid_t+set}" = set; then
  4488. echo $ECHO_N "(cached) $ECHO_C" >&6
  4489. else
  4490. cat >conftest.$ac_ext <<_ACEOF
  4491. #line 4873 "configure"
  4492. #include "confdefs.h"
  4493. $ac_includes_default
  4494. int
  4495. main ()
  4496. {
  4497. if ((pid_t *) 0)
  4498. return 0;
  4499. if (sizeof (pid_t))
  4500. return 0;
  4501. ;
  4502. return 0;
  4503. }
  4504. _ACEOF
  4505. rm -f conftest.$ac_objext
  4506. if { (eval echo "$as_me:4888: \"$ac_compile\"") >&5
  4507. (eval $ac_compile) 2>&5
  4508. ac_status=$?
  4509. echo "$as_me:4891: \$? = $ac_status" >&5
  4510. (exit $ac_status); } &&
  4511. { ac_try='test -s conftest.$ac_objext'
  4512. { (eval echo "$as_me:4894: \"$ac_try\"") >&5
  4513. (eval $ac_try) 2>&5
  4514. ac_status=$?
  4515. echo "$as_me:4897: \$? = $ac_status" >&5
  4516. (exit $ac_status); }; }; then
  4517. ac_cv_type_pid_t=yes
  4518. else
  4519. echo "$as_me: failed program was:" >&5
  4520. cat conftest.$ac_ext >&5
  4521. ac_cv_type_pid_t=no
  4522. fi
  4523. rm -f conftest.$ac_objext conftest.$ac_ext
  4524. fi
  4525. echo "$as_me:4907: result: $ac_cv_type_pid_t" >&5
  4526. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4527. if test $ac_cv_type_pid_t = yes; then
  4528. :
  4529. else
  4530. cat >>confdefs.h <<EOF
  4531. #define pid_t int
  4532. EOF
  4533. fi
  4534. echo "$as_me:4919: checking for size_t" >&5
  4535. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4536. if test "${ac_cv_type_size_t+set}" = set; then
  4537. echo $ECHO_N "(cached) $ECHO_C" >&6
  4538. else
  4539. cat >conftest.$ac_ext <<_ACEOF
  4540. #line 4925 "configure"
  4541. #include "confdefs.h"
  4542. $ac_includes_default
  4543. int
  4544. main ()
  4545. {
  4546. if ((size_t *) 0)
  4547. return 0;
  4548. if (sizeof (size_t))
  4549. return 0;
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. rm -f conftest.$ac_objext
  4555. if { (eval echo "$as_me:4940: \"$ac_compile\"") >&5
  4556. (eval $ac_compile) 2>&5
  4557. ac_status=$?
  4558. echo "$as_me:4943: \$? = $ac_status" >&5
  4559. (exit $ac_status); } &&
  4560. { ac_try='test -s conftest.$ac_objext'
  4561. { (eval echo "$as_me:4946: \"$ac_try\"") >&5
  4562. (eval $ac_try) 2>&5
  4563. ac_status=$?
  4564. echo "$as_me:4949: \$? = $ac_status" >&5
  4565. (exit $ac_status); }; }; then
  4566. ac_cv_type_size_t=yes
  4567. else
  4568. echo "$as_me: failed program was:" >&5
  4569. cat conftest.$ac_ext >&5
  4570. ac_cv_type_size_t=no
  4571. fi
  4572. rm -f conftest.$ac_objext conftest.$ac_ext
  4573. fi
  4574. echo "$as_me:4959: result: $ac_cv_type_size_t" >&5
  4575. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4576. if test $ac_cv_type_size_t = yes; then
  4577. :
  4578. else
  4579. cat >>confdefs.h <<EOF
  4580. #define size_t unsigned
  4581. EOF
  4582. fi
  4583. echo "$as_me:4971: checking return type of signal handlers" >&5
  4584. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4585. if test "${ac_cv_type_signal+set}" = set; then
  4586. echo $ECHO_N "(cached) $ECHO_C" >&6
  4587. else
  4588. cat >conftest.$ac_ext <<_ACEOF
  4589. #line 4977 "configure"
  4590. #include "confdefs.h"
  4591. #include <sys/types.h>
  4592. #include <signal.h>
  4593. #ifdef signal
  4594. # undef signal
  4595. #endif
  4596. #ifdef __cplusplus
  4597. extern "C" void (*signal (int, void (*)(int)))(int);
  4598. #else
  4599. void (*signal ()) ();
  4600. #endif
  4601. int
  4602. main ()
  4603. {
  4604. int i;
  4605. ;
  4606. return 0;
  4607. }
  4608. _ACEOF
  4609. rm -f conftest.$ac_objext
  4610. if { (eval echo "$as_me:4999: \"$ac_compile\"") >&5
  4611. (eval $ac_compile) 2>&5
  4612. ac_status=$?
  4613. echo "$as_me:5002: \$? = $ac_status" >&5
  4614. (exit $ac_status); } &&
  4615. { ac_try='test -s conftest.$ac_objext'
  4616. { (eval echo "$as_me:5005: \"$ac_try\"") >&5
  4617. (eval $ac_try) 2>&5
  4618. ac_status=$?
  4619. echo "$as_me:5008: \$? = $ac_status" >&5
  4620. (exit $ac_status); }; }; then
  4621. ac_cv_type_signal=void
  4622. else
  4623. echo "$as_me: failed program was:" >&5
  4624. cat conftest.$ac_ext >&5
  4625. ac_cv_type_signal=int
  4626. fi
  4627. rm -f conftest.$ac_objext conftest.$ac_ext
  4628. fi
  4629. echo "$as_me:5018: result: $ac_cv_type_signal" >&5
  4630. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4631. cat >>confdefs.h <<EOF
  4632. #define RETSIGTYPE $ac_cv_type_signal
  4633. EOF
  4634. echo "$as_me:5025: checking whether time.h and sys/time.h may both be included" >&5
  4635. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4636. if test "${ac_cv_header_time+set}" = set; then
  4637. echo $ECHO_N "(cached) $ECHO_C" >&6
  4638. else
  4639. cat >conftest.$ac_ext <<_ACEOF
  4640. #line 5031 "configure"
  4641. #include "confdefs.h"
  4642. #include <sys/types.h>
  4643. #include <sys/time.h>
  4644. #include <time.h>
  4645. int
  4646. main ()
  4647. {
  4648. if ((struct tm *) 0)
  4649. return 0;
  4650. ;
  4651. return 0;
  4652. }
  4653. _ACEOF
  4654. rm -f conftest.$ac_objext
  4655. if { (eval echo "$as_me:5047: \"$ac_compile\"") >&5
  4656. (eval $ac_compile) 2>&5
  4657. ac_status=$?
  4658. echo "$as_me:5050: \$? = $ac_status" >&5
  4659. (exit $ac_status); } &&
  4660. { ac_try='test -s conftest.$ac_objext'
  4661. { (eval echo "$as_me:5053: \"$ac_try\"") >&5
  4662. (eval $ac_try) 2>&5
  4663. ac_status=$?
  4664. echo "$as_me:5056: \$? = $ac_status" >&5
  4665. (exit $ac_status); }; }; then
  4666. ac_cv_header_time=yes
  4667. else
  4668. echo "$as_me: failed program was:" >&5
  4669. cat conftest.$ac_ext >&5
  4670. ac_cv_header_time=no
  4671. fi
  4672. rm -f conftest.$ac_objext conftest.$ac_ext
  4673. fi
  4674. echo "$as_me:5066: result: $ac_cv_header_time" >&5
  4675. echo "${ECHO_T}$ac_cv_header_time" >&6
  4676. if test $ac_cv_header_time = yes; then
  4677. cat >>confdefs.h <<\EOF
  4678. #define TIME_WITH_SYS_TIME 1
  4679. EOF
  4680. fi
  4681. echo "$as_me:5076: checking whether struct tm is in sys/time.h or time.h" >&5
  4682. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  4683. if test "${ac_cv_struct_tm+set}" = set; then
  4684. echo $ECHO_N "(cached) $ECHO_C" >&6
  4685. else
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. #line 5082 "configure"
  4688. #include "confdefs.h"
  4689. #include <sys/types.h>
  4690. #include <time.h>
  4691. int
  4692. main ()
  4693. {
  4694. struct tm *tp; tp->tm_sec;
  4695. ;
  4696. return 0;
  4697. }
  4698. _ACEOF
  4699. rm -f conftest.$ac_objext
  4700. if { (eval echo "$as_me:5096: \"$ac_compile\"") >&5
  4701. (eval $ac_compile) 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:5099: \$? = $ac_status" >&5
  4704. (exit $ac_status); } &&
  4705. { ac_try='test -s conftest.$ac_objext'
  4706. { (eval echo "$as_me:5102: \"$ac_try\"") >&5
  4707. (eval $ac_try) 2>&5
  4708. ac_status=$?
  4709. echo "$as_me:5105: \$? = $ac_status" >&5
  4710. (exit $ac_status); }; }; then
  4711. ac_cv_struct_tm=time.h
  4712. else
  4713. echo "$as_me: failed program was:" >&5
  4714. cat conftest.$ac_ext >&5
  4715. ac_cv_struct_tm=sys/time.h
  4716. fi
  4717. rm -f conftest.$ac_objext conftest.$ac_ext
  4718. fi
  4719. echo "$as_me:5115: result: $ac_cv_struct_tm" >&5
  4720. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  4721. if test $ac_cv_struct_tm = sys/time.h; then
  4722. cat >>confdefs.h <<\EOF
  4723. #define TM_IN_SYS_TIME 1
  4724. EOF
  4725. fi
  4726. echo "$as_me:5125: checking return type of signal handlers" >&5
  4727. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  4728. if test "${ac_cv_type_signal+set}" = set; then
  4729. echo $ECHO_N "(cached) $ECHO_C" >&6
  4730. else
  4731. cat >conftest.$ac_ext <<_ACEOF
  4732. #line 5131 "configure"
  4733. #include "confdefs.h"
  4734. #include <sys/types.h>
  4735. #include <signal.h>
  4736. #ifdef signal
  4737. # undef signal
  4738. #endif
  4739. #ifdef __cplusplus
  4740. extern "C" void (*signal (int, void (*)(int)))(int);
  4741. #else
  4742. void (*signal ()) ();
  4743. #endif
  4744. int
  4745. main ()
  4746. {
  4747. int i;
  4748. ;
  4749. return 0;
  4750. }
  4751. _ACEOF
  4752. rm -f conftest.$ac_objext
  4753. if { (eval echo "$as_me:5153: \"$ac_compile\"") >&5
  4754. (eval $ac_compile) 2>&5
  4755. ac_status=$?
  4756. echo "$as_me:5156: \$? = $ac_status" >&5
  4757. (exit $ac_status); } &&
  4758. { ac_try='test -s conftest.$ac_objext'
  4759. { (eval echo "$as_me:5159: \"$ac_try\"") >&5
  4760. (eval $ac_try) 2>&5
  4761. ac_status=$?
  4762. echo "$as_me:5162: \$? = $ac_status" >&5
  4763. (exit $ac_status); }; }; then
  4764. ac_cv_type_signal=void
  4765. else
  4766. echo "$as_me: failed program was:" >&5
  4767. cat conftest.$ac_ext >&5
  4768. ac_cv_type_signal=int
  4769. fi
  4770. rm -f conftest.$ac_objext conftest.$ac_ext
  4771. fi
  4772. echo "$as_me:5172: result: $ac_cv_type_signal" >&5
  4773. echo "${ECHO_T}$ac_cv_type_signal" >&6
  4774. cat >>confdefs.h <<EOF
  4775. #define RETSIGTYPE $ac_cv_type_signal
  4776. EOF
  4777. echo "$as_me:5179: checking for unix98 socklen_t" >&5
  4778. echo $ECHO_N "checking for unix98 socklen_t... $ECHO_C" >&6
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. #line 5182 "configure"
  4781. #include "confdefs.h"
  4782. #include <sys/types.h>
  4783. #include <sys/socket.h>
  4784. int
  4785. main ()
  4786. {
  4787. typedef socklen_t int;
  4788. int apan (void) {return 1;}
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. rm -f conftest.$ac_objext
  4794. if { (eval echo "$as_me:5196: \"$ac_compile\"") >&5
  4795. (eval $ac_compile) 2>&5
  4796. ac_status=$?
  4797. echo "$as_me:5199: \$? = $ac_status" >&5
  4798. (exit $ac_status); } &&
  4799. { ac_try='test -s conftest.$ac_objext'
  4800. { (eval echo "$as_me:5202: \"$ac_try\"") >&5
  4801. (eval $ac_try) 2>&5
  4802. ac_status=$?
  4803. echo "$as_me:5205: \$? = $ac_status" >&5
  4804. (exit $ac_status); }; }; then
  4805. echo "$as_me:5207: result: yeah" >&5
  4806. echo "${ECHO_T}yeah" >&6
  4807. HAVE_SOCKLEN_T=yes
  4808. else
  4809. echo "$as_me: failed program was:" >&5
  4810. cat conftest.$ac_ext >&5
  4811. echo "$as_me:5213: result: nah" >&5
  4812. echo "${ECHO_T}nah" >&6
  4813. HAVE_SOCKLEN_T=no
  4814. fi
  4815. rm -f conftest.$ac_objext conftest.$ac_ext
  4816. if test ${HAVE_SOCKLEN_T} = yes ;then
  4817. cat >>confdefs.h <<\EOF
  4818. #define HAVE_SOCKLEN_T 1
  4819. EOF
  4820. fi
  4821. for ac_func in strftime
  4822. do
  4823. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4824. echo "$as_me:5229: checking for $ac_func" >&5
  4825. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4826. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4827. echo $ECHO_N "(cached) $ECHO_C" >&6
  4828. else
  4829. cat >conftest.$ac_ext <<_ACEOF
  4830. #line 5235 "configure"
  4831. #include "confdefs.h"
  4832. /* System header to define __stub macros and hopefully few prototypes,
  4833. which can conflict with char $ac_func (); below. */
  4834. #include <assert.h>
  4835. /* Override any gcc2 internal prototype to avoid an error. */
  4836. #ifdef __cplusplus
  4837. extern "C"
  4838. #endif
  4839. /* We use char because int might match the return type of a gcc2
  4840. builtin and then its argument prototype would still apply. */
  4841. char $ac_func ();
  4842. char (*f) ();
  4843. int
  4844. main ()
  4845. {
  4846. /* The GNU C library defines this for functions which it implements
  4847. to always fail with ENOSYS. Some functions are actually named
  4848. something starting with __ and the normal name is an alias. */
  4849. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4850. choke me
  4851. #else
  4852. f = $ac_func;
  4853. #endif
  4854. ;
  4855. return 0;
  4856. }
  4857. _ACEOF
  4858. rm -f conftest.$ac_objext conftest$ac_exeext
  4859. if { (eval echo "$as_me:5266: \"$ac_link\"") >&5
  4860. (eval $ac_link) 2>&5
  4861. ac_status=$?
  4862. echo "$as_me:5269: \$? = $ac_status" >&5
  4863. (exit $ac_status); } &&
  4864. { ac_try='test -s conftest$ac_exeext'
  4865. { (eval echo "$as_me:5272: \"$ac_try\"") >&5
  4866. (eval $ac_try) 2>&5
  4867. ac_status=$?
  4868. echo "$as_me:5275: \$? = $ac_status" >&5
  4869. (exit $ac_status); }; }; then
  4870. eval "$as_ac_var=yes"
  4871. else
  4872. echo "$as_me: failed program was:" >&5
  4873. cat conftest.$ac_ext >&5
  4874. eval "$as_ac_var=no"
  4875. fi
  4876. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4877. fi
  4878. echo "$as_me:5285: result: `eval echo '${'$as_ac_var'}'`" >&5
  4879. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4880. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4881. cat >>confdefs.h <<EOF
  4882. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4883. EOF
  4884. else
  4885. # strftime is in -lintl on SCO UNIX.
  4886. echo "$as_me:5294: checking for strftime in -lintl" >&5
  4887. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  4888. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  4889. echo $ECHO_N "(cached) $ECHO_C" >&6
  4890. else
  4891. ac_check_lib_save_LIBS=$LIBS
  4892. LIBS="-lintl $LIBS"
  4893. cat >conftest.$ac_ext <<_ACEOF
  4894. #line 5302 "configure"
  4895. #include "confdefs.h"
  4896. /* Override any gcc2 internal prototype to avoid an error. */
  4897. #ifdef __cplusplus
  4898. extern "C"
  4899. #endif
  4900. /* We use char because int might match the return type of a gcc2
  4901. builtin and then its argument prototype would still apply. */
  4902. char strftime ();
  4903. int
  4904. main ()
  4905. {
  4906. strftime ();
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. rm -f conftest.$ac_objext conftest$ac_exeext
  4912. if { (eval echo "$as_me:5321: \"$ac_link\"") >&5
  4913. (eval $ac_link) 2>&5
  4914. ac_status=$?
  4915. echo "$as_me:5324: \$? = $ac_status" >&5
  4916. (exit $ac_status); } &&
  4917. { ac_try='test -s conftest$ac_exeext'
  4918. { (eval echo "$as_me:5327: \"$ac_try\"") >&5
  4919. (eval $ac_try) 2>&5
  4920. ac_status=$?
  4921. echo "$as_me:5330: \$? = $ac_status" >&5
  4922. (exit $ac_status); }; }; then
  4923. ac_cv_lib_intl_strftime=yes
  4924. else
  4925. echo "$as_me: failed program was:" >&5
  4926. cat conftest.$ac_ext >&5
  4927. ac_cv_lib_intl_strftime=no
  4928. fi
  4929. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4930. LIBS=$ac_check_lib_save_LIBS
  4931. fi
  4932. echo "$as_me:5341: result: $ac_cv_lib_intl_strftime" >&5
  4933. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  4934. if test $ac_cv_lib_intl_strftime = yes; then
  4935. cat >>confdefs.h <<\EOF
  4936. #define HAVE_STRFTIME 1
  4937. EOF
  4938. LIBS="-lintl $LIBS"
  4939. fi
  4940. fi
  4941. done
  4942. for ac_func in vprintf
  4943. do
  4944. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4945. echo "$as_me:5357: checking for $ac_func" >&5
  4946. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4947. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4948. echo $ECHO_N "(cached) $ECHO_C" >&6
  4949. else
  4950. cat >conftest.$ac_ext <<_ACEOF
  4951. #line 5363 "configure"
  4952. #include "confdefs.h"
  4953. /* System header to define __stub macros and hopefully few prototypes,
  4954. which can conflict with char $ac_func (); below. */
  4955. #include <assert.h>
  4956. /* Override any gcc2 internal prototype to avoid an error. */
  4957. #ifdef __cplusplus
  4958. extern "C"
  4959. #endif
  4960. /* We use char because int might match the return type of a gcc2
  4961. builtin and then its argument prototype would still apply. */
  4962. char $ac_func ();
  4963. char (*f) ();
  4964. int
  4965. main ()
  4966. {
  4967. /* The GNU C library defines this for functions which it implements
  4968. to always fail with ENOSYS. Some functions are actually named
  4969. something starting with __ and the normal name is an alias. */
  4970. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4971. choke me
  4972. #else
  4973. f = $ac_func;
  4974. #endif
  4975. ;
  4976. return 0;
  4977. }
  4978. _ACEOF
  4979. rm -f conftest.$ac_objext conftest$ac_exeext
  4980. if { (eval echo "$as_me:5394: \"$ac_link\"") >&5
  4981. (eval $ac_link) 2>&5
  4982. ac_status=$?
  4983. echo "$as_me:5397: \$? = $ac_status" >&5
  4984. (exit $ac_status); } &&
  4985. { ac_try='test -s conftest$ac_exeext'
  4986. { (eval echo "$as_me:5400: \"$ac_try\"") >&5
  4987. (eval $ac_try) 2>&5
  4988. ac_status=$?
  4989. echo "$as_me:5403: \$? = $ac_status" >&5
  4990. (exit $ac_status); }; }; then
  4991. eval "$as_ac_var=yes"
  4992. else
  4993. echo "$as_me: failed program was:" >&5
  4994. cat conftest.$ac_ext >&5
  4995. eval "$as_ac_var=no"
  4996. fi
  4997. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4998. fi
  4999. echo "$as_me:5413: result: `eval echo '${'$as_ac_var'}'`" >&5
  5000. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5001. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5002. cat >>confdefs.h <<EOF
  5003. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5004. EOF
  5005. echo "$as_me:5420: checking for _doprnt" >&5
  5006. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  5007. if test "${ac_cv_func__doprnt+set}" = set; then
  5008. echo $ECHO_N "(cached) $ECHO_C" >&6
  5009. else
  5010. cat >conftest.$ac_ext <<_ACEOF
  5011. #line 5426 "configure"
  5012. #include "confdefs.h"
  5013. /* System header to define __stub macros and hopefully few prototypes,
  5014. which can conflict with char _doprnt (); below. */
  5015. #include <assert.h>
  5016. /* Override any gcc2 internal prototype to avoid an error. */
  5017. #ifdef __cplusplus
  5018. extern "C"
  5019. #endif
  5020. /* We use char because int might match the return type of a gcc2
  5021. builtin and then its argument prototype would still apply. */
  5022. char _doprnt ();
  5023. char (*f) ();
  5024. int
  5025. main ()
  5026. {
  5027. /* The GNU C library defines this for functions which it implements
  5028. to always fail with ENOSYS. Some functions are actually named
  5029. something starting with __ and the normal name is an alias. */
  5030. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  5031. choke me
  5032. #else
  5033. f = _doprnt;
  5034. #endif
  5035. ;
  5036. return 0;
  5037. }
  5038. _ACEOF
  5039. rm -f conftest.$ac_objext conftest$ac_exeext
  5040. if { (eval echo "$as_me:5457: \"$ac_link\"") >&5
  5041. (eval $ac_link) 2>&5
  5042. ac_status=$?
  5043. echo "$as_me:5460: \$? = $ac_status" >&5
  5044. (exit $ac_status); } &&
  5045. { ac_try='test -s conftest$ac_exeext'
  5046. { (eval echo "$as_me:5463: \"$ac_try\"") >&5
  5047. (eval $ac_try) 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:5466: \$? = $ac_status" >&5
  5050. (exit $ac_status); }; }; then
  5051. ac_cv_func__doprnt=yes
  5052. else
  5053. echo "$as_me: failed program was:" >&5
  5054. cat conftest.$ac_ext >&5
  5055. ac_cv_func__doprnt=no
  5056. fi
  5057. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5058. fi
  5059. echo "$as_me:5476: result: $ac_cv_func__doprnt" >&5
  5060. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  5061. if test $ac_cv_func__doprnt = yes; then
  5062. cat >>confdefs.h <<\EOF
  5063. #define HAVE_DOPRNT 1
  5064. EOF
  5065. fi
  5066. fi
  5067. done
  5068. for ac_func in gettimeofday strstr snprintf vsnprintf rename setpgid basename setsockopt gethostbyname_r gethostbyaddr_r getrlimit setrlimit umask inet_addr inet_aton localtime_r select pthread_attr_setstacksize inet_ntoa mcheck mallinfo mtrace sigaction pthread_sigmask lseek
  5069. do
  5070. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5071. echo "$as_me:5492: checking for $ac_func" >&5
  5072. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5073. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5074. echo $ECHO_N "(cached) $ECHO_C" >&6
  5075. else
  5076. cat >conftest.$ac_ext <<_ACEOF
  5077. #line 5498 "configure"
  5078. #include "confdefs.h"
  5079. /* System header to define __stub macros and hopefully few prototypes,
  5080. which can conflict with char $ac_func (); below. */
  5081. #include <assert.h>
  5082. /* Override any gcc2 internal prototype to avoid an error. */
  5083. #ifdef __cplusplus
  5084. extern "C"
  5085. #endif
  5086. /* We use char because int might match the return type of a gcc2
  5087. builtin and then its argument prototype would still apply. */
  5088. char $ac_func ();
  5089. char (*f) ();
  5090. int
  5091. main ()
  5092. {
  5093. /* The GNU C library defines this for functions which it implements
  5094. to always fail with ENOSYS. Some functions are actually named
  5095. something starting with __ and the normal name is an alias. */
  5096. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5097. choke me
  5098. #else
  5099. f = $ac_func;
  5100. #endif
  5101. ;
  5102. return 0;
  5103. }
  5104. _ACEOF
  5105. rm -f conftest.$ac_objext conftest$ac_exeext
  5106. if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
  5107. (eval $ac_link) 2>&5
  5108. ac_status=$?
  5109. echo "$as_me:5532: \$? = $ac_status" >&5
  5110. (exit $ac_status); } &&
  5111. { ac_try='test -s conftest$ac_exeext'
  5112. { (eval echo "$as_me:5535: \"$ac_try\"") >&5
  5113. (eval $ac_try) 2>&5
  5114. ac_status=$?
  5115. echo "$as_me:5538: \$? = $ac_status" >&5
  5116. (exit $ac_status); }; }; then
  5117. eval "$as_ac_var=yes"
  5118. else
  5119. echo "$as_me: failed program was:" >&5
  5120. cat conftest.$ac_ext >&5
  5121. eval "$as_ac_var=no"
  5122. fi
  5123. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5124. fi
  5125. echo "$as_me:5548: result: `eval echo '${'$as_ac_var'}'`" >&5
  5126. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5127. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5128. cat >>confdefs.h <<EOF
  5129. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5130. EOF
  5131. fi
  5132. done
  5133. echo "$as_me:5558: checking if libm is bundled with some lib we're already linking" >&5
  5134. echo $ECHO_N "checking if libm is bundled with some lib we're already linking... $ECHO_C" >&6
  5135. cat >conftest.$ac_ext <<_ACEOF
  5136. #line 5561 "configure"
  5137. #include "confdefs.h"
  5138. int
  5139. main ()
  5140. {
  5141. sin(1);
  5142. ;
  5143. return 0;
  5144. }
  5145. _ACEOF
  5146. rm -f conftest.$ac_objext conftest$ac_exeext
  5147. if { (eval echo "$as_me:5573: \"$ac_link\"") >&5
  5148. (eval $ac_link) 2>&5
  5149. ac_status=$?
  5150. echo "$as_me:5576: \$? = $ac_status" >&5
  5151. (exit $ac_status); } &&
  5152. { ac_try='test -s conftest$ac_exeext'
  5153. { (eval echo "$as_me:5579: \"$ac_try\"") >&5
  5154. (eval $ac_try) 2>&5
  5155. ac_status=$?
  5156. echo "$as_me:5582: \$? = $ac_status" >&5
  5157. (exit $ac_status); }; }; then
  5158. echo "$as_me:5584: result: yes" >&5
  5159. echo "${ECHO_T}yes" >&6;LDLAGS=""
  5160. else
  5161. echo "$as_me: failed program was:" >&5
  5162. cat conftest.$ac_ext >&5
  5163. echo "$as_me:5589: result: no" >&5
  5164. echo "${ECHO_T}no" >&6;LDFLAGS="-lm"
  5165. fi
  5166. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5167. ac_config_files="$ac_config_files Makefile src/Makefile conf/Makefile conf/ntripcaster.conf.dist"
  5168. cat >confcache <<\_ACEOF
  5169. # This file is a shell script that caches the results of configure
  5170. # tests run on this system so they can be shared between configure
  5171. # scripts and configure runs, see configure's option --config-cache.
  5172. # It is not useful on other systems. If it contains results you don't
  5173. # want to keep, you may remove or edit it.
  5174. #
  5175. # config.status only pays attention to the cache file if you give it
  5176. # the --recheck option to rerun configure.
  5177. #
  5178. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  5179. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5180. # following values.
  5181. _ACEOF
  5182. # The following way of writing the cache mishandles newlines in values,
  5183. # but we know of no workaround that is simple, portable, and efficient.
  5184. # So, don't put newlines in cache variables' values.
  5185. # Ultrix sh set writes to stderr and can't be redirected directly,
  5186. # and sets the high bit in the cache file unless we assign to the vars.
  5187. {
  5188. (set) 2>&1 |
  5189. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5190. *ac_space=\ *)
  5191. # `set' does not quote correctly, so add quotes (double-quote
  5192. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5193. sed -n \
  5194. "s/'/'\\\\''/g;
  5195. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5196. ;;
  5197. *)
  5198. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5199. sed -n \
  5200. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5201. ;;
  5202. esac;
  5203. } |
  5204. sed '
  5205. t clear
  5206. : clear
  5207. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5208. t end
  5209. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5210. : end' >>confcache
  5211. if cmp -s $cache_file confcache; then :; else
  5212. if test -w $cache_file; then
  5213. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5214. cat confcache >$cache_file
  5215. else
  5216. echo "not updating unwritable cache $cache_file"
  5217. fi
  5218. fi
  5219. rm -f confcache
  5220. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5221. # Let make expand exec_prefix.
  5222. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5223. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5224. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5225. # trailing colons and then remove the whole line if VPATH becomes empty
  5226. # (actually we leave an empty line to preserve line numbers).
  5227. if test "x$srcdir" = x.; then
  5228. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5229. s/:*\$(srcdir):*/:/;
  5230. s/:*\${srcdir}:*/:/;
  5231. s/:*@srcdir@:*/:/;
  5232. s/^\([^=]*=[ ]*\):*/\1/;
  5233. s/:*$//;
  5234. s/^[^=]*=[ ]*$//;
  5235. }'
  5236. fi
  5237. DEFS=-DHAVE_CONFIG_H
  5238. : ${CONFIG_STATUS=./config.status}
  5239. ac_clean_files_save=$ac_clean_files
  5240. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5241. { echo "$as_me:5674: creating $CONFIG_STATUS" >&5
  5242. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5243. cat >$CONFIG_STATUS <<_ACEOF
  5244. #! $SHELL
  5245. # Generated automatically by configure.
  5246. # Run this file to recreate the current configuration.
  5247. # Compiler output produced by configure, useful for debugging
  5248. # configure, is in config.log if it exists.
  5249. debug=false
  5250. SHELL=\${CONFIG_SHELL-$SHELL}
  5251. ac_cs_invocation="\$0 \$@"
  5252. _ACEOF
  5253. cat >>$CONFIG_STATUS <<\_ACEOF
  5254. # Be Bourne compatible
  5255. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5256. emulate sh
  5257. NULLCMD=:
  5258. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  5259. set -o posix
  5260. fi
  5261. # Name of the executable.
  5262. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  5263. if expr a : '\(a\)' >/dev/null 2>&1; then
  5264. as_expr=expr
  5265. else
  5266. as_expr=false
  5267. fi
  5268. rm -f conf$$ conf$$.exe conf$$.file
  5269. echo >conf$$.file
  5270. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5271. # We could just check for DJGPP; but this test a) works b) is more generic
  5272. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  5273. if test -f conf$$.exe; then
  5274. # Don't use ln at all; we don't have any links
  5275. as_ln_s='cp -p'
  5276. else
  5277. as_ln_s='ln -s'
  5278. fi
  5279. elif ln conf$$.file conf$$ 2>/dev/null; then
  5280. as_ln_s=ln
  5281. else
  5282. as_ln_s='cp -p'
  5283. fi
  5284. rm -f conf$$ conf$$.exe conf$$.file
  5285. as_executable_p="test -f"
  5286. # Support unset when possible.
  5287. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  5288. as_unset=unset
  5289. else
  5290. as_unset=false
  5291. fi
  5292. # NLS nuisances.
  5293. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  5294. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  5295. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  5296. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  5297. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  5298. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  5299. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  5300. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  5301. # IFS
  5302. # We need space, tab and new line, in precisely that order.
  5303. as_nl='
  5304. '
  5305. IFS=" $as_nl"
  5306. # CDPATH.
  5307. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  5308. exec 6>&1
  5309. _ACEOF
  5310. # Files that config.status was made for.
  5311. if test -n "$ac_config_files"; then
  5312. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  5313. fi
  5314. if test -n "$ac_config_headers"; then
  5315. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  5316. fi
  5317. if test -n "$ac_config_links"; then
  5318. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  5319. fi
  5320. if test -n "$ac_config_commands"; then
  5321. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  5322. fi
  5323. cat >>$CONFIG_STATUS <<\EOF
  5324. ac_cs_usage="\
  5325. \`$as_me' instantiates files from templates according to the
  5326. current configuration.
  5327. Usage: $0 [OPTIONS] [FILE]...
  5328. -h, --help print this help, then exit
  5329. -V, --version print version number, then exit
  5330. -d, --debug don't remove temporary files
  5331. --recheck update $as_me by reconfiguring in the same conditions
  5332. --file=FILE[:TEMPLATE]
  5333. instantiate the configuration file FILE
  5334. --header=FILE[:TEMPLATE]
  5335. instantiate the configuration header FILE
  5336. Configuration files:
  5337. $config_files
  5338. Configuration headers:
  5339. $config_headers
  5340. Configuration commands:
  5341. $config_commands
  5342. Report bugs to <[email protected]>."
  5343. EOF
  5344. cat >>$CONFIG_STATUS <<EOF
  5345. ac_cs_version="\\
  5346. config.status
  5347. configured by $0, generated by GNU Autoconf 2.52,
  5348. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5349. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  5350. Free Software Foundation, Inc.
  5351. This config.status script is free software; the Free Software Foundation
  5352. gives unlimited permission to copy, distribute and modify it."
  5353. srcdir=$srcdir
  5354. INSTALL="$INSTALL"
  5355. EOF
  5356. cat >>$CONFIG_STATUS <<\EOF
  5357. # If no file are specified by the user, then we need to provide default
  5358. # value. By we need to know if files were specified by the user.
  5359. ac_need_defaults=:
  5360. while test $# != 0
  5361. do
  5362. case $1 in
  5363. --*=*)
  5364. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5365. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5366. shift
  5367. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  5368. shift
  5369. ;;
  5370. -*);;
  5371. *) # This is not an option, so the user has probably given explicit
  5372. # arguments.
  5373. ac_need_defaults=false;;
  5374. esac
  5375. case $1 in
  5376. # Handling of the options.
  5377. EOF
  5378. cat >>$CONFIG_STATUS <<EOF
  5379. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5380. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  5381. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  5382. EOF
  5383. cat >>$CONFIG_STATUS <<\EOF
  5384. --version | --vers* | -V )
  5385. echo "$ac_cs_version"; exit 0 ;;
  5386. --he | --h)
  5387. # Conflict between --help and --header
  5388. { { echo "$as_me:5850: error: ambiguous option: $1
  5389. Try \`$0 --help' for more information." >&5
  5390. echo "$as_me: error: ambiguous option: $1
  5391. Try \`$0 --help' for more information." >&2;}
  5392. { (exit 1); exit 1; }; };;
  5393. --help | --hel | -h )
  5394. echo "$ac_cs_usage"; exit 0 ;;
  5395. --debug | --d* | -d )
  5396. debug=: ;;
  5397. --file | --fil | --fi | --f )
  5398. shift
  5399. CONFIG_FILES="$CONFIG_FILES $1"
  5400. ac_need_defaults=false;;
  5401. --header | --heade | --head | --hea )
  5402. shift
  5403. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  5404. ac_need_defaults=false;;
  5405. # This is an error.
  5406. -*) { { echo "$as_me:5869: error: unrecognized option: $1
  5407. Try \`$0 --help' for more information." >&5
  5408. echo "$as_me: error: unrecognized option: $1
  5409. Try \`$0 --help' for more information." >&2;}
  5410. { (exit 1); exit 1; }; } ;;
  5411. *) ac_config_targets="$ac_config_targets $1" ;;
  5412. esac
  5413. shift
  5414. done
  5415. exec 5>>config.log
  5416. cat >&5 << _ACEOF
  5417. ## ----------------------- ##
  5418. ## Running config.status. ##
  5419. ## ----------------------- ##
  5420. This file was extended by $as_me 2.52, executed with
  5421. CONFIG_FILES = $CONFIG_FILES
  5422. CONFIG_HEADERS = $CONFIG_HEADERS
  5423. CONFIG_LINKS = $CONFIG_LINKS
  5424. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5425. > $ac_cs_invocation
  5426. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5427. _ACEOF
  5428. EOF
  5429. cat >>$CONFIG_STATUS <<EOF
  5430. #
  5431. # INIT-COMMANDS section.
  5432. #
  5433. EOF
  5434. cat >>$CONFIG_STATUS <<\EOF
  5435. for ac_config_target in $ac_config_targets
  5436. do
  5437. case "$ac_config_target" in
  5438. # Handling of arguments.
  5439. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5440. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5441. "conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
  5442. "conf/ntripcaster.conf.dist" ) CONFIG_FILES="$CONFIG_FILES conf/ntripcaster.conf.dist" ;;
  5443. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  5444. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5445. *) { { echo "$as_me:5917: error: invalid argument: $ac_config_target" >&5
  5446. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5447. { (exit 1); exit 1; }; };;
  5448. esac
  5449. done
  5450. # If the user did not use the arguments to specify the items to instantiate,
  5451. # then the envvar interface is used. Set only those that are not.
  5452. # We use the long form for the default assignment because of an extremely
  5453. # bizarre bug on SunOS 4.1.3.
  5454. if $ac_need_defaults; then
  5455. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5456. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5457. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5458. fi
  5459. # Create a temporary directory, and hook for its removal unless debugging.
  5460. $debug ||
  5461. {
  5462. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5463. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5464. }
  5465. # Create a (secure) tmp directory for tmp files.
  5466. : ${TMPDIR=/tmp}
  5467. {
  5468. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  5469. test -n "$tmp" && test -d "$tmp"
  5470. } ||
  5471. {
  5472. tmp=$TMPDIR/cs$$-$RANDOM
  5473. (umask 077 && mkdir $tmp)
  5474. } ||
  5475. {
  5476. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  5477. { (exit 1); exit 1; }
  5478. }
  5479. EOF
  5480. cat >>$CONFIG_STATUS <<EOF
  5481. #
  5482. # CONFIG_FILES section.
  5483. #
  5484. # No need to generate the scripts if there are no CONFIG_FILES.
  5485. # This happens for instance when ./config.status config.h
  5486. if test -n "\$CONFIG_FILES"; then
  5487. # Protect against being on the right side of a sed subst in config.status.
  5488. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5489. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5490. s,@SHELL@,$SHELL,;t t
  5491. s,@exec_prefix@,$exec_prefix,;t t
  5492. s,@prefix@,$prefix,;t t
  5493. s,@program_transform_name@,$program_transform_name,;t t
  5494. s,@bindir@,$bindir,;t t
  5495. s,@sbindir@,$sbindir,;t t
  5496. s,@libexecdir@,$libexecdir,;t t
  5497. s,@datadir@,$datadir,;t t
  5498. s,@sysconfdir@,$sysconfdir,;t t
  5499. s,@sharedstatedir@,$sharedstatedir,;t t
  5500. s,@localstatedir@,$localstatedir,;t t
  5501. s,@libdir@,$libdir,;t t
  5502. s,@includedir@,$includedir,;t t
  5503. s,@oldincludedir@,$oldincludedir,;t t
  5504. s,@infodir@,$infodir,;t t
  5505. s,@mandir@,$mandir,;t t
  5506. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5507. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5508. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5509. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5510. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5511. s,@build_alias@,$build_alias,;t t
  5512. s,@host_alias@,$host_alias,;t t
  5513. s,@target_alias@,$target_alias,;t t
  5514. s,@ECHO_C@,$ECHO_C,;t t
  5515. s,@ECHO_N@,$ECHO_N,;t t
  5516. s,@ECHO_T@,$ECHO_T,;t t
  5517. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5518. s,@DEFS@,$DEFS,;t t
  5519. s,@LIBS@,$LIBS,;t t
  5520. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  5521. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  5522. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  5523. s,@PACKAGE@,$PACKAGE,;t t
  5524. s,@VERSION@,$VERSION,;t t
  5525. s,@ACLOCAL@,$ACLOCAL,;t t
  5526. s,@AUTOCONF@,$AUTOCONF,;t t
  5527. s,@AUTOMAKE@,$AUTOMAKE,;t t
  5528. s,@AUTOHEADER@,$AUTOHEADER,;t t
  5529. s,@MAKEINFO@,$MAKEINFO,;t t
  5530. s,@SET_MAKE@,$SET_MAKE,;t t
  5531. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  5532. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  5533. s,@MAINT@,$MAINT,;t t
  5534. s,@NTRIPCASTER_BINDIR@,$NTRIPCASTER_BINDIR,;t t
  5535. s,@NTRIPCASTER_ETCDIR_INST@,$NTRIPCASTER_ETCDIR_INST,;t t
  5536. s,@NTRIPCASTER_LOGDIR_INST@,$NTRIPCASTER_LOGDIR_INST,;t t
  5537. s,@NTRIPCASTER_ETCDIR@,$NTRIPCASTER_ETCDIR,;t t
  5538. s,@NTRIPCASTER_LOGDIR@,$NTRIPCASTER_LOGDIR,;t t
  5539. s,@RANLIB@,$RANLIB,;t t
  5540. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  5541. s,@CC@,$CC,;t t
  5542. s,@CFLAGS@,$CFLAGS,;t t
  5543. s,@LDFLAGS@,$LDFLAGS,;t t
  5544. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5545. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5546. s,@EXEEXT@,$EXEEXT,;t t
  5547. s,@OBJEXT@,$OBJEXT,;t t
  5548. s,@UNAME@,$UNAME,;t t
  5549. s,@CPP@,$CPP,;t t
  5550. s,@WRAPLIBS@,$WRAPLIBS,;t t
  5551. s,@WRAPINCLUDES@,$WRAPINCLUDES,;t t
  5552. s,@CRYPTLIB@,$CRYPTLIB,;t t
  5553. s,@THREADLIBS@,$THREADLIBS,;t t
  5554. CEOF
  5555. EOF
  5556. cat >>$CONFIG_STATUS <<\EOF
  5557. # Split the substitutions into bite-sized pieces for seds with
  5558. # small command number limits, like on Digital OSF/1 and HP-UX.
  5559. ac_max_sed_lines=48
  5560. ac_sed_frag=1 # Number of current file.
  5561. ac_beg=1 # First line for current file.
  5562. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5563. ac_more_lines=:
  5564. ac_sed_cmds=
  5565. while $ac_more_lines; do
  5566. if test $ac_beg -gt 1; then
  5567. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5568. else
  5569. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5570. fi
  5571. if test ! -s $tmp/subs.frag; then
  5572. ac_more_lines=false
  5573. else
  5574. # The purpose of the label and of the branching condition is to
  5575. # speed up the sed processing (if there are no `@' at all, there
  5576. # is no need to browse any of the substitutions).
  5577. # These are the two extra sed commands mentioned above.
  5578. (echo ':t
  5579. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5580. if test -z "$ac_sed_cmds"; then
  5581. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5582. else
  5583. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5584. fi
  5585. ac_sed_frag=`expr $ac_sed_frag + 1`
  5586. ac_beg=$ac_end
  5587. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5588. fi
  5589. done
  5590. if test -z "$ac_sed_cmds"; then
  5591. ac_sed_cmds=cat
  5592. fi
  5593. fi # test -n "$CONFIG_FILES"
  5594. EOF
  5595. cat >>$CONFIG_STATUS <<\EOF
  5596. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5597. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5598. case $ac_file in
  5599. - | *:- | *:-:* ) # input from stdin
  5600. cat >$tmp/stdin
  5601. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5602. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5603. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5604. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5605. * ) ac_file_in=$ac_file.in ;;
  5606. esac
  5607. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5608. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5609. X"$ac_file" : 'X\(//\)[^/]' \| \
  5610. X"$ac_file" : 'X\(//\)$' \| \
  5611. X"$ac_file" : 'X\(/\)' \| \
  5612. . : '\(.\)' 2>/dev/null ||
  5613. echo X"$ac_file" |
  5614. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5615. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5616. /^X\(\/\/\)$/{ s//\1/; q; }
  5617. /^X\(\/\).*/{ s//\1/; q; }
  5618. s/.*/./; q'`
  5619. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5620. { case "$ac_dir" in
  5621. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  5622. *) as_incr_dir=.;;
  5623. esac
  5624. as_dummy="$ac_dir"
  5625. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  5626. case $as_mkdir_dir in
  5627. # Skip DOS drivespec
  5628. ?:) as_incr_dir=$as_mkdir_dir ;;
  5629. *)
  5630. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  5631. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  5632. ;;
  5633. esac
  5634. done; }
  5635. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  5636. # A "../" for each directory in $ac_dir_suffix.
  5637. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  5638. else
  5639. ac_dir_suffix= ac_dots=
  5640. fi
  5641. case $srcdir in
  5642. .) ac_srcdir=.
  5643. if test -z "$ac_dots"; then
  5644. ac_top_srcdir=.
  5645. else
  5646. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  5647. fi ;;
  5648. [\\/]* | ?:[\\/]* )
  5649. ac_srcdir=$srcdir$ac_dir_suffix;
  5650. ac_top_srcdir=$srcdir ;;
  5651. *) # Relative path.
  5652. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  5653. ac_top_srcdir=$ac_dots$srcdir ;;
  5654. esac
  5655. case $INSTALL in
  5656. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5657. *) ac_INSTALL=$ac_dots$INSTALL ;;
  5658. esac
  5659. if test x"$ac_file" != x-; then
  5660. { echo "$as_me:6147: creating $ac_file" >&5
  5661. echo "$as_me: creating $ac_file" >&6;}
  5662. rm -f "$ac_file"
  5663. fi
  5664. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5665. # use $as_me), people would be surprised to read:
  5666. # /* config.h. Generated automatically by config.status. */
  5667. configure_input="Generated automatically from `echo $ac_file_in |
  5668. sed 's,.*/,,'` by configure."
  5669. # First look for the input files in the build tree, otherwise in the
  5670. # src tree.
  5671. ac_file_inputs=`IFS=:
  5672. for f in $ac_file_in; do
  5673. case $f in
  5674. -) echo $tmp/stdin ;;
  5675. [\\/$]*)
  5676. # Absolute (can't be DOS-style, as IFS=:)
  5677. test -f "$f" || { { echo "$as_me:6165: error: cannot find input file: $f" >&5
  5678. echo "$as_me: error: cannot find input file: $f" >&2;}
  5679. { (exit 1); exit 1; }; }
  5680. echo $f;;
  5681. *) # Relative
  5682. if test -f "$f"; then
  5683. # Build tree
  5684. echo $f
  5685. elif test -f "$srcdir/$f"; then
  5686. # Source tree
  5687. echo $srcdir/$f
  5688. else
  5689. # /dev/null tree
  5690. { { echo "$as_me:6178: error: cannot find input file: $f" >&5
  5691. echo "$as_me: error: cannot find input file: $f" >&2;}
  5692. { (exit 1); exit 1; }; }
  5693. fi;;
  5694. esac
  5695. done` || { (exit 1); exit 1; }
  5696. EOF
  5697. cat >>$CONFIG_STATUS <<EOF
  5698. sed "$ac_vpsub
  5699. $extrasub
  5700. EOF
  5701. cat >>$CONFIG_STATUS <<\EOF
  5702. :t
  5703. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5704. s,@configure_input@,$configure_input,;t t
  5705. s,@srcdir@,$ac_srcdir,;t t
  5706. s,@top_srcdir@,$ac_top_srcdir,;t t
  5707. s,@INSTALL@,$ac_INSTALL,;t t
  5708. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5709. rm -f $tmp/stdin
  5710. if test x"$ac_file" != x-; then
  5711. mv $tmp/out $ac_file
  5712. else
  5713. cat $tmp/out
  5714. rm -f $tmp/out
  5715. fi
  5716. done
  5717. EOF
  5718. cat >>$CONFIG_STATUS <<\EOF
  5719. #
  5720. # CONFIG_HEADER section.
  5721. #
  5722. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5723. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5724. #
  5725. # ac_d sets the value in "#define NAME VALUE" lines.
  5726. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  5727. ac_dB='[ ].*$,\1#\2'
  5728. ac_dC=' '
  5729. ac_dD=',;t'
  5730. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5731. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  5732. ac_uB='$,\1#\2define\3'
  5733. ac_uC=' '
  5734. ac_uD=',;t'
  5735. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  5736. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5737. case $ac_file in
  5738. - | *:- | *:-:* ) # input from stdin
  5739. cat >$tmp/stdin
  5740. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5741. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5742. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5743. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5744. * ) ac_file_in=$ac_file.in ;;
  5745. esac
  5746. test x"$ac_file" != x- && { echo "$as_me:6239: creating $ac_file" >&5
  5747. echo "$as_me: creating $ac_file" >&6;}
  5748. # First look for the input files in the build tree, otherwise in the
  5749. # src tree.
  5750. ac_file_inputs=`IFS=:
  5751. for f in $ac_file_in; do
  5752. case $f in
  5753. -) echo $tmp/stdin ;;
  5754. [\\/$]*)
  5755. # Absolute (can't be DOS-style, as IFS=:)
  5756. test -f "$f" || { { echo "$as_me:6250: error: cannot find input file: $f" >&5
  5757. echo "$as_me: error: cannot find input file: $f" >&2;}
  5758. { (exit 1); exit 1; }; }
  5759. echo $f;;
  5760. *) # Relative
  5761. if test -f "$f"; then
  5762. # Build tree
  5763. echo $f
  5764. elif test -f "$srcdir/$f"; then
  5765. # Source tree
  5766. echo $srcdir/$f
  5767. else
  5768. # /dev/null tree
  5769. { { echo "$as_me:6263: error: cannot find input file: $f" >&5
  5770. echo "$as_me: error: cannot find input file: $f" >&2;}
  5771. { (exit 1); exit 1; }; }
  5772. fi;;
  5773. esac
  5774. done` || { (exit 1); exit 1; }
  5775. # Remove the trailing spaces.
  5776. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  5777. EOF
  5778. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  5779. # `conftest.undefs', that substitutes the proper values into
  5780. # config.h.in to produce config.h. The first handles `#define'
  5781. # templates, and the second `#undef' templates.
  5782. # And first: Protect against being on the right side of a sed subst in
  5783. # config.status. Protect against being in an unquoted here document
  5784. # in config.status.
  5785. rm -f conftest.defines conftest.undefs
  5786. # Using a here document instead of a string reduces the quoting nightmare.
  5787. # Putting comments in sed scripts is not portable.
  5788. #
  5789. # `end' is used to avoid that the second main sed command (meant for
  5790. # 0-ary CPP macros) applies to n-ary macro definitions.
  5791. # See the Autoconf documentation for `clear'.
  5792. cat >confdef2sed.sed <<\EOF
  5793. s/[\\&,]/\\&/g
  5794. s,[\\$`],\\&,g
  5795. t clear
  5796. : clear
  5797. s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
  5798. t end
  5799. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  5800. : end
  5801. EOF
  5802. # If some macros were called several times there might be several times
  5803. # the same #defines, which is useless. Nevertheless, we may not want to
  5804. # sort them, since we want the *last* AC-DEFINE to be honored.
  5805. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  5806. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  5807. rm -f confdef2sed.sed
  5808. # This sed command replaces #undef with comments. This is necessary, for
  5809. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5810. # on some systems where configure will not decide to define it.
  5811. cat >>conftest.undefs <<\EOF
  5812. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5813. EOF
  5814. # Break up conftest.defines because some shells have a limit on the size
  5815. # of here documents, and old seds have small limits too (100 cmds).
  5816. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  5817. echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  5818. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  5819. echo ' :' >>$CONFIG_STATUS
  5820. rm -f conftest.tail
  5821. while grep . conftest.defines >/dev/null
  5822. do
  5823. # Write a limited-size here document to $tmp/defines.sed.
  5824. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  5825. # Speed up: don't consider the non `#define' lines.
  5826. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  5827. # Work around the forget-to-reset-the-flag bug.
  5828. echo 't clr' >>$CONFIG_STATUS
  5829. echo ': clr' >>$CONFIG_STATUS
  5830. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  5831. echo 'CEOF
  5832. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  5833. rm -f $tmp/in
  5834. mv $tmp/out $tmp/in
  5835. ' >>$CONFIG_STATUS
  5836. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  5837. rm -f conftest.defines
  5838. mv conftest.tail conftest.defines
  5839. done
  5840. rm -f conftest.defines
  5841. echo ' fi # egrep' >>$CONFIG_STATUS
  5842. echo >>$CONFIG_STATUS
  5843. # Break up conftest.undefs because some shells have a limit on the size
  5844. # of here documents, and old seds have small limits too (100 cmds).
  5845. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  5846. rm -f conftest.tail
  5847. while grep . conftest.undefs >/dev/null
  5848. do
  5849. # Write a limited-size here document to $tmp/undefs.sed.
  5850. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  5851. # Speed up: don't consider the non `#undef'
  5852. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  5853. # Work around the forget-to-reset-the-flag bug.
  5854. echo 't clr' >>$CONFIG_STATUS
  5855. echo ': clr' >>$CONFIG_STATUS
  5856. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  5857. echo 'CEOF
  5858. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  5859. rm -f $tmp/in
  5860. mv $tmp/out $tmp/in
  5861. ' >>$CONFIG_STATUS
  5862. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  5863. rm -f conftest.undefs
  5864. mv conftest.tail conftest.undefs
  5865. done
  5866. rm -f conftest.undefs
  5867. cat >>$CONFIG_STATUS <<\EOF
  5868. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5869. # use $as_me), people would be surprised to read:
  5870. # /* config.h. Generated automatically by config.status. */
  5871. if test x"$ac_file" = x-; then
  5872. echo "/* Generated automatically by configure. */" >$tmp/config.h
  5873. else
  5874. echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
  5875. fi
  5876. cat $tmp/in >>$tmp/config.h
  5877. rm -f $tmp/in
  5878. if test x"$ac_file" != x-; then
  5879. if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  5880. { echo "$as_me:6380: $ac_file is unchanged" >&5
  5881. echo "$as_me: $ac_file is unchanged" >&6;}
  5882. else
  5883. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5884. X"$ac_file" : 'X\(//\)[^/]' \| \
  5885. X"$ac_file" : 'X\(//\)$' \| \
  5886. X"$ac_file" : 'X\(/\)' \| \
  5887. . : '\(.\)' 2>/dev/null ||
  5888. echo X"$ac_file" |
  5889. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5890. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5891. /^X\(\/\/\)$/{ s//\1/; q; }
  5892. /^X\(\/\).*/{ s//\1/; q; }
  5893. s/.*/./; q'`
  5894. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5895. { case "$ac_dir" in
  5896. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  5897. *) as_incr_dir=.;;
  5898. esac
  5899. as_dummy="$ac_dir"
  5900. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  5901. case $as_mkdir_dir in
  5902. # Skip DOS drivespec
  5903. ?:) as_incr_dir=$as_mkdir_dir ;;
  5904. *)
  5905. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  5906. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  5907. ;;
  5908. esac
  5909. done; }
  5910. fi
  5911. rm -f $ac_file
  5912. mv $tmp/config.h $ac_file
  5913. fi
  5914. else
  5915. cat $tmp/config.h
  5916. rm -f $tmp/config.h
  5917. fi
  5918. done
  5919. EOF
  5920. cat >>$CONFIG_STATUS <<\EOF
  5921. #
  5922. # CONFIG_COMMANDS section.
  5923. #
  5924. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  5925. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  5926. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5927. case $ac_dest in
  5928. default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  5929. esac
  5930. done
  5931. EOF
  5932. cat >>$CONFIG_STATUS <<\EOF
  5933. { (exit 0); exit 0; }
  5934. EOF
  5935. chmod +x $CONFIG_STATUS
  5936. ac_clean_files=$ac_clean_files_save
  5937. # configure is writing to config.log, and then calls config.status.
  5938. # config.status does its own redirection, appending to config.log.
  5939. # Unfortunately, on DOS this fails, as config.log is still kept open
  5940. # by configure, so config.status won't be able to write to it; its
  5941. # output is simply discarded. So we exec the FD to /dev/null,
  5942. # effectively closing config.log, so it can be properly (re)opened and
  5943. # appended to by config.status. When coming back to configure, we
  5944. # need to make the FD available again.
  5945. if test "$no_create" != yes; then
  5946. ac_cs_success=:
  5947. exec 5>/dev/null
  5948. $SHELL $CONFIG_STATUS || ac_cs_success=false
  5949. exec 5>>config.log
  5950. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5951. # would make configure fail if this is the last instruction.
  5952. $ac_cs_success || { (exit 1); exit 1; }
  5953. fi
  5954. echo "Ok, everything seems ok. Now do 'make'."
  5955. echo "You can then run make install to install as you specified"