configure 198 KB

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