configure 200 KB

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