configure 182 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for rpkitools 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='rpkitools'
  531. PACKAGE_TARNAME='rpkitools'
  532. PACKAGE_VERSION='1.0'
  533. PACKAGE_STRING='rpkitools 1.0'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL=''
  536. ac_unique_file="rp/rcynic/rcynic.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. WSGI_PROCESS_GROUP
  575. WSGI_DAEMON_PROCESS
  576. OPENSSL_SO_GLOB
  577. OPENSSL_CONFIG_COMMAND
  578. CA_TARGET
  579. RP_TARGET
  580. OPENSSL_TARGET
  581. WSGI_PYTHON_EGG_CACHE_USER
  582. WSGI_PYTHON_EGG_CACHE_DIR
  583. SETUP_PY_INSTALL_LAYOUT
  584. CFG_INSTALL_TARGETS
  585. CA_INSTALL_TARGETS
  586. RTR_ORIGIN_INSTALL_TARGETS
  587. RCYNIC_INSTALL_TARGETS
  588. RCYNIC_HTML_DIR
  589. RCYNIC_CONF_DATA
  590. RPKI_GROUP
  591. RPKI_USER
  592. SUDO
  593. RSYNC
  594. TRANG
  595. RRDTOOL
  596. SORT
  597. AWK
  598. XSLTPROC
  599. PYTHON
  600. POW_LDFLAGS
  601. EGREP
  602. GREP
  603. CPP
  604. INSTALL_DATA
  605. INSTALL_SCRIPT
  606. INSTALL_PROGRAM
  607. OBJEXT
  608. EXEEXT
  609. ac_ct_CC
  610. CPPFLAGS
  611. LDFLAGS
  612. CFLAGS
  613. CC
  614. APACHE_VERSION
  615. RCYNIC_DIR
  616. host_os
  617. host_vendor
  618. host_cpu
  619. host
  620. build_os
  621. build_vendor
  622. build_cpu
  623. build
  624. target_alias
  625. host_alias
  626. build_alias
  627. LIBS
  628. ECHO_T
  629. ECHO_N
  630. ECHO_C
  631. DEFS
  632. mandir
  633. localedir
  634. libdir
  635. psdir
  636. pdfdir
  637. dvidir
  638. htmldir
  639. infodir
  640. docdir
  641. oldincludedir
  642. includedir
  643. localstatedir
  644. sharedstatedir
  645. sysconfdir
  646. datadir
  647. datarootdir
  648. libexecdir
  649. sbindir
  650. bindir
  651. program_transform_name
  652. prefix
  653. exec_prefix
  654. PACKAGE_URL
  655. PACKAGE_BUGREPORT
  656. PACKAGE_STRING
  657. PACKAGE_VERSION
  658. PACKAGE_TARNAME
  659. PACKAGE_NAME
  660. PATH_SEPARATOR
  661. SHELL'
  662. ac_subst_files='RCYNIC_MAKE_RULES
  663. RTR_ORIGIN_MAKE_RULES
  664. CA_MAKE_RULES'
  665. ac_user_opts='
  666. enable_option_checking
  667. with_system_openssl
  668. enable_openssl_asm
  669. enable_ca_tools
  670. enable_rp_tools
  671. enable_target_installation
  672. enable_wsgi_daemon_mode
  673. enable_python_install_layout
  674. enable_wsgi_python_egg_cache
  675. enable_runtime_dependencies
  676. enable_python
  677. enable_django
  678. enable_rpki_rtr
  679. enable_rcynic_jail
  680. '
  681. ac_precious_vars='build_alias
  682. host_alias
  683. target_alias
  684. RCYNIC_DIR
  685. APACHE_VERSION
  686. CC
  687. CFLAGS
  688. LDFLAGS
  689. LIBS
  690. CPPFLAGS
  691. CPP'
  692. # Initialize some variables set by options.
  693. ac_init_help=
  694. ac_init_version=false
  695. ac_unrecognized_opts=
  696. ac_unrecognized_sep=
  697. # The variables have the same names as the options, with
  698. # dashes changed to underlines.
  699. cache_file=/dev/null
  700. exec_prefix=NONE
  701. no_create=
  702. no_recursion=
  703. prefix=NONE
  704. program_prefix=NONE
  705. program_suffix=NONE
  706. program_transform_name=s,x,x,
  707. silent=
  708. site=
  709. srcdir=
  710. verbose=
  711. x_includes=NONE
  712. x_libraries=NONE
  713. # Installation directory options.
  714. # These are left unexpanded so users can "make install exec_prefix=/foo"
  715. # and all the variables that are supposed to be based on exec_prefix
  716. # by default will actually change.
  717. # Use braces instead of parens because sh, perl, etc. also accept them.
  718. # (The list follows the same order as the GNU Coding Standards.)
  719. bindir='${exec_prefix}/bin'
  720. sbindir='${exec_prefix}/sbin'
  721. libexecdir='${exec_prefix}/libexec'
  722. datarootdir='${prefix}/share'
  723. datadir='${datarootdir}'
  724. sysconfdir='${prefix}/etc'
  725. sharedstatedir='${prefix}/com'
  726. localstatedir='${prefix}/var'
  727. includedir='${prefix}/include'
  728. oldincludedir='/usr/include'
  729. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  730. infodir='${datarootdir}/info'
  731. htmldir='${docdir}'
  732. dvidir='${docdir}'
  733. pdfdir='${docdir}'
  734. psdir='${docdir}'
  735. libdir='${exec_prefix}/lib'
  736. localedir='${datarootdir}/locale'
  737. mandir='${datarootdir}/man'
  738. ac_prev=
  739. ac_dashdash=
  740. for ac_option
  741. do
  742. # If the previous option needs an argument, assign it.
  743. if test -n "$ac_prev"; then
  744. eval $ac_prev=\$ac_option
  745. ac_prev=
  746. continue
  747. fi
  748. case $ac_option in
  749. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  750. *=) ac_optarg= ;;
  751. *) ac_optarg=yes ;;
  752. esac
  753. # Accept the important Cygnus configure options, so we can diagnose typos.
  754. case $ac_dashdash$ac_option in
  755. --)
  756. ac_dashdash=yes ;;
  757. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  758. ac_prev=bindir ;;
  759. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  760. bindir=$ac_optarg ;;
  761. -build | --build | --buil | --bui | --bu)
  762. ac_prev=build_alias ;;
  763. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  764. build_alias=$ac_optarg ;;
  765. -cache-file | --cache-file | --cache-fil | --cache-fi \
  766. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  767. ac_prev=cache_file ;;
  768. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  769. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  770. cache_file=$ac_optarg ;;
  771. --config-cache | -C)
  772. cache_file=config.cache ;;
  773. -datadir | --datadir | --datadi | --datad)
  774. ac_prev=datadir ;;
  775. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  776. datadir=$ac_optarg ;;
  777. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  778. | --dataroo | --dataro | --datar)
  779. ac_prev=datarootdir ;;
  780. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  781. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  782. datarootdir=$ac_optarg ;;
  783. -disable-* | --disable-*)
  784. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  785. # Reject names that are not valid shell variable names.
  786. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  787. as_fn_error $? "invalid feature name: $ac_useropt"
  788. ac_useropt_orig=$ac_useropt
  789. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  790. case $ac_user_opts in
  791. *"
  792. "enable_$ac_useropt"
  793. "*) ;;
  794. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  795. ac_unrecognized_sep=', ';;
  796. esac
  797. eval enable_$ac_useropt=no ;;
  798. -docdir | --docdir | --docdi | --doc | --do)
  799. ac_prev=docdir ;;
  800. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  801. docdir=$ac_optarg ;;
  802. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  803. ac_prev=dvidir ;;
  804. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  805. dvidir=$ac_optarg ;;
  806. -enable-* | --enable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. as_fn_error $? "invalid feature name: $ac_useropt"
  811. ac_useropt_orig=$ac_useropt
  812. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  813. case $ac_user_opts in
  814. *"
  815. "enable_$ac_useropt"
  816. "*) ;;
  817. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  818. ac_unrecognized_sep=', ';;
  819. esac
  820. eval enable_$ac_useropt=\$ac_optarg ;;
  821. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  822. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  823. | --exec | --exe | --ex)
  824. ac_prev=exec_prefix ;;
  825. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  826. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  827. | --exec=* | --exe=* | --ex=*)
  828. exec_prefix=$ac_optarg ;;
  829. -gas | --gas | --ga | --g)
  830. # Obsolete; use --with-gas.
  831. with_gas=yes ;;
  832. -help | --help | --hel | --he | -h)
  833. ac_init_help=long ;;
  834. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  835. ac_init_help=recursive ;;
  836. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  837. ac_init_help=short ;;
  838. -host | --host | --hos | --ho)
  839. ac_prev=host_alias ;;
  840. -host=* | --host=* | --hos=* | --ho=*)
  841. host_alias=$ac_optarg ;;
  842. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  843. ac_prev=htmldir ;;
  844. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  845. | --ht=*)
  846. htmldir=$ac_optarg ;;
  847. -includedir | --includedir | --includedi | --included | --include \
  848. | --includ | --inclu | --incl | --inc)
  849. ac_prev=includedir ;;
  850. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  851. | --includ=* | --inclu=* | --incl=* | --inc=*)
  852. includedir=$ac_optarg ;;
  853. -infodir | --infodir | --infodi | --infod | --info | --inf)
  854. ac_prev=infodir ;;
  855. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  856. infodir=$ac_optarg ;;
  857. -libdir | --libdir | --libdi | --libd)
  858. ac_prev=libdir ;;
  859. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  860. libdir=$ac_optarg ;;
  861. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  862. | --libexe | --libex | --libe)
  863. ac_prev=libexecdir ;;
  864. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  865. | --libexe=* | --libex=* | --libe=*)
  866. libexecdir=$ac_optarg ;;
  867. -localedir | --localedir | --localedi | --localed | --locale)
  868. ac_prev=localedir ;;
  869. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  870. localedir=$ac_optarg ;;
  871. -localstatedir | --localstatedir | --localstatedi | --localstated \
  872. | --localstate | --localstat | --localsta | --localst | --locals)
  873. ac_prev=localstatedir ;;
  874. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  875. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  876. localstatedir=$ac_optarg ;;
  877. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  878. ac_prev=mandir ;;
  879. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  880. mandir=$ac_optarg ;;
  881. -nfp | --nfp | --nf)
  882. # Obsolete; use --without-fp.
  883. with_fp=no ;;
  884. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  885. | --no-cr | --no-c | -n)
  886. no_create=yes ;;
  887. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  888. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  889. no_recursion=yes ;;
  890. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  891. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  892. | --oldin | --oldi | --old | --ol | --o)
  893. ac_prev=oldincludedir ;;
  894. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  895. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  896. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  897. oldincludedir=$ac_optarg ;;
  898. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  899. ac_prev=prefix ;;
  900. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  901. prefix=$ac_optarg ;;
  902. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  903. | --program-pre | --program-pr | --program-p)
  904. ac_prev=program_prefix ;;
  905. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  906. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  907. program_prefix=$ac_optarg ;;
  908. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  909. | --program-suf | --program-su | --program-s)
  910. ac_prev=program_suffix ;;
  911. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  912. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  913. program_suffix=$ac_optarg ;;
  914. -program-transform-name | --program-transform-name \
  915. | --program-transform-nam | --program-transform-na \
  916. | --program-transform-n | --program-transform- \
  917. | --program-transform | --program-transfor \
  918. | --program-transfo | --program-transf \
  919. | --program-trans | --program-tran \
  920. | --progr-tra | --program-tr | --program-t)
  921. ac_prev=program_transform_name ;;
  922. -program-transform-name=* | --program-transform-name=* \
  923. | --program-transform-nam=* | --program-transform-na=* \
  924. | --program-transform-n=* | --program-transform-=* \
  925. | --program-transform=* | --program-transfor=* \
  926. | --program-transfo=* | --program-transf=* \
  927. | --program-trans=* | --program-tran=* \
  928. | --progr-tra=* | --program-tr=* | --program-t=*)
  929. program_transform_name=$ac_optarg ;;
  930. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  931. ac_prev=pdfdir ;;
  932. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  933. pdfdir=$ac_optarg ;;
  934. -psdir | --psdir | --psdi | --psd | --ps)
  935. ac_prev=psdir ;;
  936. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  937. psdir=$ac_optarg ;;
  938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  939. | -silent | --silent | --silen | --sile | --sil)
  940. silent=yes ;;
  941. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  942. ac_prev=sbindir ;;
  943. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  944. | --sbi=* | --sb=*)
  945. sbindir=$ac_optarg ;;
  946. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  947. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  948. | --sharedst | --shareds | --shared | --share | --shar \
  949. | --sha | --sh)
  950. ac_prev=sharedstatedir ;;
  951. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  952. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  953. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  954. | --sha=* | --sh=*)
  955. sharedstatedir=$ac_optarg ;;
  956. -site | --site | --sit)
  957. ac_prev=site ;;
  958. -site=* | --site=* | --sit=*)
  959. site=$ac_optarg ;;
  960. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  961. ac_prev=srcdir ;;
  962. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  963. srcdir=$ac_optarg ;;
  964. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  965. | --syscon | --sysco | --sysc | --sys | --sy)
  966. ac_prev=sysconfdir ;;
  967. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  968. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  969. sysconfdir=$ac_optarg ;;
  970. -target | --target | --targe | --targ | --tar | --ta | --t)
  971. ac_prev=target_alias ;;
  972. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  973. target_alias=$ac_optarg ;;
  974. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  975. verbose=yes ;;
  976. -version | --version | --versio | --versi | --vers | -V)
  977. ac_init_version=: ;;
  978. -with-* | --with-*)
  979. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  980. # Reject names that are not valid shell variable names.
  981. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  982. as_fn_error $? "invalid package name: $ac_useropt"
  983. ac_useropt_orig=$ac_useropt
  984. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  985. case $ac_user_opts in
  986. *"
  987. "with_$ac_useropt"
  988. "*) ;;
  989. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  990. ac_unrecognized_sep=', ';;
  991. esac
  992. eval with_$ac_useropt=\$ac_optarg ;;
  993. -without-* | --without-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. as_fn_error $? "invalid package name: $ac_useropt"
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "with_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval with_$ac_useropt=no ;;
  1008. --x)
  1009. # Obsolete; use --with-x.
  1010. with_x=yes ;;
  1011. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1012. | --x-incl | --x-inc | --x-in | --x-i)
  1013. ac_prev=x_includes ;;
  1014. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1015. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1016. x_includes=$ac_optarg ;;
  1017. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1018. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1019. ac_prev=x_libraries ;;
  1020. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1021. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1022. x_libraries=$ac_optarg ;;
  1023. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1024. Try \`$0 --help' for more information"
  1025. ;;
  1026. *=*)
  1027. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1028. # Reject names that are not valid shell variable names.
  1029. case $ac_envvar in #(
  1030. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1031. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1032. esac
  1033. eval $ac_envvar=\$ac_optarg
  1034. export $ac_envvar ;;
  1035. *)
  1036. # FIXME: should be removed in autoconf 3.0.
  1037. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1038. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1039. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1040. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1041. ;;
  1042. esac
  1043. done
  1044. if test -n "$ac_prev"; then
  1045. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1046. as_fn_error $? "missing argument to $ac_option"
  1047. fi
  1048. if test -n "$ac_unrecognized_opts"; then
  1049. case $enable_option_checking in
  1050. no) ;;
  1051. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1052. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1053. esac
  1054. fi
  1055. # Check all directory arguments for consistency.
  1056. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1057. datadir sysconfdir sharedstatedir localstatedir includedir \
  1058. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1059. libdir localedir mandir
  1060. do
  1061. eval ac_val=\$$ac_var
  1062. # Remove trailing slashes.
  1063. case $ac_val in
  1064. */ )
  1065. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1066. eval $ac_var=\$ac_val;;
  1067. esac
  1068. # Be sure to have absolute directory names.
  1069. case $ac_val in
  1070. [\\/$]* | ?:[\\/]* ) continue;;
  1071. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1072. esac
  1073. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1074. done
  1075. # There might be people who depend on the old broken behavior: `$host'
  1076. # used to hold the argument of --host etc.
  1077. # FIXME: To remove some day.
  1078. build=$build_alias
  1079. host=$host_alias
  1080. target=$target_alias
  1081. # FIXME: To remove some day.
  1082. if test "x$host_alias" != x; then
  1083. if test "x$build_alias" = x; then
  1084. cross_compiling=maybe
  1085. elif test "x$build_alias" != "x$host_alias"; then
  1086. cross_compiling=yes
  1087. fi
  1088. fi
  1089. ac_tool_prefix=
  1090. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1091. test "$silent" = yes && exec 6>/dev/null
  1092. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1093. ac_ls_di=`ls -di .` &&
  1094. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1095. as_fn_error $? "working directory cannot be determined"
  1096. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1097. as_fn_error $? "pwd does not report name of working directory"
  1098. # Find the source files, if location was not specified.
  1099. if test -z "$srcdir"; then
  1100. ac_srcdir_defaulted=yes
  1101. # Try the directory containing this script, then the parent directory.
  1102. ac_confdir=`$as_dirname -- "$as_myself" ||
  1103. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1104. X"$as_myself" : 'X\(//\)[^/]' \| \
  1105. X"$as_myself" : 'X\(//\)$' \| \
  1106. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1107. $as_echo X"$as_myself" |
  1108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\/\)[^/].*/{
  1113. s//\1/
  1114. q
  1115. }
  1116. /^X\(\/\/\)$/{
  1117. s//\1/
  1118. q
  1119. }
  1120. /^X\(\/\).*/{
  1121. s//\1/
  1122. q
  1123. }
  1124. s/.*/./; q'`
  1125. srcdir=$ac_confdir
  1126. if test ! -r "$srcdir/$ac_unique_file"; then
  1127. srcdir=..
  1128. fi
  1129. else
  1130. ac_srcdir_defaulted=no
  1131. fi
  1132. if test ! -r "$srcdir/$ac_unique_file"; then
  1133. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1134. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1135. fi
  1136. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1137. ac_abs_confdir=`(
  1138. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1139. pwd)`
  1140. # When building in place, set srcdir=.
  1141. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1142. srcdir=.
  1143. fi
  1144. # Remove unnecessary trailing slashes from srcdir.
  1145. # Double slashes in file names in object file debugging info
  1146. # mess up M-x gdb in Emacs.
  1147. case $srcdir in
  1148. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1149. esac
  1150. for ac_var in $ac_precious_vars; do
  1151. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1152. eval ac_env_${ac_var}_value=\$${ac_var}
  1153. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1154. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1155. done
  1156. #
  1157. # Report the --help message.
  1158. #
  1159. if test "$ac_init_help" = "long"; then
  1160. # Omit some internal or obsolete options to make the list less imposing.
  1161. # This message is too long to be a string in the A/UX 3.1 sh.
  1162. cat <<_ACEOF
  1163. \`configure' configures rpkitools 1.0 to adapt to many kinds of systems.
  1164. Usage: $0 [OPTION]... [VAR=VALUE]...
  1165. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1166. VAR=VALUE. See below for descriptions of some of the useful variables.
  1167. Defaults for the options are specified in brackets.
  1168. Configuration:
  1169. -h, --help display this help and exit
  1170. --help=short display options specific to this package
  1171. --help=recursive display the short help of all the included packages
  1172. -V, --version display version information and exit
  1173. -q, --quiet, --silent do not print \`checking ...' messages
  1174. --cache-file=FILE cache test results in FILE [disabled]
  1175. -C, --config-cache alias for \`--cache-file=config.cache'
  1176. -n, --no-create do not create output files
  1177. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1178. Installation directories:
  1179. --prefix=PREFIX install architecture-independent files in PREFIX
  1180. [$ac_default_prefix]
  1181. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1182. [PREFIX]
  1183. By default, \`make install' will install all the files in
  1184. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1185. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1186. for instance \`--prefix=\$HOME'.
  1187. For better control, use the options below.
  1188. Fine tuning of the installation directories:
  1189. --bindir=DIR user executables [EPREFIX/bin]
  1190. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1191. --libexecdir=DIR program executables [EPREFIX/libexec]
  1192. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1193. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1194. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1195. --libdir=DIR object code libraries [EPREFIX/lib]
  1196. --includedir=DIR C header files [PREFIX/include]
  1197. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1198. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1199. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1200. --infodir=DIR info documentation [DATAROOTDIR/info]
  1201. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1202. --mandir=DIR man documentation [DATAROOTDIR/man]
  1203. --docdir=DIR documentation root [DATAROOTDIR/doc/rpkitools]
  1204. --htmldir=DIR html documentation [DOCDIR]
  1205. --dvidir=DIR dvi documentation [DOCDIR]
  1206. --pdfdir=DIR pdf documentation [DOCDIR]
  1207. --psdir=DIR ps documentation [DOCDIR]
  1208. _ACEOF
  1209. cat <<\_ACEOF
  1210. System types:
  1211. --build=BUILD configure for building on BUILD [guessed]
  1212. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1213. _ACEOF
  1214. fi
  1215. if test -n "$ac_init_help"; then
  1216. case $ac_init_help in
  1217. short | recursive ) echo "Configuration of rpkitools 1.0:";;
  1218. esac
  1219. cat <<\_ACEOF
  1220. Optional Features:
  1221. --disable-option-checking ignore unrecognized --enable/--with options
  1222. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1223. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1224. --disable-openssl-asm Don't let OpenSSL build assembler code
  1225. --disable-ca-tools Don't build any of the CA tools
  1226. --disable-rp-tools Don't build any of the relying party tools
  1227. --disable-target-installation
  1228. Don't perform final target installation
  1229. --enable-wsgi-daemon-mode=user[:group]
  1230. Run the web portal as a separate process
  1231. --enable-python-install-layout=layout
  1232. Specify Python --install-layout
  1233. --enable-wsgi-python-egg-cache=dir[:user]
  1234. Set up PYTHON_EGG_CACHE in wsgi wrapper
  1235. --disable-runtime-dependencies
  1236. Don't enforce runtime dependencies
  1237. --disable-python (Obsolete, do not use)
  1238. --disable-django (Obsolete, do not use)
  1239. --disable-rpki-rtr (Obsolete, do not use)
  1240. --enable-rcynic-jail (Obsolete, do not use)
  1241. Optional Packages:
  1242. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1243. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1244. --with-system-openssl Link against system copy of OpenSSL
  1245. Some influential environment variables:
  1246. RCYNIC_DIR Where to put output files from rcynic and rpki-rtr
  1247. APACHE_VERSION
  1248. Version of Apache httpd, mostly used on FreeBSD where it
  1249. determines some of the directory names
  1250. CC C compiler command
  1251. CFLAGS C compiler flags
  1252. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1253. nonstandard directory <lib dir>
  1254. LIBS libraries to pass to the linker, e.g. -l<library>
  1255. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1256. you have headers in a nonstandard directory <include dir>
  1257. CPP C preprocessor
  1258. Use these variables to override the choices made by `configure' or to help
  1259. it to find libraries and programs with nonstandard names/locations.
  1260. Report bugs to the package provider.
  1261. _ACEOF
  1262. ac_status=$?
  1263. fi
  1264. if test "$ac_init_help" = "recursive"; then
  1265. # If there are subdirs, report their specific --help.
  1266. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1267. test -d "$ac_dir" ||
  1268. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1269. continue
  1270. ac_builddir=.
  1271. case "$ac_dir" in
  1272. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1273. *)
  1274. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1275. # A ".." for each directory in $ac_dir_suffix.
  1276. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1277. case $ac_top_builddir_sub in
  1278. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1279. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1280. esac ;;
  1281. esac
  1282. ac_abs_top_builddir=$ac_pwd
  1283. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1284. # for backward compatibility:
  1285. ac_top_builddir=$ac_top_build_prefix
  1286. case $srcdir in
  1287. .) # We are building in place.
  1288. ac_srcdir=.
  1289. ac_top_srcdir=$ac_top_builddir_sub
  1290. ac_abs_top_srcdir=$ac_pwd ;;
  1291. [\\/]* | ?:[\\/]* ) # Absolute name.
  1292. ac_srcdir=$srcdir$ac_dir_suffix;
  1293. ac_top_srcdir=$srcdir
  1294. ac_abs_top_srcdir=$srcdir ;;
  1295. *) # Relative name.
  1296. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1297. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1298. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1299. esac
  1300. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1301. cd "$ac_dir" || { ac_status=$?; continue; }
  1302. # Check for guested configure.
  1303. if test -f "$ac_srcdir/configure.gnu"; then
  1304. echo &&
  1305. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1306. elif test -f "$ac_srcdir/configure"; then
  1307. echo &&
  1308. $SHELL "$ac_srcdir/configure" --help=recursive
  1309. else
  1310. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1311. fi || ac_status=$?
  1312. cd "$ac_pwd" || { ac_status=$?; break; }
  1313. done
  1314. fi
  1315. test -n "$ac_init_help" && exit $ac_status
  1316. if $ac_init_version; then
  1317. cat <<\_ACEOF
  1318. rpkitools configure 1.0
  1319. generated by GNU Autoconf 2.69
  1320. Copyright (C) 2012 Free Software Foundation, Inc.
  1321. This configure script is free software; the Free Software Foundation
  1322. gives unlimited permission to copy, distribute and modify it.
  1323. _ACEOF
  1324. exit
  1325. fi
  1326. ## ------------------------ ##
  1327. ## Autoconf initialization. ##
  1328. ## ------------------------ ##
  1329. # ac_fn_c_try_compile LINENO
  1330. # --------------------------
  1331. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1332. ac_fn_c_try_compile ()
  1333. {
  1334. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1335. rm -f conftest.$ac_objext
  1336. if { { ac_try="$ac_compile"
  1337. case "(($ac_try" in
  1338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1339. *) ac_try_echo=$ac_try;;
  1340. esac
  1341. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1342. $as_echo "$ac_try_echo"; } >&5
  1343. (eval "$ac_compile") 2>conftest.err
  1344. ac_status=$?
  1345. if test -s conftest.err; then
  1346. grep -v '^ *+' conftest.err >conftest.er1
  1347. cat conftest.er1 >&5
  1348. mv -f conftest.er1 conftest.err
  1349. fi
  1350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1351. test $ac_status = 0; } && {
  1352. test -z "$ac_c_werror_flag" ||
  1353. test ! -s conftest.err
  1354. } && test -s conftest.$ac_objext; then :
  1355. ac_retval=0
  1356. else
  1357. $as_echo "$as_me: failed program was:" >&5
  1358. sed 's/^/| /' conftest.$ac_ext >&5
  1359. ac_retval=1
  1360. fi
  1361. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1362. as_fn_set_status $ac_retval
  1363. } # ac_fn_c_try_compile
  1364. # ac_fn_c_try_run LINENO
  1365. # ----------------------
  1366. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1367. # that executables *can* be run.
  1368. ac_fn_c_try_run ()
  1369. {
  1370. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1371. if { { ac_try="$ac_link"
  1372. case "(($ac_try" in
  1373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1374. *) ac_try_echo=$ac_try;;
  1375. esac
  1376. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1377. $as_echo "$ac_try_echo"; } >&5
  1378. (eval "$ac_link") 2>&5
  1379. ac_status=$?
  1380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1381. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1382. { { case "(($ac_try" in
  1383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1384. *) ac_try_echo=$ac_try;;
  1385. esac
  1386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1387. $as_echo "$ac_try_echo"; } >&5
  1388. (eval "$ac_try") 2>&5
  1389. ac_status=$?
  1390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1391. test $ac_status = 0; }; }; then :
  1392. ac_retval=0
  1393. else
  1394. $as_echo "$as_me: program exited with status $ac_status" >&5
  1395. $as_echo "$as_me: failed program was:" >&5
  1396. sed 's/^/| /' conftest.$ac_ext >&5
  1397. ac_retval=$ac_status
  1398. fi
  1399. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1400. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1401. as_fn_set_status $ac_retval
  1402. } # ac_fn_c_try_run
  1403. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1404. # --------------------------------------------
  1405. # Tries to find the compile-time value of EXPR in a program that includes
  1406. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1407. # computed
  1408. ac_fn_c_compute_int ()
  1409. {
  1410. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1411. if test "$cross_compiling" = yes; then
  1412. # Depending upon the size, compute the lo and hi bounds.
  1413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1414. /* end confdefs.h. */
  1415. $4
  1416. int
  1417. main ()
  1418. {
  1419. static int test_array [1 - 2 * !(($2) >= 0)];
  1420. test_array [0] = 0;
  1421. return test_array [0];
  1422. ;
  1423. return 0;
  1424. }
  1425. _ACEOF
  1426. if ac_fn_c_try_compile "$LINENO"; then :
  1427. ac_lo=0 ac_mid=0
  1428. while :; do
  1429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1430. /* end confdefs.h. */
  1431. $4
  1432. int
  1433. main ()
  1434. {
  1435. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1436. test_array [0] = 0;
  1437. return test_array [0];
  1438. ;
  1439. return 0;
  1440. }
  1441. _ACEOF
  1442. if ac_fn_c_try_compile "$LINENO"; then :
  1443. ac_hi=$ac_mid; break
  1444. else
  1445. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1446. if test $ac_lo -le $ac_mid; then
  1447. ac_lo= ac_hi=
  1448. break
  1449. fi
  1450. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1451. fi
  1452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1453. done
  1454. else
  1455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1456. /* end confdefs.h. */
  1457. $4
  1458. int
  1459. main ()
  1460. {
  1461. static int test_array [1 - 2 * !(($2) < 0)];
  1462. test_array [0] = 0;
  1463. return test_array [0];
  1464. ;
  1465. return 0;
  1466. }
  1467. _ACEOF
  1468. if ac_fn_c_try_compile "$LINENO"; then :
  1469. ac_hi=-1 ac_mid=-1
  1470. while :; do
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. $4
  1474. int
  1475. main ()
  1476. {
  1477. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1478. test_array [0] = 0;
  1479. return test_array [0];
  1480. ;
  1481. return 0;
  1482. }
  1483. _ACEOF
  1484. if ac_fn_c_try_compile "$LINENO"; then :
  1485. ac_lo=$ac_mid; break
  1486. else
  1487. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1488. if test $ac_mid -le $ac_hi; then
  1489. ac_lo= ac_hi=
  1490. break
  1491. fi
  1492. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1493. fi
  1494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1495. done
  1496. else
  1497. ac_lo= ac_hi=
  1498. fi
  1499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1500. fi
  1501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1502. # Binary search between lo and hi bounds.
  1503. while test "x$ac_lo" != "x$ac_hi"; do
  1504. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. $4
  1508. int
  1509. main ()
  1510. {
  1511. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1512. test_array [0] = 0;
  1513. return test_array [0];
  1514. ;
  1515. return 0;
  1516. }
  1517. _ACEOF
  1518. if ac_fn_c_try_compile "$LINENO"; then :
  1519. ac_hi=$ac_mid
  1520. else
  1521. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1522. fi
  1523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1524. done
  1525. case $ac_lo in #((
  1526. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1527. '') ac_retval=1 ;;
  1528. esac
  1529. else
  1530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1531. /* end confdefs.h. */
  1532. $4
  1533. static long int longval () { return $2; }
  1534. static unsigned long int ulongval () { return $2; }
  1535. #include <stdio.h>
  1536. #include <stdlib.h>
  1537. int
  1538. main ()
  1539. {
  1540. FILE *f = fopen ("conftest.val", "w");
  1541. if (! f)
  1542. return 1;
  1543. if (($2) < 0)
  1544. {
  1545. long int i = longval ();
  1546. if (i != ($2))
  1547. return 1;
  1548. fprintf (f, "%ld", i);
  1549. }
  1550. else
  1551. {
  1552. unsigned long int i = ulongval ();
  1553. if (i != ($2))
  1554. return 1;
  1555. fprintf (f, "%lu", i);
  1556. }
  1557. /* Do not output a trailing newline, as this causes \r\n confusion
  1558. on some platforms. */
  1559. return ferror (f) || fclose (f) != 0;
  1560. ;
  1561. return 0;
  1562. }
  1563. _ACEOF
  1564. if ac_fn_c_try_run "$LINENO"; then :
  1565. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1566. else
  1567. ac_retval=1
  1568. fi
  1569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1571. rm -f conftest.val
  1572. fi
  1573. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1574. as_fn_set_status $ac_retval
  1575. } # ac_fn_c_compute_int
  1576. # ac_fn_c_try_cpp LINENO
  1577. # ----------------------
  1578. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1579. ac_fn_c_try_cpp ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1583. case "(($ac_try" in
  1584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1585. *) ac_try_echo=$ac_try;;
  1586. esac
  1587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1588. $as_echo "$ac_try_echo"; } >&5
  1589. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1590. ac_status=$?
  1591. if test -s conftest.err; then
  1592. grep -v '^ *+' conftest.err >conftest.er1
  1593. cat conftest.er1 >&5
  1594. mv -f conftest.er1 conftest.err
  1595. fi
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; } > conftest.i && {
  1598. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1599. test ! -s conftest.err
  1600. }; then :
  1601. ac_retval=0
  1602. else
  1603. $as_echo "$as_me: failed program was:" >&5
  1604. sed 's/^/| /' conftest.$ac_ext >&5
  1605. ac_retval=1
  1606. fi
  1607. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1608. as_fn_set_status $ac_retval
  1609. } # ac_fn_c_try_cpp
  1610. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1611. # -------------------------------------------------------
  1612. # Tests whether HEADER exists and can be compiled using the include files in
  1613. # INCLUDES, setting the cache variable VAR accordingly.
  1614. ac_fn_c_check_header_compile ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1618. $as_echo_n "checking for $2... " >&6; }
  1619. if eval \${$3+:} false; then :
  1620. $as_echo_n "(cached) " >&6
  1621. else
  1622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1623. /* end confdefs.h. */
  1624. $4
  1625. #include <$2>
  1626. _ACEOF
  1627. if ac_fn_c_try_compile "$LINENO"; then :
  1628. eval "$3=yes"
  1629. else
  1630. eval "$3=no"
  1631. fi
  1632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1633. fi
  1634. eval ac_res=\$$3
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1636. $as_echo "$ac_res" >&6; }
  1637. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1638. } # ac_fn_c_check_header_compile
  1639. # ac_fn_c_try_link LINENO
  1640. # -----------------------
  1641. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1642. ac_fn_c_try_link ()
  1643. {
  1644. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1645. rm -f conftest.$ac_objext conftest$ac_exeext
  1646. if { { ac_try="$ac_link"
  1647. case "(($ac_try" in
  1648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1649. *) ac_try_echo=$ac_try;;
  1650. esac
  1651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1652. $as_echo "$ac_try_echo"; } >&5
  1653. (eval "$ac_link") 2>conftest.err
  1654. ac_status=$?
  1655. if test -s conftest.err; then
  1656. grep -v '^ *+' conftest.err >conftest.er1
  1657. cat conftest.er1 >&5
  1658. mv -f conftest.er1 conftest.err
  1659. fi
  1660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1661. test $ac_status = 0; } && {
  1662. test -z "$ac_c_werror_flag" ||
  1663. test ! -s conftest.err
  1664. } && test -s conftest$ac_exeext && {
  1665. test "$cross_compiling" = yes ||
  1666. test -x conftest$ac_exeext
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1675. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1676. # interfere with the next link command; also delete a directory that is
  1677. # left behind by Apple's compiler. We do this before executing the actions.
  1678. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. as_fn_set_status $ac_retval
  1681. } # ac_fn_c_try_link
  1682. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1683. # -------------------------------------------------------
  1684. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1685. # the include files in INCLUDES and setting the cache variable VAR
  1686. # accordingly.
  1687. ac_fn_c_check_header_mongrel ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. if eval \${$3+:} false; then :
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1692. $as_echo_n "checking for $2... " >&6; }
  1693. if eval \${$3+:} false; then :
  1694. $as_echo_n "(cached) " >&6
  1695. fi
  1696. eval ac_res=\$$3
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1698. $as_echo "$ac_res" >&6; }
  1699. else
  1700. # Is the header compilable?
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1702. $as_echo_n "checking $2 usability... " >&6; }
  1703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end confdefs.h. */
  1705. $4
  1706. #include <$2>
  1707. _ACEOF
  1708. if ac_fn_c_try_compile "$LINENO"; then :
  1709. ac_header_compiler=yes
  1710. else
  1711. ac_header_compiler=no
  1712. fi
  1713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1715. $as_echo "$ac_header_compiler" >&6; }
  1716. # Is the header present?
  1717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1718. $as_echo_n "checking $2 presence... " >&6; }
  1719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1720. /* end confdefs.h. */
  1721. #include <$2>
  1722. _ACEOF
  1723. if ac_fn_c_try_cpp "$LINENO"; then :
  1724. ac_header_preproc=yes
  1725. else
  1726. ac_header_preproc=no
  1727. fi
  1728. rm -f conftest.err conftest.i conftest.$ac_ext
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1730. $as_echo "$ac_header_preproc" >&6; }
  1731. # So? What about this header?
  1732. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1733. yes:no: )
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1735. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1737. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1738. ;;
  1739. no:yes:* )
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1741. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1743. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1745. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1747. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1749. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1750. ;;
  1751. esac
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1753. $as_echo_n "checking for $2... " >&6; }
  1754. if eval \${$3+:} false; then :
  1755. $as_echo_n "(cached) " >&6
  1756. else
  1757. eval "$3=\$ac_header_compiler"
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. fi
  1763. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1764. } # ac_fn_c_check_header_mongrel
  1765. cat >config.log <<_ACEOF
  1766. This file contains any messages produced by compilers while
  1767. running configure, to aid debugging if configure makes a mistake.
  1768. It was created by rpkitools $as_me 1.0, which was
  1769. generated by GNU Autoconf 2.69. Invocation command line was
  1770. $ $0 $@
  1771. _ACEOF
  1772. exec 5>>config.log
  1773. {
  1774. cat <<_ASUNAME
  1775. ## --------- ##
  1776. ## Platform. ##
  1777. ## --------- ##
  1778. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1779. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1780. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1781. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1782. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1783. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1784. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1785. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1786. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1787. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1788. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1789. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1790. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1791. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1792. _ASUNAME
  1793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1794. for as_dir in $PATH
  1795. do
  1796. IFS=$as_save_IFS
  1797. test -z "$as_dir" && as_dir=.
  1798. $as_echo "PATH: $as_dir"
  1799. done
  1800. IFS=$as_save_IFS
  1801. } >&5
  1802. cat >&5 <<_ACEOF
  1803. ## ----------- ##
  1804. ## Core tests. ##
  1805. ## ----------- ##
  1806. _ACEOF
  1807. # Keep a trace of the command line.
  1808. # Strip out --no-create and --no-recursion so they do not pile up.
  1809. # Strip out --silent because we don't want to record it for future runs.
  1810. # Also quote any args containing shell meta-characters.
  1811. # Make two passes to allow for proper duplicate-argument suppression.
  1812. ac_configure_args=
  1813. ac_configure_args0=
  1814. ac_configure_args1=
  1815. ac_must_keep_next=false
  1816. for ac_pass in 1 2
  1817. do
  1818. for ac_arg
  1819. do
  1820. case $ac_arg in
  1821. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1822. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1823. | -silent | --silent | --silen | --sile | --sil)
  1824. continue ;;
  1825. *\'*)
  1826. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1827. esac
  1828. case $ac_pass in
  1829. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1830. 2)
  1831. as_fn_append ac_configure_args1 " '$ac_arg'"
  1832. if test $ac_must_keep_next = true; then
  1833. ac_must_keep_next=false # Got value, back to normal.
  1834. else
  1835. case $ac_arg in
  1836. *=* | --config-cache | -C | -disable-* | --disable-* \
  1837. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1838. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1839. | -with-* | --with-* | -without-* | --without-* | --x)
  1840. case "$ac_configure_args0 " in
  1841. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1842. esac
  1843. ;;
  1844. -* ) ac_must_keep_next=true ;;
  1845. esac
  1846. fi
  1847. as_fn_append ac_configure_args " '$ac_arg'"
  1848. ;;
  1849. esac
  1850. done
  1851. done
  1852. { ac_configure_args0=; unset ac_configure_args0;}
  1853. { ac_configure_args1=; unset ac_configure_args1;}
  1854. # When interrupted or exit'd, cleanup temporary files, and complete
  1855. # config.log. We remove comments because anyway the quotes in there
  1856. # would cause problems or look ugly.
  1857. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1858. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1859. trap 'exit_status=$?
  1860. # Save into config.log some information that might help in debugging.
  1861. {
  1862. echo
  1863. $as_echo "## ---------------- ##
  1864. ## Cache variables. ##
  1865. ## ---------------- ##"
  1866. echo
  1867. # The following way of writing the cache mishandles newlines in values,
  1868. (
  1869. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1870. eval ac_val=\$$ac_var
  1871. case $ac_val in #(
  1872. *${as_nl}*)
  1873. case $ac_var in #(
  1874. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1875. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1876. esac
  1877. case $ac_var in #(
  1878. _ | IFS | as_nl) ;; #(
  1879. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1880. *) { eval $ac_var=; unset $ac_var;} ;;
  1881. esac ;;
  1882. esac
  1883. done
  1884. (set) 2>&1 |
  1885. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1886. *${as_nl}ac_space=\ *)
  1887. sed -n \
  1888. "s/'\''/'\''\\\\'\'''\''/g;
  1889. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1890. ;; #(
  1891. *)
  1892. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1893. ;;
  1894. esac |
  1895. sort
  1896. )
  1897. echo
  1898. $as_echo "## ----------------- ##
  1899. ## Output variables. ##
  1900. ## ----------------- ##"
  1901. echo
  1902. for ac_var in $ac_subst_vars
  1903. do
  1904. eval ac_val=\$$ac_var
  1905. case $ac_val in
  1906. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1907. esac
  1908. $as_echo "$ac_var='\''$ac_val'\''"
  1909. done | sort
  1910. echo
  1911. if test -n "$ac_subst_files"; then
  1912. $as_echo "## ------------------- ##
  1913. ## File substitutions. ##
  1914. ## ------------------- ##"
  1915. echo
  1916. for ac_var in $ac_subst_files
  1917. do
  1918. eval ac_val=\$$ac_var
  1919. case $ac_val in
  1920. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1921. esac
  1922. $as_echo "$ac_var='\''$ac_val'\''"
  1923. done | sort
  1924. echo
  1925. fi
  1926. if test -s confdefs.h; then
  1927. $as_echo "## ----------- ##
  1928. ## confdefs.h. ##
  1929. ## ----------- ##"
  1930. echo
  1931. cat confdefs.h
  1932. echo
  1933. fi
  1934. test "$ac_signal" != 0 &&
  1935. $as_echo "$as_me: caught signal $ac_signal"
  1936. $as_echo "$as_me: exit $exit_status"
  1937. } >&5
  1938. rm -f core *.core core.conftest.* &&
  1939. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1940. exit $exit_status
  1941. ' 0
  1942. for ac_signal in 1 2 13 15; do
  1943. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1944. done
  1945. ac_signal=0
  1946. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1947. rm -f -r conftest* confdefs.h
  1948. $as_echo "/* confdefs.h */" > confdefs.h
  1949. # Predefined preprocessor variables.
  1950. cat >>confdefs.h <<_ACEOF
  1951. #define PACKAGE_NAME "$PACKAGE_NAME"
  1952. _ACEOF
  1953. cat >>confdefs.h <<_ACEOF
  1954. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1955. _ACEOF
  1956. cat >>confdefs.h <<_ACEOF
  1957. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1958. _ACEOF
  1959. cat >>confdefs.h <<_ACEOF
  1960. #define PACKAGE_STRING "$PACKAGE_STRING"
  1961. _ACEOF
  1962. cat >>confdefs.h <<_ACEOF
  1963. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1964. _ACEOF
  1965. cat >>confdefs.h <<_ACEOF
  1966. #define PACKAGE_URL "$PACKAGE_URL"
  1967. _ACEOF
  1968. # Let the site file select an alternate cache file if it wants to.
  1969. # Prefer an explicitly selected file to automatically selected ones.
  1970. ac_site_file1=NONE
  1971. ac_site_file2=NONE
  1972. if test -n "$CONFIG_SITE"; then
  1973. # We do not want a PATH search for config.site.
  1974. case $CONFIG_SITE in #((
  1975. -*) ac_site_file1=./$CONFIG_SITE;;
  1976. */*) ac_site_file1=$CONFIG_SITE;;
  1977. *) ac_site_file1=./$CONFIG_SITE;;
  1978. esac
  1979. elif test "x$prefix" != xNONE; then
  1980. ac_site_file1=$prefix/share/config.site
  1981. ac_site_file2=$prefix/etc/config.site
  1982. else
  1983. ac_site_file1=$ac_default_prefix/share/config.site
  1984. ac_site_file2=$ac_default_prefix/etc/config.site
  1985. fi
  1986. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1987. do
  1988. test "x$ac_site_file" = xNONE && continue
  1989. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1991. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1992. sed 's/^/| /' "$ac_site_file" >&5
  1993. . "$ac_site_file" \
  1994. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1995. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1996. as_fn_error $? "failed to load site script $ac_site_file
  1997. See \`config.log' for more details" "$LINENO" 5; }
  1998. fi
  1999. done
  2000. if test -r "$cache_file"; then
  2001. # Some versions of bash will fail to source /dev/null (special files
  2002. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2003. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2005. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2006. case $cache_file in
  2007. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2008. *) . "./$cache_file";;
  2009. esac
  2010. fi
  2011. else
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2013. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2014. >$cache_file
  2015. fi
  2016. # Check that the precious variables saved in the cache have kept the same
  2017. # value.
  2018. ac_cache_corrupted=false
  2019. for ac_var in $ac_precious_vars; do
  2020. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2021. eval ac_new_set=\$ac_env_${ac_var}_set
  2022. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2023. eval ac_new_val=\$ac_env_${ac_var}_value
  2024. case $ac_old_set,$ac_new_set in
  2025. set,)
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2027. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2028. ac_cache_corrupted=: ;;
  2029. ,set)
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2031. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2032. ac_cache_corrupted=: ;;
  2033. ,);;
  2034. *)
  2035. if test "x$ac_old_val" != "x$ac_new_val"; then
  2036. # differences in whitespace do not lead to failure.
  2037. ac_old_val_w=`echo x $ac_old_val`
  2038. ac_new_val_w=`echo x $ac_new_val`
  2039. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2041. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2042. ac_cache_corrupted=:
  2043. else
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2045. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2046. eval $ac_var=\$ac_old_val
  2047. fi
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2049. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2051. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2052. fi;;
  2053. esac
  2054. # Pass precious variables to config.status.
  2055. if test "$ac_new_set" = set; then
  2056. case $ac_new_val in
  2057. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2058. *) ac_arg=$ac_var=$ac_new_val ;;
  2059. esac
  2060. case " $ac_configure_args " in
  2061. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2062. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2063. esac
  2064. fi
  2065. done
  2066. if $ac_cache_corrupted; then
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2068. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2070. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2071. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2072. fi
  2073. ## -------------------- ##
  2074. ## Main body of script. ##
  2075. ## -------------------- ##
  2076. ac_ext=c
  2077. ac_cpp='$CPP $CPPFLAGS'
  2078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2081. # AC_REVISION is a great idea in theory, but the revision will always
  2082. # be wrong unless we do two checkins, so skip it for now. Someday.
  2083. ac_aux_dir=
  2084. for ac_dir in buildtools "$srcdir"/buildtools; do
  2085. if test -f "$ac_dir/install-sh"; then
  2086. ac_aux_dir=$ac_dir
  2087. ac_install_sh="$ac_aux_dir/install-sh -c"
  2088. break
  2089. elif test -f "$ac_dir/install.sh"; then
  2090. ac_aux_dir=$ac_dir
  2091. ac_install_sh="$ac_aux_dir/install.sh -c"
  2092. break
  2093. elif test -f "$ac_dir/shtool"; then
  2094. ac_aux_dir=$ac_dir
  2095. ac_install_sh="$ac_aux_dir/shtool install -c"
  2096. break
  2097. fi
  2098. done
  2099. if test -z "$ac_aux_dir"; then
  2100. as_fn_error $? "cannot find install-sh, install.sh, or shtool in buildtools \"$srcdir\"/buildtools" "$LINENO" 5
  2101. fi
  2102. # These three variables are undocumented and unsupported,
  2103. # and are intended to be withdrawn in a future Autoconf release.
  2104. # They can cause serious problems if a builder's source tree is in a directory
  2105. # whose full name contains unusual characters.
  2106. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2107. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2108. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2109. # I'm not sure we should really be using the $host_* variables as we
  2110. # are, some of the stuff we're doing with them looks more like
  2111. # $target_* to me now, but on the theory that we should not fix things
  2112. # that aren't broken, stick with $host_* for now.
  2113. # Make sure we can run config.sub.
  2114. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2115. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2117. $as_echo_n "checking build system type... " >&6; }
  2118. if ${ac_cv_build+:} false; then :
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. ac_build_alias=$build_alias
  2122. test "x$ac_build_alias" = x &&
  2123. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2124. test "x$ac_build_alias" = x &&
  2125. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2126. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2127. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2128. fi
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2130. $as_echo "$ac_cv_build" >&6; }
  2131. case $ac_cv_build in
  2132. *-*-*) ;;
  2133. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2134. esac
  2135. build=$ac_cv_build
  2136. ac_save_IFS=$IFS; IFS='-'
  2137. set x $ac_cv_build
  2138. shift
  2139. build_cpu=$1
  2140. build_vendor=$2
  2141. shift; shift
  2142. # Remember, the first character of IFS is used to create $*,
  2143. # except with old shells:
  2144. build_os=$*
  2145. IFS=$ac_save_IFS
  2146. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2148. $as_echo_n "checking host system type... " >&6; }
  2149. if ${ac_cv_host+:} false; then :
  2150. $as_echo_n "(cached) " >&6
  2151. else
  2152. if test "x$host_alias" = x; then
  2153. ac_cv_host=$ac_cv_build
  2154. else
  2155. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2156. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2157. fi
  2158. fi
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2160. $as_echo "$ac_cv_host" >&6; }
  2161. case $ac_cv_host in
  2162. *-*-*) ;;
  2163. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2164. esac
  2165. host=$ac_cv_host
  2166. ac_save_IFS=$IFS; IFS='-'
  2167. set x $ac_cv_host
  2168. shift
  2169. host_cpu=$1
  2170. host_vendor=$2
  2171. shift; shift
  2172. # Remember, the first character of IFS is used to create $*,
  2173. # except with old shells:
  2174. host_os=$*
  2175. IFS=$ac_save_IFS
  2176. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2177. # Remember whether CFLAGS or LDFLAGS were set explictly. This has to
  2178. # come early in the script, before we mess it up testing things.
  2179. if test "x${CFLAGS+set}" = "x" && test "x${LDFLAGS+set}" = "x"
  2180. then
  2181. CFLAGS_or_LDFLAGS_were_set=no
  2182. else
  2183. CFLAGS_or_LDFLAGS_were_set=yes
  2184. fi
  2185. # Put the user option stuff up front.
  2186. # Check whether --with-system_openssl was given.
  2187. if test "${with_system_openssl+set}" = set; then :
  2188. withval=$with_system_openssl;
  2189. else
  2190. with_system_openssl=auto
  2191. fi
  2192. # Check whether --enable-openssl_asm was given.
  2193. if test "${enable_openssl_asm+set}" = set; then :
  2194. enableval=$enable_openssl_asm;
  2195. else
  2196. enable_openssl_asm=auto
  2197. fi
  2198. # Check whether --enable-ca_tools was given.
  2199. if test "${enable_ca_tools+set}" = set; then :
  2200. enableval=$enable_ca_tools;
  2201. else
  2202. enable_ca_tools=yes
  2203. fi
  2204. # Check whether --enable-rp_tools was given.
  2205. if test "${enable_rp_tools+set}" = set; then :
  2206. enableval=$enable_rp_tools;
  2207. else
  2208. enable_rp_tools=yes
  2209. fi
  2210. # Check whether --enable-target_installation was given.
  2211. if test "${enable_target_installation+set}" = set; then :
  2212. enableval=$enable_target_installation;
  2213. else
  2214. enable_target_installation=yes
  2215. fi
  2216. # Check whether --enable-wsgi_daemon_mode was given.
  2217. if test "${enable_wsgi_daemon_mode+set}" = set; then :
  2218. enableval=$enable_wsgi_daemon_mode;
  2219. else
  2220. enable_wsgi_daemon_mode=no
  2221. fi
  2222. # Check whether --enable-python_install_layout was given.
  2223. if test "${enable_python_install_layout+set}" = set; then :
  2224. enableval=$enable_python_install_layout;
  2225. else
  2226. enable_python_install_layout=auto
  2227. fi
  2228. # Check whether --enable-wsgi_python_egg_cache was given.
  2229. if test "${enable_wsgi_python_egg_cache+set}" = set; then :
  2230. enableval=$enable_wsgi_python_egg_cache;
  2231. else
  2232. enable_wsgi_python_egg_cache=auto
  2233. fi
  2234. # Check whether --enable-runtime_dependencies was given.
  2235. if test "${enable_runtime_dependencies+set}" = set; then :
  2236. enableval=$enable_runtime_dependencies;
  2237. else
  2238. enable_runtime_dependencies=yes
  2239. fi
  2240. # Obsolete options. If you know of a better way to handle this, tell me.
  2241. # Check whether --enable-python was given.
  2242. if test "${enable_python+set}" = set; then :
  2243. enableval=$enable_python; as_fn_error $? "--disable-python is obsolete. Please see the --disable-ca-tools option" "$LINENO" 5
  2244. fi
  2245. # Check whether --enable-django was given.
  2246. if test "${enable_django+set}" = set; then :
  2247. enableval=$enable_django; as_fn_error $? "--disable-django is obsolete. Please see the --disable-ca-tools option" "$LINENO" 5
  2248. fi
  2249. # Check whether --enable-rpki_rtr was given.
  2250. if test "${enable_rpki_rtr+set}" = set; then :
  2251. enableval=$enable_rpki_rtr; as_fn_error $? "--disable-rpki-rtr is obsolete. Please see the --disable-rp-tools option" "$LINENO" 5
  2252. fi
  2253. # Check whether --enable-rcynic_jail was given.
  2254. if test "${enable_rcynic_jail+set}" = set; then :
  2255. enableval=$enable_rcynic_jail; as_fn_error $? "--enable-rcynic-jail is obsolete." "$LINENO" 5
  2256. fi
  2257. ac_ext=c
  2258. ac_cpp='$CPP $CPPFLAGS'
  2259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2262. if test -n "$ac_tool_prefix"; then
  2263. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2264. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2266. $as_echo_n "checking for $ac_word... " >&6; }
  2267. if ${ac_cv_prog_CC+:} false; then :
  2268. $as_echo_n "(cached) " >&6
  2269. else
  2270. if test -n "$CC"; then
  2271. ac_cv_prog_CC="$CC" # Let the user override the test.
  2272. else
  2273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2274. for as_dir in $PATH
  2275. do
  2276. IFS=$as_save_IFS
  2277. test -z "$as_dir" && as_dir=.
  2278. for ac_exec_ext in '' $ac_executable_extensions; do
  2279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2280. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2282. break 2
  2283. fi
  2284. done
  2285. done
  2286. IFS=$as_save_IFS
  2287. fi
  2288. fi
  2289. CC=$ac_cv_prog_CC
  2290. if test -n "$CC"; then
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2292. $as_echo "$CC" >&6; }
  2293. else
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2295. $as_echo "no" >&6; }
  2296. fi
  2297. fi
  2298. if test -z "$ac_cv_prog_CC"; then
  2299. ac_ct_CC=$CC
  2300. # Extract the first word of "gcc", so it can be a program name with args.
  2301. set dummy gcc; ac_word=$2
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2303. $as_echo_n "checking for $ac_word... " >&6; }
  2304. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2305. $as_echo_n "(cached) " >&6
  2306. else
  2307. if test -n "$ac_ct_CC"; then
  2308. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2309. else
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH
  2312. do
  2313. IFS=$as_save_IFS
  2314. test -z "$as_dir" && as_dir=.
  2315. for ac_exec_ext in '' $ac_executable_extensions; do
  2316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2317. ac_cv_prog_ac_ct_CC="gcc"
  2318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2319. break 2
  2320. fi
  2321. done
  2322. done
  2323. IFS=$as_save_IFS
  2324. fi
  2325. fi
  2326. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2327. if test -n "$ac_ct_CC"; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2329. $as_echo "$ac_ct_CC" >&6; }
  2330. else
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2332. $as_echo "no" >&6; }
  2333. fi
  2334. if test "x$ac_ct_CC" = x; then
  2335. CC=""
  2336. else
  2337. case $cross_compiling:$ac_tool_warned in
  2338. yes:)
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2341. ac_tool_warned=yes ;;
  2342. esac
  2343. CC=$ac_ct_CC
  2344. fi
  2345. else
  2346. CC="$ac_cv_prog_CC"
  2347. fi
  2348. if test -z "$CC"; then
  2349. if test -n "$ac_tool_prefix"; then
  2350. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2351. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2353. $as_echo_n "checking for $ac_word... " >&6; }
  2354. if ${ac_cv_prog_CC+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. if test -n "$CC"; then
  2358. ac_cv_prog_CC="$CC" # Let the user override the test.
  2359. else
  2360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2361. for as_dir in $PATH
  2362. do
  2363. IFS=$as_save_IFS
  2364. test -z "$as_dir" && as_dir=.
  2365. for ac_exec_ext in '' $ac_executable_extensions; do
  2366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2367. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2369. break 2
  2370. fi
  2371. done
  2372. done
  2373. IFS=$as_save_IFS
  2374. fi
  2375. fi
  2376. CC=$ac_cv_prog_CC
  2377. if test -n "$CC"; then
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2379. $as_echo "$CC" >&6; }
  2380. else
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2382. $as_echo "no" >&6; }
  2383. fi
  2384. fi
  2385. fi
  2386. if test -z "$CC"; then
  2387. # Extract the first word of "cc", so it can be a program name with args.
  2388. set dummy cc; ac_word=$2
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2390. $as_echo_n "checking for $ac_word... " >&6; }
  2391. if ${ac_cv_prog_CC+:} false; then :
  2392. $as_echo_n "(cached) " >&6
  2393. else
  2394. if test -n "$CC"; then
  2395. ac_cv_prog_CC="$CC" # Let the user override the test.
  2396. else
  2397. ac_prog_rejected=no
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2405. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2406. ac_prog_rejected=yes
  2407. continue
  2408. fi
  2409. ac_cv_prog_CC="cc"
  2410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. if test $ac_prog_rejected = yes; then
  2417. # We found a bogon in the path, so make sure we never use it.
  2418. set dummy $ac_cv_prog_CC
  2419. shift
  2420. if test $# != 0; then
  2421. # We chose a different compiler from the bogus one.
  2422. # However, it has the same basename, so the bogon will be chosen
  2423. # first if we set CC to just the basename; use the full file name.
  2424. shift
  2425. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2426. fi
  2427. fi
  2428. fi
  2429. fi
  2430. CC=$ac_cv_prog_CC
  2431. if test -n "$CC"; then
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2433. $as_echo "$CC" >&6; }
  2434. else
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2436. $as_echo "no" >&6; }
  2437. fi
  2438. fi
  2439. if test -z "$CC"; then
  2440. if test -n "$ac_tool_prefix"; then
  2441. for ac_prog in cl.exe
  2442. do
  2443. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2444. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2446. $as_echo_n "checking for $ac_word... " >&6; }
  2447. if ${ac_cv_prog_CC+:} false; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. if test -n "$CC"; then
  2451. ac_cv_prog_CC="$CC" # Let the user override the test.
  2452. else
  2453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2454. for as_dir in $PATH
  2455. do
  2456. IFS=$as_save_IFS
  2457. test -z "$as_dir" && as_dir=.
  2458. for ac_exec_ext in '' $ac_executable_extensions; do
  2459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2460. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2462. break 2
  2463. fi
  2464. done
  2465. done
  2466. IFS=$as_save_IFS
  2467. fi
  2468. fi
  2469. CC=$ac_cv_prog_CC
  2470. if test -n "$CC"; then
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2472. $as_echo "$CC" >&6; }
  2473. else
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2475. $as_echo "no" >&6; }
  2476. fi
  2477. test -n "$CC" && break
  2478. done
  2479. fi
  2480. if test -z "$CC"; then
  2481. ac_ct_CC=$CC
  2482. for ac_prog in cl.exe
  2483. do
  2484. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2485. set dummy $ac_prog; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$ac_ct_CC"; then
  2492. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2501. ac_cv_prog_ac_ct_CC="$ac_prog"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2511. if test -n "$ac_ct_CC"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2513. $as_echo "$ac_ct_CC" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. test -n "$ac_ct_CC" && break
  2519. done
  2520. if test "x$ac_ct_CC" = x; then
  2521. CC=""
  2522. else
  2523. case $cross_compiling:$ac_tool_warned in
  2524. yes:)
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2526. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2527. ac_tool_warned=yes ;;
  2528. esac
  2529. CC=$ac_ct_CC
  2530. fi
  2531. fi
  2532. fi
  2533. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2535. as_fn_error $? "no acceptable C compiler found in \$PATH
  2536. See \`config.log' for more details" "$LINENO" 5; }
  2537. # Provide some information about the compiler.
  2538. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2539. set X $ac_compile
  2540. ac_compiler=$2
  2541. for ac_option in --version -v -V -qversion; do
  2542. { { ac_try="$ac_compiler $ac_option >&5"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2548. $as_echo "$ac_try_echo"; } >&5
  2549. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2550. ac_status=$?
  2551. if test -s conftest.err; then
  2552. sed '10a\
  2553. ... rest of stderr output deleted ...
  2554. 10q' conftest.err >conftest.er1
  2555. cat conftest.er1 >&5
  2556. fi
  2557. rm -f conftest.er1 conftest.err
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2559. test $ac_status = 0; }
  2560. done
  2561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2562. /* end confdefs.h. */
  2563. int
  2564. main ()
  2565. {
  2566. ;
  2567. return 0;
  2568. }
  2569. _ACEOF
  2570. ac_clean_files_save=$ac_clean_files
  2571. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2572. # Try to create an executable without -o first, disregard a.out.
  2573. # It will help us diagnose broken compilers, and finding out an intuition
  2574. # of exeext.
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2576. $as_echo_n "checking whether the C compiler works... " >&6; }
  2577. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2578. # The possible output files:
  2579. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2580. ac_rmfiles=
  2581. for ac_file in $ac_files
  2582. do
  2583. case $ac_file in
  2584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2585. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2586. esac
  2587. done
  2588. rm -f $ac_rmfiles
  2589. if { { ac_try="$ac_link_default"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2595. $as_echo "$ac_try_echo"; } >&5
  2596. (eval "$ac_link_default") 2>&5
  2597. ac_status=$?
  2598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2599. test $ac_status = 0; }; then :
  2600. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2601. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2602. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2603. # so that the user can short-circuit this test for compilers unknown to
  2604. # Autoconf.
  2605. for ac_file in $ac_files ''
  2606. do
  2607. test -f "$ac_file" || continue
  2608. case $ac_file in
  2609. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2610. ;;
  2611. [ab].out )
  2612. # We found the default executable, but exeext='' is most
  2613. # certainly right.
  2614. break;;
  2615. *.* )
  2616. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2617. then :; else
  2618. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2619. fi
  2620. # We set ac_cv_exeext here because the later test for it is not
  2621. # safe: cross compilers may not add the suffix if given an `-o'
  2622. # argument, so we may need to know it at that point already.
  2623. # Even if this section looks crufty: it has the advantage of
  2624. # actually working.
  2625. break;;
  2626. * )
  2627. break;;
  2628. esac
  2629. done
  2630. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2631. else
  2632. ac_file=''
  2633. fi
  2634. if test -z "$ac_file"; then :
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. $as_echo "$as_me: failed program was:" >&5
  2638. sed 's/^/| /' conftest.$ac_ext >&5
  2639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2641. as_fn_error 77 "C compiler cannot create executables
  2642. See \`config.log' for more details" "$LINENO" 5; }
  2643. else
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2645. $as_echo "yes" >&6; }
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2648. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2650. $as_echo "$ac_file" >&6; }
  2651. ac_exeext=$ac_cv_exeext
  2652. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2653. ac_clean_files=$ac_clean_files_save
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2655. $as_echo_n "checking for suffix of executables... " >&6; }
  2656. if { { ac_try="$ac_link"
  2657. case "(($ac_try" in
  2658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2659. *) ac_try_echo=$ac_try;;
  2660. esac
  2661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2662. $as_echo "$ac_try_echo"; } >&5
  2663. (eval "$ac_link") 2>&5
  2664. ac_status=$?
  2665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2666. test $ac_status = 0; }; then :
  2667. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2668. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2669. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2670. # `rm'.
  2671. for ac_file in conftest.exe conftest conftest.*; do
  2672. test -f "$ac_file" || continue
  2673. case $ac_file in
  2674. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2675. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2676. break;;
  2677. * ) break;;
  2678. esac
  2679. done
  2680. else
  2681. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2682. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2683. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2684. See \`config.log' for more details" "$LINENO" 5; }
  2685. fi
  2686. rm -f conftest conftest$ac_cv_exeext
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2688. $as_echo "$ac_cv_exeext" >&6; }
  2689. rm -f conftest.$ac_ext
  2690. EXEEXT=$ac_cv_exeext
  2691. ac_exeext=$EXEEXT
  2692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2693. /* end confdefs.h. */
  2694. #include <stdio.h>
  2695. int
  2696. main ()
  2697. {
  2698. FILE *f = fopen ("conftest.out", "w");
  2699. return ferror (f) || fclose (f) != 0;
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. ac_clean_files="$ac_clean_files conftest.out"
  2705. # Check that the compiler produces executables we can run. If not, either
  2706. # the compiler is broken, or we cross compile.
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2708. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2709. if test "$cross_compiling" != yes; then
  2710. { { ac_try="$ac_link"
  2711. case "(($ac_try" in
  2712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2713. *) ac_try_echo=$ac_try;;
  2714. esac
  2715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2716. $as_echo "$ac_try_echo"; } >&5
  2717. (eval "$ac_link") 2>&5
  2718. ac_status=$?
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2720. test $ac_status = 0; }
  2721. if { ac_try='./conftest$ac_cv_exeext'
  2722. { { case "(($ac_try" in
  2723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2724. *) ac_try_echo=$ac_try;;
  2725. esac
  2726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2727. $as_echo "$ac_try_echo"; } >&5
  2728. (eval "$ac_try") 2>&5
  2729. ac_status=$?
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2731. test $ac_status = 0; }; }; then
  2732. cross_compiling=no
  2733. else
  2734. if test "$cross_compiling" = maybe; then
  2735. cross_compiling=yes
  2736. else
  2737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2739. as_fn_error $? "cannot run C compiled programs.
  2740. If you meant to cross compile, use \`--host'.
  2741. See \`config.log' for more details" "$LINENO" 5; }
  2742. fi
  2743. fi
  2744. fi
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2746. $as_echo "$cross_compiling" >&6; }
  2747. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2748. ac_clean_files=$ac_clean_files_save
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2750. $as_echo_n "checking for suffix of object files... " >&6; }
  2751. if ${ac_cv_objext+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2755. /* end confdefs.h. */
  2756. int
  2757. main ()
  2758. {
  2759. ;
  2760. return 0;
  2761. }
  2762. _ACEOF
  2763. rm -f conftest.o conftest.obj
  2764. if { { ac_try="$ac_compile"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo"; } >&5
  2771. (eval "$ac_compile") 2>&5
  2772. ac_status=$?
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2774. test $ac_status = 0; }; then :
  2775. for ac_file in conftest.o conftest.obj conftest.*; do
  2776. test -f "$ac_file" || continue;
  2777. case $ac_file in
  2778. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2779. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2780. break;;
  2781. esac
  2782. done
  2783. else
  2784. $as_echo "$as_me: failed program was:" >&5
  2785. sed 's/^/| /' conftest.$ac_ext >&5
  2786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2788. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2789. See \`config.log' for more details" "$LINENO" 5; }
  2790. fi
  2791. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2794. $as_echo "$ac_cv_objext" >&6; }
  2795. OBJEXT=$ac_cv_objext
  2796. ac_objext=$OBJEXT
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2798. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2799. if ${ac_cv_c_compiler_gnu+:} false; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2803. /* end confdefs.h. */
  2804. int
  2805. main ()
  2806. {
  2807. #ifndef __GNUC__
  2808. choke me
  2809. #endif
  2810. ;
  2811. return 0;
  2812. }
  2813. _ACEOF
  2814. if ac_fn_c_try_compile "$LINENO"; then :
  2815. ac_compiler_gnu=yes
  2816. else
  2817. ac_compiler_gnu=no
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2820. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2821. fi
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2823. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2824. if test $ac_compiler_gnu = yes; then
  2825. GCC=yes
  2826. else
  2827. GCC=
  2828. fi
  2829. ac_test_CFLAGS=${CFLAGS+set}
  2830. ac_save_CFLAGS=$CFLAGS
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2832. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2833. if ${ac_cv_prog_cc_g+:} false; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. ac_save_c_werror_flag=$ac_c_werror_flag
  2837. ac_c_werror_flag=yes
  2838. ac_cv_prog_cc_g=no
  2839. CFLAGS="-g"
  2840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end confdefs.h. */
  2842. int
  2843. main ()
  2844. {
  2845. ;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. if ac_fn_c_try_compile "$LINENO"; then :
  2850. ac_cv_prog_cc_g=yes
  2851. else
  2852. CFLAGS=""
  2853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end confdefs.h. */
  2855. int
  2856. main ()
  2857. {
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. if ac_fn_c_try_compile "$LINENO"; then :
  2863. else
  2864. ac_c_werror_flag=$ac_save_c_werror_flag
  2865. CFLAGS="-g"
  2866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. if ac_fn_c_try_compile "$LINENO"; then :
  2876. ac_cv_prog_cc_g=yes
  2877. fi
  2878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2879. fi
  2880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. fi
  2882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2883. ac_c_werror_flag=$ac_save_c_werror_flag
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2886. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2887. if test "$ac_test_CFLAGS" = set; then
  2888. CFLAGS=$ac_save_CFLAGS
  2889. elif test $ac_cv_prog_cc_g = yes; then
  2890. if test "$GCC" = yes; then
  2891. CFLAGS="-g -O2"
  2892. else
  2893. CFLAGS="-g"
  2894. fi
  2895. else
  2896. if test "$GCC" = yes; then
  2897. CFLAGS="-O2"
  2898. else
  2899. CFLAGS=
  2900. fi
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2903. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2904. if ${ac_cv_prog_cc_c89+:} false; then :
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. ac_cv_prog_cc_c89=no
  2908. ac_save_CC=$CC
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. #include <stdarg.h>
  2912. #include <stdio.h>
  2913. struct stat;
  2914. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2915. struct buf { int x; };
  2916. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2917. static char *e (p, i)
  2918. char **p;
  2919. int i;
  2920. {
  2921. return p[i];
  2922. }
  2923. static char *f (char * (*g) (char **, int), char **p, ...)
  2924. {
  2925. char *s;
  2926. va_list v;
  2927. va_start (v,p);
  2928. s = g (p, va_arg (v,int));
  2929. va_end (v);
  2930. return s;
  2931. }
  2932. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2933. function prototypes and stuff, but not '\xHH' hex character constants.
  2934. These don't provoke an error unfortunately, instead are silently treated
  2935. as 'x'. The following induces an error, until -std is added to get
  2936. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2937. array size at least. It's necessary to write '\x00'==0 to get something
  2938. that's true only with -std. */
  2939. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2940. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2941. inside strings and character constants. */
  2942. #define FOO(x) 'x'
  2943. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2944. int test (int i, double x);
  2945. struct s1 {int (*f) (int a);};
  2946. struct s2 {int (*f) (double a);};
  2947. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2948. int argc;
  2949. char **argv;
  2950. int
  2951. main ()
  2952. {
  2953. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2954. ;
  2955. return 0;
  2956. }
  2957. _ACEOF
  2958. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2959. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2960. do
  2961. CC="$ac_save_CC $ac_arg"
  2962. if ac_fn_c_try_compile "$LINENO"; then :
  2963. ac_cv_prog_cc_c89=$ac_arg
  2964. fi
  2965. rm -f core conftest.err conftest.$ac_objext
  2966. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2967. done
  2968. rm -f conftest.$ac_ext
  2969. CC=$ac_save_CC
  2970. fi
  2971. # AC_CACHE_VAL
  2972. case "x$ac_cv_prog_cc_c89" in
  2973. x)
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2975. $as_echo "none needed" >&6; } ;;
  2976. xno)
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2978. $as_echo "unsupported" >&6; } ;;
  2979. *)
  2980. CC="$CC $ac_cv_prog_cc_c89"
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2982. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2983. esac
  2984. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2985. fi
  2986. ac_ext=c
  2987. ac_cpp='$CPP $CPPFLAGS'
  2988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2991. # Find a good install program. We prefer a C program (faster),
  2992. # so one script is as good as another. But avoid the broken or
  2993. # incompatible versions:
  2994. # SysV /etc/install, /usr/sbin/install
  2995. # SunOS /usr/etc/install
  2996. # IRIX /sbin/install
  2997. # AIX /bin/install
  2998. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2999. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3000. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3001. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3002. # OS/2's system install, which has a completely different semantic
  3003. # ./install, which can be erroneously created by make from ./install.sh.
  3004. # Reject install programs that cannot install multiple files.
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3006. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3007. if test -z "$INSTALL"; then
  3008. if ${ac_cv_path_install+:} false; then :
  3009. $as_echo_n "(cached) " >&6
  3010. else
  3011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3012. for as_dir in $PATH
  3013. do
  3014. IFS=$as_save_IFS
  3015. test -z "$as_dir" && as_dir=.
  3016. # Account for people who put trailing slashes in PATH elements.
  3017. case $as_dir/ in #((
  3018. ./ | .// | /[cC]/* | \
  3019. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3020. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3021. /usr/ucb/* ) ;;
  3022. *)
  3023. # OSF1 and SCO ODT 3.0 have their own names for install.
  3024. # Don't use installbsd from OSF since it installs stuff as root
  3025. # by default.
  3026. for ac_prog in ginstall scoinst install; do
  3027. for ac_exec_ext in '' $ac_executable_extensions; do
  3028. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3029. if test $ac_prog = install &&
  3030. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3031. # AIX install. It has an incompatible calling convention.
  3032. :
  3033. elif test $ac_prog = install &&
  3034. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3035. # program-specific install script used by HP pwplus--don't use.
  3036. :
  3037. else
  3038. rm -rf conftest.one conftest.two conftest.dir
  3039. echo one > conftest.one
  3040. echo two > conftest.two
  3041. mkdir conftest.dir
  3042. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3043. test -s conftest.one && test -s conftest.two &&
  3044. test -s conftest.dir/conftest.one &&
  3045. test -s conftest.dir/conftest.two
  3046. then
  3047. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3048. break 3
  3049. fi
  3050. fi
  3051. fi
  3052. done
  3053. done
  3054. ;;
  3055. esac
  3056. done
  3057. IFS=$as_save_IFS
  3058. rm -rf conftest.one conftest.two conftest.dir
  3059. fi
  3060. if test "${ac_cv_path_install+set}" = set; then
  3061. INSTALL=$ac_cv_path_install
  3062. else
  3063. # As a last resort, use the slow shell script. Don't cache a
  3064. # value for INSTALL within a source directory, because that will
  3065. # break other packages using the cache if that directory is
  3066. # removed, or if the value is a relative name.
  3067. INSTALL=$ac_install_sh
  3068. fi
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3071. $as_echo "$INSTALL" >&6; }
  3072. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3073. # It thinks the first close brace ends the variable substitution.
  3074. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3075. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3076. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3077. ac_ext=c
  3078. ac_cpp='$CPP $CPPFLAGS'
  3079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3083. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3084. # On Suns, sometimes $CPP names a directory.
  3085. if test -n "$CPP" && test -d "$CPP"; then
  3086. CPP=
  3087. fi
  3088. if test -z "$CPP"; then
  3089. if ${ac_cv_prog_CPP+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. # Double quotes because CPP needs to be expanded
  3093. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3094. do
  3095. ac_preproc_ok=false
  3096. for ac_c_preproc_warn_flag in '' yes
  3097. do
  3098. # Use a header file that comes with gcc, so configuring glibc
  3099. # with a fresh cross-compiler works.
  3100. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3101. # <limits.h> exists even on freestanding compilers.
  3102. # On the NeXT, cc -E runs the code through the compiler's parser,
  3103. # not just through cpp. "Syntax error" is here to catch this case.
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. #ifdef __STDC__
  3107. # include <limits.h>
  3108. #else
  3109. # include <assert.h>
  3110. #endif
  3111. Syntax error
  3112. _ACEOF
  3113. if ac_fn_c_try_cpp "$LINENO"; then :
  3114. else
  3115. # Broken: fails on valid input.
  3116. continue
  3117. fi
  3118. rm -f conftest.err conftest.i conftest.$ac_ext
  3119. # OK, works on sane cases. Now check whether nonexistent headers
  3120. # can be detected and how.
  3121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3122. /* end confdefs.h. */
  3123. #include <ac_nonexistent.h>
  3124. _ACEOF
  3125. if ac_fn_c_try_cpp "$LINENO"; then :
  3126. # Broken: success on invalid input.
  3127. continue
  3128. else
  3129. # Passes both tests.
  3130. ac_preproc_ok=:
  3131. break
  3132. fi
  3133. rm -f conftest.err conftest.i conftest.$ac_ext
  3134. done
  3135. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3136. rm -f conftest.i conftest.err conftest.$ac_ext
  3137. if $ac_preproc_ok; then :
  3138. break
  3139. fi
  3140. done
  3141. ac_cv_prog_CPP=$CPP
  3142. fi
  3143. CPP=$ac_cv_prog_CPP
  3144. else
  3145. ac_cv_prog_CPP=$CPP
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3148. $as_echo "$CPP" >&6; }
  3149. ac_preproc_ok=false
  3150. for ac_c_preproc_warn_flag in '' yes
  3151. do
  3152. # Use a header file that comes with gcc, so configuring glibc
  3153. # with a fresh cross-compiler works.
  3154. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3155. # <limits.h> exists even on freestanding compilers.
  3156. # On the NeXT, cc -E runs the code through the compiler's parser,
  3157. # not just through cpp. "Syntax error" is here to catch this case.
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. #ifdef __STDC__
  3161. # include <limits.h>
  3162. #else
  3163. # include <assert.h>
  3164. #endif
  3165. Syntax error
  3166. _ACEOF
  3167. if ac_fn_c_try_cpp "$LINENO"; then :
  3168. else
  3169. # Broken: fails on valid input.
  3170. continue
  3171. fi
  3172. rm -f conftest.err conftest.i conftest.$ac_ext
  3173. # OK, works on sane cases. Now check whether nonexistent headers
  3174. # can be detected and how.
  3175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3176. /* end confdefs.h. */
  3177. #include <ac_nonexistent.h>
  3178. _ACEOF
  3179. if ac_fn_c_try_cpp "$LINENO"; then :
  3180. # Broken: success on invalid input.
  3181. continue
  3182. else
  3183. # Passes both tests.
  3184. ac_preproc_ok=:
  3185. break
  3186. fi
  3187. rm -f conftest.err conftest.i conftest.$ac_ext
  3188. done
  3189. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3190. rm -f conftest.i conftest.err conftest.$ac_ext
  3191. if $ac_preproc_ok; then :
  3192. else
  3193. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3195. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3196. See \`config.log' for more details" "$LINENO" 5; }
  3197. fi
  3198. ac_ext=c
  3199. ac_cpp='$CPP $CPPFLAGS'
  3200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3204. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3205. if ${ac_cv_path_GREP+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -z "$GREP"; then
  3209. ac_path_GREP_found=false
  3210. # Loop through the user's path and test for each of PROGNAME-LIST
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_prog in grep ggrep; do
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3219. as_fn_executable_p "$ac_path_GREP" || continue
  3220. # Check for GNU ac_path_GREP and select it if it is found.
  3221. # Check for GNU $ac_path_GREP
  3222. case `"$ac_path_GREP" --version 2>&1` in
  3223. *GNU*)
  3224. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3225. *)
  3226. ac_count=0
  3227. $as_echo_n 0123456789 >"conftest.in"
  3228. while :
  3229. do
  3230. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3231. mv "conftest.tmp" "conftest.in"
  3232. cp "conftest.in" "conftest.nl"
  3233. $as_echo 'GREP' >> "conftest.nl"
  3234. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3235. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3236. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3237. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3238. # Best one so far, save it but keep looking for a better one
  3239. ac_cv_path_GREP="$ac_path_GREP"
  3240. ac_path_GREP_max=$ac_count
  3241. fi
  3242. # 10*(2^10) chars as input seems more than enough
  3243. test $ac_count -gt 10 && break
  3244. done
  3245. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3246. esac
  3247. $ac_path_GREP_found && break 3
  3248. done
  3249. done
  3250. done
  3251. IFS=$as_save_IFS
  3252. if test -z "$ac_cv_path_GREP"; then
  3253. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3254. fi
  3255. else
  3256. ac_cv_path_GREP=$GREP
  3257. fi
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3260. $as_echo "$ac_cv_path_GREP" >&6; }
  3261. GREP="$ac_cv_path_GREP"
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3263. $as_echo_n "checking for egrep... " >&6; }
  3264. if ${ac_cv_path_EGREP+:} false; then :
  3265. $as_echo_n "(cached) " >&6
  3266. else
  3267. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3268. then ac_cv_path_EGREP="$GREP -E"
  3269. else
  3270. if test -z "$EGREP"; then
  3271. ac_path_EGREP_found=false
  3272. # Loop through the user's path and test for each of PROGNAME-LIST
  3273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3274. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3275. do
  3276. IFS=$as_save_IFS
  3277. test -z "$as_dir" && as_dir=.
  3278. for ac_prog in egrep; do
  3279. for ac_exec_ext in '' $ac_executable_extensions; do
  3280. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3281. as_fn_executable_p "$ac_path_EGREP" || continue
  3282. # Check for GNU ac_path_EGREP and select it if it is found.
  3283. # Check for GNU $ac_path_EGREP
  3284. case `"$ac_path_EGREP" --version 2>&1` in
  3285. *GNU*)
  3286. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3287. *)
  3288. ac_count=0
  3289. $as_echo_n 0123456789 >"conftest.in"
  3290. while :
  3291. do
  3292. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3293. mv "conftest.tmp" "conftest.in"
  3294. cp "conftest.in" "conftest.nl"
  3295. $as_echo 'EGREP' >> "conftest.nl"
  3296. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3297. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3298. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3299. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3300. # Best one so far, save it but keep looking for a better one
  3301. ac_cv_path_EGREP="$ac_path_EGREP"
  3302. ac_path_EGREP_max=$ac_count
  3303. fi
  3304. # 10*(2^10) chars as input seems more than enough
  3305. test $ac_count -gt 10 && break
  3306. done
  3307. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3308. esac
  3309. $ac_path_EGREP_found && break 3
  3310. done
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. if test -z "$ac_cv_path_EGREP"; then
  3315. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3316. fi
  3317. else
  3318. ac_cv_path_EGREP=$EGREP
  3319. fi
  3320. fi
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3323. $as_echo "$ac_cv_path_EGREP" >&6; }
  3324. EGREP="$ac_cv_path_EGREP"
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3326. $as_echo_n "checking for ANSI C header files... " >&6; }
  3327. if ${ac_cv_header_stdc+:} false; then :
  3328. $as_echo_n "(cached) " >&6
  3329. else
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. #include <stdlib.h>
  3333. #include <stdarg.h>
  3334. #include <string.h>
  3335. #include <float.h>
  3336. int
  3337. main ()
  3338. {
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. if ac_fn_c_try_compile "$LINENO"; then :
  3344. ac_cv_header_stdc=yes
  3345. else
  3346. ac_cv_header_stdc=no
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. if test $ac_cv_header_stdc = yes; then
  3350. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. #include <string.h>
  3354. _ACEOF
  3355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3356. $EGREP "memchr" >/dev/null 2>&1; then :
  3357. else
  3358. ac_cv_header_stdc=no
  3359. fi
  3360. rm -f conftest*
  3361. fi
  3362. if test $ac_cv_header_stdc = yes; then
  3363. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. #include <stdlib.h>
  3367. _ACEOF
  3368. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3369. $EGREP "free" >/dev/null 2>&1; then :
  3370. else
  3371. ac_cv_header_stdc=no
  3372. fi
  3373. rm -f conftest*
  3374. fi
  3375. if test $ac_cv_header_stdc = yes; then
  3376. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3377. if test "$cross_compiling" = yes; then :
  3378. :
  3379. else
  3380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. #include <ctype.h>
  3383. #include <stdlib.h>
  3384. #if ((' ' & 0x0FF) == 0x020)
  3385. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3386. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3387. #else
  3388. # define ISLOWER(c) \
  3389. (('a' <= (c) && (c) <= 'i') \
  3390. || ('j' <= (c) && (c) <= 'r') \
  3391. || ('s' <= (c) && (c) <= 'z'))
  3392. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3393. #endif
  3394. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3395. int
  3396. main ()
  3397. {
  3398. int i;
  3399. for (i = 0; i < 256; i++)
  3400. if (XOR (islower (i), ISLOWER (i))
  3401. || toupper (i) != TOUPPER (i))
  3402. return 2;
  3403. return 0;
  3404. }
  3405. _ACEOF
  3406. if ac_fn_c_try_run "$LINENO"; then :
  3407. else
  3408. ac_cv_header_stdc=no
  3409. fi
  3410. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3411. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3412. fi
  3413. fi
  3414. fi
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3416. $as_echo "$ac_cv_header_stdc" >&6; }
  3417. if test $ac_cv_header_stdc = yes; then
  3418. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3419. fi
  3420. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3421. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3422. inttypes.h stdint.h unistd.h
  3423. do :
  3424. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3425. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3426. "
  3427. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3428. cat >>confdefs.h <<_ACEOF
  3429. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3430. _ACEOF
  3431. fi
  3432. done
  3433. # The cast to long int works around a bug in the HP C Compiler
  3434. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3435. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3436. # This bug is HP SR number 8606223364.
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  3438. $as_echo_n "checking size of long... " >&6; }
  3439. if ${ac_cv_sizeof_long+:} false; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  3443. else
  3444. if test "$ac_cv_type_long" = yes; then
  3445. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3447. as_fn_error 77 "cannot compute sizeof (long)
  3448. See \`config.log' for more details" "$LINENO" 5; }
  3449. else
  3450. ac_cv_sizeof_long=0
  3451. fi
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  3455. $as_echo "$ac_cv_sizeof_long" >&6; }
  3456. cat >>confdefs.h <<_ACEOF
  3457. #define SIZEOF_LONG $ac_cv_sizeof_long
  3458. _ACEOF
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler and linker support -Wl,-Bsymbolic" >&5
  3460. $as_echo_n "checking whether compiler and linker support -Wl,-Bsymbolic... " >&6; }
  3461. old_LDFLAGS="$LDFLAGS"
  3462. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
  3463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3464. /* end confdefs.h. */
  3465. int main (int argc, char *argv[]) { return 0; }
  3466. _ACEOF
  3467. if ac_fn_c_try_link "$LINENO"; then :
  3468. linker_supports_Bsymbolic=yes
  3469. else
  3470. linker_supports_Bsymbolic=no
  3471. fi
  3472. rm -f core conftest.err conftest.$ac_objext \
  3473. conftest$ac_exeext conftest.$ac_ext
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_supports_Bsymbolic" >&5
  3475. $as_echo "$linker_supports_Bsymbolic" >&6; }
  3476. LDFLAGS="$old_LDFLAGS"
  3477. unset old_LDFLAGS
  3478. if test $linker_supports_Bsymbolic = yes
  3479. then
  3480. POW_LDFLAGS='-Wl,-Bsymbolic'
  3481. else
  3482. POW_LDFLAGS=''
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler and linker support -Wl,-z,noexecstack" >&5
  3485. $as_echo_n "checking whether compiler and linker support -Wl,-z,noexecstack... " >&6; }
  3486. old_LDFLAGS="$LDFLAGS"
  3487. LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
  3488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3489. /* end confdefs.h. */
  3490. int main (int argc, char *argv[]) { return 0; }
  3491. _ACEOF
  3492. if ac_fn_c_try_link "$LINENO"; then :
  3493. linker_supports_znoexecstack=yes
  3494. else
  3495. linker_supports_znoexecstack=no
  3496. fi
  3497. rm -f core conftest.err conftest.$ac_objext \
  3498. conftest$ac_exeext conftest.$ac_ext
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_supports_znoexecstack" >&5
  3500. $as_echo "$linker_supports_znoexecstack" >&6; }
  3501. if test $linker_supports_znoexecstack = no
  3502. then
  3503. LDFLAGS="$old_LDFLAGS"
  3504. fi
  3505. unset old_LDFLAGS
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3507. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3508. if ${ac_cv_path_GREP+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if test -z "$GREP"; then
  3512. ac_path_GREP_found=false
  3513. # Loop through the user's path and test for each of PROGNAME-LIST
  3514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3515. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3516. do
  3517. IFS=$as_save_IFS
  3518. test -z "$as_dir" && as_dir=.
  3519. for ac_prog in grep ggrep; do
  3520. for ac_exec_ext in '' $ac_executable_extensions; do
  3521. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3522. as_fn_executable_p "$ac_path_GREP" || continue
  3523. # Check for GNU ac_path_GREP and select it if it is found.
  3524. # Check for GNU $ac_path_GREP
  3525. case `"$ac_path_GREP" --version 2>&1` in
  3526. *GNU*)
  3527. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3528. *)
  3529. ac_count=0
  3530. $as_echo_n 0123456789 >"conftest.in"
  3531. while :
  3532. do
  3533. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3534. mv "conftest.tmp" "conftest.in"
  3535. cp "conftest.in" "conftest.nl"
  3536. $as_echo 'GREP' >> "conftest.nl"
  3537. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3538. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3539. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3540. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3541. # Best one so far, save it but keep looking for a better one
  3542. ac_cv_path_GREP="$ac_path_GREP"
  3543. ac_path_GREP_max=$ac_count
  3544. fi
  3545. # 10*(2^10) chars as input seems more than enough
  3546. test $ac_count -gt 10 && break
  3547. done
  3548. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3549. esac
  3550. $ac_path_GREP_found && break 3
  3551. done
  3552. done
  3553. done
  3554. IFS=$as_save_IFS
  3555. if test -z "$ac_cv_path_GREP"; then
  3556. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3557. fi
  3558. else
  3559. ac_cv_path_GREP=$GREP
  3560. fi
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3563. $as_echo "$ac_cv_path_GREP" >&6; }
  3564. GREP="$ac_cv_path_GREP"
  3565. # Extract the first word of "python", so it can be a program name with args.
  3566. set dummy python; ac_word=$2
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3568. $as_echo_n "checking for $ac_word... " >&6; }
  3569. if ${ac_cv_path_PYTHON+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. case $PYTHON in
  3573. [\\/]* | ?:[\\/]*)
  3574. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  3575. ;;
  3576. *)
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. test -z "$as_dir" && as_dir=.
  3582. for ac_exec_ext in '' $ac_executable_extensions; do
  3583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3584. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3586. break 2
  3587. fi
  3588. done
  3589. done
  3590. IFS=$as_save_IFS
  3591. ;;
  3592. esac
  3593. fi
  3594. PYTHON=$ac_cv_path_PYTHON
  3595. if test -n "$PYTHON"; then
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  3597. $as_echo "$PYTHON" >&6; }
  3598. else
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3600. $as_echo "no" >&6; }
  3601. fi
  3602. # Extract the first word of "xsltproc", so it can be a program name with args.
  3603. set dummy xsltproc; ac_word=$2
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3605. $as_echo_n "checking for $ac_word... " >&6; }
  3606. if ${ac_cv_path_XSLTPROC+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. case $XSLTPROC in
  3610. [\\/]* | ?:[\\/]*)
  3611. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  3612. ;;
  3613. *)
  3614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3615. for as_dir in $PATH
  3616. do
  3617. IFS=$as_save_IFS
  3618. test -z "$as_dir" && as_dir=.
  3619. for ac_exec_ext in '' $ac_executable_extensions; do
  3620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3621. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  3622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3623. break 2
  3624. fi
  3625. done
  3626. done
  3627. IFS=$as_save_IFS
  3628. ;;
  3629. esac
  3630. fi
  3631. XSLTPROC=$ac_cv_path_XSLTPROC
  3632. if test -n "$XSLTPROC"; then
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  3634. $as_echo "$XSLTPROC" >&6; }
  3635. else
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3637. $as_echo "no" >&6; }
  3638. fi
  3639. # Extract the first word of "awk", so it can be a program name with args.
  3640. set dummy awk; ac_word=$2
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3642. $as_echo_n "checking for $ac_word... " >&6; }
  3643. if ${ac_cv_path_AWK+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. case $AWK in
  3647. [\\/]* | ?:[\\/]*)
  3648. ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
  3649. ;;
  3650. *)
  3651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3652. for as_dir in $PATH
  3653. do
  3654. IFS=$as_save_IFS
  3655. test -z "$as_dir" && as_dir=.
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3658. ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
  3659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3660. break 2
  3661. fi
  3662. done
  3663. done
  3664. IFS=$as_save_IFS
  3665. ;;
  3666. esac
  3667. fi
  3668. AWK=$ac_cv_path_AWK
  3669. if test -n "$AWK"; then
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3671. $as_echo "$AWK" >&6; }
  3672. else
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. fi
  3676. # Extract the first word of "sort", so it can be a program name with args.
  3677. set dummy sort; ac_word=$2
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3679. $as_echo_n "checking for $ac_word... " >&6; }
  3680. if ${ac_cv_path_SORT+:} false; then :
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. case $SORT in
  3684. [\\/]* | ?:[\\/]*)
  3685. ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
  3686. ;;
  3687. *)
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH
  3690. do
  3691. IFS=$as_save_IFS
  3692. test -z "$as_dir" && as_dir=.
  3693. for ac_exec_ext in '' $ac_executable_extensions; do
  3694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3695. ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
  3696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3697. break 2
  3698. fi
  3699. done
  3700. done
  3701. IFS=$as_save_IFS
  3702. ;;
  3703. esac
  3704. fi
  3705. SORT=$ac_cv_path_SORT
  3706. if test -n "$SORT"; then
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  3708. $as_echo "$SORT" >&6; }
  3709. else
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3711. $as_echo "no" >&6; }
  3712. fi
  3713. # Extract the first word of "rrdtool", so it can be a program name with args.
  3714. set dummy rrdtool; ac_word=$2
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3716. $as_echo_n "checking for $ac_word... " >&6; }
  3717. if ${ac_cv_path_RRDTOOL+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. case $RRDTOOL in
  3721. [\\/]* | ?:[\\/]*)
  3722. ac_cv_path_RRDTOOL="$RRDTOOL" # Let the user override the test with a path.
  3723. ;;
  3724. *)
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3732. ac_cv_path_RRDTOOL="$as_dir/$ac_word$ac_exec_ext"
  3733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3734. break 2
  3735. fi
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. ;;
  3740. esac
  3741. fi
  3742. RRDTOOL=$ac_cv_path_RRDTOOL
  3743. if test -n "$RRDTOOL"; then
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RRDTOOL" >&5
  3745. $as_echo "$RRDTOOL" >&6; }
  3746. else
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3748. $as_echo "no" >&6; }
  3749. fi
  3750. # Extract the first word of "trang", so it can be a program name with args.
  3751. set dummy trang; ac_word=$2
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3753. $as_echo_n "checking for $ac_word... " >&6; }
  3754. if ${ac_cv_path_TRANG+:} false; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. case $TRANG in
  3758. [\\/]* | ?:[\\/]*)
  3759. ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path.
  3760. ;;
  3761. *)
  3762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763. for as_dir in $PATH
  3764. do
  3765. IFS=$as_save_IFS
  3766. test -z "$as_dir" && as_dir=.
  3767. for ac_exec_ext in '' $ac_executable_extensions; do
  3768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3769. ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext"
  3770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3771. break 2
  3772. fi
  3773. done
  3774. done
  3775. IFS=$as_save_IFS
  3776. test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="\${abs_top_srcdir}/buildtools/trang-not-found"
  3777. ;;
  3778. esac
  3779. fi
  3780. TRANG=$ac_cv_path_TRANG
  3781. if test -n "$TRANG"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5
  3783. $as_echo "$TRANG" >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. # Extract the first word of "rsync", so it can be a program name with args.
  3789. set dummy rsync; ac_word=$2
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3791. $as_echo_n "checking for $ac_word... " >&6; }
  3792. if ${ac_cv_path_RSYNC+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. case $RSYNC in
  3796. [\\/]* | ?:[\\/]*)
  3797. ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
  3798. ;;
  3799. *)
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for ac_exec_ext in '' $ac_executable_extensions; do
  3806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3807. ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
  3808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3809. break 2
  3810. fi
  3811. done
  3812. done
  3813. IFS=$as_save_IFS
  3814. ;;
  3815. esac
  3816. fi
  3817. RSYNC=$ac_cv_path_RSYNC
  3818. if test -n "$RSYNC"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC" >&5
  3820. $as_echo "$RSYNC" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. # Extract the first word of "sudo", so it can be a program name with args.
  3826. set dummy sudo; ac_word=$2
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3828. $as_echo_n "checking for $ac_word... " >&6; }
  3829. if ${ac_cv_path_SUDO+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. case $SUDO in
  3833. [\\/]* | ?:[\\/]*)
  3834. ac_cv_path_SUDO="$SUDO" # Let the user override the test with a path.
  3835. ;;
  3836. *)
  3837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3838. for as_dir in $PATH
  3839. do
  3840. IFS=$as_save_IFS
  3841. test -z "$as_dir" && as_dir=.
  3842. for ac_exec_ext in '' $ac_executable_extensions; do
  3843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3844. ac_cv_path_SUDO="$as_dir/$ac_word$ac_exec_ext"
  3845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3846. break 2
  3847. fi
  3848. done
  3849. done
  3850. IFS=$as_save_IFS
  3851. ;;
  3852. esac
  3853. fi
  3854. SUDO=$ac_cv_path_SUDO
  3855. if test -n "$SUDO"; then
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUDO" >&5
  3857. $as_echo "$SUDO" >&6; }
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. fi
  3862. # See whether we need to check for dependencies that we only need at
  3863. # runtime. We do this by default when compiling from source to avoid
  3864. # surprises after installation, but this just adds pain when building
  3865. # binary packages within a platform framework which already handles
  3866. # all the dependencies for us, so we need a way to turn it off.
  3867. case $enable_runtime_dependencies in
  3868. yes|no)
  3869. ;;
  3870. *)
  3871. as_fn_error $? "Unrecognized value for --enable-runtime-dependencies: $enable_runtime_dependencies" "$LINENO" 5
  3872. ;;
  3873. esac
  3874. # Figure out whether we want RP tools, CA tools, or both
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants the RP tools" >&5
  3876. $as_echo_n "checking whether user wants the RP tools... " >&6; }
  3877. case $enable_rp_tools in
  3878. yes|no)
  3879. build_rp_tools=$enable_rp_tools
  3880. ;;
  3881. *)
  3882. as_fn_error $? "Unrecognized value for --enable-rp-tools: $enable_rp_tools" "$LINENO" 5
  3883. ;;
  3884. esac
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_rp_tools" >&5
  3886. $as_echo "$build_rp_tools" >&6; }
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants the CA tools" >&5
  3888. $as_echo_n "checking whether user wants the CA tools... " >&6; }
  3889. case $enable_ca_tools in
  3890. yes|no)
  3891. build_ca_tools=$enable_ca_tools
  3892. ;;
  3893. *)
  3894. as_fn_error $? "Unrecognized value for --enable-ca-tools: $enable_ca_tools" "$LINENO" 5
  3895. ;;
  3896. esac
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_ca_tools" >&5
  3898. $as_echo "$build_ca_tools" >&6; }
  3899. if test $build_rp_tools = no && test $build_ca_tools = no
  3900. then
  3901. as_fn_error $? "Building with neither RP tools nor CA tools makes no sense" "$LINENO" 5
  3902. fi
  3903. # Figure out whether we need to build our own OpenSSL library or can
  3904. # use the system libraries. We're looking for two recent features:
  3905. # CMS and RFC 3779 support. We also have to check whether the user
  3906. # has an opinion on all this. In the "auto" case (no
  3907. # --with-system-openssl option specified in any form), we may need to
  3908. # check a platform-specific location (eg, /usr/local on FreeBSD).
  3909. #
  3910. # At this point all of the C code is in the RP tools package, so we can
  3911. # skip all this if we're just building the CA tools.
  3912. if test $build_rp_tools = no
  3913. then
  3914. build_openssl=no
  3915. else
  3916. old_CFLAGS="$CFLAGS"
  3917. old_LDFLAGS="$LDFLAGS"
  3918. case $with_system_openssl in
  3919. yes|auto)
  3920. if test $CFLAGS_or_LDFLAGS_were_set = no
  3921. then
  3922. case $host_os in
  3923. freebsd*)
  3924. CFLAGS="-I/usr/local/include $CFLAGS"
  3925. LDFLAGS="-L/usr/local/lib $LDFLAGS"
  3926. ;;
  3927. esac
  3928. fi
  3929. ;;
  3930. no|/usr)
  3931. :
  3932. ;;
  3933. *)
  3934. CFLAGS="-I$with_system_openssl/include $CFLAGS"
  3935. LDFLAGS="-L$with_system_openssl/lib $LDFLAGS"
  3936. esac
  3937. case $with_system_openssl in
  3938. no)
  3939. have_usable_openssl=no
  3940. ;;
  3941. *)
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v3_addr_validate_path in -lcrypto" >&5
  3943. $as_echo_n "checking for v3_addr_validate_path in -lcrypto... " >&6; }
  3944. if ${ac_cv_lib_crypto_v3_addr_validate_path+:} false; then :
  3945. $as_echo_n "(cached) " >&6
  3946. else
  3947. ac_check_lib_save_LIBS=$LIBS
  3948. LIBS="-lcrypto $LIBS"
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. /* Override any GCC internal prototype to avoid an error.
  3952. Use char because int might match the return type of a GCC
  3953. builtin and then its argument prototype would still apply. */
  3954. #ifdef __cplusplus
  3955. extern "C"
  3956. #endif
  3957. char v3_addr_validate_path ();
  3958. int
  3959. main ()
  3960. {
  3961. return v3_addr_validate_path ();
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. if ac_fn_c_try_link "$LINENO"; then :
  3967. ac_cv_lib_crypto_v3_addr_validate_path=yes
  3968. else
  3969. ac_cv_lib_crypto_v3_addr_validate_path=no
  3970. fi
  3971. rm -f core conftest.err conftest.$ac_objext \
  3972. conftest$ac_exeext conftest.$ac_ext
  3973. LIBS=$ac_check_lib_save_LIBS
  3974. fi
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_v3_addr_validate_path" >&5
  3976. $as_echo "$ac_cv_lib_crypto_v3_addr_validate_path" >&6; }
  3977. if test "x$ac_cv_lib_crypto_v3_addr_validate_path" = xyes; then :
  3978. system_openssl_has_rfc3779=yes
  3979. else
  3980. system_openssl_has_rfc3779=no
  3981. fi
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMS_verify in -lcrypto" >&5
  3983. $as_echo_n "checking for CMS_verify in -lcrypto... " >&6; }
  3984. if ${ac_cv_lib_crypto_CMS_verify+:} false; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. ac_check_lib_save_LIBS=$LIBS
  3988. LIBS="-lcrypto $LIBS"
  3989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3990. /* end confdefs.h. */
  3991. /* Override any GCC internal prototype to avoid an error.
  3992. Use char because int might match the return type of a GCC
  3993. builtin and then its argument prototype would still apply. */
  3994. #ifdef __cplusplus
  3995. extern "C"
  3996. #endif
  3997. char CMS_verify ();
  3998. int
  3999. main ()
  4000. {
  4001. return CMS_verify ();
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_link "$LINENO"; then :
  4007. ac_cv_lib_crypto_CMS_verify=yes
  4008. else
  4009. ac_cv_lib_crypto_CMS_verify=no
  4010. fi
  4011. rm -f core conftest.err conftest.$ac_objext \
  4012. conftest$ac_exeext conftest.$ac_ext
  4013. LIBS=$ac_check_lib_save_LIBS
  4014. fi
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CMS_verify" >&5
  4016. $as_echo "$ac_cv_lib_crypto_CMS_verify" >&6; }
  4017. if test "x$ac_cv_lib_crypto_CMS_verify" = xyes; then :
  4018. system_openssl_has_cms=yes
  4019. else
  4020. system_openssl_has_cms=no
  4021. fi
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system OpenSSL library is usable" >&5
  4023. $as_echo_n "checking whether system OpenSSL library is usable... " >&6; }
  4024. if test $system_openssl_has_rfc3779 = yes && test $system_openssl_has_cms = yes
  4025. then
  4026. have_usable_openssl=yes
  4027. else
  4028. have_usable_openssl=no
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usable_openssl" >&5
  4031. $as_echo "$have_usable_openssl" >&6; }
  4032. esac
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to build a private copy of OpenSSL" >&5
  4034. $as_echo_n "checking whether we need to build a private copy of OpenSSL... " >&6; }
  4035. case $with_system_openssl in
  4036. yes)
  4037. build_openssl=no
  4038. if test $have_usable_openssl = no
  4039. then
  4040. as_fn_error $? "Can't find OpenSSL crypto library with CMS and RFC 3779 support, try --with-system-openssl=/path/to/openssl" "$LINENO" 5
  4041. fi
  4042. ;;
  4043. no)
  4044. build_openssl=yes
  4045. ;;
  4046. auto)
  4047. if test $have_usable_openssl = no
  4048. then
  4049. build_openssl=yes
  4050. else
  4051. build_openssl=no
  4052. fi
  4053. ;;
  4054. *)
  4055. build_openssl=no
  4056. if test $have_usable_openssl = no
  4057. then
  4058. as_fn_error $? "Can't find OpenSSL crypto library with CMS and RFC 3779 support in $with_system_openssl" "$LINENO" 5
  4059. fi
  4060. esac
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_openssl" >&5
  4062. $as_echo "$build_openssl" >&6; }
  4063. build_openssl_asm=undefined
  4064. if test $build_openssl = yes
  4065. then
  4066. CFLAGS="$old_CFLAGS"
  4067. LDFLAGS="$old_LDFLAGS"
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assembly code in OpenSSL" >&5
  4069. $as_echo_n "checking whether to enable assembly code in OpenSSL... " >&6; }
  4070. case $enable_openssl_asm in
  4071. yes|no)
  4072. build_openssl_asm=$enable_openssl_asm
  4073. ;;
  4074. auto)
  4075. case $host in
  4076. x86_64-*-linux*)
  4077. build_openssl_asm=no
  4078. ;;
  4079. *)
  4080. build_openssl_asm=yes
  4081. ;;
  4082. esac
  4083. ;;
  4084. *)
  4085. as_fn_error $? "Unrecognized value for --enable-openssl-asm: $enable_openssl_asm" "$LINENO" 5
  4086. ;;
  4087. esac
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_asm" >&5
  4089. $as_echo "$enable_openssl_asm" >&6; }
  4090. fi
  4091. fi
  4092. # RCYNIC_DIR is a "precious" argument variable to this script (see
  4093. # autoconf doc), which means that autoconf is careful with whatever
  4094. # value (if any) was passed in, and that it's already been declared
  4095. # for variable substitution. We still have to set a default value for
  4096. # it, though, and we might as well handle DESTDIR while we're at it.
  4097. if test "X$RCYNIC_DIR" = "X"
  4098. then
  4099. RCYNIC_DIR='/var/rcynic'
  4100. fi
  4101. # APACHE_VERSION is another "precious" argument to this script. It
  4102. # mostly matters on FreeBSD, where most things involving Apache encode
  4103. # the Apache version number into their filenames.
  4104. #
  4105. # If we can't figure out the version number, we assume 2.4 and hope
  4106. # for the best; at some point we may need to do better than this.
  4107. #
  4108. # apachectl sometimes whines about ulimits, so we discard its stderr.
  4109. # If you're reading this because this test is misbehaving, well,
  4110. # try not discarding stderr.
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Apache version" >&5
  4112. $as_echo_n "checking Apache version... " >&6; }
  4113. if test "X$APACHE_VERSION" = "X"
  4114. then
  4115. for apachectl in /usr/local/sbin/apachectl /usr/sbin/apachectl
  4116. do
  4117. if test -x $apachectl
  4118. then
  4119. APACHE_VERSION=`$apachectl -v 2>/dev/null | sed -n 's=^Server version: Apache/\([0-9]*\)\.\([0-9]*\)\..*$=\1\2=p'`
  4120. break
  4121. fi
  4122. done
  4123. fi
  4124. if test "X$APACHE_VERSION" = "X"
  4125. then
  4126. APACHE_VERSION="24"
  4127. msg='not found, defaulting to 2.4'
  4128. else
  4129. msg=`echo $APACHE_VERSION | sed 's=.=&.='`
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
  4132. $as_echo "$msg" >&6; }
  4133. # Perhaps there should be a way to set these, but for now just
  4134. # wire them in here so at least they're consistent in all Makefiles.
  4135. RPKI_USER=rpki
  4136. RPKI_GROUP=rpki
  4137. RCYNIC_CONF_DATA="${RCYNIC_DIR}/data"
  4138. # Check whether to do "final target installation". This means actions
  4139. # that can only be done when installing a package, as opposed to when
  4140. # building a package.
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do final target installation on \"make install\"" >&5
  4142. $as_echo_n "checking whether to do final target installation on \"make install\"... " >&6; }
  4143. case $enable_target_installation in
  4144. yes|no)
  4145. ;;
  4146. *)
  4147. as_fn_error $? "Unrecognized value for --enable-target-installation: $enable_target_installation" "$LINENO" 5
  4148. ;;
  4149. esac
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_target_installation" >&5
  4151. $as_echo "$enable_target_installation" >&6; }
  4152. # Some bits of post-installation setup are complicated enough that
  4153. # it's simplest to have different rule sets for different platforms.
  4154. case $host_os in
  4155. darwin*)
  4156. RCYNIC_MAKE_RULES='rp/rcynic/rules.darwin.mk'
  4157. RTR_ORIGIN_MAKE_RULES='rp/rpki-rtr/rules.darwin.mk'
  4158. CA_MAKE_RULES='ca/rules.darwin.mk'
  4159. ;;
  4160. freebsd*)
  4161. RCYNIC_MAKE_RULES='rp/rcynic/rules.freebsd.mk'
  4162. RTR_ORIGIN_MAKE_RULES='rp/rpki-rtr/rules.freebsd.mk'
  4163. CA_MAKE_RULES='ca/rules.freebsd.mk'
  4164. ;;
  4165. linux*)
  4166. RCYNIC_MAKE_RULES='rp/rcynic/rules.linux.mk'
  4167. RTR_ORIGIN_MAKE_RULES='rp/rpki-rtr/rules.linux.mk'
  4168. CA_MAKE_RULES='ca/rules.linux.mk'
  4169. ;;
  4170. *)
  4171. RCYNIC_MAKE_RULES='rp/rcynic/rules.unknown.mk'
  4172. RTR_ORIGIN_MAKE_RULES='rp/rpki-rtr/rules.unknown.mk'
  4173. CA_MAKE_RULES='ca/rules.unknown.mk'
  4174. ;;
  4175. esac
  4176. # Where to put HTML files is similarly platform dependent, we have to know.
  4177. # rcynic-cron will skip generating HTML files if it has no place to put them.
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rcynic-html output should go" >&5
  4179. $as_echo_n "checking where rcynic-html output should go... " >&6; }
  4180. case $host_os in
  4181. freebsd*)
  4182. RCYNIC_HTML_DIR="/usr/local/www/apache${APACHE_VERSION}/data/rcynic"
  4183. ;;
  4184. linux*)
  4185. RCYNIC_HTML_DIR='/var/www/html/rcynic'
  4186. ;;
  4187. *)
  4188. RCYNIC_HTML_DIR=''
  4189. ;;
  4190. esac
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCYNIC_HTML_DIR" >&5
  4192. $as_echo "$RCYNIC_HTML_DIR" >&6; }
  4193. # Sort out which things to install, depending on whether
  4194. # we're doing final target installation.
  4195. #
  4196. # As things have evolved, this a bit repetitive. Simplify someday, maybe.
  4197. RCYNIC_INSTALL_TARGETS='install-always'
  4198. RTR_ORIGIN_INSTALL_TARGETS='install-always'
  4199. CA_INSTALL_TARGETS='install-always'
  4200. CFG_INSTALL_TARGETS='install-always'
  4201. if test $enable_target_installation = yes
  4202. then
  4203. RCYNIC_INSTALL_TARGETS="$RCYNIC_INSTALL_TARGETS install-postconf"
  4204. RTR_ORIGIN_INSTALL_TARGETS="$RTR_ORIGIN_INSTALL_TARGETS install-postconf"
  4205. CA_INSTALL_TARGETS="$CA_INSTALL_TARGETS install-postconf"
  4206. CFG_INSTALL_TARGETS="$CFG_INSTALL_TARGETS install-postconf"
  4207. fi
  4208. # Now a bunch of checks to figure out what we can do with Python. If
  4209. # we don't have Python at all, none of the rest of this matters. If
  4210. # we do have Python, we need to check for required packages and
  4211. # versions.
  4212. if test "x$PYTHON" = "x"
  4213. then
  4214. as_fn_error $? "I can't find a Python binary at all, this isn't going to work. Perhaps you need to set PATH?" "$LINENO" 5
  4215. fi
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version 2.7 or higher" >&5
  4217. $as_echo_n "checking for Python version 2.7 or higher... " >&6; }
  4218. have_acceptable_python=`$PYTHON -c 'import sys; print "yes" if sys.version_info[0] == 2 and sys.version_info[1] >= 7 else "no"'`
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_acceptable_python" >&5
  4220. $as_echo "$have_acceptable_python" >&6; }
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking distutils to find out where Python.h should be" >&5
  4222. $as_echo_n "checking distutils to find out where Python.h should be... " >&6; }
  4223. python_h=`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc() + "/Python.h"'`
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_h" >&5
  4225. $as_echo "$python_h" >&6; }
  4226. as_ac_Header=`$as_echo "ac_cv_header_$python_h" | $as_tr_sh`
  4227. ac_fn_c_check_header_mongrel "$LINENO" "$python_h" "$as_ac_Header" "$ac_includes_default"
  4228. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4229. have_python_h=yes
  4230. else
  4231. have_python_h=no
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lxml.etree" >&5
  4234. $as_echo_n "checking for lxml.etree... " >&6; }
  4235. if $PYTHON -c 'import lxml.etree' 2>/dev/null; then have_lxml=yes; else have_lxml=no; fi
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lxml" >&5
  4237. $as_echo "$have_lxml" >&6; }
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tornado" >&5
  4239. $as_echo_n "checking for Tornado... " >&6; }
  4240. if $PYTHON -c 'import tornado' 2>/dev/null; then have_tornado=yes; else have_tornado=no; fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tornado" >&5
  4242. $as_echo "$have_tornado" >&6; }
  4243. if test $have_tornado = yes
  4244. then
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tornado 4.2 or higher" >&5
  4246. $as_echo_n "checking for Tornado 4.2 or higher... " >&6; }
  4247. have_acceptable_tornado=`$PYTHON -c "import tornado; print 'no' if tornado.version_info < (4, 2) else 'yes'"`
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_acceptable_tornado" >&5
  4249. $as_echo "$have_acceptable_tornado" >&6; }
  4250. else
  4251. have_acceptable_tornado=no
  4252. fi
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Django" >&5
  4254. $as_echo_n "checking for Django... " >&6; }
  4255. if $PYTHON -c 'import django' 2>/dev/null; then have_django=yes; else have_django=no; fi
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_django" >&5
  4257. $as_echo "$have_django" >&6; }
  4258. if test $have_django = yes
  4259. then
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Django 1.8 or higher" >&5
  4261. $as_echo_n "checking for Django 1.8 or higher... " >&6; }
  4262. have_acceptable_django=`$PYTHON -c "import django; print 'no' if django.VERSION < (1, 8) else 'yes'"`
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_acceptable_django" >&5
  4264. $as_echo "$have_acceptable_django" >&6; }
  4265. else
  4266. have_acceptable_django=no
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PyYAML" >&5
  4269. $as_echo_n "checking for PyYAML... " >&6; }
  4270. if $PYTHON -c 'import yaml' 2>/dev/null; then have_pyyaml=yes; else have_pyyaml=no; fi
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pyyaml" >&5
  4272. $as_echo "$have_pyyaml" >&6; }
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vobject" >&5
  4274. $as_echo_n "checking for vobject... " >&6; }
  4275. if $PYTHON -c 'import vobject' 2>/dev/null; then have_vobject=yes; else have_vobject=no; fi
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vobject" >&5
  4277. $as_echo "$have_vobject" >&6; }
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argparse" >&5
  4279. $as_echo_n "checking for argparse... " >&6; }
  4280. if $PYTHON -c 'import argparse' 2>/dev/null; then have_argparse=yes; else have_argparse=no; fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_argparse" >&5
  4282. $as_echo "$have_argparse" >&6; }
  4283. # Warnings and dependency errors. Exit on fatal errors deferred until
  4284. # the very end of this, so we can warn the user about all known
  4285. # problems in a single pass. Errors that prevent build or basic
  4286. # installation are always fatal; errors that prevent proper operation
  4287. # at runtime or during post-installation setup can be converted to
  4288. # warnings by --disable-runtime-dependencies.
  4289. build_ok=yes
  4290. runtime_ok=yes
  4291. if test $have_acceptable_python = no
  4292. then
  4293. runtime_ok=no
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI code requires Python version 2.x, for x = 7 or higher." >&5
  4295. $as_echo "$as_me: WARNING: The RPKI code requires Python version 2.x, for x = 7 or higher." >&2;}
  4296. fi
  4297. if test $build_rp_tools = yes
  4298. then
  4299. if test $have_python_h = no
  4300. then
  4301. build_ok=no
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find Python.h. Python sources are required to build the rpki.POW module." >&5
  4303. $as_echo "$as_me: WARNING: I can't find Python.h. Python sources are required to build the rpki.POW module." >&2;}
  4304. fi
  4305. if test "x$RRDTOOL" = "x"
  4306. then
  4307. runtime_ok=no
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rcynic-html requires rrdtool." >&5
  4309. $as_echo "$as_me: WARNING: rcynic-html requires rrdtool." >&2;}
  4310. fi
  4311. if test "X$RSYNC" = "X"
  4312. then
  4313. runtime_ok=no
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI relying party tools require rsync." >&5
  4315. $as_echo "$as_me: WARNING: The RPKI relying party tools require rsync." >&2;}
  4316. fi
  4317. fi
  4318. if test $have_lxml = no
  4319. then
  4320. runtime_ok=no
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI tools require the Python LXML package." >&5
  4322. $as_echo "$as_me: WARNING: The RPKI tools require the Python LXML package." >&2;}
  4323. fi
  4324. if test $have_acceptable_django = no
  4325. then
  4326. runtime_ok=no
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI tools require Django 1.8 or higher." >&5
  4328. $as_echo "$as_me: WARNING: The RPKI tools require Django 1.8 or higher." >&2;}
  4329. fi
  4330. if test $have_argparse = no
  4331. then
  4332. runtime_ok=no
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI tools require the Python argparse module." >&5
  4334. $as_echo "$as_me: WARNING: The RPKI tools require the Python argparse module." >&2;}
  4335. fi
  4336. if test $have_acceptable_tornado = no
  4337. then
  4338. runtime_ok=no
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI tools require Tornado 4.2 or higher." >&5
  4340. $as_echo "$as_me: WARNING: The RPKI tools require Tornado 4.2 or higher." >&2;}
  4341. fi
  4342. if test $build_ca_tools = yes
  4343. then
  4344. if test $have_vobject = no
  4345. then
  4346. runtime_ok=no
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI CA GUI requires the Python vobject module." >&5
  4348. $as_echo "$as_me: WARNING: The RPKI CA GUI requires the Python vobject module." >&2;}
  4349. fi
  4350. if test $have_pyyaml = no
  4351. then
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PyYAML missing, so \"make test\" will not work properly." >&5
  4353. $as_echo "$as_me: WARNING: PyYAML missing, so \"make test\" will not work properly." >&2;}
  4354. fi
  4355. if test "x$XSLTPROC" = "x"
  4356. then
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc missing, so \"make test\" will not work properly." >&5
  4358. $as_echo "$as_me: WARNING: xsltproc missing, so \"make test\" will not work properly." >&2;}
  4359. fi
  4360. fi
  4361. if test $build_ok = no || test $runtime_ok = no
  4362. then
  4363. if test $build_rp_tools = yes
  4364. then
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you do not wish to install the RPKI RP tools, please specify --disable-rp-tools as an argument to this configure script." >&5
  4366. $as_echo "$as_me: WARNING: If you do not wish to install the RPKI RP tools, please specify --disable-rp-tools as an argument to this configure script." >&2;}
  4367. fi
  4368. if test $build_ca_tools = yes
  4369. then
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&5
  4371. $as_echo "$as_me: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&2;}
  4372. fi
  4373. if test $build_ok = no || test $enable_runtime_dependencies = yes
  4374. then
  4375. as_fn_error $? "Please correct the problems above then re-run this configuration script." "$LINENO" 5
  4376. else
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Runtime dependency enforcement disabled, proceeding (at your own risk)" >&5
  4378. $as_echo "$as_me: WARNING: Runtime dependency enforcement disabled, proceeding (at your own risk)" >&2;}
  4379. fi
  4380. fi
  4381. # Figure out whether we are on a Debian-derived system where we need
  4382. # to tell setup.py about Debian installation layout.
  4383. if test $build_ca_tools = yes
  4384. then
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to tell distutils to use a particular installation layout" >&5
  4386. $as_echo_n "checking whether we need to tell distutils to use a particular installation layout... " >&6; }
  4387. looks_like_debian=no
  4388. if test -x /usr/bin/lsb_release
  4389. then
  4390. case `/usr/bin/lsb_release -is` in
  4391. Debian|Ubuntu)
  4392. looks_like_debian=yes
  4393. ;;
  4394. esac
  4395. fi
  4396. if test $looks_like_debian = yes
  4397. then
  4398. install_layout="deb"
  4399. else
  4400. install_layout="unix"
  4401. fi
  4402. case $enable_python_install_layout in
  4403. yes|no)
  4404. use_install_layout=$enable_python_install_layout
  4405. ;;
  4406. auto)
  4407. use_install_layout=no
  4408. ;;
  4409. *)
  4410. use_install_layout=yes
  4411. install_layout="$enable_python_install_layout"
  4412. ;;
  4413. esac
  4414. if test $use_install_layout = yes
  4415. then
  4416. SETUP_PY_INSTALL_LAYOUT="--install-layout=$install_layout"
  4417. else
  4418. SETUP_PY_INSTALL_LAYOUT=''
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_install_layout $SETUP_PY_INSTALL_LAYOUT" >&5
  4421. $as_echo "$use_install_layout $SETUP_PY_INSTALL_LAYOUT" >&6; }
  4422. fi
  4423. # Figure out whether we're going to want a PYTHON_EGG_CACHE directory.
  4424. # This is mostly just a pass through to rpkigui-apache-confgen and rpki.wsgi
  4425. # via rpki.autoconf.
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need rpki.wgi to use a Python egg cache" >&5
  4427. $as_echo_n "checking whether we need rpki.wgi to use a Python egg cache... " >&6; }
  4428. save_IFS="$IFS"
  4429. IFS=':' read WSGI_PYTHON_EGG_CACHE_DIR WSGI_PYTHON_EGG_CACHE_USER <<_EOF
  4430. $enable_wsgi_python_egg_cache
  4431. _EOF
  4432. IFS="$save_IFS"
  4433. if test "X$WSGI_PYTHON_EGG_CACHE_DIR" = "Xauto"
  4434. then
  4435. case $host_os in
  4436. freebsd*) WSGI_PYTHON_EGG_CACHE_DIR=yes;;
  4437. *) WSGI_PYTHON_EGG_CACHE_DIR=no;;
  4438. esac
  4439. fi
  4440. case $WSGI_PYTHON_EGG_CACHE_DIR in
  4441. yes)
  4442. WSGI_PYTHON_EGG_CACHE_DIR='${datarootdir}/rpki/python-eggs'
  4443. ;;
  4444. no)
  4445. WSGI_PYTHON_EGG_CACHE_DIR=''
  4446. ;;
  4447. esac
  4448. if test "X$WSGI_PYTHON_EGG_CACHE_DIR" != "X" &&
  4449. test "X$WSGI_PYTHON_EGG_CACHE_USER" = "X"
  4450. then
  4451. case $host_os in
  4452. freebsd*) WSGI_PYTHON_EGG_CACHE_USER="www";;
  4453. linux*) WSGI_PYTHON_EGG_CACHE_USER="www-data";;
  4454. esac
  4455. fi
  4456. if test "X$WSGI_PYTHON_EGG_CACHE_DIR" = "X"
  4457. then
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4459. $as_echo "no" >&6; }
  4460. elif test "X$WSGI_PYTHON_EGG_CACHE_USER" != "X"
  4461. then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WSGI_PYTHON_EGG_CACHE_DIR (user $WSGI_PYTHON_EGG_CACHE_USER)" >&5
  4463. $as_echo "$WSGI_PYTHON_EGG_CACHE_DIR (user $WSGI_PYTHON_EGG_CACHE_USER)" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WSGI_PYTHON_EGG_CACHE_DIR" >&5
  4466. $as_echo "$WSGI_PYTHON_EGG_CACHE_DIR" >&6; }
  4467. fi
  4468. # Tell the Makefiles and setup.py which parts of this package we've decided to build.
  4469. if test $build_openssl = yes; then OPENSSL_TARGET=openssl; else OPENSSL_TARGET=noop; fi
  4470. if test $build_rp_tools = yes; then RP_TARGET=rp; else RP_TARGET=noop; fi
  4471. if test $build_ca_tools = yes; then CA_TARGET=ca; else CA_TARGET=noop; fi
  4472. ac_config_files="$ac_config_files Makefile"
  4473. # OpenSSL has its own build system that bears no relationship to
  4474. # anything but itself, and our use of it is a bit weird, so this is a
  4475. # BFMI (Brute Force and Massive Ignorance) job.
  4476. if test $build_openssl = yes
  4477. then
  4478. ac_config_files="$ac_config_files openssl/Makefile openssl/tests/Makefile"
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration target to use when building OpenSSL" >&5
  4480. $as_echo_n "checking what configuration target to use when building OpenSSL... " >&6; }
  4481. case $host in
  4482. i*86-apple-darwin*)
  4483. if test "$ac_cv_sizeof_long" = 8
  4484. then
  4485. OPENSSL_CONFIG_COMMAND='./Configure darwin64-x86_64-cc'
  4486. fi
  4487. ;;
  4488. *)
  4489. if test $build_openssl_asm = yes
  4490. then
  4491. OPENSSL_CONFIG_COMMAND="MACHINE=$host_cpu ./config"
  4492. else
  4493. OPENSSL_CONFIG_COMMAND="MACHINE=$host_cpu ./config no-asm"
  4494. fi
  4495. ;;
  4496. esac
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_CONFIG_COMMAND" >&5
  4498. $as_echo "$OPENSSL_CONFIG_COMMAND" >&6; }
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what glob to use when renaming OpenSSL shared libraries" >&5
  4500. $as_echo_n "checking what glob to use when renaming OpenSSL shared libraries... " >&6; }
  4501. case $host in
  4502. *-apple-darwin*)
  4503. OPENSSL_SO_GLOB='*.dylib'
  4504. ;;
  4505. *)
  4506. OPENSSL_SO_GLOB='*.so*'
  4507. ;;
  4508. esac
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_SO_GLOB" >&5
  4510. $as_echo "$OPENSSL_SO_GLOB" >&6; }
  4511. # NB: We put our OpenSSL directory at the *front* of the
  4512. # search list to preempt conflicts with system copies.
  4513. CFLAGS="-I\${abs_top_srcdir}/openssl/openssl/include $CFLAGS"
  4514. LIBS="\${abs_top_builddir}/openssl/openssl/libcrypto.a $LIBS"
  4515. else
  4516. LIBS="$LIBS -lcrypto"
  4517. fi
  4518. if test $build_rp_tools = yes
  4519. then
  4520. ac_config_files="$ac_config_files rp/Makefile rp/config/Makefile rp/rcynic/Makefile rp/utils/Makefile rp/rpki-rtr/Makefile"
  4521. fi
  4522. if test $build_ca_tools = yes
  4523. then
  4524. ac_config_files="$ac_config_files ca/Makefile ca/tests/Makefile"
  4525. fi
  4526. if test $build_ca_tools = yes
  4527. then
  4528. case $enable_wsgi_daemon_mode in
  4529. no)
  4530. ;;
  4531. yes)
  4532. as_fn_error $? "You must specify the user to run the wsgi process as with --enable-wsgi-daemon-mode=USER" "$LINENO" 5
  4533. ;;
  4534. *)
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run mod_wsgi daemon mode" >&5
  4536. $as_echo_n "checking how to run mod_wsgi daemon mode... " >&6; }
  4537. save_IFS="$IFS"
  4538. IFS=':'
  4539. read user group <<_EOF
  4540. $enable_wsgi_daemon_mode
  4541. _EOF
  4542. IFS="$save_IFS"
  4543. WSGI_DAEMON_PROCESS="WSGIDaemonProcess rpkigui user=$user ${group:+group=}${group} display-name=%{GROUP}"
  4544. WSGI_PROCESS_GROUP="WSGIProcessGroup rpkigui"
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: with user \"$user\" and group \"${group:-default}\"" >&5
  4546. $as_echo "with user \"$user\" and group \"${group:-default}\"" >&6; }
  4547. ;;
  4548. esac
  4549. fi
  4550. # Now that we're finally done with all the conditional changes to
  4551. # CFLAGS, add a search directive for our own header directory. If we
  4552. # ever get to the point of having our own library directory, we'd add
  4553. # it here too, but for the moment our shared C code is all in .h files.
  4554. CFLAGS="$CFLAGS -I\${abs_top_srcdir}/h"
  4555. cat >confcache <<\_ACEOF
  4556. # This file is a shell script that caches the results of configure
  4557. # tests run on this system so they can be shared between configure
  4558. # scripts and configure runs, see configure's option --config-cache.
  4559. # It is not useful on other systems. If it contains results you don't
  4560. # want to keep, you may remove or edit it.
  4561. #
  4562. # config.status only pays attention to the cache file if you give it
  4563. # the --recheck option to rerun configure.
  4564. #
  4565. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4566. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4567. # following values.
  4568. _ACEOF
  4569. # The following way of writing the cache mishandles newlines in values,
  4570. # but we know of no workaround that is simple, portable, and efficient.
  4571. # So, we kill variables containing newlines.
  4572. # Ultrix sh set writes to stderr and can't be redirected directly,
  4573. # and sets the high bit in the cache file unless we assign to the vars.
  4574. (
  4575. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4576. eval ac_val=\$$ac_var
  4577. case $ac_val in #(
  4578. *${as_nl}*)
  4579. case $ac_var in #(
  4580. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4581. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4582. esac
  4583. case $ac_var in #(
  4584. _ | IFS | as_nl) ;; #(
  4585. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4586. *) { eval $ac_var=; unset $ac_var;} ;;
  4587. esac ;;
  4588. esac
  4589. done
  4590. (set) 2>&1 |
  4591. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4592. *${as_nl}ac_space=\ *)
  4593. # `set' does not quote correctly, so add quotes: double-quote
  4594. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4595. sed -n \
  4596. "s/'/'\\\\''/g;
  4597. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4598. ;; #(
  4599. *)
  4600. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4601. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4602. ;;
  4603. esac |
  4604. sort
  4605. ) |
  4606. sed '
  4607. /^ac_cv_env_/b end
  4608. t clear
  4609. :clear
  4610. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4611. t end
  4612. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4613. :end' >>confcache
  4614. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4615. if test -w "$cache_file"; then
  4616. if test "x$cache_file" != "x/dev/null"; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4618. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4619. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4620. cat confcache >"$cache_file"
  4621. else
  4622. case $cache_file in #(
  4623. */* | ?:*)
  4624. mv -f confcache "$cache_file"$$ &&
  4625. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4626. *)
  4627. mv -f confcache "$cache_file" ;;
  4628. esac
  4629. fi
  4630. fi
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4633. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4634. fi
  4635. fi
  4636. rm -f confcache
  4637. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4638. # Let make expand exec_prefix.
  4639. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4640. # Transform confdefs.h into DEFS.
  4641. # Protect against shell expansion while executing Makefile rules.
  4642. # Protect against Makefile macro expansion.
  4643. #
  4644. # If the first sed substitution is executed (which looks for macros that
  4645. # take arguments), then branch to the quote section. Otherwise,
  4646. # look for a macro that doesn't take arguments.
  4647. ac_script='
  4648. :mline
  4649. /\\$/{
  4650. N
  4651. s,\\\n,,
  4652. b mline
  4653. }
  4654. t clear
  4655. :clear
  4656. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4657. t quote
  4658. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4659. t quote
  4660. b any
  4661. :quote
  4662. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4663. s/\[/\\&/g
  4664. s/\]/\\&/g
  4665. s/\$/$$/g
  4666. H
  4667. :any
  4668. ${
  4669. g
  4670. s/^\n//
  4671. s/\n/ /g
  4672. p
  4673. }
  4674. '
  4675. DEFS=`sed -n "$ac_script" confdefs.h`
  4676. ac_libobjs=
  4677. ac_ltlibobjs=
  4678. U=
  4679. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4680. # 1. Remove the extension, and $U if already installed.
  4681. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4682. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4683. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4684. # will be set to the directory where LIBOBJS objects are built.
  4685. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4686. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4687. done
  4688. LIBOBJS=$ac_libobjs
  4689. LTLIBOBJS=$ac_ltlibobjs
  4690. : "${CONFIG_STATUS=./config.status}"
  4691. ac_write_fail=0
  4692. ac_clean_files_save=$ac_clean_files
  4693. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4695. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4696. as_write_fail=0
  4697. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4698. #! $SHELL
  4699. # Generated by $as_me.
  4700. # Run this file to recreate the current configuration.
  4701. # Compiler output produced by configure, useful for debugging
  4702. # configure, is in config.log if it exists.
  4703. debug=false
  4704. ac_cs_recheck=false
  4705. ac_cs_silent=false
  4706. SHELL=\${CONFIG_SHELL-$SHELL}
  4707. export SHELL
  4708. _ASEOF
  4709. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4710. ## -------------------- ##
  4711. ## M4sh Initialization. ##
  4712. ## -------------------- ##
  4713. # Be more Bourne compatible
  4714. DUALCASE=1; export DUALCASE # for MKS sh
  4715. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4716. emulate sh
  4717. NULLCMD=:
  4718. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4719. # is contrary to our usage. Disable this feature.
  4720. alias -g '${1+"$@"}'='"$@"'
  4721. setopt NO_GLOB_SUBST
  4722. else
  4723. case `(set -o) 2>/dev/null` in #(
  4724. *posix*) :
  4725. set -o posix ;; #(
  4726. *) :
  4727. ;;
  4728. esac
  4729. fi
  4730. as_nl='
  4731. '
  4732. export as_nl
  4733. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4734. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4735. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4736. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4737. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4738. # but without wasting forks for bash or zsh.
  4739. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4740. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4741. as_echo='print -r --'
  4742. as_echo_n='print -rn --'
  4743. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4744. as_echo='printf %s\n'
  4745. as_echo_n='printf %s'
  4746. else
  4747. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4748. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4749. as_echo_n='/usr/ucb/echo -n'
  4750. else
  4751. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4752. as_echo_n_body='eval
  4753. arg=$1;
  4754. case $arg in #(
  4755. *"$as_nl"*)
  4756. expr "X$arg" : "X\\(.*\\)$as_nl";
  4757. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4758. esac;
  4759. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4760. '
  4761. export as_echo_n_body
  4762. as_echo_n='sh -c $as_echo_n_body as_echo'
  4763. fi
  4764. export as_echo_body
  4765. as_echo='sh -c $as_echo_body as_echo'
  4766. fi
  4767. # The user is always right.
  4768. if test "${PATH_SEPARATOR+set}" != set; then
  4769. PATH_SEPARATOR=:
  4770. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4771. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4772. PATH_SEPARATOR=';'
  4773. }
  4774. fi
  4775. # IFS
  4776. # We need space, tab and new line, in precisely that order. Quoting is
  4777. # there to prevent editors from complaining about space-tab.
  4778. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4779. # splitting by setting IFS to empty value.)
  4780. IFS=" "" $as_nl"
  4781. # Find who we are. Look in the path if we contain no directory separator.
  4782. as_myself=
  4783. case $0 in #((
  4784. *[\\/]* ) as_myself=$0 ;;
  4785. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4786. for as_dir in $PATH
  4787. do
  4788. IFS=$as_save_IFS
  4789. test -z "$as_dir" && as_dir=.
  4790. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4791. done
  4792. IFS=$as_save_IFS
  4793. ;;
  4794. esac
  4795. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4796. # in which case we are not to be found in the path.
  4797. if test "x$as_myself" = x; then
  4798. as_myself=$0
  4799. fi
  4800. if test ! -f "$as_myself"; then
  4801. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4802. exit 1
  4803. fi
  4804. # Unset variables that we do not need and which cause bugs (e.g. in
  4805. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4806. # suppresses any "Segmentation fault" message there. '((' could
  4807. # trigger a bug in pdksh 5.2.14.
  4808. for as_var in BASH_ENV ENV MAIL MAILPATH
  4809. do eval test x\${$as_var+set} = xset \
  4810. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4811. done
  4812. PS1='$ '
  4813. PS2='> '
  4814. PS4='+ '
  4815. # NLS nuisances.
  4816. LC_ALL=C
  4817. export LC_ALL
  4818. LANGUAGE=C
  4819. export LANGUAGE
  4820. # CDPATH.
  4821. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4822. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4823. # ----------------------------------------
  4824. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4825. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4826. # script with STATUS, using 1 if that was 0.
  4827. as_fn_error ()
  4828. {
  4829. as_status=$1; test $as_status -eq 0 && as_status=1
  4830. if test "$4"; then
  4831. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4832. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4833. fi
  4834. $as_echo "$as_me: error: $2" >&2
  4835. as_fn_exit $as_status
  4836. } # as_fn_error
  4837. # as_fn_set_status STATUS
  4838. # -----------------------
  4839. # Set $? to STATUS, without forking.
  4840. as_fn_set_status ()
  4841. {
  4842. return $1
  4843. } # as_fn_set_status
  4844. # as_fn_exit STATUS
  4845. # -----------------
  4846. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4847. as_fn_exit ()
  4848. {
  4849. set +e
  4850. as_fn_set_status $1
  4851. exit $1
  4852. } # as_fn_exit
  4853. # as_fn_unset VAR
  4854. # ---------------
  4855. # Portably unset VAR.
  4856. as_fn_unset ()
  4857. {
  4858. { eval $1=; unset $1;}
  4859. }
  4860. as_unset=as_fn_unset
  4861. # as_fn_append VAR VALUE
  4862. # ----------------------
  4863. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4864. # advantage of any shell optimizations that allow amortized linear growth over
  4865. # repeated appends, instead of the typical quadratic growth present in naive
  4866. # implementations.
  4867. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4868. eval 'as_fn_append ()
  4869. {
  4870. eval $1+=\$2
  4871. }'
  4872. else
  4873. as_fn_append ()
  4874. {
  4875. eval $1=\$$1\$2
  4876. }
  4877. fi # as_fn_append
  4878. # as_fn_arith ARG...
  4879. # ------------------
  4880. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4881. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4882. # must be portable across $(()) and expr.
  4883. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4884. eval 'as_fn_arith ()
  4885. {
  4886. as_val=$(( $* ))
  4887. }'
  4888. else
  4889. as_fn_arith ()
  4890. {
  4891. as_val=`expr "$@" || test $? -eq 1`
  4892. }
  4893. fi # as_fn_arith
  4894. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4895. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4896. as_expr=expr
  4897. else
  4898. as_expr=false
  4899. fi
  4900. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4901. as_basename=basename
  4902. else
  4903. as_basename=false
  4904. fi
  4905. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4906. as_dirname=dirname
  4907. else
  4908. as_dirname=false
  4909. fi
  4910. as_me=`$as_basename -- "$0" ||
  4911. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4912. X"$0" : 'X\(//\)$' \| \
  4913. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4914. $as_echo X/"$0" |
  4915. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4916. s//\1/
  4917. q
  4918. }
  4919. /^X\/\(\/\/\)$/{
  4920. s//\1/
  4921. q
  4922. }
  4923. /^X\/\(\/\).*/{
  4924. s//\1/
  4925. q
  4926. }
  4927. s/.*/./; q'`
  4928. # Avoid depending upon Character Ranges.
  4929. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4930. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4931. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4932. as_cr_digits='0123456789'
  4933. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4934. ECHO_C= ECHO_N= ECHO_T=
  4935. case `echo -n x` in #(((((
  4936. -n*)
  4937. case `echo 'xy\c'` in
  4938. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4939. xy) ECHO_C='\c';;
  4940. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4941. ECHO_T=' ';;
  4942. esac;;
  4943. *)
  4944. ECHO_N='-n';;
  4945. esac
  4946. rm -f conf$$ conf$$.exe conf$$.file
  4947. if test -d conf$$.dir; then
  4948. rm -f conf$$.dir/conf$$.file
  4949. else
  4950. rm -f conf$$.dir
  4951. mkdir conf$$.dir 2>/dev/null
  4952. fi
  4953. if (echo >conf$$.file) 2>/dev/null; then
  4954. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4955. as_ln_s='ln -s'
  4956. # ... but there are two gotchas:
  4957. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4958. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4959. # In both cases, we have to default to `cp -pR'.
  4960. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4961. as_ln_s='cp -pR'
  4962. elif ln conf$$.file conf$$ 2>/dev/null; then
  4963. as_ln_s=ln
  4964. else
  4965. as_ln_s='cp -pR'
  4966. fi
  4967. else
  4968. as_ln_s='cp -pR'
  4969. fi
  4970. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4971. rmdir conf$$.dir 2>/dev/null
  4972. # as_fn_mkdir_p
  4973. # -------------
  4974. # Create "$as_dir" as a directory, including parents if necessary.
  4975. as_fn_mkdir_p ()
  4976. {
  4977. case $as_dir in #(
  4978. -*) as_dir=./$as_dir;;
  4979. esac
  4980. test -d "$as_dir" || eval $as_mkdir_p || {
  4981. as_dirs=
  4982. while :; do
  4983. case $as_dir in #(
  4984. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4985. *) as_qdir=$as_dir;;
  4986. esac
  4987. as_dirs="'$as_qdir' $as_dirs"
  4988. as_dir=`$as_dirname -- "$as_dir" ||
  4989. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4990. X"$as_dir" : 'X\(//\)[^/]' \| \
  4991. X"$as_dir" : 'X\(//\)$' \| \
  4992. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4993. $as_echo X"$as_dir" |
  4994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4995. s//\1/
  4996. q
  4997. }
  4998. /^X\(\/\/\)[^/].*/{
  4999. s//\1/
  5000. q
  5001. }
  5002. /^X\(\/\/\)$/{
  5003. s//\1/
  5004. q
  5005. }
  5006. /^X\(\/\).*/{
  5007. s//\1/
  5008. q
  5009. }
  5010. s/.*/./; q'`
  5011. test -d "$as_dir" && break
  5012. done
  5013. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5014. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5015. } # as_fn_mkdir_p
  5016. if mkdir -p . 2>/dev/null; then
  5017. as_mkdir_p='mkdir -p "$as_dir"'
  5018. else
  5019. test -d ./-p && rmdir ./-p
  5020. as_mkdir_p=false
  5021. fi
  5022. # as_fn_executable_p FILE
  5023. # -----------------------
  5024. # Test if FILE is an executable regular file.
  5025. as_fn_executable_p ()
  5026. {
  5027. test -f "$1" && test -x "$1"
  5028. } # as_fn_executable_p
  5029. as_test_x='test -x'
  5030. as_executable_p=as_fn_executable_p
  5031. # Sed expression to map a string onto a valid CPP name.
  5032. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5033. # Sed expression to map a string onto a valid variable name.
  5034. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5035. exec 6>&1
  5036. ## ----------------------------------- ##
  5037. ## Main body of $CONFIG_STATUS script. ##
  5038. ## ----------------------------------- ##
  5039. _ASEOF
  5040. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5042. # Save the log message, to keep $0 and so on meaningful, and to
  5043. # report actual input values of CONFIG_FILES etc. instead of their
  5044. # values after options handling.
  5045. ac_log="
  5046. This file was extended by rpkitools $as_me 1.0, which was
  5047. generated by GNU Autoconf 2.69. Invocation command line was
  5048. CONFIG_FILES = $CONFIG_FILES
  5049. CONFIG_HEADERS = $CONFIG_HEADERS
  5050. CONFIG_LINKS = $CONFIG_LINKS
  5051. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5052. $ $0 $@
  5053. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5054. "
  5055. _ACEOF
  5056. case $ac_config_files in *"
  5057. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5058. esac
  5059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5060. # Files that config.status was made for.
  5061. config_files="$ac_config_files"
  5062. _ACEOF
  5063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5064. ac_cs_usage="\
  5065. \`$as_me' instantiates files and other configuration actions
  5066. from templates according to the current configuration. Unless the files
  5067. and actions are specified as TAGs, all are instantiated by default.
  5068. Usage: $0 [OPTION]... [TAG]...
  5069. -h, --help print this help, then exit
  5070. -V, --version print version number and configuration settings, then exit
  5071. --config print configuration, then exit
  5072. -q, --quiet, --silent
  5073. do not print progress messages
  5074. -d, --debug don't remove temporary files
  5075. --recheck update $as_me by reconfiguring in the same conditions
  5076. --file=FILE[:TEMPLATE]
  5077. instantiate the configuration file FILE
  5078. Configuration files:
  5079. $config_files
  5080. Report bugs to the package provider."
  5081. _ACEOF
  5082. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5083. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5084. ac_cs_version="\\
  5085. rpkitools config.status 1.0
  5086. configured by $0, generated by GNU Autoconf 2.69,
  5087. with options \\"\$ac_cs_config\\"
  5088. Copyright (C) 2012 Free Software Foundation, Inc.
  5089. This config.status script is free software; the Free Software Foundation
  5090. gives unlimited permission to copy, distribute and modify it."
  5091. ac_pwd='$ac_pwd'
  5092. srcdir='$srcdir'
  5093. INSTALL='$INSTALL'
  5094. test -n "\$AWK" || AWK=awk
  5095. _ACEOF
  5096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5097. # The default lists apply if the user does not specify any file.
  5098. ac_need_defaults=:
  5099. while test $# != 0
  5100. do
  5101. case $1 in
  5102. --*=?*)
  5103. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5104. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5105. ac_shift=:
  5106. ;;
  5107. --*=)
  5108. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5109. ac_optarg=
  5110. ac_shift=:
  5111. ;;
  5112. *)
  5113. ac_option=$1
  5114. ac_optarg=$2
  5115. ac_shift=shift
  5116. ;;
  5117. esac
  5118. case $ac_option in
  5119. # Handling of the options.
  5120. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5121. ac_cs_recheck=: ;;
  5122. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5123. $as_echo "$ac_cs_version"; exit ;;
  5124. --config | --confi | --conf | --con | --co | --c )
  5125. $as_echo "$ac_cs_config"; exit ;;
  5126. --debug | --debu | --deb | --de | --d | -d )
  5127. debug=: ;;
  5128. --file | --fil | --fi | --f )
  5129. $ac_shift
  5130. case $ac_optarg in
  5131. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5132. '') as_fn_error $? "missing file argument" ;;
  5133. esac
  5134. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5135. ac_need_defaults=false;;
  5136. --he | --h | --help | --hel | -h )
  5137. $as_echo "$ac_cs_usage"; exit ;;
  5138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5139. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5140. ac_cs_silent=: ;;
  5141. # This is an error.
  5142. -*) as_fn_error $? "unrecognized option: \`$1'
  5143. Try \`$0 --help' for more information." ;;
  5144. *) as_fn_append ac_config_targets " $1"
  5145. ac_need_defaults=false ;;
  5146. esac
  5147. shift
  5148. done
  5149. ac_configure_extra_args=
  5150. if $ac_cs_silent; then
  5151. exec 6>/dev/null
  5152. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5153. fi
  5154. _ACEOF
  5155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5156. if \$ac_cs_recheck; then
  5157. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5158. shift
  5159. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5160. CONFIG_SHELL='$SHELL'
  5161. export CONFIG_SHELL
  5162. exec "\$@"
  5163. fi
  5164. _ACEOF
  5165. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5166. exec 5>>config.log
  5167. {
  5168. echo
  5169. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5170. ## Running $as_me. ##
  5171. _ASBOX
  5172. $as_echo "$ac_log"
  5173. } >&5
  5174. _ACEOF
  5175. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5176. _ACEOF
  5177. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5178. # Handling of arguments.
  5179. for ac_config_target in $ac_config_targets
  5180. do
  5181. case $ac_config_target in
  5182. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5183. "openssl/Makefile") CONFIG_FILES="$CONFIG_FILES openssl/Makefile" ;;
  5184. "openssl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES openssl/tests/Makefile" ;;
  5185. "rp/Makefile") CONFIG_FILES="$CONFIG_FILES rp/Makefile" ;;
  5186. "rp/config/Makefile") CONFIG_FILES="$CONFIG_FILES rp/config/Makefile" ;;
  5187. "rp/rcynic/Makefile") CONFIG_FILES="$CONFIG_FILES rp/rcynic/Makefile" ;;
  5188. "rp/utils/Makefile") CONFIG_FILES="$CONFIG_FILES rp/utils/Makefile" ;;
  5189. "rp/rpki-rtr/Makefile") CONFIG_FILES="$CONFIG_FILES rp/rpki-rtr/Makefile" ;;
  5190. "ca/Makefile") CONFIG_FILES="$CONFIG_FILES ca/Makefile" ;;
  5191. "ca/tests/Makefile") CONFIG_FILES="$CONFIG_FILES ca/tests/Makefile" ;;
  5192. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5193. esac
  5194. done
  5195. # If the user did not use the arguments to specify the items to instantiate,
  5196. # then the envvar interface is used. Set only those that are not.
  5197. # We use the long form for the default assignment because of an extremely
  5198. # bizarre bug on SunOS 4.1.3.
  5199. if $ac_need_defaults; then
  5200. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5201. fi
  5202. # Have a temporary directory for convenience. Make it in the build tree
  5203. # simply because there is no reason against having it here, and in addition,
  5204. # creating and moving files from /tmp can sometimes cause problems.
  5205. # Hook for its removal unless debugging.
  5206. # Note that there is a small window in which the directory will not be cleaned:
  5207. # after its creation but before its name has been assigned to `$tmp'.
  5208. $debug ||
  5209. {
  5210. tmp= ac_tmp=
  5211. trap 'exit_status=$?
  5212. : "${ac_tmp:=$tmp}"
  5213. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5214. ' 0
  5215. trap 'as_fn_exit 1' 1 2 13 15
  5216. }
  5217. # Create a (secure) tmp directory for tmp files.
  5218. {
  5219. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5220. test -d "$tmp"
  5221. } ||
  5222. {
  5223. tmp=./conf$$-$RANDOM
  5224. (umask 077 && mkdir "$tmp")
  5225. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5226. ac_tmp=$tmp
  5227. # Set up the scripts for CONFIG_FILES section.
  5228. # No need to generate them if there are no CONFIG_FILES.
  5229. # This happens for instance with `./config.status config.h'.
  5230. if test -n "$CONFIG_FILES"; then
  5231. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  5232. ac_cs_awk_getline=:
  5233. ac_cs_awk_pipe_init=
  5234. ac_cs_awk_read_file='
  5235. while ((getline aline < (F[key])) > 0)
  5236. print(aline)
  5237. close(F[key])'
  5238. ac_cs_awk_pipe_fini=
  5239. else
  5240. ac_cs_awk_getline=false
  5241. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  5242. ac_cs_awk_read_file='
  5243. print "|#_!!_#|"
  5244. print "cat " F[key] " &&"
  5245. '$ac_cs_awk_pipe_init
  5246. # The final `:' finishes the AND list.
  5247. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  5248. fi
  5249. ac_cr=`echo X | tr X '\015'`
  5250. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5251. # But we know of no other shell where ac_cr would be empty at this
  5252. # point, so we can use a bashism as a fallback.
  5253. if test "x$ac_cr" = x; then
  5254. eval ac_cr=\$\'\\r\'
  5255. fi
  5256. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5257. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5258. ac_cs_awk_cr='\\r'
  5259. else
  5260. ac_cs_awk_cr=$ac_cr
  5261. fi
  5262. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5263. _ACEOF
  5264. # Create commands to substitute file output variables.
  5265. {
  5266. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  5267. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  5268. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  5269. echo "_ACAWK" &&
  5270. echo "_ACEOF"
  5271. } >conf$$files.sh &&
  5272. . ./conf$$files.sh ||
  5273. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5274. rm -f conf$$files.sh
  5275. {
  5276. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5277. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5278. echo "_ACEOF"
  5279. } >conf$$subs.sh ||
  5280. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5281. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5282. ac_delim='%!_!# '
  5283. for ac_last_try in false false false false false :; do
  5284. . ./conf$$subs.sh ||
  5285. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5286. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5287. if test $ac_delim_n = $ac_delim_num; then
  5288. break
  5289. elif $ac_last_try; then
  5290. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5291. else
  5292. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5293. fi
  5294. done
  5295. rm -f conf$$subs.sh
  5296. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5297. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5298. _ACEOF
  5299. sed -n '
  5300. h
  5301. s/^/S["/; s/!.*/"]=/
  5302. p
  5303. g
  5304. s/^[^!]*!//
  5305. :repl
  5306. t repl
  5307. s/'"$ac_delim"'$//
  5308. t delim
  5309. :nl
  5310. h
  5311. s/\(.\{148\}\)..*/\1/
  5312. t more1
  5313. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5314. p
  5315. n
  5316. b repl
  5317. :more1
  5318. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5319. p
  5320. g
  5321. s/.\{148\}//
  5322. t nl
  5323. :delim
  5324. h
  5325. s/\(.\{148\}\)..*/\1/
  5326. t more2
  5327. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5328. p
  5329. b
  5330. :more2
  5331. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5332. p
  5333. g
  5334. s/.\{148\}//
  5335. t delim
  5336. ' <conf$$subs.awk | sed '
  5337. /^[^""]/{
  5338. N
  5339. s/\n//
  5340. }
  5341. ' >>$CONFIG_STATUS || ac_write_fail=1
  5342. rm -f conf$$subs.awk
  5343. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5344. _ACAWK
  5345. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5346. for (key in S) S_is_set[key] = 1
  5347. FS = ""
  5348. \$ac_cs_awk_pipe_init
  5349. }
  5350. {
  5351. line = $ 0
  5352. nfields = split(line, field, "@")
  5353. substed = 0
  5354. len = length(field[1])
  5355. for (i = 2; i < nfields; i++) {
  5356. key = field[i]
  5357. keylen = length(key)
  5358. if (S_is_set[key]) {
  5359. value = S[key]
  5360. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5361. len += length(value) + length(field[++i])
  5362. substed = 1
  5363. } else
  5364. len += 1 + keylen
  5365. }
  5366. if (nfields == 3 && !substed) {
  5367. key = field[2]
  5368. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  5369. \$ac_cs_awk_read_file
  5370. next
  5371. }
  5372. }
  5373. print line
  5374. }
  5375. \$ac_cs_awk_pipe_fini
  5376. _ACAWK
  5377. _ACEOF
  5378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5379. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5380. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5381. else
  5382. cat
  5383. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5384. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5385. _ACEOF
  5386. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5387. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5388. # trailing colons and then remove the whole line if VPATH becomes empty
  5389. # (actually we leave an empty line to preserve line numbers).
  5390. if test "x$srcdir" = x.; then
  5391. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5392. h
  5393. s///
  5394. s/^/:/
  5395. s/[ ]*$/:/
  5396. s/:\$(srcdir):/:/g
  5397. s/:\${srcdir}:/:/g
  5398. s/:@srcdir@:/:/g
  5399. s/^:*//
  5400. s/:*$//
  5401. x
  5402. s/\(=[ ]*\).*/\1/
  5403. G
  5404. s/\n//
  5405. s/^[^=]*=[ ]*$//
  5406. }'
  5407. fi
  5408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5409. fi # test -n "$CONFIG_FILES"
  5410. eval set X " :F $CONFIG_FILES "
  5411. shift
  5412. for ac_tag
  5413. do
  5414. case $ac_tag in
  5415. :[FHLC]) ac_mode=$ac_tag; continue;;
  5416. esac
  5417. case $ac_mode$ac_tag in
  5418. :[FHL]*:*);;
  5419. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5420. :[FH]-) ac_tag=-:-;;
  5421. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5422. esac
  5423. ac_save_IFS=$IFS
  5424. IFS=:
  5425. set x $ac_tag
  5426. IFS=$ac_save_IFS
  5427. shift
  5428. ac_file=$1
  5429. shift
  5430. case $ac_mode in
  5431. :L) ac_source=$1;;
  5432. :[FH])
  5433. ac_file_inputs=
  5434. for ac_f
  5435. do
  5436. case $ac_f in
  5437. -) ac_f="$ac_tmp/stdin";;
  5438. *) # Look for the file first in the build tree, then in the source tree
  5439. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5440. # because $ac_f cannot contain `:'.
  5441. test -f "$ac_f" ||
  5442. case $ac_f in
  5443. [\\/$]*) false;;
  5444. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5445. esac ||
  5446. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5447. esac
  5448. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5449. as_fn_append ac_file_inputs " '$ac_f'"
  5450. done
  5451. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5452. # use $as_me), people would be surprised to read:
  5453. # /* config.h. Generated by config.status. */
  5454. configure_input='Generated from '`
  5455. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5456. `' by configure.'
  5457. if test x"$ac_file" != x-; then
  5458. configure_input="$ac_file. $configure_input"
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5460. $as_echo "$as_me: creating $ac_file" >&6;}
  5461. fi
  5462. # Neutralize special characters interpreted by sed in replacement strings.
  5463. case $configure_input in #(
  5464. *\&* | *\|* | *\\* )
  5465. ac_sed_conf_input=`$as_echo "$configure_input" |
  5466. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5467. *) ac_sed_conf_input=$configure_input;;
  5468. esac
  5469. case $ac_tag in
  5470. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5471. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5472. esac
  5473. ;;
  5474. esac
  5475. ac_dir=`$as_dirname -- "$ac_file" ||
  5476. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5477. X"$ac_file" : 'X\(//\)[^/]' \| \
  5478. X"$ac_file" : 'X\(//\)$' \| \
  5479. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5480. $as_echo X"$ac_file" |
  5481. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5482. s//\1/
  5483. q
  5484. }
  5485. /^X\(\/\/\)[^/].*/{
  5486. s//\1/
  5487. q
  5488. }
  5489. /^X\(\/\/\)$/{
  5490. s//\1/
  5491. q
  5492. }
  5493. /^X\(\/\).*/{
  5494. s//\1/
  5495. q
  5496. }
  5497. s/.*/./; q'`
  5498. as_dir="$ac_dir"; as_fn_mkdir_p
  5499. ac_builddir=.
  5500. case "$ac_dir" in
  5501. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5502. *)
  5503. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5504. # A ".." for each directory in $ac_dir_suffix.
  5505. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5506. case $ac_top_builddir_sub in
  5507. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5508. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5509. esac ;;
  5510. esac
  5511. ac_abs_top_builddir=$ac_pwd
  5512. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5513. # for backward compatibility:
  5514. ac_top_builddir=$ac_top_build_prefix
  5515. case $srcdir in
  5516. .) # We are building in place.
  5517. ac_srcdir=.
  5518. ac_top_srcdir=$ac_top_builddir_sub
  5519. ac_abs_top_srcdir=$ac_pwd ;;
  5520. [\\/]* | ?:[\\/]* ) # Absolute name.
  5521. ac_srcdir=$srcdir$ac_dir_suffix;
  5522. ac_top_srcdir=$srcdir
  5523. ac_abs_top_srcdir=$srcdir ;;
  5524. *) # Relative name.
  5525. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5526. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5527. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5528. esac
  5529. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5530. case $ac_mode in
  5531. :F)
  5532. #
  5533. # CONFIG_FILE
  5534. #
  5535. case $INSTALL in
  5536. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5537. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5538. esac
  5539. _ACEOF
  5540. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5541. # If the template does not know about datarootdir, expand it.
  5542. # FIXME: This hack should be removed a few years after 2.60.
  5543. ac_datarootdir_hack=; ac_datarootdir_seen=
  5544. ac_sed_dataroot='
  5545. /datarootdir/ {
  5546. p
  5547. q
  5548. }
  5549. /@datadir@/p
  5550. /@docdir@/p
  5551. /@infodir@/p
  5552. /@localedir@/p
  5553. /@mandir@/p'
  5554. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5555. *datarootdir*) ac_datarootdir_seen=yes;;
  5556. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5558. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5559. _ACEOF
  5560. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5561. ac_datarootdir_hack='
  5562. s&@datadir@&$datadir&g
  5563. s&@docdir@&$docdir&g
  5564. s&@infodir@&$infodir&g
  5565. s&@localedir@&$localedir&g
  5566. s&@mandir@&$mandir&g
  5567. s&\\\${datarootdir}&$datarootdir&g' ;;
  5568. esac
  5569. _ACEOF
  5570. # Neutralize VPATH when `$srcdir' = `.'.
  5571. # Shell code in configure.ac might set extrasub.
  5572. # FIXME: do we really want to maintain this feature?
  5573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5574. ac_sed_extra="$ac_vpsub
  5575. $extrasub
  5576. _ACEOF
  5577. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5578. :t
  5579. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5580. s|@configure_input@|$ac_sed_conf_input|;t t
  5581. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5582. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5583. s&@srcdir@&$ac_srcdir&;t t
  5584. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5585. s&@top_srcdir@&$ac_top_srcdir&;t t
  5586. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5587. s&@builddir@&$ac_builddir&;t t
  5588. s&@abs_builddir@&$ac_abs_builddir&;t t
  5589. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5590. s&@INSTALL@&$ac_INSTALL&;t t
  5591. $ac_datarootdir_hack
  5592. "
  5593. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  5594. if $ac_cs_awk_getline; then
  5595. $AWK -f "$ac_tmp/subs.awk"
  5596. else
  5597. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  5598. fi \
  5599. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5600. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5601. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5602. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5603. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5605. which seems to be undefined. Please make sure it is defined" >&5
  5606. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5607. which seems to be undefined. Please make sure it is defined" >&2;}
  5608. rm -f "$ac_tmp/stdin"
  5609. case $ac_file in
  5610. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5611. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5612. esac \
  5613. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5614. ;;
  5615. esac
  5616. done # for ac_tag
  5617. as_fn_exit 0
  5618. _ACEOF
  5619. ac_clean_files=$ac_clean_files_save
  5620. test $ac_write_fail = 0 ||
  5621. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5622. # configure is writing to config.log, and then calls config.status.
  5623. # config.status does its own redirection, appending to config.log.
  5624. # Unfortunately, on DOS this fails, as config.log is still kept open
  5625. # by configure, so config.status won't be able to write to it; its
  5626. # output is simply discarded. So we exec the FD to /dev/null,
  5627. # effectively closing config.log, so it can be properly (re)opened and
  5628. # appended to by config.status. When coming back to configure, we
  5629. # need to make the FD available again.
  5630. if test "$no_create" != yes; then
  5631. ac_cs_success=:
  5632. ac_config_status_args=
  5633. test "$silent" = yes &&
  5634. ac_config_status_args="$ac_config_status_args --quiet"
  5635. exec 5>/dev/null
  5636. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5637. exec 5>>config.log
  5638. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5639. # would make configure fail if this is the last instruction.
  5640. $ac_cs_success || as_fn_exit 1
  5641. fi
  5642. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5644. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5645. fi