configure 215 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libsrtp2 2.3.0.
  4. #
  5. # Report bugs to <https://github.com/cisco/libsrtp/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://github.com/cisco/libsrtp/issues about your
  253. $0: system, including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME='libsrtp2'
  534. PACKAGE_TARNAME='libsrtp2'
  535. PACKAGE_VERSION='2.3.0'
  536. PACKAGE_STRING='libsrtp2 2.3.0'
  537. PACKAGE_BUGREPORT='https://github.com/cisco/libsrtp/issues'
  538. PACKAGE_URL=''
  539. # Factoring default headers for most tests.
  540. ac_includes_default="\
  541. #include <stdio.h>
  542. #ifdef HAVE_SYS_TYPES_H
  543. # include <sys/types.h>
  544. #endif
  545. #ifdef HAVE_SYS_STAT_H
  546. # include <sys/stat.h>
  547. #endif
  548. #ifdef STDC_HEADERS
  549. # include <stdlib.h>
  550. # include <stddef.h>
  551. #else
  552. # ifdef HAVE_STDLIB_H
  553. # include <stdlib.h>
  554. # endif
  555. #endif
  556. #ifdef HAVE_STRING_H
  557. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  558. # include <memory.h>
  559. # endif
  560. # include <string.h>
  561. #endif
  562. #ifdef HAVE_STRINGS_H
  563. # include <strings.h>
  564. #endif
  565. #ifdef HAVE_INTTYPES_H
  566. # include <inttypes.h>
  567. #endif
  568. #ifdef HAVE_STDINT_H
  569. # include <stdint.h>
  570. #endif
  571. #ifdef HAVE_UNISTD_H
  572. # include <unistd.h>
  573. #endif"
  574. ac_subst_vars='LTLIBOBJS
  575. LIBOBJS
  576. PCAP_LIB
  577. HAVE_PCAP
  578. HMAC_OBJS
  579. AES_ICM_OBJS
  580. nss_LIBS
  581. nss_CFLAGS
  582. CRYPTO_LIBDIR
  583. USE_EXTERNAL_CRYPTO
  584. crypto_LIBS
  585. crypto_CFLAGS
  586. PKG_CONFIG_LIBDIR
  587. PKG_CONFIG_PATH
  588. PKG_CONFIG
  589. EXE
  590. host_os
  591. host_vendor
  592. host_cpu
  593. host
  594. build_os
  595. build_vendor
  596. build_cpu
  597. build
  598. EGREP
  599. GREP
  600. SED
  601. INSTALL_DATA
  602. INSTALL_SCRIPT
  603. INSTALL_PROGRAM
  604. RANLIB
  605. ac_ct_AR
  606. AR
  607. EXTRA_CFLAGS
  608. ac_ct_CXX
  609. CXXFLAGS
  610. CXX
  611. CPP
  612. OBJEXT
  613. EXEEXT
  614. ac_ct_CC
  615. CPPFLAGS
  616. LDFLAGS
  617. CFLAGS
  618. CC
  619. target_alias
  620. host_alias
  621. build_alias
  622. LIBS
  623. ECHO_T
  624. ECHO_N
  625. ECHO_C
  626. DEFS
  627. mandir
  628. localedir
  629. libdir
  630. psdir
  631. pdfdir
  632. dvidir
  633. htmldir
  634. infodir
  635. docdir
  636. oldincludedir
  637. includedir
  638. runstatedir
  639. localstatedir
  640. sharedstatedir
  641. sysconfdir
  642. datadir
  643. datarootdir
  644. libexecdir
  645. sbindir
  646. bindir
  647. program_transform_name
  648. prefix
  649. exec_prefix
  650. PACKAGE_URL
  651. PACKAGE_BUGREPORT
  652. PACKAGE_STRING
  653. PACKAGE_VERSION
  654. PACKAGE_TARNAME
  655. PACKAGE_NAME
  656. PATH_SEPARATOR
  657. SHELL'
  658. ac_subst_files=''
  659. ac_user_opts='
  660. enable_option_checking
  661. enable_debug_logging
  662. enable_openssl
  663. enable_nss
  664. with_openssl_dir
  665. enable_openssl_kdf
  666. with_nss_dir
  667. enable_pcap
  668. enable_log_stdout
  669. with_log_file
  670. '
  671. ac_precious_vars='build_alias
  672. host_alias
  673. target_alias
  674. CC
  675. CFLAGS
  676. LDFLAGS
  677. LIBS
  678. CPPFLAGS
  679. CPP
  680. CXX
  681. CXXFLAGS
  682. CCC
  683. EXTRA_CFLAGS
  684. PKG_CONFIG
  685. PKG_CONFIG_PATH
  686. PKG_CONFIG_LIBDIR
  687. crypto_CFLAGS
  688. crypto_LIBS
  689. nss_CFLAGS
  690. nss_LIBS'
  691. # Initialize some variables set by options.
  692. ac_init_help=
  693. ac_init_version=false
  694. ac_unrecognized_opts=
  695. ac_unrecognized_sep=
  696. # The variables have the same names as the options, with
  697. # dashes changed to underlines.
  698. cache_file=/dev/null
  699. exec_prefix=NONE
  700. no_create=
  701. no_recursion=
  702. prefix=NONE
  703. program_prefix=NONE
  704. program_suffix=NONE
  705. program_transform_name=s,x,x,
  706. silent=
  707. site=
  708. srcdir=
  709. verbose=
  710. x_includes=NONE
  711. x_libraries=NONE
  712. # Installation directory options.
  713. # These are left unexpanded so users can "make install exec_prefix=/foo"
  714. # and all the variables that are supposed to be based on exec_prefix
  715. # by default will actually change.
  716. # Use braces instead of parens because sh, perl, etc. also accept them.
  717. # (The list follows the same order as the GNU Coding Standards.)
  718. bindir='${exec_prefix}/bin'
  719. sbindir='${exec_prefix}/sbin'
  720. libexecdir='${exec_prefix}/libexec'
  721. datarootdir='${prefix}/share'
  722. datadir='${datarootdir}'
  723. sysconfdir='${prefix}/etc'
  724. sharedstatedir='${prefix}/com'
  725. localstatedir='${prefix}/var'
  726. runstatedir='${localstatedir}/run'
  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. -runstatedir | --runstatedir | --runstatedi | --runstated \
  942. | --runstate | --runstat | --runsta | --runst | --runs \
  943. | --run | --ru | --r)
  944. ac_prev=runstatedir ;;
  945. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  946. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  947. | --run=* | --ru=* | --r=*)
  948. runstatedir=$ac_optarg ;;
  949. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  950. ac_prev=sbindir ;;
  951. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  952. | --sbi=* | --sb=*)
  953. sbindir=$ac_optarg ;;
  954. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  955. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  956. | --sharedst | --shareds | --shared | --share | --shar \
  957. | --sha | --sh)
  958. ac_prev=sharedstatedir ;;
  959. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  960. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  961. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  962. | --sha=* | --sh=*)
  963. sharedstatedir=$ac_optarg ;;
  964. -site | --site | --sit)
  965. ac_prev=site ;;
  966. -site=* | --site=* | --sit=*)
  967. site=$ac_optarg ;;
  968. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  969. ac_prev=srcdir ;;
  970. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  971. srcdir=$ac_optarg ;;
  972. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  973. | --syscon | --sysco | --sysc | --sys | --sy)
  974. ac_prev=sysconfdir ;;
  975. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  976. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  977. sysconfdir=$ac_optarg ;;
  978. -target | --target | --targe | --targ | --tar | --ta | --t)
  979. ac_prev=target_alias ;;
  980. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  981. target_alias=$ac_optarg ;;
  982. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  983. verbose=yes ;;
  984. -version | --version | --versio | --versi | --vers | -V)
  985. ac_init_version=: ;;
  986. -with-* | --with-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid package name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "with_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval with_$ac_useropt=\$ac_optarg ;;
  1001. -without-* | --without-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid package name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "with_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval with_$ac_useropt=no ;;
  1016. --x)
  1017. # Obsolete; use --with-x.
  1018. with_x=yes ;;
  1019. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1020. | --x-incl | --x-inc | --x-in | --x-i)
  1021. ac_prev=x_includes ;;
  1022. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1023. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1024. x_includes=$ac_optarg ;;
  1025. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1026. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1027. ac_prev=x_libraries ;;
  1028. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1029. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1030. x_libraries=$ac_optarg ;;
  1031. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1032. Try \`$0 --help' for more information"
  1033. ;;
  1034. *=*)
  1035. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1036. # Reject names that are not valid shell variable names.
  1037. case $ac_envvar in #(
  1038. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1039. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1040. esac
  1041. eval $ac_envvar=\$ac_optarg
  1042. export $ac_envvar ;;
  1043. *)
  1044. # FIXME: should be removed in autoconf 3.0.
  1045. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1046. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1047. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1048. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1049. ;;
  1050. esac
  1051. done
  1052. if test -n "$ac_prev"; then
  1053. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1054. as_fn_error $? "missing argument to $ac_option"
  1055. fi
  1056. if test -n "$ac_unrecognized_opts"; then
  1057. case $enable_option_checking in
  1058. no) ;;
  1059. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1060. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1061. esac
  1062. fi
  1063. # Check all directory arguments for consistency.
  1064. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1065. datadir sysconfdir sharedstatedir localstatedir includedir \
  1066. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1067. libdir localedir mandir runstatedir
  1068. do
  1069. eval ac_val=\$$ac_var
  1070. # Remove trailing slashes.
  1071. case $ac_val in
  1072. */ )
  1073. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1074. eval $ac_var=\$ac_val;;
  1075. esac
  1076. # Be sure to have absolute directory names.
  1077. case $ac_val in
  1078. [\\/$]* | ?:[\\/]* ) continue;;
  1079. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1080. esac
  1081. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1082. done
  1083. # There might be people who depend on the old broken behavior: `$host'
  1084. # used to hold the argument of --host etc.
  1085. # FIXME: To remove some day.
  1086. build=$build_alias
  1087. host=$host_alias
  1088. target=$target_alias
  1089. # FIXME: To remove some day.
  1090. if test "x$host_alias" != x; then
  1091. if test "x$build_alias" = x; then
  1092. cross_compiling=maybe
  1093. elif test "x$build_alias" != "x$host_alias"; then
  1094. cross_compiling=yes
  1095. fi
  1096. fi
  1097. ac_tool_prefix=
  1098. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1099. test "$silent" = yes && exec 6>/dev/null
  1100. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1101. ac_ls_di=`ls -di .` &&
  1102. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1103. as_fn_error $? "working directory cannot be determined"
  1104. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1105. as_fn_error $? "pwd does not report name of working directory"
  1106. # Find the source files, if location was not specified.
  1107. if test -z "$srcdir"; then
  1108. ac_srcdir_defaulted=yes
  1109. # Try the directory containing this script, then the parent directory.
  1110. ac_confdir=`$as_dirname -- "$as_myself" ||
  1111. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1112. X"$as_myself" : 'X\(//\)[^/]' \| \
  1113. X"$as_myself" : 'X\(//\)$' \| \
  1114. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1115. $as_echo X"$as_myself" |
  1116. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1117. s//\1/
  1118. q
  1119. }
  1120. /^X\(\/\/\)[^/].*/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)$/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\).*/{
  1129. s//\1/
  1130. q
  1131. }
  1132. s/.*/./; q'`
  1133. srcdir=$ac_confdir
  1134. if test ! -r "$srcdir/$ac_unique_file"; then
  1135. srcdir=..
  1136. fi
  1137. else
  1138. ac_srcdir_defaulted=no
  1139. fi
  1140. if test ! -r "$srcdir/$ac_unique_file"; then
  1141. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1142. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1143. fi
  1144. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1145. ac_abs_confdir=`(
  1146. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1147. pwd)`
  1148. # When building in place, set srcdir=.
  1149. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1150. srcdir=.
  1151. fi
  1152. # Remove unnecessary trailing slashes from srcdir.
  1153. # Double slashes in file names in object file debugging info
  1154. # mess up M-x gdb in Emacs.
  1155. case $srcdir in
  1156. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1157. esac
  1158. for ac_var in $ac_precious_vars; do
  1159. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1160. eval ac_env_${ac_var}_value=\$${ac_var}
  1161. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1162. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1163. done
  1164. #
  1165. # Report the --help message.
  1166. #
  1167. if test "$ac_init_help" = "long"; then
  1168. # Omit some internal or obsolete options to make the list less imposing.
  1169. # This message is too long to be a string in the A/UX 3.1 sh.
  1170. cat <<_ACEOF
  1171. \`configure' configures libsrtp2 2.3.0 to adapt to many kinds of systems.
  1172. Usage: $0 [OPTION]... [VAR=VALUE]...
  1173. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1174. VAR=VALUE. See below for descriptions of some of the useful variables.
  1175. Defaults for the options are specified in brackets.
  1176. Configuration:
  1177. -h, --help display this help and exit
  1178. --help=short display options specific to this package
  1179. --help=recursive display the short help of all the included packages
  1180. -V, --version display version information and exit
  1181. -q, --quiet, --silent do not print \`checking ...' messages
  1182. --cache-file=FILE cache test results in FILE [disabled]
  1183. -C, --config-cache alias for \`--cache-file=config.cache'
  1184. -n, --no-create do not create output files
  1185. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1186. Installation directories:
  1187. --prefix=PREFIX install architecture-independent files in PREFIX
  1188. [$ac_default_prefix]
  1189. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1190. [PREFIX]
  1191. By default, \`make install' will install all the files in
  1192. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1193. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1194. for instance \`--prefix=\$HOME'.
  1195. For better control, use the options below.
  1196. Fine tuning of the installation directories:
  1197. --bindir=DIR user executables [EPREFIX/bin]
  1198. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1199. --libexecdir=DIR program executables [EPREFIX/libexec]
  1200. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1201. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1202. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1203. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1204. --libdir=DIR object code libraries [EPREFIX/lib]
  1205. --includedir=DIR C header files [PREFIX/include]
  1206. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1207. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1208. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1209. --infodir=DIR info documentation [DATAROOTDIR/info]
  1210. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1211. --mandir=DIR man documentation [DATAROOTDIR/man]
  1212. --docdir=DIR documentation root [DATAROOTDIR/doc/libsrtp2]
  1213. --htmldir=DIR html documentation [DOCDIR]
  1214. --dvidir=DIR dvi documentation [DOCDIR]
  1215. --pdfdir=DIR pdf documentation [DOCDIR]
  1216. --psdir=DIR ps documentation [DOCDIR]
  1217. _ACEOF
  1218. cat <<\_ACEOF
  1219. System types:
  1220. --build=BUILD configure for building on BUILD [guessed]
  1221. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1222. _ACEOF
  1223. fi
  1224. if test -n "$ac_init_help"; then
  1225. case $ac_init_help in
  1226. short | recursive ) echo "Configuration of libsrtp2 2.3.0:";;
  1227. esac
  1228. cat <<\_ACEOF
  1229. Optional Features:
  1230. --disable-option-checking ignore unrecognized --enable/--with options
  1231. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1232. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1233. --enable-debug-logging Enable debug logging in all modules
  1234. --enable-openssl compile in OpenSSL crypto engine
  1235. --enable-nss compile in NSS crypto engine
  1236. --enable-openssl-kdf Use OpenSSL KDF algorithm
  1237. --disable-pcap Build without `pcap' library (-lpcap)
  1238. --enable-log-stdout redirecting logging to stdout
  1239. Optional Packages:
  1240. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1241. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1242. --with-openssl-dir Location of OpenSSL installation
  1243. --with-nss-dir Location of NSS installation
  1244. --with-log-file Use file for logging
  1245. Some influential environment variables:
  1246. CC C compiler command
  1247. CFLAGS C compiler flags
  1248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1249. nonstandard directory <lib dir>
  1250. LIBS libraries to pass to the linker, e.g. -l<library>
  1251. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1252. you have headers in a nonstandard directory <include dir>
  1253. CPP C preprocessor
  1254. CXX C++ compiler command
  1255. CXXFLAGS C++ compiler flags
  1256. EXTRA_CFLAGS
  1257. C compiler flags appended to the regular C compiler flags
  1258. instead of overriding them
  1259. PKG_CONFIG path to pkg-config utility
  1260. PKG_CONFIG_PATH
  1261. directories to add to pkg-config's search path
  1262. PKG_CONFIG_LIBDIR
  1263. path overriding pkg-config's built-in search path
  1264. crypto_CFLAGS
  1265. C compiler flags for crypto, overriding pkg-config
  1266. crypto_LIBS linker flags for crypto, overriding pkg-config
  1267. nss_CFLAGS C compiler flags for nss, overriding pkg-config
  1268. nss_LIBS linker flags for nss, overriding pkg-config
  1269. Use these variables to override the choices made by `configure' or to help
  1270. it to find libraries and programs with nonstandard names/locations.
  1271. Report bugs to <https://github.com/cisco/libsrtp/issues>.
  1272. _ACEOF
  1273. ac_status=$?
  1274. fi
  1275. if test "$ac_init_help" = "recursive"; then
  1276. # If there are subdirs, report their specific --help.
  1277. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1278. test -d "$ac_dir" ||
  1279. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1280. continue
  1281. ac_builddir=.
  1282. case "$ac_dir" in
  1283. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1284. *)
  1285. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1286. # A ".." for each directory in $ac_dir_suffix.
  1287. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1288. case $ac_top_builddir_sub in
  1289. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1290. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1291. esac ;;
  1292. esac
  1293. ac_abs_top_builddir=$ac_pwd
  1294. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1295. # for backward compatibility:
  1296. ac_top_builddir=$ac_top_build_prefix
  1297. case $srcdir in
  1298. .) # We are building in place.
  1299. ac_srcdir=.
  1300. ac_top_srcdir=$ac_top_builddir_sub
  1301. ac_abs_top_srcdir=$ac_pwd ;;
  1302. [\\/]* | ?:[\\/]* ) # Absolute name.
  1303. ac_srcdir=$srcdir$ac_dir_suffix;
  1304. ac_top_srcdir=$srcdir
  1305. ac_abs_top_srcdir=$srcdir ;;
  1306. *) # Relative name.
  1307. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1308. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1309. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1310. esac
  1311. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1312. cd "$ac_dir" || { ac_status=$?; continue; }
  1313. # Check for guested configure.
  1314. if test -f "$ac_srcdir/configure.gnu"; then
  1315. echo &&
  1316. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1317. elif test -f "$ac_srcdir/configure"; then
  1318. echo &&
  1319. $SHELL "$ac_srcdir/configure" --help=recursive
  1320. else
  1321. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1322. fi || ac_status=$?
  1323. cd "$ac_pwd" || { ac_status=$?; break; }
  1324. done
  1325. fi
  1326. test -n "$ac_init_help" && exit $ac_status
  1327. if $ac_init_version; then
  1328. cat <<\_ACEOF
  1329. libsrtp2 configure 2.3.0
  1330. generated by GNU Autoconf 2.69
  1331. Copyright (C) 2012 Free Software Foundation, Inc.
  1332. This configure script is free software; the Free Software Foundation
  1333. gives unlimited permission to copy, distribute and modify it.
  1334. _ACEOF
  1335. exit
  1336. fi
  1337. ## ------------------------ ##
  1338. ## Autoconf initialization. ##
  1339. ## ------------------------ ##
  1340. # ac_fn_c_try_compile LINENO
  1341. # --------------------------
  1342. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1343. ac_fn_c_try_compile ()
  1344. {
  1345. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1346. rm -f conftest.$ac_objext
  1347. if { { ac_try="$ac_compile"
  1348. case "(($ac_try" in
  1349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1350. *) ac_try_echo=$ac_try;;
  1351. esac
  1352. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1353. $as_echo "$ac_try_echo"; } >&5
  1354. (eval "$ac_compile") 2>conftest.err
  1355. ac_status=$?
  1356. if test -s conftest.err; then
  1357. grep -v '^ *+' conftest.err >conftest.er1
  1358. cat conftest.er1 >&5
  1359. mv -f conftest.er1 conftest.err
  1360. fi
  1361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1362. test $ac_status = 0; } && {
  1363. test -z "$ac_c_werror_flag" ||
  1364. test ! -s conftest.err
  1365. } && test -s conftest.$ac_objext; then :
  1366. ac_retval=0
  1367. else
  1368. $as_echo "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1373. as_fn_set_status $ac_retval
  1374. } # ac_fn_c_try_compile
  1375. # ac_fn_c_try_cpp LINENO
  1376. # ----------------------
  1377. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1378. ac_fn_c_try_cpp ()
  1379. {
  1380. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1381. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 2>conftest.err
  1389. ac_status=$?
  1390. if test -s conftest.err; then
  1391. grep -v '^ *+' conftest.err >conftest.er1
  1392. cat conftest.er1 >&5
  1393. mv -f conftest.er1 conftest.err
  1394. fi
  1395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1396. test $ac_status = 0; } > conftest.i && {
  1397. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1398. test ! -s conftest.err
  1399. }; then :
  1400. ac_retval=0
  1401. else
  1402. $as_echo "$as_me: failed program was:" >&5
  1403. sed 's/^/| /' conftest.$ac_ext >&5
  1404. ac_retval=1
  1405. fi
  1406. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1407. as_fn_set_status $ac_retval
  1408. } # ac_fn_c_try_cpp
  1409. # ac_fn_cxx_try_compile LINENO
  1410. # ----------------------------
  1411. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1412. ac_fn_cxx_try_compile ()
  1413. {
  1414. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1415. rm -f conftest.$ac_objext
  1416. if { { ac_try="$ac_compile"
  1417. case "(($ac_try" in
  1418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1419. *) ac_try_echo=$ac_try;;
  1420. esac
  1421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1422. $as_echo "$ac_try_echo"; } >&5
  1423. (eval "$ac_compile") 2>conftest.err
  1424. ac_status=$?
  1425. if test -s conftest.err; then
  1426. grep -v '^ *+' conftest.err >conftest.er1
  1427. cat conftest.er1 >&5
  1428. mv -f conftest.er1 conftest.err
  1429. fi
  1430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1431. test $ac_status = 0; } && {
  1432. test -z "$ac_cxx_werror_flag" ||
  1433. test ! -s conftest.err
  1434. } && test -s conftest.$ac_objext; then :
  1435. ac_retval=0
  1436. else
  1437. $as_echo "$as_me: failed program was:" >&5
  1438. sed 's/^/| /' conftest.$ac_ext >&5
  1439. ac_retval=1
  1440. fi
  1441. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1442. as_fn_set_status $ac_retval
  1443. } # ac_fn_cxx_try_compile
  1444. # ac_fn_c_try_run LINENO
  1445. # ----------------------
  1446. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1447. # that executables *can* be run.
  1448. ac_fn_c_try_run ()
  1449. {
  1450. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1451. if { { ac_try="$ac_link"
  1452. case "(($ac_try" in
  1453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1454. *) ac_try_echo=$ac_try;;
  1455. esac
  1456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1457. $as_echo "$ac_try_echo"; } >&5
  1458. (eval "$ac_link") 2>&5
  1459. ac_status=$?
  1460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1461. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1462. { { case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_try") 2>&5
  1469. ac_status=$?
  1470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1471. test $ac_status = 0; }; }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: program exited with status $ac_status" >&5
  1475. $as_echo "$as_me: failed program was:" >&5
  1476. sed 's/^/| /' conftest.$ac_ext >&5
  1477. ac_retval=$ac_status
  1478. fi
  1479. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1480. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1481. as_fn_set_status $ac_retval
  1482. } # ac_fn_c_try_run
  1483. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1484. # -------------------------------------------------------
  1485. # Tests whether HEADER exists and can be compiled using the include files in
  1486. # INCLUDES, setting the cache variable VAR accordingly.
  1487. ac_fn_c_check_header_compile ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if eval \${$3+:} false; then :
  1493. $as_echo_n "(cached) " >&6
  1494. else
  1495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1496. /* end confdefs.h. */
  1497. $4
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_compile "$LINENO"; then :
  1501. eval "$3=yes"
  1502. else
  1503. eval "$3=no"
  1504. fi
  1505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1506. fi
  1507. eval ac_res=\$$3
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1509. $as_echo "$ac_res" >&6; }
  1510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1511. } # ac_fn_c_check_header_compile
  1512. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1513. # -------------------------------------------
  1514. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1515. # variable VAR accordingly.
  1516. ac_fn_c_check_type ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1520. $as_echo_n "checking for $2... " >&6; }
  1521. if eval \${$3+:} false; then :
  1522. $as_echo_n "(cached) " >&6
  1523. else
  1524. eval "$3=no"
  1525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1526. /* end confdefs.h. */
  1527. $4
  1528. int
  1529. main ()
  1530. {
  1531. if (sizeof ($2))
  1532. return 0;
  1533. ;
  1534. return 0;
  1535. }
  1536. _ACEOF
  1537. if ac_fn_c_try_compile "$LINENO"; then :
  1538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1539. /* end confdefs.h. */
  1540. $4
  1541. int
  1542. main ()
  1543. {
  1544. if (sizeof (($2)))
  1545. return 0;
  1546. ;
  1547. return 0;
  1548. }
  1549. _ACEOF
  1550. if ac_fn_c_try_compile "$LINENO"; then :
  1551. else
  1552. eval "$3=yes"
  1553. fi
  1554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1555. fi
  1556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. } # ac_fn_c_check_type
  1563. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1564. # --------------------------------------------
  1565. # Tries to find the compile-time value of EXPR in a program that includes
  1566. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1567. # computed
  1568. ac_fn_c_compute_int ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if test "$cross_compiling" = yes; then
  1572. # Depending upon the size, compute the lo and hi bounds.
  1573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1574. /* end confdefs.h. */
  1575. $4
  1576. int
  1577. main ()
  1578. {
  1579. static int test_array [1 - 2 * !(($2) >= 0)];
  1580. test_array [0] = 0;
  1581. return test_array [0];
  1582. ;
  1583. return 0;
  1584. }
  1585. _ACEOF
  1586. if ac_fn_c_try_compile "$LINENO"; then :
  1587. ac_lo=0 ac_mid=0
  1588. while :; do
  1589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end confdefs.h. */
  1591. $4
  1592. int
  1593. main ()
  1594. {
  1595. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1596. test_array [0] = 0;
  1597. return test_array [0];
  1598. ;
  1599. return 0;
  1600. }
  1601. _ACEOF
  1602. if ac_fn_c_try_compile "$LINENO"; then :
  1603. ac_hi=$ac_mid; break
  1604. else
  1605. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1606. if test $ac_lo -le $ac_mid; then
  1607. ac_lo= ac_hi=
  1608. break
  1609. fi
  1610. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1613. done
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. int
  1619. main ()
  1620. {
  1621. static int test_array [1 - 2 * !(($2) < 0)];
  1622. test_array [0] = 0;
  1623. return test_array [0];
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. if ac_fn_c_try_compile "$LINENO"; then :
  1629. ac_hi=-1 ac_mid=-1
  1630. while :; do
  1631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end confdefs.h. */
  1633. $4
  1634. int
  1635. main ()
  1636. {
  1637. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1638. test_array [0] = 0;
  1639. return test_array [0];
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_c_try_compile "$LINENO"; then :
  1645. ac_lo=$ac_mid; break
  1646. else
  1647. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1648. if test $ac_mid -le $ac_hi; then
  1649. ac_lo= ac_hi=
  1650. break
  1651. fi
  1652. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1653. fi
  1654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1655. done
  1656. else
  1657. ac_lo= ac_hi=
  1658. fi
  1659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1662. # Binary search between lo and hi bounds.
  1663. while test "x$ac_lo" != "x$ac_hi"; do
  1664. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. $4
  1668. int
  1669. main ()
  1670. {
  1671. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1672. test_array [0] = 0;
  1673. return test_array [0];
  1674. ;
  1675. return 0;
  1676. }
  1677. _ACEOF
  1678. if ac_fn_c_try_compile "$LINENO"; then :
  1679. ac_hi=$ac_mid
  1680. else
  1681. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1682. fi
  1683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1684. done
  1685. case $ac_lo in #((
  1686. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1687. '') ac_retval=1 ;;
  1688. esac
  1689. else
  1690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1691. /* end confdefs.h. */
  1692. $4
  1693. static long int longval () { return $2; }
  1694. static unsigned long int ulongval () { return $2; }
  1695. #include <stdio.h>
  1696. #include <stdlib.h>
  1697. int
  1698. main ()
  1699. {
  1700. FILE *f = fopen ("conftest.val", "w");
  1701. if (! f)
  1702. return 1;
  1703. if (($2) < 0)
  1704. {
  1705. long int i = longval ();
  1706. if (i != ($2))
  1707. return 1;
  1708. fprintf (f, "%ld", i);
  1709. }
  1710. else
  1711. {
  1712. unsigned long int i = ulongval ();
  1713. if (i != ($2))
  1714. return 1;
  1715. fprintf (f, "%lu", i);
  1716. }
  1717. /* Do not output a trailing newline, as this causes \r\n confusion
  1718. on some platforms. */
  1719. return ferror (f) || fclose (f) != 0;
  1720. ;
  1721. return 0;
  1722. }
  1723. _ACEOF
  1724. if ac_fn_c_try_run "$LINENO"; then :
  1725. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1726. else
  1727. ac_retval=1
  1728. fi
  1729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1731. rm -f conftest.val
  1732. fi
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_c_compute_int
  1736. # ac_fn_c_try_link LINENO
  1737. # -----------------------
  1738. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_link ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext conftest$ac_exeext
  1743. if { { ac_try="$ac_link"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_link") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest$ac_exeext && {
  1762. test "$cross_compiling" = yes ||
  1763. test -x conftest$ac_exeext
  1764. }; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1772. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1773. # interfere with the next link command; also delete a directory that is
  1774. # left behind by Apple's compiler. We do this before executing the actions.
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_c_try_link
  1779. # ac_fn_c_check_func LINENO FUNC VAR
  1780. # ----------------------------------
  1781. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1782. ac_fn_c_check_func ()
  1783. {
  1784. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1786. $as_echo_n "checking for $2... " >&6; }
  1787. if eval \${$3+:} false; then :
  1788. $as_echo_n "(cached) " >&6
  1789. else
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1793. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1794. #define $2 innocuous_$2
  1795. /* System header to define __stub macros and hopefully few prototypes,
  1796. which can conflict with char $2 (); below.
  1797. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1798. <limits.h> exists even on freestanding compilers. */
  1799. #ifdef __STDC__
  1800. # include <limits.h>
  1801. #else
  1802. # include <assert.h>
  1803. #endif
  1804. #undef $2
  1805. /* Override any GCC internal prototype to avoid an error.
  1806. Use char because int might match the return type of a GCC
  1807. builtin and then its argument prototype would still apply. */
  1808. #ifdef __cplusplus
  1809. extern "C"
  1810. #endif
  1811. char $2 ();
  1812. /* The GNU C library defines this for functions which it implements
  1813. to always fail with ENOSYS. Some functions are actually named
  1814. something starting with __ and the normal name is an alias. */
  1815. #if defined __stub_$2 || defined __stub___$2
  1816. choke me
  1817. #endif
  1818. int
  1819. main ()
  1820. {
  1821. return $2 ();
  1822. ;
  1823. return 0;
  1824. }
  1825. _ACEOF
  1826. if ac_fn_c_try_link "$LINENO"; then :
  1827. eval "$3=yes"
  1828. else
  1829. eval "$3=no"
  1830. fi
  1831. rm -f core conftest.err conftest.$ac_objext \
  1832. conftest$ac_exeext conftest.$ac_ext
  1833. fi
  1834. eval ac_res=\$$3
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1836. $as_echo "$ac_res" >&6; }
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. } # ac_fn_c_check_func
  1839. cat >config.log <<_ACEOF
  1840. This file contains any messages produced by compilers while
  1841. running configure, to aid debugging if configure makes a mistake.
  1842. It was created by libsrtp2 $as_me 2.3.0, which was
  1843. generated by GNU Autoconf 2.69. Invocation command line was
  1844. $ $0 $@
  1845. _ACEOF
  1846. exec 5>>config.log
  1847. {
  1848. cat <<_ASUNAME
  1849. ## --------- ##
  1850. ## Platform. ##
  1851. ## --------- ##
  1852. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1853. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1854. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1855. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1856. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1857. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1858. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1859. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1860. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1861. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1862. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1863. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1864. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1865. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1866. _ASUNAME
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. for as_dir in $PATH
  1869. do
  1870. IFS=$as_save_IFS
  1871. test -z "$as_dir" && as_dir=.
  1872. $as_echo "PATH: $as_dir"
  1873. done
  1874. IFS=$as_save_IFS
  1875. } >&5
  1876. cat >&5 <<_ACEOF
  1877. ## ----------- ##
  1878. ## Core tests. ##
  1879. ## ----------- ##
  1880. _ACEOF
  1881. # Keep a trace of the command line.
  1882. # Strip out --no-create and --no-recursion so they do not pile up.
  1883. # Strip out --silent because we don't want to record it for future runs.
  1884. # Also quote any args containing shell meta-characters.
  1885. # Make two passes to allow for proper duplicate-argument suppression.
  1886. ac_configure_args=
  1887. ac_configure_args0=
  1888. ac_configure_args1=
  1889. ac_must_keep_next=false
  1890. for ac_pass in 1 2
  1891. do
  1892. for ac_arg
  1893. do
  1894. case $ac_arg in
  1895. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1897. | -silent | --silent | --silen | --sile | --sil)
  1898. continue ;;
  1899. *\'*)
  1900. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1901. esac
  1902. case $ac_pass in
  1903. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1904. 2)
  1905. as_fn_append ac_configure_args1 " '$ac_arg'"
  1906. if test $ac_must_keep_next = true; then
  1907. ac_must_keep_next=false # Got value, back to normal.
  1908. else
  1909. case $ac_arg in
  1910. *=* | --config-cache | -C | -disable-* | --disable-* \
  1911. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1912. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1913. | -with-* | --with-* | -without-* | --without-* | --x)
  1914. case "$ac_configure_args0 " in
  1915. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1916. esac
  1917. ;;
  1918. -* ) ac_must_keep_next=true ;;
  1919. esac
  1920. fi
  1921. as_fn_append ac_configure_args " '$ac_arg'"
  1922. ;;
  1923. esac
  1924. done
  1925. done
  1926. { ac_configure_args0=; unset ac_configure_args0;}
  1927. { ac_configure_args1=; unset ac_configure_args1;}
  1928. # When interrupted or exit'd, cleanup temporary files, and complete
  1929. # config.log. We remove comments because anyway the quotes in there
  1930. # would cause problems or look ugly.
  1931. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1932. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1933. trap 'exit_status=$?
  1934. # Save into config.log some information that might help in debugging.
  1935. {
  1936. echo
  1937. $as_echo "## ---------------- ##
  1938. ## Cache variables. ##
  1939. ## ---------------- ##"
  1940. echo
  1941. # The following way of writing the cache mishandles newlines in values,
  1942. (
  1943. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in #(
  1946. *${as_nl}*)
  1947. case $ac_var in #(
  1948. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1949. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1950. esac
  1951. case $ac_var in #(
  1952. _ | IFS | as_nl) ;; #(
  1953. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1954. *) { eval $ac_var=; unset $ac_var;} ;;
  1955. esac ;;
  1956. esac
  1957. done
  1958. (set) 2>&1 |
  1959. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1960. *${as_nl}ac_space=\ *)
  1961. sed -n \
  1962. "s/'\''/'\''\\\\'\'''\''/g;
  1963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1964. ;; #(
  1965. *)
  1966. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1967. ;;
  1968. esac |
  1969. sort
  1970. )
  1971. echo
  1972. $as_echo "## ----------------- ##
  1973. ## Output variables. ##
  1974. ## ----------------- ##"
  1975. echo
  1976. for ac_var in $ac_subst_vars
  1977. do
  1978. eval ac_val=\$$ac_var
  1979. case $ac_val in
  1980. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1981. esac
  1982. $as_echo "$ac_var='\''$ac_val'\''"
  1983. done | sort
  1984. echo
  1985. if test -n "$ac_subst_files"; then
  1986. $as_echo "## ------------------- ##
  1987. ## File substitutions. ##
  1988. ## ------------------- ##"
  1989. echo
  1990. for ac_var in $ac_subst_files
  1991. do
  1992. eval ac_val=\$$ac_var
  1993. case $ac_val in
  1994. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1995. esac
  1996. $as_echo "$ac_var='\''$ac_val'\''"
  1997. done | sort
  1998. echo
  1999. fi
  2000. if test -s confdefs.h; then
  2001. $as_echo "## ----------- ##
  2002. ## confdefs.h. ##
  2003. ## ----------- ##"
  2004. echo
  2005. cat confdefs.h
  2006. echo
  2007. fi
  2008. test "$ac_signal" != 0 &&
  2009. $as_echo "$as_me: caught signal $ac_signal"
  2010. $as_echo "$as_me: exit $exit_status"
  2011. } >&5
  2012. rm -f core *.core core.conftest.* &&
  2013. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2014. exit $exit_status
  2015. ' 0
  2016. for ac_signal in 1 2 13 15; do
  2017. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2018. done
  2019. ac_signal=0
  2020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2021. rm -f -r conftest* confdefs.h
  2022. $as_echo "/* confdefs.h */" > confdefs.h
  2023. # Predefined preprocessor variables.
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_NAME "$PACKAGE_NAME"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_STRING "$PACKAGE_STRING"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2038. _ACEOF
  2039. cat >>confdefs.h <<_ACEOF
  2040. #define PACKAGE_URL "$PACKAGE_URL"
  2041. _ACEOF
  2042. # Let the site file select an alternate cache file if it wants to.
  2043. # Prefer an explicitly selected file to automatically selected ones.
  2044. ac_site_file1=NONE
  2045. ac_site_file2=NONE
  2046. if test -n "$CONFIG_SITE"; then
  2047. # We do not want a PATH search for config.site.
  2048. case $CONFIG_SITE in #((
  2049. -*) ac_site_file1=./$CONFIG_SITE;;
  2050. */*) ac_site_file1=$CONFIG_SITE;;
  2051. *) ac_site_file1=./$CONFIG_SITE;;
  2052. esac
  2053. elif test "x$prefix" != xNONE; then
  2054. ac_site_file1=$prefix/share/config.site
  2055. ac_site_file2=$prefix/etc/config.site
  2056. else
  2057. ac_site_file1=$ac_default_prefix/share/config.site
  2058. ac_site_file2=$ac_default_prefix/etc/config.site
  2059. fi
  2060. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2061. do
  2062. test "x$ac_site_file" = xNONE && continue
  2063. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2065. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2066. sed 's/^/| /' "$ac_site_file" >&5
  2067. . "$ac_site_file" \
  2068. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2070. as_fn_error $? "failed to load site script $ac_site_file
  2071. See \`config.log' for more details" "$LINENO" 5; }
  2072. fi
  2073. done
  2074. if test -r "$cache_file"; then
  2075. # Some versions of bash will fail to source /dev/null (special files
  2076. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2077. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2079. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2080. case $cache_file in
  2081. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2082. *) . "./$cache_file";;
  2083. esac
  2084. fi
  2085. else
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2087. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2088. >$cache_file
  2089. fi
  2090. # Check that the precious variables saved in the cache have kept the same
  2091. # value.
  2092. ac_cache_corrupted=false
  2093. for ac_var in $ac_precious_vars; do
  2094. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2095. eval ac_new_set=\$ac_env_${ac_var}_set
  2096. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2097. eval ac_new_val=\$ac_env_${ac_var}_value
  2098. case $ac_old_set,$ac_new_set in
  2099. set,)
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2101. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2102. ac_cache_corrupted=: ;;
  2103. ,set)
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2105. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2106. ac_cache_corrupted=: ;;
  2107. ,);;
  2108. *)
  2109. if test "x$ac_old_val" != "x$ac_new_val"; then
  2110. # differences in whitespace do not lead to failure.
  2111. ac_old_val_w=`echo x $ac_old_val`
  2112. ac_new_val_w=`echo x $ac_new_val`
  2113. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2115. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2116. ac_cache_corrupted=:
  2117. else
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2119. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2120. eval $ac_var=\$ac_old_val
  2121. fi
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2123. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2125. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2126. fi;;
  2127. esac
  2128. # Pass precious variables to config.status.
  2129. if test "$ac_new_set" = set; then
  2130. case $ac_new_val in
  2131. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2132. *) ac_arg=$ac_var=$ac_new_val ;;
  2133. esac
  2134. case " $ac_configure_args " in
  2135. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2136. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2137. esac
  2138. fi
  2139. done
  2140. if $ac_cache_corrupted; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2144. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2145. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2146. fi
  2147. ## -------------------- ##
  2148. ## Main body of script. ##
  2149. ## -------------------- ##
  2150. ac_ext=c
  2151. ac_cpp='$CPP $CPPFLAGS'
  2152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2155. EMPTY_CFLAGS="no"
  2156. if test "x$CFLAGS" = "x"; then
  2157. EMPTY_CFLAGS="yes"
  2158. fi
  2159. ac_ext=c
  2160. ac_cpp='$CPP $CPPFLAGS'
  2161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2164. if test -n "$ac_tool_prefix"; then
  2165. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2166. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2168. $as_echo_n "checking for $ac_word... " >&6; }
  2169. if ${ac_cv_prog_CC+:} false; then :
  2170. $as_echo_n "(cached) " >&6
  2171. else
  2172. if test -n "$CC"; then
  2173. ac_cv_prog_CC="$CC" # Let the user override the test.
  2174. else
  2175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2176. for as_dir in $PATH
  2177. do
  2178. IFS=$as_save_IFS
  2179. test -z "$as_dir" && as_dir=.
  2180. for ac_exec_ext in '' $ac_executable_extensions; do
  2181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2182. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2184. break 2
  2185. fi
  2186. done
  2187. done
  2188. IFS=$as_save_IFS
  2189. fi
  2190. fi
  2191. CC=$ac_cv_prog_CC
  2192. if test -n "$CC"; then
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2194. $as_echo "$CC" >&6; }
  2195. else
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2197. $as_echo "no" >&6; }
  2198. fi
  2199. fi
  2200. if test -z "$ac_cv_prog_CC"; then
  2201. ac_ct_CC=$CC
  2202. # Extract the first word of "gcc", so it can be a program name with args.
  2203. set dummy gcc; ac_word=$2
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2205. $as_echo_n "checking for $ac_word... " >&6; }
  2206. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. if test -n "$ac_ct_CC"; then
  2210. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2211. else
  2212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2213. for as_dir in $PATH
  2214. do
  2215. IFS=$as_save_IFS
  2216. test -z "$as_dir" && as_dir=.
  2217. for ac_exec_ext in '' $ac_executable_extensions; do
  2218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2219. ac_cv_prog_ac_ct_CC="gcc"
  2220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2221. break 2
  2222. fi
  2223. done
  2224. done
  2225. IFS=$as_save_IFS
  2226. fi
  2227. fi
  2228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2229. if test -n "$ac_ct_CC"; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2231. $as_echo "$ac_ct_CC" >&6; }
  2232. else
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2234. $as_echo "no" >&6; }
  2235. fi
  2236. if test "x$ac_ct_CC" = x; then
  2237. CC=""
  2238. else
  2239. case $cross_compiling:$ac_tool_warned in
  2240. yes:)
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2242. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2243. ac_tool_warned=yes ;;
  2244. esac
  2245. CC=$ac_ct_CC
  2246. fi
  2247. else
  2248. CC="$ac_cv_prog_CC"
  2249. fi
  2250. if test -z "$CC"; then
  2251. if test -n "$ac_tool_prefix"; then
  2252. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2253. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2255. $as_echo_n "checking for $ac_word... " >&6; }
  2256. if ${ac_cv_prog_CC+:} false; then :
  2257. $as_echo_n "(cached) " >&6
  2258. else
  2259. if test -n "$CC"; then
  2260. ac_cv_prog_CC="$CC" # Let the user override the test.
  2261. else
  2262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2263. for as_dir in $PATH
  2264. do
  2265. IFS=$as_save_IFS
  2266. test -z "$as_dir" && as_dir=.
  2267. for ac_exec_ext in '' $ac_executable_extensions; do
  2268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2269. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2271. break 2
  2272. fi
  2273. done
  2274. done
  2275. IFS=$as_save_IFS
  2276. fi
  2277. fi
  2278. CC=$ac_cv_prog_CC
  2279. if test -n "$CC"; then
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2281. $as_echo "$CC" >&6; }
  2282. else
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2284. $as_echo "no" >&6; }
  2285. fi
  2286. fi
  2287. fi
  2288. if test -z "$CC"; then
  2289. # Extract the first word of "cc", so it can be a program name with args.
  2290. set dummy cc; ac_word=$2
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2292. $as_echo_n "checking for $ac_word... " >&6; }
  2293. if ${ac_cv_prog_CC+:} false; then :
  2294. $as_echo_n "(cached) " >&6
  2295. else
  2296. if test -n "$CC"; then
  2297. ac_cv_prog_CC="$CC" # Let the user override the test.
  2298. else
  2299. ac_prog_rejected=no
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2307. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2308. ac_prog_rejected=yes
  2309. continue
  2310. fi
  2311. ac_cv_prog_CC="cc"
  2312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. if test $ac_prog_rejected = yes; then
  2319. # We found a bogon in the path, so make sure we never use it.
  2320. set dummy $ac_cv_prog_CC
  2321. shift
  2322. if test $# != 0; then
  2323. # We chose a different compiler from the bogus one.
  2324. # However, it has the same basename, so the bogon will be chosen
  2325. # first if we set CC to just the basename; use the full file name.
  2326. shift
  2327. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2328. fi
  2329. fi
  2330. fi
  2331. fi
  2332. CC=$ac_cv_prog_CC
  2333. if test -n "$CC"; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2335. $as_echo "$CC" >&6; }
  2336. else
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2338. $as_echo "no" >&6; }
  2339. fi
  2340. fi
  2341. if test -z "$CC"; then
  2342. if test -n "$ac_tool_prefix"; then
  2343. for ac_prog in cl.exe
  2344. do
  2345. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2346. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_CC+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$CC"; then
  2353. ac_cv_prog_CC="$CC" # Let the user override the test.
  2354. else
  2355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2356. for as_dir in $PATH
  2357. do
  2358. IFS=$as_save_IFS
  2359. test -z "$as_dir" && as_dir=.
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2362. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2364. break 2
  2365. fi
  2366. done
  2367. done
  2368. IFS=$as_save_IFS
  2369. fi
  2370. fi
  2371. CC=$ac_cv_prog_CC
  2372. if test -n "$CC"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2374. $as_echo "$CC" >&6; }
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2377. $as_echo "no" >&6; }
  2378. fi
  2379. test -n "$CC" && break
  2380. done
  2381. fi
  2382. if test -z "$CC"; then
  2383. ac_ct_CC=$CC
  2384. for ac_prog in cl.exe
  2385. do
  2386. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2387. set dummy $ac_prog; ac_word=$2
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2389. $as_echo_n "checking for $ac_word... " >&6; }
  2390. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2391. $as_echo_n "(cached) " >&6
  2392. else
  2393. if test -n "$ac_ct_CC"; then
  2394. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2395. else
  2396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2397. for as_dir in $PATH
  2398. do
  2399. IFS=$as_save_IFS
  2400. test -z "$as_dir" && as_dir=.
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2403. ac_cv_prog_ac_ct_CC="$ac_prog"
  2404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2405. break 2
  2406. fi
  2407. done
  2408. done
  2409. IFS=$as_save_IFS
  2410. fi
  2411. fi
  2412. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2413. if test -n "$ac_ct_CC"; then
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2415. $as_echo "$ac_ct_CC" >&6; }
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2418. $as_echo "no" >&6; }
  2419. fi
  2420. test -n "$ac_ct_CC" && break
  2421. done
  2422. if test "x$ac_ct_CC" = x; then
  2423. CC=""
  2424. else
  2425. case $cross_compiling:$ac_tool_warned in
  2426. yes:)
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2429. ac_tool_warned=yes ;;
  2430. esac
  2431. CC=$ac_ct_CC
  2432. fi
  2433. fi
  2434. fi
  2435. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2436. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2437. as_fn_error $? "no acceptable C compiler found in \$PATH
  2438. See \`config.log' for more details" "$LINENO" 5; }
  2439. # Provide some information about the compiler.
  2440. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2441. set X $ac_compile
  2442. ac_compiler=$2
  2443. for ac_option in --version -v -V -qversion; do
  2444. { { ac_try="$ac_compiler $ac_option >&5"
  2445. case "(($ac_try" in
  2446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2447. *) ac_try_echo=$ac_try;;
  2448. esac
  2449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2450. $as_echo "$ac_try_echo"; } >&5
  2451. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2452. ac_status=$?
  2453. if test -s conftest.err; then
  2454. sed '10a\
  2455. ... rest of stderr output deleted ...
  2456. 10q' conftest.err >conftest.er1
  2457. cat conftest.er1 >&5
  2458. fi
  2459. rm -f conftest.er1 conftest.err
  2460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2461. test $ac_status = 0; }
  2462. done
  2463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2464. /* end confdefs.h. */
  2465. int
  2466. main ()
  2467. {
  2468. ;
  2469. return 0;
  2470. }
  2471. _ACEOF
  2472. ac_clean_files_save=$ac_clean_files
  2473. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2474. # Try to create an executable without -o first, disregard a.out.
  2475. # It will help us diagnose broken compilers, and finding out an intuition
  2476. # of exeext.
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2478. $as_echo_n "checking whether the C compiler works... " >&6; }
  2479. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2480. # The possible output files:
  2481. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2482. ac_rmfiles=
  2483. for ac_file in $ac_files
  2484. do
  2485. case $ac_file in
  2486. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2487. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2488. esac
  2489. done
  2490. rm -f $ac_rmfiles
  2491. if { { ac_try="$ac_link_default"
  2492. case "(($ac_try" in
  2493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2494. *) ac_try_echo=$ac_try;;
  2495. esac
  2496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2497. $as_echo "$ac_try_echo"; } >&5
  2498. (eval "$ac_link_default") 2>&5
  2499. ac_status=$?
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2501. test $ac_status = 0; }; then :
  2502. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2503. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2504. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2505. # so that the user can short-circuit this test for compilers unknown to
  2506. # Autoconf.
  2507. for ac_file in $ac_files ''
  2508. do
  2509. test -f "$ac_file" || continue
  2510. case $ac_file in
  2511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2512. ;;
  2513. [ab].out )
  2514. # We found the default executable, but exeext='' is most
  2515. # certainly right.
  2516. break;;
  2517. *.* )
  2518. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2519. then :; else
  2520. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2521. fi
  2522. # We set ac_cv_exeext here because the later test for it is not
  2523. # safe: cross compilers may not add the suffix if given an `-o'
  2524. # argument, so we may need to know it at that point already.
  2525. # Even if this section looks crufty: it has the advantage of
  2526. # actually working.
  2527. break;;
  2528. * )
  2529. break;;
  2530. esac
  2531. done
  2532. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2533. else
  2534. ac_file=''
  2535. fi
  2536. if test -z "$ac_file"; then :
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2538. $as_echo "no" >&6; }
  2539. $as_echo "$as_me: failed program was:" >&5
  2540. sed 's/^/| /' conftest.$ac_ext >&5
  2541. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2543. as_fn_error 77 "C compiler cannot create executables
  2544. See \`config.log' for more details" "$LINENO" 5; }
  2545. else
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2547. $as_echo "yes" >&6; }
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2550. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2552. $as_echo "$ac_file" >&6; }
  2553. ac_exeext=$ac_cv_exeext
  2554. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2555. ac_clean_files=$ac_clean_files_save
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2557. $as_echo_n "checking for suffix of executables... " >&6; }
  2558. if { { ac_try="$ac_link"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2564. $as_echo "$ac_try_echo"; } >&5
  2565. (eval "$ac_link") 2>&5
  2566. ac_status=$?
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2568. test $ac_status = 0; }; then :
  2569. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2570. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2571. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2572. # `rm'.
  2573. for ac_file in conftest.exe conftest conftest.*; do
  2574. test -f "$ac_file" || continue
  2575. case $ac_file in
  2576. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2577. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2578. break;;
  2579. * ) break;;
  2580. esac
  2581. done
  2582. else
  2583. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2584. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2585. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2586. See \`config.log' for more details" "$LINENO" 5; }
  2587. fi
  2588. rm -f conftest conftest$ac_cv_exeext
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2590. $as_echo "$ac_cv_exeext" >&6; }
  2591. rm -f conftest.$ac_ext
  2592. EXEEXT=$ac_cv_exeext
  2593. ac_exeext=$EXEEXT
  2594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2595. /* end confdefs.h. */
  2596. #include <stdio.h>
  2597. int
  2598. main ()
  2599. {
  2600. FILE *f = fopen ("conftest.out", "w");
  2601. return ferror (f) || fclose (f) != 0;
  2602. ;
  2603. return 0;
  2604. }
  2605. _ACEOF
  2606. ac_clean_files="$ac_clean_files conftest.out"
  2607. # Check that the compiler produces executables we can run. If not, either
  2608. # the compiler is broken, or we cross compile.
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2610. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2611. if test "$cross_compiling" != yes; then
  2612. { { ac_try="$ac_link"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo"; } >&5
  2619. (eval "$ac_link") 2>&5
  2620. ac_status=$?
  2621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2622. test $ac_status = 0; }
  2623. if { ac_try='./conftest$ac_cv_exeext'
  2624. { { case "(($ac_try" in
  2625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2626. *) ac_try_echo=$ac_try;;
  2627. esac
  2628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2629. $as_echo "$ac_try_echo"; } >&5
  2630. (eval "$ac_try") 2>&5
  2631. ac_status=$?
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2633. test $ac_status = 0; }; }; then
  2634. cross_compiling=no
  2635. else
  2636. if test "$cross_compiling" = maybe; then
  2637. cross_compiling=yes
  2638. else
  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 $? "cannot run C compiled programs.
  2642. If you meant to cross compile, use \`--host'.
  2643. See \`config.log' for more details" "$LINENO" 5; }
  2644. fi
  2645. fi
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2648. $as_echo "$cross_compiling" >&6; }
  2649. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2650. ac_clean_files=$ac_clean_files_save
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2652. $as_echo_n "checking for suffix of object files... " >&6; }
  2653. if ${ac_cv_objext+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end confdefs.h. */
  2658. int
  2659. main ()
  2660. {
  2661. ;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. rm -f conftest.o conftest.obj
  2666. if { { ac_try="$ac_compile"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo"; } >&5
  2673. (eval "$ac_compile") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2676. test $ac_status = 0; }; then :
  2677. for ac_file in conftest.o conftest.obj conftest.*; do
  2678. test -f "$ac_file" || continue;
  2679. case $ac_file in
  2680. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2681. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2682. break;;
  2683. esac
  2684. done
  2685. else
  2686. $as_echo "$as_me: failed program was:" >&5
  2687. sed 's/^/| /' conftest.$ac_ext >&5
  2688. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2689. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2690. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2691. See \`config.log' for more details" "$LINENO" 5; }
  2692. fi
  2693. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2694. fi
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2696. $as_echo "$ac_cv_objext" >&6; }
  2697. OBJEXT=$ac_cv_objext
  2698. ac_objext=$OBJEXT
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2700. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2701. if ${ac_cv_c_compiler_gnu+:} false; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2705. /* end confdefs.h. */
  2706. int
  2707. main ()
  2708. {
  2709. #ifndef __GNUC__
  2710. choke me
  2711. #endif
  2712. ;
  2713. return 0;
  2714. }
  2715. _ACEOF
  2716. if ac_fn_c_try_compile "$LINENO"; then :
  2717. ac_compiler_gnu=yes
  2718. else
  2719. ac_compiler_gnu=no
  2720. fi
  2721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2722. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2723. fi
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2725. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2726. if test $ac_compiler_gnu = yes; then
  2727. GCC=yes
  2728. else
  2729. GCC=
  2730. fi
  2731. ac_test_CFLAGS=${CFLAGS+set}
  2732. ac_save_CFLAGS=$CFLAGS
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2734. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2735. if ${ac_cv_prog_cc_g+:} false; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. ac_save_c_werror_flag=$ac_c_werror_flag
  2739. ac_c_werror_flag=yes
  2740. ac_cv_prog_cc_g=no
  2741. CFLAGS="-g"
  2742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. ;
  2748. return 0;
  2749. }
  2750. _ACEOF
  2751. if ac_fn_c_try_compile "$LINENO"; then :
  2752. ac_cv_prog_cc_g=yes
  2753. else
  2754. CFLAGS=""
  2755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2756. /* end confdefs.h. */
  2757. int
  2758. main ()
  2759. {
  2760. ;
  2761. return 0;
  2762. }
  2763. _ACEOF
  2764. if ac_fn_c_try_compile "$LINENO"; then :
  2765. else
  2766. ac_c_werror_flag=$ac_save_c_werror_flag
  2767. CFLAGS="-g"
  2768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2769. /* end confdefs.h. */
  2770. int
  2771. main ()
  2772. {
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. if ac_fn_c_try_compile "$LINENO"; then :
  2778. ac_cv_prog_cc_g=yes
  2779. fi
  2780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2781. fi
  2782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2783. fi
  2784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2785. ac_c_werror_flag=$ac_save_c_werror_flag
  2786. fi
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2788. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2789. if test "$ac_test_CFLAGS" = set; then
  2790. CFLAGS=$ac_save_CFLAGS
  2791. elif test $ac_cv_prog_cc_g = yes; then
  2792. if test "$GCC" = yes; then
  2793. CFLAGS="-g -O2"
  2794. else
  2795. CFLAGS="-g"
  2796. fi
  2797. else
  2798. if test "$GCC" = yes; then
  2799. CFLAGS="-O2"
  2800. else
  2801. CFLAGS=
  2802. fi
  2803. fi
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2805. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2806. if ${ac_cv_prog_cc_c89+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. ac_cv_prog_cc_c89=no
  2810. ac_save_CC=$CC
  2811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2812. /* end confdefs.h. */
  2813. #include <stdarg.h>
  2814. #include <stdio.h>
  2815. struct stat;
  2816. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2817. struct buf { int x; };
  2818. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2819. static char *e (p, i)
  2820. char **p;
  2821. int i;
  2822. {
  2823. return p[i];
  2824. }
  2825. static char *f (char * (*g) (char **, int), char **p, ...)
  2826. {
  2827. char *s;
  2828. va_list v;
  2829. va_start (v,p);
  2830. s = g (p, va_arg (v,int));
  2831. va_end (v);
  2832. return s;
  2833. }
  2834. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2835. function prototypes and stuff, but not '\xHH' hex character constants.
  2836. These don't provoke an error unfortunately, instead are silently treated
  2837. as 'x'. The following induces an error, until -std is added to get
  2838. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2839. array size at least. It's necessary to write '\x00'==0 to get something
  2840. that's true only with -std. */
  2841. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2842. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2843. inside strings and character constants. */
  2844. #define FOO(x) 'x'
  2845. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2846. int test (int i, double x);
  2847. struct s1 {int (*f) (int a);};
  2848. struct s2 {int (*f) (double a);};
  2849. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2850. int argc;
  2851. char **argv;
  2852. int
  2853. main ()
  2854. {
  2855. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2856. ;
  2857. return 0;
  2858. }
  2859. _ACEOF
  2860. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2861. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2862. do
  2863. CC="$ac_save_CC $ac_arg"
  2864. if ac_fn_c_try_compile "$LINENO"; then :
  2865. ac_cv_prog_cc_c89=$ac_arg
  2866. fi
  2867. rm -f core conftest.err conftest.$ac_objext
  2868. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2869. done
  2870. rm -f conftest.$ac_ext
  2871. CC=$ac_save_CC
  2872. fi
  2873. # AC_CACHE_VAL
  2874. case "x$ac_cv_prog_cc_c89" in
  2875. x)
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2877. $as_echo "none needed" >&6; } ;;
  2878. xno)
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2880. $as_echo "unsupported" >&6; } ;;
  2881. *)
  2882. CC="$CC $ac_cv_prog_cc_c89"
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2884. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2885. esac
  2886. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2887. fi
  2888. ac_ext=c
  2889. ac_cpp='$CPP $CPPFLAGS'
  2890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2893. ac_ext=c
  2894. ac_cpp='$CPP $CPPFLAGS'
  2895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2899. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2900. # On Suns, sometimes $CPP names a directory.
  2901. if test -n "$CPP" && test -d "$CPP"; then
  2902. CPP=
  2903. fi
  2904. if test -z "$CPP"; then
  2905. if ${ac_cv_prog_CPP+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. # Double quotes because CPP needs to be expanded
  2909. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2910. do
  2911. ac_preproc_ok=false
  2912. for ac_c_preproc_warn_flag in '' yes
  2913. do
  2914. # Use a header file that comes with gcc, so configuring glibc
  2915. # with a fresh cross-compiler works.
  2916. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2917. # <limits.h> exists even on freestanding compilers.
  2918. # On the NeXT, cc -E runs the code through the compiler's parser,
  2919. # not just through cpp. "Syntax error" is here to catch this case.
  2920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2921. /* end confdefs.h. */
  2922. #ifdef __STDC__
  2923. # include <limits.h>
  2924. #else
  2925. # include <assert.h>
  2926. #endif
  2927. Syntax error
  2928. _ACEOF
  2929. if ac_fn_c_try_cpp "$LINENO"; then :
  2930. else
  2931. # Broken: fails on valid input.
  2932. continue
  2933. fi
  2934. rm -f conftest.err conftest.i conftest.$ac_ext
  2935. # OK, works on sane cases. Now check whether nonexistent headers
  2936. # can be detected and how.
  2937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2938. /* end confdefs.h. */
  2939. #include <ac_nonexistent.h>
  2940. _ACEOF
  2941. if ac_fn_c_try_cpp "$LINENO"; then :
  2942. # Broken: success on invalid input.
  2943. continue
  2944. else
  2945. # Passes both tests.
  2946. ac_preproc_ok=:
  2947. break
  2948. fi
  2949. rm -f conftest.err conftest.i conftest.$ac_ext
  2950. done
  2951. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2952. rm -f conftest.i conftest.err conftest.$ac_ext
  2953. if $ac_preproc_ok; then :
  2954. break
  2955. fi
  2956. done
  2957. ac_cv_prog_CPP=$CPP
  2958. fi
  2959. CPP=$ac_cv_prog_CPP
  2960. else
  2961. ac_cv_prog_CPP=$CPP
  2962. fi
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2964. $as_echo "$CPP" >&6; }
  2965. ac_preproc_ok=false
  2966. for ac_c_preproc_warn_flag in '' yes
  2967. do
  2968. # Use a header file that comes with gcc, so configuring glibc
  2969. # with a fresh cross-compiler works.
  2970. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2971. # <limits.h> exists even on freestanding compilers.
  2972. # On the NeXT, cc -E runs the code through the compiler's parser,
  2973. # not just through cpp. "Syntax error" is here to catch this case.
  2974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2975. /* end confdefs.h. */
  2976. #ifdef __STDC__
  2977. # include <limits.h>
  2978. #else
  2979. # include <assert.h>
  2980. #endif
  2981. Syntax error
  2982. _ACEOF
  2983. if ac_fn_c_try_cpp "$LINENO"; then :
  2984. else
  2985. # Broken: fails on valid input.
  2986. continue
  2987. fi
  2988. rm -f conftest.err conftest.i conftest.$ac_ext
  2989. # OK, works on sane cases. Now check whether nonexistent headers
  2990. # can be detected and how.
  2991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2992. /* end confdefs.h. */
  2993. #include <ac_nonexistent.h>
  2994. _ACEOF
  2995. if ac_fn_c_try_cpp "$LINENO"; then :
  2996. # Broken: success on invalid input.
  2997. continue
  2998. else
  2999. # Passes both tests.
  3000. ac_preproc_ok=:
  3001. break
  3002. fi
  3003. rm -f conftest.err conftest.i conftest.$ac_ext
  3004. done
  3005. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3006. rm -f conftest.i conftest.err conftest.$ac_ext
  3007. if $ac_preproc_ok; then :
  3008. else
  3009. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3011. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3012. See \`config.log' for more details" "$LINENO" 5; }
  3013. fi
  3014. ac_ext=c
  3015. ac_cpp='$CPP $CPPFLAGS'
  3016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3019. ac_ext=cpp
  3020. ac_cpp='$CXXCPP $CPPFLAGS'
  3021. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3022. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3023. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3024. if test -z "$CXX"; then
  3025. if test -n "$CCC"; then
  3026. CXX=$CCC
  3027. else
  3028. if test -n "$ac_tool_prefix"; then
  3029. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3030. do
  3031. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3032. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3034. $as_echo_n "checking for $ac_word... " >&6; }
  3035. if ${ac_cv_prog_CXX+:} false; then :
  3036. $as_echo_n "(cached) " >&6
  3037. else
  3038. if test -n "$CXX"; then
  3039. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3040. else
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. test -z "$as_dir" && as_dir=.
  3046. for ac_exec_ext in '' $ac_executable_extensions; do
  3047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3048. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3050. break 2
  3051. fi
  3052. done
  3053. done
  3054. IFS=$as_save_IFS
  3055. fi
  3056. fi
  3057. CXX=$ac_cv_prog_CXX
  3058. if test -n "$CXX"; then
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3060. $as_echo "$CXX" >&6; }
  3061. else
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3063. $as_echo "no" >&6; }
  3064. fi
  3065. test -n "$CXX" && break
  3066. done
  3067. fi
  3068. if test -z "$CXX"; then
  3069. ac_ct_CXX=$CXX
  3070. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3071. do
  3072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3073. set dummy $ac_prog; ac_word=$2
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3075. $as_echo_n "checking for $ac_word... " >&6; }
  3076. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. if test -n "$ac_ct_CXX"; then
  3080. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3081. else
  3082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3083. for as_dir in $PATH
  3084. do
  3085. IFS=$as_save_IFS
  3086. test -z "$as_dir" && as_dir=.
  3087. for ac_exec_ext in '' $ac_executable_extensions; do
  3088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3089. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3091. break 2
  3092. fi
  3093. done
  3094. done
  3095. IFS=$as_save_IFS
  3096. fi
  3097. fi
  3098. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3099. if test -n "$ac_ct_CXX"; then
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3101. $as_echo "$ac_ct_CXX" >&6; }
  3102. else
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3104. $as_echo "no" >&6; }
  3105. fi
  3106. test -n "$ac_ct_CXX" && break
  3107. done
  3108. if test "x$ac_ct_CXX" = x; then
  3109. CXX="g++"
  3110. else
  3111. case $cross_compiling:$ac_tool_warned in
  3112. yes:)
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3114. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3115. ac_tool_warned=yes ;;
  3116. esac
  3117. CXX=$ac_ct_CXX
  3118. fi
  3119. fi
  3120. fi
  3121. fi
  3122. # Provide some information about the compiler.
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3124. set X $ac_compile
  3125. ac_compiler=$2
  3126. for ac_option in --version -v -V -qversion; do
  3127. { { ac_try="$ac_compiler $ac_option >&5"
  3128. case "(($ac_try" in
  3129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130. *) ac_try_echo=$ac_try;;
  3131. esac
  3132. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3133. $as_echo "$ac_try_echo"; } >&5
  3134. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3135. ac_status=$?
  3136. if test -s conftest.err; then
  3137. sed '10a\
  3138. ... rest of stderr output deleted ...
  3139. 10q' conftest.err >conftest.er1
  3140. cat conftest.er1 >&5
  3141. fi
  3142. rm -f conftest.er1 conftest.err
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }
  3145. done
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3147. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3148. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3149. $as_echo_n "(cached) " >&6
  3150. else
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. int
  3154. main ()
  3155. {
  3156. #ifndef __GNUC__
  3157. choke me
  3158. #endif
  3159. ;
  3160. return 0;
  3161. }
  3162. _ACEOF
  3163. if ac_fn_cxx_try_compile "$LINENO"; then :
  3164. ac_compiler_gnu=yes
  3165. else
  3166. ac_compiler_gnu=no
  3167. fi
  3168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3169. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3172. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3173. if test $ac_compiler_gnu = yes; then
  3174. GXX=yes
  3175. else
  3176. GXX=
  3177. fi
  3178. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3179. ac_save_CXXFLAGS=$CXXFLAGS
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3181. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3182. if ${ac_cv_prog_cxx_g+:} false; then :
  3183. $as_echo_n "(cached) " >&6
  3184. else
  3185. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3186. ac_cxx_werror_flag=yes
  3187. ac_cv_prog_cxx_g=no
  3188. CXXFLAGS="-g"
  3189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3190. /* end confdefs.h. */
  3191. int
  3192. main ()
  3193. {
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. if ac_fn_cxx_try_compile "$LINENO"; then :
  3199. ac_cv_prog_cxx_g=yes
  3200. else
  3201. CXXFLAGS=""
  3202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3203. /* end confdefs.h. */
  3204. int
  3205. main ()
  3206. {
  3207. ;
  3208. return 0;
  3209. }
  3210. _ACEOF
  3211. if ac_fn_cxx_try_compile "$LINENO"; then :
  3212. else
  3213. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3214. CXXFLAGS="-g"
  3215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3216. /* end confdefs.h. */
  3217. int
  3218. main ()
  3219. {
  3220. ;
  3221. return 0;
  3222. }
  3223. _ACEOF
  3224. if ac_fn_cxx_try_compile "$LINENO"; then :
  3225. ac_cv_prog_cxx_g=yes
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. fi
  3229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3230. fi
  3231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3233. fi
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3235. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3236. if test "$ac_test_CXXFLAGS" = set; then
  3237. CXXFLAGS=$ac_save_CXXFLAGS
  3238. elif test $ac_cv_prog_cxx_g = yes; then
  3239. if test "$GXX" = yes; then
  3240. CXXFLAGS="-g -O2"
  3241. else
  3242. CXXFLAGS="-g"
  3243. fi
  3244. else
  3245. if test "$GXX" = yes; then
  3246. CXXFLAGS="-O2"
  3247. else
  3248. CXXFLAGS=
  3249. fi
  3250. fi
  3251. ac_ext=c
  3252. ac_cpp='$CPP $CPPFLAGS'
  3253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3256. ac_aux_dir=
  3257. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3258. if test -f "$ac_dir/install-sh"; then
  3259. ac_aux_dir=$ac_dir
  3260. ac_install_sh="$ac_aux_dir/install-sh -c"
  3261. break
  3262. elif test -f "$ac_dir/install.sh"; then
  3263. ac_aux_dir=$ac_dir
  3264. ac_install_sh="$ac_aux_dir/install.sh -c"
  3265. break
  3266. elif test -f "$ac_dir/shtool"; then
  3267. ac_aux_dir=$ac_dir
  3268. ac_install_sh="$ac_aux_dir/shtool install -c"
  3269. break
  3270. fi
  3271. done
  3272. if test -z "$ac_aux_dir"; then
  3273. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3274. fi
  3275. # These three variables are undocumented and unsupported,
  3276. # and are intended to be withdrawn in a future Autoconf release.
  3277. # They can cause serious problems if a builder's source tree is in a directory
  3278. # whose full name contains unusual characters.
  3279. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3280. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3281. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3282. # Expand $ac_aux_dir to an absolute path.
  3283. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3284. if test -n "$ac_tool_prefix"; then
  3285. for ac_prog in ar lib "link -lib"
  3286. do
  3287. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3288. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3290. $as_echo_n "checking for $ac_word... " >&6; }
  3291. if ${ac_cv_prog_AR+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. if test -n "$AR"; then
  3295. ac_cv_prog_AR="$AR" # Let the user override the test.
  3296. else
  3297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3298. for as_dir in $PATH
  3299. do
  3300. IFS=$as_save_IFS
  3301. test -z "$as_dir" && as_dir=.
  3302. for ac_exec_ext in '' $ac_executable_extensions; do
  3303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3304. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3306. break 2
  3307. fi
  3308. done
  3309. done
  3310. IFS=$as_save_IFS
  3311. fi
  3312. fi
  3313. AR=$ac_cv_prog_AR
  3314. if test -n "$AR"; then
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3316. $as_echo "$AR" >&6; }
  3317. else
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3319. $as_echo "no" >&6; }
  3320. fi
  3321. test -n "$AR" && break
  3322. done
  3323. fi
  3324. if test -z "$AR"; then
  3325. ac_ct_AR=$AR
  3326. for ac_prog in ar lib "link -lib"
  3327. do
  3328. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3329. set dummy $ac_prog; ac_word=$2
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3331. $as_echo_n "checking for $ac_word... " >&6; }
  3332. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3333. $as_echo_n "(cached) " >&6
  3334. else
  3335. if test -n "$ac_ct_AR"; then
  3336. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3345. ac_cv_prog_ac_ct_AR="$ac_prog"
  3346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3355. if test -n "$ac_ct_AR"; then
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3357. $as_echo "$ac_ct_AR" >&6; }
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3360. $as_echo "no" >&6; }
  3361. fi
  3362. test -n "$ac_ct_AR" && break
  3363. done
  3364. if test "x$ac_ct_AR" = x; then
  3365. AR="false"
  3366. else
  3367. case $cross_compiling:$ac_tool_warned in
  3368. yes:)
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3371. ac_tool_warned=yes ;;
  3372. esac
  3373. AR=$ac_ct_AR
  3374. fi
  3375. fi
  3376. : ${AR=ar}
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3378. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3379. if ${am_cv_ar_interface+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. ac_ext=c
  3383. ac_cpp='$CPP $CPPFLAGS'
  3384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3387. am_cv_ar_interface=ar
  3388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3389. /* end confdefs.h. */
  3390. int some_variable = 0;
  3391. _ACEOF
  3392. if ac_fn_c_try_compile "$LINENO"; then :
  3393. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3394. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3395. (eval $am_ar_try) 2>&5
  3396. ac_status=$?
  3397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3398. test $ac_status = 0; }
  3399. if test "$ac_status" -eq 0; then
  3400. am_cv_ar_interface=ar
  3401. else
  3402. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3403. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3404. (eval $am_ar_try) 2>&5
  3405. ac_status=$?
  3406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3407. test $ac_status = 0; }
  3408. if test "$ac_status" -eq 0; then
  3409. am_cv_ar_interface=lib
  3410. else
  3411. am_cv_ar_interface=unknown
  3412. fi
  3413. fi
  3414. rm -f conftest.lib libconftest.a
  3415. fi
  3416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3417. ac_ext=c
  3418. ac_cpp='$CPP $CPPFLAGS'
  3419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3424. $as_echo "$am_cv_ar_interface" >&6; }
  3425. case $am_cv_ar_interface in
  3426. ar)
  3427. ;;
  3428. lib)
  3429. # Microsoft lib, so override with the ar-lib wrapper script.
  3430. # FIXME: It is wrong to rewrite AR.
  3431. # But if we don't then we get into trouble of one sort or another.
  3432. # A longer-term fix would be to have automake use am__AR in this case,
  3433. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3434. # similar.
  3435. AR="$am_aux_dir/ar-lib $AR"
  3436. ;;
  3437. unknown)
  3438. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3439. ;;
  3440. esac
  3441. if test -n "$ac_tool_prefix"; then
  3442. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3443. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3445. $as_echo_n "checking for $ac_word... " >&6; }
  3446. if ${ac_cv_prog_RANLIB+:} false; then :
  3447. $as_echo_n "(cached) " >&6
  3448. else
  3449. if test -n "$RANLIB"; then
  3450. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3451. else
  3452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3453. for as_dir in $PATH
  3454. do
  3455. IFS=$as_save_IFS
  3456. test -z "$as_dir" && as_dir=.
  3457. for ac_exec_ext in '' $ac_executable_extensions; do
  3458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3459. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3461. break 2
  3462. fi
  3463. done
  3464. done
  3465. IFS=$as_save_IFS
  3466. fi
  3467. fi
  3468. RANLIB=$ac_cv_prog_RANLIB
  3469. if test -n "$RANLIB"; then
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3471. $as_echo "$RANLIB" >&6; }
  3472. else
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3474. $as_echo "no" >&6; }
  3475. fi
  3476. fi
  3477. if test -z "$ac_cv_prog_RANLIB"; then
  3478. ac_ct_RANLIB=$RANLIB
  3479. # Extract the first word of "ranlib", so it can be a program name with args.
  3480. set dummy ranlib; ac_word=$2
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3482. $as_echo_n "checking for $ac_word... " >&6; }
  3483. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. if test -n "$ac_ct_RANLIB"; then
  3487. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3488. else
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492. IFS=$as_save_IFS
  3493. test -z "$as_dir" && as_dir=.
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3496. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3498. break 2
  3499. fi
  3500. done
  3501. done
  3502. IFS=$as_save_IFS
  3503. fi
  3504. fi
  3505. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3506. if test -n "$ac_ct_RANLIB"; then
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3508. $as_echo "$ac_ct_RANLIB" >&6; }
  3509. else
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3511. $as_echo "no" >&6; }
  3512. fi
  3513. if test "x$ac_ct_RANLIB" = x; then
  3514. RANLIB=":"
  3515. else
  3516. case $cross_compiling:$ac_tool_warned in
  3517. yes:)
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3520. ac_tool_warned=yes ;;
  3521. esac
  3522. RANLIB=$ac_ct_RANLIB
  3523. fi
  3524. else
  3525. RANLIB="$ac_cv_prog_RANLIB"
  3526. fi
  3527. # Find a good install program. We prefer a C program (faster),
  3528. # so one script is as good as another. But avoid the broken or
  3529. # incompatible versions:
  3530. # SysV /etc/install, /usr/sbin/install
  3531. # SunOS /usr/etc/install
  3532. # IRIX /sbin/install
  3533. # AIX /bin/install
  3534. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3535. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3536. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3537. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3538. # OS/2's system install, which has a completely different semantic
  3539. # ./install, which can be erroneously created by make from ./install.sh.
  3540. # Reject install programs that cannot install multiple files.
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3542. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3543. if test -z "$INSTALL"; then
  3544. if ${ac_cv_path_install+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3548. for as_dir in $PATH
  3549. do
  3550. IFS=$as_save_IFS
  3551. test -z "$as_dir" && as_dir=.
  3552. # Account for people who put trailing slashes in PATH elements.
  3553. case $as_dir/ in #((
  3554. ./ | .// | /[cC]/* | \
  3555. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3556. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3557. /usr/ucb/* ) ;;
  3558. *)
  3559. # OSF1 and SCO ODT 3.0 have their own names for install.
  3560. # Don't use installbsd from OSF since it installs stuff as root
  3561. # by default.
  3562. for ac_prog in ginstall scoinst install; do
  3563. for ac_exec_ext in '' $ac_executable_extensions; do
  3564. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3565. if test $ac_prog = install &&
  3566. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3567. # AIX install. It has an incompatible calling convention.
  3568. :
  3569. elif test $ac_prog = install &&
  3570. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3571. # program-specific install script used by HP pwplus--don't use.
  3572. :
  3573. else
  3574. rm -rf conftest.one conftest.two conftest.dir
  3575. echo one > conftest.one
  3576. echo two > conftest.two
  3577. mkdir conftest.dir
  3578. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3579. test -s conftest.one && test -s conftest.two &&
  3580. test -s conftest.dir/conftest.one &&
  3581. test -s conftest.dir/conftest.two
  3582. then
  3583. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3584. break 3
  3585. fi
  3586. fi
  3587. fi
  3588. done
  3589. done
  3590. ;;
  3591. esac
  3592. done
  3593. IFS=$as_save_IFS
  3594. rm -rf conftest.one conftest.two conftest.dir
  3595. fi
  3596. if test "${ac_cv_path_install+set}" = set; then
  3597. INSTALL=$ac_cv_path_install
  3598. else
  3599. # As a last resort, use the slow shell script. Don't cache a
  3600. # value for INSTALL within a source directory, because that will
  3601. # break other packages using the cache if that directory is
  3602. # removed, or if the value is a relative name.
  3603. INSTALL=$ac_install_sh
  3604. fi
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3607. $as_echo "$INSTALL" >&6; }
  3608. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3609. # It thinks the first close brace ends the variable substitution.
  3610. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3611. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3612. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3614. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3615. if ${ac_cv_path_SED+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3619. for ac_i in 1 2 3 4 5 6 7; do
  3620. ac_script="$ac_script$as_nl$ac_script"
  3621. done
  3622. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3623. { ac_script=; unset ac_script;}
  3624. if test -z "$SED"; then
  3625. ac_path_SED_found=false
  3626. # Loop through the user's path and test for each of PROGNAME-LIST
  3627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3628. for as_dir in $PATH
  3629. do
  3630. IFS=$as_save_IFS
  3631. test -z "$as_dir" && as_dir=.
  3632. for ac_prog in sed gsed; do
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3635. as_fn_executable_p "$ac_path_SED" || continue
  3636. # Check for GNU ac_path_SED and select it if it is found.
  3637. # Check for GNU $ac_path_SED
  3638. case `"$ac_path_SED" --version 2>&1` in
  3639. *GNU*)
  3640. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3641. *)
  3642. ac_count=0
  3643. $as_echo_n 0123456789 >"conftest.in"
  3644. while :
  3645. do
  3646. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3647. mv "conftest.tmp" "conftest.in"
  3648. cp "conftest.in" "conftest.nl"
  3649. $as_echo '' >> "conftest.nl"
  3650. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3651. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3652. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3653. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3654. # Best one so far, save it but keep looking for a better one
  3655. ac_cv_path_SED="$ac_path_SED"
  3656. ac_path_SED_max=$ac_count
  3657. fi
  3658. # 10*(2^10) chars as input seems more than enough
  3659. test $ac_count -gt 10 && break
  3660. done
  3661. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3662. esac
  3663. $ac_path_SED_found && break 3
  3664. done
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668. if test -z "$ac_cv_path_SED"; then
  3669. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3670. fi
  3671. else
  3672. ac_cv_path_SED=$SED
  3673. fi
  3674. fi
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3676. $as_echo "$ac_cv_path_SED" >&6; }
  3677. SED="$ac_cv_path_SED"
  3678. rm -f conftest.sed
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3680. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3681. if ${ac_cv_path_GREP+:} false; then :
  3682. $as_echo_n "(cached) " >&6
  3683. else
  3684. if test -z "$GREP"; then
  3685. ac_path_GREP_found=false
  3686. # Loop through the user's path and test for each of PROGNAME-LIST
  3687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3688. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3689. do
  3690. IFS=$as_save_IFS
  3691. test -z "$as_dir" && as_dir=.
  3692. for ac_prog in grep ggrep; do
  3693. for ac_exec_ext in '' $ac_executable_extensions; do
  3694. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3695. as_fn_executable_p "$ac_path_GREP" || continue
  3696. # Check for GNU ac_path_GREP and select it if it is found.
  3697. # Check for GNU $ac_path_GREP
  3698. case `"$ac_path_GREP" --version 2>&1` in
  3699. *GNU*)
  3700. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3701. *)
  3702. ac_count=0
  3703. $as_echo_n 0123456789 >"conftest.in"
  3704. while :
  3705. do
  3706. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3707. mv "conftest.tmp" "conftest.in"
  3708. cp "conftest.in" "conftest.nl"
  3709. $as_echo 'GREP' >> "conftest.nl"
  3710. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3711. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3712. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3713. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3714. # Best one so far, save it but keep looking for a better one
  3715. ac_cv_path_GREP="$ac_path_GREP"
  3716. ac_path_GREP_max=$ac_count
  3717. fi
  3718. # 10*(2^10) chars as input seems more than enough
  3719. test $ac_count -gt 10 && break
  3720. done
  3721. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3722. esac
  3723. $ac_path_GREP_found && break 3
  3724. done
  3725. done
  3726. done
  3727. IFS=$as_save_IFS
  3728. if test -z "$ac_cv_path_GREP"; then
  3729. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3730. fi
  3731. else
  3732. ac_cv_path_GREP=$GREP
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3736. $as_echo "$ac_cv_path_GREP" >&6; }
  3737. GREP="$ac_cv_path_GREP"
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3739. $as_echo_n "checking for egrep... " >&6; }
  3740. if ${ac_cv_path_EGREP+:} false; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3744. then ac_cv_path_EGREP="$GREP -E"
  3745. else
  3746. if test -z "$EGREP"; then
  3747. ac_path_EGREP_found=false
  3748. # Loop through the user's path and test for each of PROGNAME-LIST
  3749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3750. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3751. do
  3752. IFS=$as_save_IFS
  3753. test -z "$as_dir" && as_dir=.
  3754. for ac_prog in egrep; do
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3757. as_fn_executable_p "$ac_path_EGREP" || continue
  3758. # Check for GNU ac_path_EGREP and select it if it is found.
  3759. # Check for GNU $ac_path_EGREP
  3760. case `"$ac_path_EGREP" --version 2>&1` in
  3761. *GNU*)
  3762. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3763. *)
  3764. ac_count=0
  3765. $as_echo_n 0123456789 >"conftest.in"
  3766. while :
  3767. do
  3768. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3769. mv "conftest.tmp" "conftest.in"
  3770. cp "conftest.in" "conftest.nl"
  3771. $as_echo 'EGREP' >> "conftest.nl"
  3772. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3773. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3774. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3775. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3776. # Best one so far, save it but keep looking for a better one
  3777. ac_cv_path_EGREP="$ac_path_EGREP"
  3778. ac_path_EGREP_max=$ac_count
  3779. fi
  3780. # 10*(2^10) chars as input seems more than enough
  3781. test $ac_count -gt 10 && break
  3782. done
  3783. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3784. esac
  3785. $ac_path_EGREP_found && break 3
  3786. done
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. if test -z "$ac_cv_path_EGREP"; then
  3791. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3792. fi
  3793. else
  3794. ac_cv_path_EGREP=$EGREP
  3795. fi
  3796. fi
  3797. fi
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3799. $as_echo "$ac_cv_path_EGREP" >&6; }
  3800. EGREP="$ac_cv_path_EGREP"
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3802. $as_echo_n "checking for ANSI C header files... " >&6; }
  3803. if ${ac_cv_header_stdc+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3807. /* end confdefs.h. */
  3808. #include <stdlib.h>
  3809. #include <stdarg.h>
  3810. #include <string.h>
  3811. #include <float.h>
  3812. int
  3813. main ()
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. if ac_fn_c_try_compile "$LINENO"; then :
  3820. ac_cv_header_stdc=yes
  3821. else
  3822. ac_cv_header_stdc=no
  3823. fi
  3824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3825. if test $ac_cv_header_stdc = yes; then
  3826. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end confdefs.h. */
  3829. #include <string.h>
  3830. _ACEOF
  3831. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3832. $EGREP "memchr" >/dev/null 2>&1; then :
  3833. else
  3834. ac_cv_header_stdc=no
  3835. fi
  3836. rm -f conftest*
  3837. fi
  3838. if test $ac_cv_header_stdc = yes; then
  3839. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3841. /* end confdefs.h. */
  3842. #include <stdlib.h>
  3843. _ACEOF
  3844. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3845. $EGREP "free" >/dev/null 2>&1; then :
  3846. else
  3847. ac_cv_header_stdc=no
  3848. fi
  3849. rm -f conftest*
  3850. fi
  3851. if test $ac_cv_header_stdc = yes; then
  3852. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3853. if test "$cross_compiling" = yes; then :
  3854. :
  3855. else
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. #include <ctype.h>
  3859. #include <stdlib.h>
  3860. #if ((' ' & 0x0FF) == 0x020)
  3861. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3862. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3863. #else
  3864. # define ISLOWER(c) \
  3865. (('a' <= (c) && (c) <= 'i') \
  3866. || ('j' <= (c) && (c) <= 'r') \
  3867. || ('s' <= (c) && (c) <= 'z'))
  3868. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3869. #endif
  3870. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3871. int
  3872. main ()
  3873. {
  3874. int i;
  3875. for (i = 0; i < 256; i++)
  3876. if (XOR (islower (i), ISLOWER (i))
  3877. || toupper (i) != TOUPPER (i))
  3878. return 2;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. if ac_fn_c_try_run "$LINENO"; then :
  3883. else
  3884. ac_cv_header_stdc=no
  3885. fi
  3886. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3887. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3888. fi
  3889. fi
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3892. $as_echo "$ac_cv_header_stdc" >&6; }
  3893. if test $ac_cv_header_stdc = yes; then
  3894. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3895. fi
  3896. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3897. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3898. inttypes.h stdint.h unistd.h
  3899. do :
  3900. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3901. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3902. "
  3903. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3904. cat >>confdefs.h <<_ACEOF
  3905. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3906. _ACEOF
  3907. fi
  3908. done
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  3910. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  3911. if ${ac_cv_c_bigendian+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. ac_cv_c_bigendian=unknown
  3915. # See if we're dealing with a universal compiler.
  3916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3917. /* end confdefs.h. */
  3918. #ifndef __APPLE_CC__
  3919. not a universal capable compiler
  3920. #endif
  3921. typedef int dummy;
  3922. _ACEOF
  3923. if ac_fn_c_try_compile "$LINENO"; then :
  3924. # Check for potential -arch flags. It is not universal unless
  3925. # there are at least two -arch flags with different values.
  3926. ac_arch=
  3927. ac_prev=
  3928. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  3929. if test -n "$ac_prev"; then
  3930. case $ac_word in
  3931. i?86 | x86_64 | ppc | ppc64)
  3932. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  3933. ac_arch=$ac_word
  3934. else
  3935. ac_cv_c_bigendian=universal
  3936. break
  3937. fi
  3938. ;;
  3939. esac
  3940. ac_prev=
  3941. elif test "x$ac_word" = "x-arch"; then
  3942. ac_prev=arch
  3943. fi
  3944. done
  3945. fi
  3946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3947. if test $ac_cv_c_bigendian = unknown; then
  3948. # See if sys/param.h defines the BYTE_ORDER macro.
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. #include <sys/types.h>
  3952. #include <sys/param.h>
  3953. int
  3954. main ()
  3955. {
  3956. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  3957. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  3958. && LITTLE_ENDIAN)
  3959. bogus endian macros
  3960. #endif
  3961. ;
  3962. return 0;
  3963. }
  3964. _ACEOF
  3965. if ac_fn_c_try_compile "$LINENO"; then :
  3966. # It does; now see whether it defined to BIG_ENDIAN or not.
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #include <sys/types.h>
  3970. #include <sys/param.h>
  3971. int
  3972. main ()
  3973. {
  3974. #if BYTE_ORDER != BIG_ENDIAN
  3975. not big endian
  3976. #endif
  3977. ;
  3978. return 0;
  3979. }
  3980. _ACEOF
  3981. if ac_fn_c_try_compile "$LINENO"; then :
  3982. ac_cv_c_bigendian=yes
  3983. else
  3984. ac_cv_c_bigendian=no
  3985. fi
  3986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3987. fi
  3988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3989. fi
  3990. if test $ac_cv_c_bigendian = unknown; then
  3991. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  3992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3993. /* end confdefs.h. */
  3994. #include <limits.h>
  3995. int
  3996. main ()
  3997. {
  3998. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  3999. bogus endian macros
  4000. #endif
  4001. ;
  4002. return 0;
  4003. }
  4004. _ACEOF
  4005. if ac_fn_c_try_compile "$LINENO"; then :
  4006. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4008. /* end confdefs.h. */
  4009. #include <limits.h>
  4010. int
  4011. main ()
  4012. {
  4013. #ifndef _BIG_ENDIAN
  4014. not big endian
  4015. #endif
  4016. ;
  4017. return 0;
  4018. }
  4019. _ACEOF
  4020. if ac_fn_c_try_compile "$LINENO"; then :
  4021. ac_cv_c_bigendian=yes
  4022. else
  4023. ac_cv_c_bigendian=no
  4024. fi
  4025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4028. fi
  4029. if test $ac_cv_c_bigendian = unknown; then
  4030. # Compile a test program.
  4031. if test "$cross_compiling" = yes; then :
  4032. # Try to guess by grepping values from an object file.
  4033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4034. /* end confdefs.h. */
  4035. short int ascii_mm[] =
  4036. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4037. short int ascii_ii[] =
  4038. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4039. int use_ascii (int i) {
  4040. return ascii_mm[i] + ascii_ii[i];
  4041. }
  4042. short int ebcdic_ii[] =
  4043. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4044. short int ebcdic_mm[] =
  4045. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4046. int use_ebcdic (int i) {
  4047. return ebcdic_mm[i] + ebcdic_ii[i];
  4048. }
  4049. extern int foo;
  4050. int
  4051. main ()
  4052. {
  4053. return use_ascii (foo) == use_ebcdic (foo);
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. if ac_fn_c_try_compile "$LINENO"; then :
  4059. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4060. ac_cv_c_bigendian=yes
  4061. fi
  4062. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4063. if test "$ac_cv_c_bigendian" = unknown; then
  4064. ac_cv_c_bigendian=no
  4065. else
  4066. # finding both strings is unlikely to happen, but who knows?
  4067. ac_cv_c_bigendian=unknown
  4068. fi
  4069. fi
  4070. fi
  4071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4072. else
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. $ac_includes_default
  4076. int
  4077. main ()
  4078. {
  4079. /* Are we little or big endian? From Harbison&Steele. */
  4080. union
  4081. {
  4082. long int l;
  4083. char c[sizeof (long int)];
  4084. } u;
  4085. u.l = 1;
  4086. return u.c[sizeof (long int) - 1] == 1;
  4087. ;
  4088. return 0;
  4089. }
  4090. _ACEOF
  4091. if ac_fn_c_try_run "$LINENO"; then :
  4092. ac_cv_c_bigendian=no
  4093. else
  4094. ac_cv_c_bigendian=yes
  4095. fi
  4096. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4097. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4098. fi
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4102. $as_echo "$ac_cv_c_bigendian" >&6; }
  4103. case $ac_cv_c_bigendian in #(
  4104. yes)
  4105. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4106. ;; #(
  4107. no)
  4108. ;; #(
  4109. universal)
  4110. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4111. ;; #(
  4112. *)
  4113. as_fn_error $? "unknown endianness
  4114. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4115. esac
  4116. # Make sure we can run config.sub.
  4117. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4118. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4120. $as_echo_n "checking build system type... " >&6; }
  4121. if ${ac_cv_build+:} false; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. ac_build_alias=$build_alias
  4125. test "x$ac_build_alias" = x &&
  4126. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4127. test "x$ac_build_alias" = x &&
  4128. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4129. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4130. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4131. fi
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4133. $as_echo "$ac_cv_build" >&6; }
  4134. case $ac_cv_build in
  4135. *-*-*) ;;
  4136. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4137. esac
  4138. build=$ac_cv_build
  4139. ac_save_IFS=$IFS; IFS='-'
  4140. set x $ac_cv_build
  4141. shift
  4142. build_cpu=$1
  4143. build_vendor=$2
  4144. shift; shift
  4145. # Remember, the first character of IFS is used to create $*,
  4146. # except with old shells:
  4147. build_os=$*
  4148. IFS=$ac_save_IFS
  4149. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4151. $as_echo_n "checking host system type... " >&6; }
  4152. if ${ac_cv_host+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. if test "x$host_alias" = x; then
  4156. ac_cv_host=$ac_cv_build
  4157. else
  4158. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4159. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4160. fi
  4161. fi
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4163. $as_echo "$ac_cv_host" >&6; }
  4164. case $ac_cv_host in
  4165. *-*-*) ;;
  4166. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4167. esac
  4168. host=$ac_cv_host
  4169. ac_save_IFS=$IFS; IFS='-'
  4170. set x $ac_cv_host
  4171. shift
  4172. host_cpu=$1
  4173. host_vendor=$2
  4174. shift; shift
  4175. # Remember, the first character of IFS is used to create $*,
  4176. # except with old shells:
  4177. host_os=$*
  4178. IFS=$ac_save_IFS
  4179. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4180. case $host_cpu in
  4181. i*86 | x86_64 )
  4182. $as_echo "#define CPU_CISC 1" >>confdefs.h
  4183. $as_echo "#define HAVE_X86 1" >>confdefs.h
  4184. ;;
  4185. * )
  4186. $as_echo "#define CPU_RISC 1" >>confdefs.h
  4187. ;;
  4188. esac
  4189. case $host_os in
  4190. *cygwin*|*mingw* )
  4191. EXE=.exe
  4192. ;;
  4193. * )
  4194. EXE=""
  4195. ;;
  4196. esac
  4197. # define executable suffix; this is needed for `make clean'
  4198. supported_cflags=""
  4199. if test "$EMPTY_CFLAGS" = "no"; then
  4200. supported_cflags="$CFLAGS"
  4201. fi
  4202. WERROR=""
  4203. for w in -Werror -errwarn; do
  4204. if test "x$WERROR" = "x"; then
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $w" >&5
  4206. $as_echo_n "checking whether ${CC-c} accepts $w... " >&6; }
  4207. save_cflags="$CFLAGS"
  4208. if test "x$CFLAGS" = "x"; then :
  4209. CFLAGS="$w"
  4210. else
  4211. CFLAGS="$CFLAGS $w"
  4212. fi
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. int main(void) { return 0; }
  4216. _ACEOF
  4217. if ac_fn_c_try_compile "$LINENO"; then :
  4218. WERROR="$w"
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4220. $as_echo "yes" >&6; }
  4221. else
  4222. CFLAGS="$save_cflags"
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4224. $as_echo "no" >&6; }
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227. fi
  4228. done
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts -fPIC" >&5
  4230. $as_echo_n "checking whether ${CC-c} accepts -fPIC... " >&6; }
  4231. save_cflags="$CFLAGS"
  4232. if test "x$CFLAGS" = "x"; then :
  4233. CFLAGS="-fPIC"
  4234. else
  4235. CFLAGS="$CFLAGS -fPIC"
  4236. fi
  4237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4238. /* end confdefs.h. */
  4239. int main(void) { return 0; }
  4240. _ACEOF
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. if test "x$supported_cflags" = "x"; then :
  4243. supported_cflags="-fPIC"
  4244. else
  4245. supported_cflags="$supported_cflags -fPIC"
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4248. $as_echo "yes" >&6; }
  4249. else
  4250. CFLAGS="$save_cflags"
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4252. $as_echo "no" >&6; }
  4253. fi
  4254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4255. if test "$EMPTY_CFLAGS" = "yes"; then
  4256. for f in -Wall -pedantic -Wstrict-prototypes; do
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
  4258. $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
  4259. save_cflags="$CFLAGS"
  4260. if test "x$CFLAGS" = "x"; then :
  4261. CFLAGS="$f"
  4262. else
  4263. CFLAGS="$CFLAGS $f"
  4264. fi
  4265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4266. /* end confdefs.h. */
  4267. int main(void) { return 0; }
  4268. _ACEOF
  4269. if ac_fn_c_try_compile "$LINENO"; then :
  4270. if test "x$supported_cflags" = "x"; then :
  4271. supported_cflags="$f"
  4272. else
  4273. supported_cflags="$supported_cflags $f"
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4276. $as_echo "yes" >&6; }
  4277. else
  4278. CFLAGS="$save_cflags"
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4280. $as_echo "no" >&6; }
  4281. fi
  4282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4283. done
  4284. OOPT=""
  4285. for f in -O4 -O3; do
  4286. if test "x$OOPT" = "x"; then
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
  4288. $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
  4289. save_cflags="$CFLAGS"
  4290. if test "x$CFLAGS" = "x"; then :
  4291. CFLAGS="$f"
  4292. else
  4293. CFLAGS="$CFLAGS $f"
  4294. fi
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. int main(void) { return 0; }
  4298. _ACEOF
  4299. if ac_fn_c_try_compile "$LINENO"; then :
  4300. if test "x$supported_cflags" = "x"; then :
  4301. supported_cflags="$f"
  4302. else
  4303. supported_cflags="$supported_cflags $f"
  4304. fi
  4305. OOPT="$f"
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4307. $as_echo "yes" >&6; }
  4308. else
  4309. CFLAGS="$save_cflags"
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4311. $as_echo "no" >&6; }
  4312. fi
  4313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4314. fi
  4315. done
  4316. for f in -fexpensive-optimizations -funroll-loops; do
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
  4318. $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
  4319. save_cflags="$CFLAGS"
  4320. if test "x$CFLAGS" = "x"; then :
  4321. CFLAGS="$f"
  4322. else
  4323. CFLAGS="$CFLAGS $f"
  4324. fi
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. int main(void) { return 0; }
  4328. _ACEOF
  4329. if ac_fn_c_try_compile "$LINENO"; then :
  4330. if test "x$supported_cflags" = "x"; then :
  4331. supported_cflags="$f"
  4332. else
  4333. supported_cflags="$supported_cflags $f"
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4336. $as_echo "yes" >&6; }
  4337. else
  4338. CFLAGS="$save_cflags"
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4340. $as_echo "no" >&6; }
  4341. fi
  4342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4343. done
  4344. fi
  4345. for f in -Wno-language-extension-token; do
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-c} accepts $f" >&5
  4347. $as_echo_n "checking whether ${CC-c} accepts $f... " >&6; }
  4348. save_cflags="$CFLAGS"
  4349. testf=$(echo "$f" | $SED 's|-Wno-\(.*\)|-W\1|g')
  4350. if test "x$CFLAGS" = "x"; then :
  4351. CFLAGS="$testf"
  4352. else
  4353. CFLAGS="$CFLAGS $testf"
  4354. fi
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. int main(void) { return 0; }
  4358. _ACEOF
  4359. if ac_fn_c_try_compile "$LINENO"; then :
  4360. if test "x$supported_cflags" = "x"; then :
  4361. supported_cflags="$f"
  4362. else
  4363. supported_cflags="$supported_cflags $f"
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4366. $as_echo "yes" >&6; }
  4367. else
  4368. CFLAGS="$save_cflags"
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4370. $as_echo "no" >&6; }
  4371. fi
  4372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4373. done
  4374. CFLAGS="$supported_cflags"
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4376. $as_echo_n "checking for ANSI C header files... " >&6; }
  4377. if ${ac_cv_header_stdc+:} false; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4381. /* end confdefs.h. */
  4382. #include <stdlib.h>
  4383. #include <stdarg.h>
  4384. #include <string.h>
  4385. #include <float.h>
  4386. int
  4387. main ()
  4388. {
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. if ac_fn_c_try_compile "$LINENO"; then :
  4394. ac_cv_header_stdc=yes
  4395. else
  4396. ac_cv_header_stdc=no
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4399. if test $ac_cv_header_stdc = yes; then
  4400. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. #include <string.h>
  4404. _ACEOF
  4405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4406. $EGREP "memchr" >/dev/null 2>&1; then :
  4407. else
  4408. ac_cv_header_stdc=no
  4409. fi
  4410. rm -f conftest*
  4411. fi
  4412. if test $ac_cv_header_stdc = yes; then
  4413. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4415. /* end confdefs.h. */
  4416. #include <stdlib.h>
  4417. _ACEOF
  4418. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4419. $EGREP "free" >/dev/null 2>&1; then :
  4420. else
  4421. ac_cv_header_stdc=no
  4422. fi
  4423. rm -f conftest*
  4424. fi
  4425. if test $ac_cv_header_stdc = yes; then
  4426. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4427. if test "$cross_compiling" = yes; then :
  4428. :
  4429. else
  4430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4431. /* end confdefs.h. */
  4432. #include <ctype.h>
  4433. #include <stdlib.h>
  4434. #if ((' ' & 0x0FF) == 0x020)
  4435. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4436. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4437. #else
  4438. # define ISLOWER(c) \
  4439. (('a' <= (c) && (c) <= 'i') \
  4440. || ('j' <= (c) && (c) <= 'r') \
  4441. || ('s' <= (c) && (c) <= 'z'))
  4442. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4443. #endif
  4444. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4445. int
  4446. main ()
  4447. {
  4448. int i;
  4449. for (i = 0; i < 256; i++)
  4450. if (XOR (islower (i), ISLOWER (i))
  4451. || toupper (i) != TOUPPER (i))
  4452. return 2;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. if ac_fn_c_try_run "$LINENO"; then :
  4457. else
  4458. ac_cv_header_stdc=no
  4459. fi
  4460. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4461. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4462. fi
  4463. fi
  4464. fi
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4466. $as_echo "$ac_cv_header_stdc" >&6; }
  4467. if test $ac_cv_header_stdc = yes; then
  4468. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4469. fi
  4470. for ac_header in unistd.h byteswap.h stdint.h sys/uio.h inttypes.h sys/types.h machine/types.h sys/int_types.h
  4471. do :
  4472. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4473. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4474. "
  4475. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4476. cat >>confdefs.h <<_ACEOF
  4477. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4478. _ACEOF
  4479. fi
  4480. done
  4481. for ac_header in sys/socket.h netinet/in.h arpa/inet.h
  4482. do :
  4483. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4484. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4485. "
  4486. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4487. cat >>confdefs.h <<_ACEOF
  4488. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4489. _ACEOF
  4490. fi
  4491. done
  4492. for ac_header in windows.h
  4493. do :
  4494. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  4495. "
  4496. if test "x$ac_cv_header_windows_h" = xyes; then :
  4497. cat >>confdefs.h <<_ACEOF
  4498. #define HAVE_WINDOWS_H 1
  4499. _ACEOF
  4500. for ac_header in winsock2.h
  4501. do :
  4502. ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
  4503. "
  4504. if test "x$ac_cv_header_winsock2_h" = xyes; then :
  4505. cat >>confdefs.h <<_ACEOF
  4506. #define HAVE_WINSOCK2_H 1
  4507. _ACEOF
  4508. fi
  4509. done
  4510. fi
  4511. done
  4512. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  4513. if test "x$ac_cv_type_int8_t" = xyes; then :
  4514. cat >>confdefs.h <<_ACEOF
  4515. #define HAVE_INT8_T 1
  4516. _ACEOF
  4517. fi
  4518. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  4519. if test "x$ac_cv_type_uint8_t" = xyes; then :
  4520. cat >>confdefs.h <<_ACEOF
  4521. #define HAVE_UINT8_T 1
  4522. _ACEOF
  4523. fi
  4524. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  4525. if test "x$ac_cv_type_int16_t" = xyes; then :
  4526. cat >>confdefs.h <<_ACEOF
  4527. #define HAVE_INT16_T 1
  4528. _ACEOF
  4529. fi
  4530. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  4531. if test "x$ac_cv_type_uint16_t" = xyes; then :
  4532. cat >>confdefs.h <<_ACEOF
  4533. #define HAVE_UINT16_T 1
  4534. _ACEOF
  4535. fi
  4536. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  4537. if test "x$ac_cv_type_int32_t" = xyes; then :
  4538. cat >>confdefs.h <<_ACEOF
  4539. #define HAVE_INT32_T 1
  4540. _ACEOF
  4541. fi
  4542. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  4543. if test "x$ac_cv_type_uint32_t" = xyes; then :
  4544. cat >>confdefs.h <<_ACEOF
  4545. #define HAVE_UINT32_T 1
  4546. _ACEOF
  4547. fi
  4548. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  4549. if test "x$ac_cv_type_uint64_t" = xyes; then :
  4550. cat >>confdefs.h <<_ACEOF
  4551. #define HAVE_UINT64_T 1
  4552. _ACEOF
  4553. fi
  4554. # The cast to long int works around a bug in the HP C Compiler
  4555. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4556. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4557. # This bug is HP SR number 8606223364.
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  4559. $as_echo_n "checking size of unsigned long... " >&6; }
  4560. if ${ac_cv_sizeof_unsigned_long+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  4564. else
  4565. if test "$ac_cv_type_unsigned_long" = yes; then
  4566. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4567. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4568. as_fn_error 77 "cannot compute sizeof (unsigned long)
  4569. See \`config.log' for more details" "$LINENO" 5; }
  4570. else
  4571. ac_cv_sizeof_unsigned_long=0
  4572. fi
  4573. fi
  4574. fi
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  4576. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  4577. cat >>confdefs.h <<_ACEOF
  4578. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  4579. _ACEOF
  4580. # The cast to long int works around a bug in the HP C Compiler
  4581. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4582. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4583. # This bug is HP SR number 8606223364.
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  4585. $as_echo_n "checking size of unsigned long long... " >&6; }
  4586. if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  4590. else
  4591. if test "$ac_cv_type_unsigned_long_long" = yes; then
  4592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4594. as_fn_error 77 "cannot compute sizeof (unsigned long long)
  4595. See \`config.log' for more details" "$LINENO" 5; }
  4596. else
  4597. ac_cv_sizeof_unsigned_long_long=0
  4598. fi
  4599. fi
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  4602. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  4603. cat >>confdefs.h <<_ACEOF
  4604. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  4605. _ACEOF
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4607. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4608. if ${ac_cv_c_const+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. /* end confdefs.h. */
  4613. int
  4614. main ()
  4615. {
  4616. #ifndef __cplusplus
  4617. /* Ultrix mips cc rejects this sort of thing. */
  4618. typedef int charset[2];
  4619. const charset cs = { 0, 0 };
  4620. /* SunOS 4.1.1 cc rejects this. */
  4621. char const *const *pcpcc;
  4622. char **ppc;
  4623. /* NEC SVR4.0.2 mips cc rejects this. */
  4624. struct point {int x, y;};
  4625. static struct point const zero = {0,0};
  4626. /* AIX XL C 1.02.0.0 rejects this.
  4627. It does not let you subtract one const X* pointer from another in
  4628. an arm of an if-expression whose if-part is not a constant
  4629. expression */
  4630. const char *g = "string";
  4631. pcpcc = &g + (g ? g-g : 0);
  4632. /* HPUX 7.0 cc rejects these. */
  4633. ++pcpcc;
  4634. ppc = (char**) pcpcc;
  4635. pcpcc = (char const *const *) ppc;
  4636. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4637. char tx;
  4638. char *t = &tx;
  4639. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4640. *t++ = 0;
  4641. if (s) return 0;
  4642. }
  4643. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4644. int x[] = {25, 17};
  4645. const int *foo = &x[0];
  4646. ++foo;
  4647. }
  4648. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4649. typedef const int *iptr;
  4650. iptr p = 0;
  4651. ++p;
  4652. }
  4653. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4654. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4655. struct s { int j; const int *ap[3]; } bx;
  4656. struct s *b = &bx; b->j = 5;
  4657. }
  4658. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4659. const int foo = 10;
  4660. if (!foo) return 0;
  4661. }
  4662. return !cs[0] && !zero.x;
  4663. #endif
  4664. ;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. if ac_fn_c_try_compile "$LINENO"; then :
  4669. ac_cv_c_const=yes
  4670. else
  4671. ac_cv_c_const=no
  4672. fi
  4673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4676. $as_echo "$ac_cv_c_const" >&6; }
  4677. if test $ac_cv_c_const = no; then
  4678. $as_echo "#define const /**/" >>confdefs.h
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4681. $as_echo_n "checking for inline... " >&6; }
  4682. if ${ac_cv_c_inline+:} false; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. ac_cv_c_inline=no
  4686. for ac_kw in inline __inline__ __inline; do
  4687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4688. /* end confdefs.h. */
  4689. #ifndef __cplusplus
  4690. typedef int foo_t;
  4691. static $ac_kw foo_t static_foo () {return 0; }
  4692. $ac_kw foo_t foo () {return 0; }
  4693. #endif
  4694. _ACEOF
  4695. if ac_fn_c_try_compile "$LINENO"; then :
  4696. ac_cv_c_inline=$ac_kw
  4697. fi
  4698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4699. test "$ac_cv_c_inline" != no && break
  4700. done
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4703. $as_echo "$ac_cv_c_inline" >&6; }
  4704. case $ac_cv_c_inline in
  4705. inline | yes) ;;
  4706. *)
  4707. case $ac_cv_c_inline in
  4708. no) ac_val=;;
  4709. *) ac_val=$ac_cv_c_inline;;
  4710. esac
  4711. cat >>confdefs.h <<_ACEOF
  4712. #ifndef __cplusplus
  4713. #define inline $ac_val
  4714. #endif
  4715. _ACEOF
  4716. ;;
  4717. esac
  4718. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4719. if test "x$ac_cv_type_size_t" = xyes; then :
  4720. else
  4721. cat >>confdefs.h <<_ACEOF
  4722. #define size_t unsigned int
  4723. _ACEOF
  4724. fi
  4725. for ac_func in socket inet_aton usleep sigaction
  4726. do :
  4727. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4728. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4729. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4730. cat >>confdefs.h <<_ACEOF
  4731. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4732. _ACEOF
  4733. fi
  4734. done
  4735. if test "x$ac_cv_func_socket" = "xno"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4737. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4738. if ${ac_cv_lib_socket_socket+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. ac_check_lib_save_LIBS=$LIBS
  4742. LIBS="-lsocket $LIBS"
  4743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4744. /* end confdefs.h. */
  4745. /* Override any GCC internal prototype to avoid an error.
  4746. Use char because int might match the return type of a GCC
  4747. builtin and then its argument prototype would still apply. */
  4748. #ifdef __cplusplus
  4749. extern "C"
  4750. #endif
  4751. char socket ();
  4752. int
  4753. main ()
  4754. {
  4755. return socket ();
  4756. ;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. if ac_fn_c_try_link "$LINENO"; then :
  4761. ac_cv_lib_socket_socket=yes
  4762. else
  4763. ac_cv_lib_socket_socket=no
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext \
  4766. conftest$ac_exeext conftest.$ac_ext
  4767. LIBS=$ac_check_lib_save_LIBS
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4770. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4771. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4772. cat >>confdefs.h <<_ACEOF
  4773. #define HAVE_LIBSOCKET 1
  4774. _ACEOF
  4775. LIBS="-lsocket $LIBS"
  4776. fi
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5
  4778. $as_echo_n "checking for socket in -lwsock32... " >&6; }
  4779. SAVELIBS="$LIBS"
  4780. LIBS="$LIBS -lwsock32"
  4781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4782. /* end confdefs.h. */
  4783. #include <winsock2.h>
  4784. int main(void)
  4785. {
  4786. int fd = socket(0, 0, 0);
  4787. if (fd < 0)
  4788. return -1;
  4789. else
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_c_try_link "$LINENO"; then :
  4794. ac_cv_func_socket=yes
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4796. $as_echo "yes" >&6; }
  4797. else
  4798. LIBS="$SAVELIBS"
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4800. $as_echo "no" >&6; }
  4801. fi
  4802. rm -f core conftest.err conftest.$ac_objext \
  4803. conftest$ac_exeext conftest.$ac_ext
  4804. fi
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug logging in all modules" >&5
  4806. $as_echo_n "checking whether to enable debug logging in all modules... " >&6; }
  4807. # Check whether --enable-debug-logging was given.
  4808. if test "${enable_debug_logging+set}" = set; then :
  4809. enableval=$enable_debug_logging;
  4810. else
  4811. enable_debug_logging=no
  4812. fi
  4813. if test "$enable_debug_logging" = "yes"; then
  4814. $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
  4815. fi
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_logging" >&5
  4817. $as_echo "$enable_debug_logging" >&6; }
  4818. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4819. if test -n "$ac_tool_prefix"; then
  4820. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4821. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4823. $as_echo_n "checking for $ac_word... " >&6; }
  4824. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. case $PKG_CONFIG in
  4828. [\\/]* | ?:[\\/]*)
  4829. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4830. ;;
  4831. *)
  4832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4833. for as_dir in $PATH
  4834. do
  4835. IFS=$as_save_IFS
  4836. test -z "$as_dir" && as_dir=.
  4837. for ac_exec_ext in '' $ac_executable_extensions; do
  4838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4839. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4841. break 2
  4842. fi
  4843. done
  4844. done
  4845. IFS=$as_save_IFS
  4846. ;;
  4847. esac
  4848. fi
  4849. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4850. if test -n "$PKG_CONFIG"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4852. $as_echo "$PKG_CONFIG" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4859. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4860. # Extract the first word of "pkg-config", so it can be a program name with args.
  4861. set dummy pkg-config; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. case $ac_pt_PKG_CONFIG in
  4868. [\\/]* | ?:[\\/]*)
  4869. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4870. ;;
  4871. *)
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. ;;
  4887. esac
  4888. fi
  4889. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4890. if test -n "$ac_pt_PKG_CONFIG"; then
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4892. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4893. else
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4895. $as_echo "no" >&6; }
  4896. fi
  4897. if test "x$ac_pt_PKG_CONFIG" = x; then
  4898. PKG_CONFIG=""
  4899. else
  4900. case $cross_compiling:$ac_tool_warned in
  4901. yes:)
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4904. ac_tool_warned=yes ;;
  4905. esac
  4906. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4907. fi
  4908. else
  4909. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4910. fi
  4911. fi
  4912. if test -n "$PKG_CONFIG"; then
  4913. _pkg_min_version=0.9.0
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4915. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4916. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4918. $as_echo "yes" >&6; }
  4919. else
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4921. $as_echo "no" >&6; }
  4922. PKG_CONFIG=""
  4923. fi
  4924. fi
  4925. if test "x$PKG_CONFIG" != "x"; then :
  4926. PKG_CONFIG="$PKG_CONFIG --static"
  4927. fi
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5
  4929. $as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; }
  4930. # Check whether --enable-openssl was given.
  4931. if test "${enable_openssl+set}" = set; then :
  4932. enableval=$enable_openssl;
  4933. else
  4934. enable_openssl=no
  4935. fi
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
  4937. $as_echo "$enable_openssl" >&6; }
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage NSS crypto" >&5
  4939. $as_echo_n "checking whether to leverage NSS crypto... " >&6; }
  4940. # Check whether --enable-nss was given.
  4941. if test "${enable_nss+set}" = set; then :
  4942. enableval=$enable_nss;
  4943. else
  4944. enable_nss=no
  4945. fi
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nss" >&5
  4947. $as_echo "$enable_nss" >&6; }
  4948. if test "$enable_openssl" = "yes"; then
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified OpenSSL directory" >&5
  4950. $as_echo_n "checking for user specified OpenSSL directory... " >&6; }
  4951. # Check whether --with-openssl-dir was given.
  4952. if test "${with_openssl_dir+set}" = set; then :
  4953. withval=$with_openssl_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_openssl_dir/lib/pkgconfig/libcrypto.pc; then
  4954. if test "x$PKG_CONFIG_PATH" = "x"; then
  4955. export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig"
  4956. else
  4957. export PKG_CONFIG_PATH="$with_openssl_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
  4958. fi
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
  4960. $as_echo "$with_openssl_dir" >&6; }
  4961. elif test -d $with_openssl_dir/lib; then
  4962. CFLAGS="$CFLAGS -I$with_openssl_dir/include"
  4963. if test "x$LDFLAGS" = "x"; then
  4964. LDFLAGS="-L$with_openssl_dir/lib"
  4965. else
  4966. LDFLAGS="$LDFLAGS -L$with_openssl_dir/lib"
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl_dir" >&5
  4969. $as_echo "$with_openssl_dir" >&6; }
  4970. else
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
  4972. $as_echo "invalid" >&6; }
  4973. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4975. as_fn_error $? "Invalid OpenSSL location: $with_openssl_dir
  4976. See \`config.log' for more details" "$LINENO" 5; }
  4977. fi
  4978. else
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4980. $as_echo "no" >&6; }
  4981. fi
  4982. if test "x$PKG_CONFIG" != "x"; then
  4983. pkg_failed=no
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
  4985. $as_echo_n "checking for crypto... " >&6; }
  4986. if test -n "$crypto_CFLAGS"; then
  4987. pkg_cv_crypto_CFLAGS="$crypto_CFLAGS"
  4988. elif test -n "$PKG_CONFIG"; then
  4989. if test -n "$PKG_CONFIG" && \
  4990. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
  4991. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
  4992. ac_status=$?
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4994. test $ac_status = 0; }; then
  4995. pkg_cv_crypto_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.1" 2>/dev/null`
  4996. test "x$?" != "x0" && pkg_failed=yes
  4997. else
  4998. pkg_failed=yes
  4999. fi
  5000. else
  5001. pkg_failed=untried
  5002. fi
  5003. if test -n "$crypto_LIBS"; then
  5004. pkg_cv_crypto_LIBS="$crypto_LIBS"
  5005. elif test -n "$PKG_CONFIG"; then
  5006. if test -n "$PKG_CONFIG" && \
  5007. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.1\""; } >&5
  5008. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.1") 2>&5
  5009. ac_status=$?
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5011. test $ac_status = 0; }; then
  5012. pkg_cv_crypto_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.1" 2>/dev/null`
  5013. test "x$?" != "x0" && pkg_failed=yes
  5014. else
  5015. pkg_failed=yes
  5016. fi
  5017. else
  5018. pkg_failed=untried
  5019. fi
  5020. if test $pkg_failed = yes; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5022. $as_echo "no" >&6; }
  5023. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5024. _pkg_short_errors_supported=yes
  5025. else
  5026. _pkg_short_errors_supported=no
  5027. fi
  5028. if test $_pkg_short_errors_supported = yes; then
  5029. crypto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
  5030. else
  5031. crypto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.1" 2>&1`
  5032. fi
  5033. # Put the nasty error message in config.log where it belongs
  5034. echo "$crypto_PKG_ERRORS" >&5
  5035. as_fn_error $? "Package requirements (libcrypto >= 1.0.1) were not met:
  5036. $crypto_PKG_ERRORS
  5037. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5038. installed software in a non-standard prefix.
  5039. Alternatively, you may set the environment variables crypto_CFLAGS
  5040. and crypto_LIBS to avoid the need to call pkg-config.
  5041. See the pkg-config man page for more details." "$LINENO" 5
  5042. elif test $pkg_failed = untried; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5047. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  5048. is in your PATH or set the PKG_CONFIG environment variable to the full
  5049. path to pkg-config.
  5050. Alternatively, you may set the environment variables crypto_CFLAGS
  5051. and crypto_LIBS to avoid the need to call pkg-config.
  5052. See the pkg-config man page for more details.
  5053. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  5054. See \`config.log' for more details" "$LINENO" 5; }
  5055. else
  5056. crypto_CFLAGS=$pkg_cv_crypto_CFLAGS
  5057. crypto_LIBS=$pkg_cv_crypto_LIBS
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5059. $as_echo "yes" >&6; }
  5060. CFLAGS="$CFLAGS $crypto_CFLAGS"
  5061. LIBS="$crypto_LIBS $LIBS"
  5062. fi
  5063. else
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5065. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5066. if ${ac_cv_lib_dl_dlopen+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. ac_check_lib_save_LIBS=$LIBS
  5070. LIBS="-ldl $LIBS"
  5071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5072. /* end confdefs.h. */
  5073. /* Override any GCC internal prototype to avoid an error.
  5074. Use char because int might match the return type of a GCC
  5075. builtin and then its argument prototype would still apply. */
  5076. #ifdef __cplusplus
  5077. extern "C"
  5078. #endif
  5079. char dlopen ();
  5080. int
  5081. main ()
  5082. {
  5083. return dlopen ();
  5084. ;
  5085. return 0;
  5086. }
  5087. _ACEOF
  5088. if ac_fn_c_try_link "$LINENO"; then :
  5089. ac_cv_lib_dl_dlopen=yes
  5090. else
  5091. ac_cv_lib_dl_dlopen=no
  5092. fi
  5093. rm -f core conftest.err conftest.$ac_objext \
  5094. conftest$ac_exeext conftest.$ac_ext
  5095. LIBS=$ac_check_lib_save_LIBS
  5096. fi
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5098. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5099. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5100. cat >>confdefs.h <<_ACEOF
  5101. #define HAVE_LIBDL 1
  5102. _ACEOF
  5103. LIBS="-ldl $LIBS"
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdl" >&5
  5106. $as_echo "$as_me: WARNING: can't find libdl" >&2;}
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  5109. $as_echo_n "checking for inflate in -lz... " >&6; }
  5110. if ${ac_cv_lib_z_inflate+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. ac_check_lib_save_LIBS=$LIBS
  5114. LIBS="-lz $LIBS"
  5115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5116. /* end confdefs.h. */
  5117. /* Override any GCC internal prototype to avoid an error.
  5118. Use char because int might match the return type of a GCC
  5119. builtin and then its argument prototype would still apply. */
  5120. #ifdef __cplusplus
  5121. extern "C"
  5122. #endif
  5123. char inflate ();
  5124. int
  5125. main ()
  5126. {
  5127. return inflate ();
  5128. ;
  5129. return 0;
  5130. }
  5131. _ACEOF
  5132. if ac_fn_c_try_link "$LINENO"; then :
  5133. ac_cv_lib_z_inflate=yes
  5134. else
  5135. ac_cv_lib_z_inflate=no
  5136. fi
  5137. rm -f core conftest.err conftest.$ac_objext \
  5138. conftest$ac_exeext conftest.$ac_ext
  5139. LIBS=$ac_check_lib_save_LIBS
  5140. fi
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  5142. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  5143. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  5144. cat >>confdefs.h <<_ACEOF
  5145. #define HAVE_LIBZ 1
  5146. _ACEOF
  5147. LIBS="-lz $LIBS"
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz" >&5
  5150. $as_echo "$as_me: WARNING: can't find libz" >&2;}
  5151. fi
  5152. fi
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_EncryptInit" >&5
  5154. $as_echo_n "checking for library containing EVP_EncryptInit... " >&6; }
  5155. if ${ac_cv_search_EVP_EncryptInit+:} false; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. ac_func_search_save_LIBS=$LIBS
  5159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5160. /* end confdefs.h. */
  5161. /* Override any GCC internal prototype to avoid an error.
  5162. Use char because int might match the return type of a GCC
  5163. builtin and then its argument prototype would still apply. */
  5164. #ifdef __cplusplus
  5165. extern "C"
  5166. #endif
  5167. char EVP_EncryptInit ();
  5168. int
  5169. main ()
  5170. {
  5171. return EVP_EncryptInit ();
  5172. ;
  5173. return 0;
  5174. }
  5175. _ACEOF
  5176. for ac_lib in '' crypto; do
  5177. if test -z "$ac_lib"; then
  5178. ac_res="none required"
  5179. else
  5180. ac_res=-l$ac_lib
  5181. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5182. fi
  5183. if ac_fn_c_try_link "$LINENO"; then :
  5184. ac_cv_search_EVP_EncryptInit=$ac_res
  5185. fi
  5186. rm -f core conftest.err conftest.$ac_objext \
  5187. conftest$ac_exeext
  5188. if ${ac_cv_search_EVP_EncryptInit+:} false; then :
  5189. break
  5190. fi
  5191. done
  5192. if ${ac_cv_search_EVP_EncryptInit+:} false; then :
  5193. else
  5194. ac_cv_search_EVP_EncryptInit=no
  5195. fi
  5196. rm conftest.$ac_ext
  5197. LIBS=$ac_func_search_save_LIBS
  5198. fi
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_EncryptInit" >&5
  5200. $as_echo "$ac_cv_search_EVP_EncryptInit" >&6; }
  5201. ac_res=$ac_cv_search_EVP_EncryptInit
  5202. if test "$ac_res" != no; then :
  5203. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5204. else
  5205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5207. as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
  5208. See \`config.log' for more details" "$LINENO" 5; }
  5209. fi
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_ctr" >&5
  5211. $as_echo_n "checking for library containing EVP_aes_128_ctr... " >&6; }
  5212. if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
  5213. $as_echo_n "(cached) " >&6
  5214. else
  5215. ac_func_search_save_LIBS=$LIBS
  5216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5217. /* end confdefs.h. */
  5218. /* Override any GCC internal prototype to avoid an error.
  5219. Use char because int might match the return type of a GCC
  5220. builtin and then its argument prototype would still apply. */
  5221. #ifdef __cplusplus
  5222. extern "C"
  5223. #endif
  5224. char EVP_aes_128_ctr ();
  5225. int
  5226. main ()
  5227. {
  5228. return EVP_aes_128_ctr ();
  5229. ;
  5230. return 0;
  5231. }
  5232. _ACEOF
  5233. for ac_lib in '' crypto; do
  5234. if test -z "$ac_lib"; then
  5235. ac_res="none required"
  5236. else
  5237. ac_res=-l$ac_lib
  5238. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5239. fi
  5240. if ac_fn_c_try_link "$LINENO"; then :
  5241. ac_cv_search_EVP_aes_128_ctr=$ac_res
  5242. fi
  5243. rm -f core conftest.err conftest.$ac_objext \
  5244. conftest$ac_exeext
  5245. if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
  5246. break
  5247. fi
  5248. done
  5249. if ${ac_cv_search_EVP_aes_128_ctr+:} false; then :
  5250. else
  5251. ac_cv_search_EVP_aes_128_ctr=no
  5252. fi
  5253. rm conftest.$ac_ext
  5254. LIBS=$ac_func_search_save_LIBS
  5255. fi
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_ctr" >&5
  5257. $as_echo "$ac_cv_search_EVP_aes_128_ctr" >&6; }
  5258. ac_res=$ac_cv_search_EVP_aes_128_ctr
  5259. if test "$ac_res" != no; then :
  5260. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5261. else
  5262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5264. as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
  5265. See \`config.log' for more details" "$LINENO" 5; }
  5266. fi
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_aes_128_gcm" >&5
  5268. $as_echo_n "checking for library containing EVP_aes_128_gcm... " >&6; }
  5269. if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. ac_func_search_save_LIBS=$LIBS
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. /* Override any GCC internal prototype to avoid an error.
  5276. Use char because int might match the return type of a GCC
  5277. builtin and then its argument prototype would still apply. */
  5278. #ifdef __cplusplus
  5279. extern "C"
  5280. #endif
  5281. char EVP_aes_128_gcm ();
  5282. int
  5283. main ()
  5284. {
  5285. return EVP_aes_128_gcm ();
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. for ac_lib in '' crypto; do
  5291. if test -z "$ac_lib"; then
  5292. ac_res="none required"
  5293. else
  5294. ac_res=-l$ac_lib
  5295. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5296. fi
  5297. if ac_fn_c_try_link "$LINENO"; then :
  5298. ac_cv_search_EVP_aes_128_gcm=$ac_res
  5299. fi
  5300. rm -f core conftest.err conftest.$ac_objext \
  5301. conftest$ac_exeext
  5302. if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
  5303. break
  5304. fi
  5305. done
  5306. if ${ac_cv_search_EVP_aes_128_gcm+:} false; then :
  5307. else
  5308. ac_cv_search_EVP_aes_128_gcm=no
  5309. fi
  5310. rm conftest.$ac_ext
  5311. LIBS=$ac_func_search_save_LIBS
  5312. fi
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_aes_128_gcm" >&5
  5314. $as_echo "$ac_cv_search_EVP_aes_128_gcm" >&6; }
  5315. ac_res=$ac_cv_search_EVP_aes_128_gcm
  5316. if test "$ac_res" != no; then :
  5317. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5318. else
  5319. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5320. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5321. as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
  5322. See \`config.log' for more details" "$LINENO" 5; }
  5323. fi
  5324. $as_echo "#define GCM 1" >>confdefs.h
  5325. $as_echo "#define OPENSSL 1" >>confdefs.h
  5326. AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
  5327. HMAC_OBJS=crypto/hash/hmac_ossl.o
  5328. USE_EXTERNAL_CRYPTO=1
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL KDF algorithm" >&5
  5330. $as_echo_n "checking whether to leverage OpenSSL KDF algorithm... " >&6; }
  5331. # Check whether --enable-openssl-kdf was given.
  5332. if test "${enable_openssl_kdf+set}" = set; then :
  5333. enableval=$enable_openssl_kdf;
  5334. else
  5335. enable_openssl_kdf=no
  5336. fi
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl_kdf" >&5
  5338. $as_echo "$enable_openssl_kdf" >&6; }
  5339. if test "$enable_openssl_kdf" = "yes"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kdf_srtp" >&5
  5341. $as_echo_n "checking for library containing kdf_srtp... " >&6; }
  5342. if ${ac_cv_search_kdf_srtp+:} false; then :
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. ac_func_search_save_LIBS=$LIBS
  5346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5347. /* end confdefs.h. */
  5348. /* Override any GCC internal prototype to avoid an error.
  5349. Use char because int might match the return type of a GCC
  5350. builtin and then its argument prototype would still apply. */
  5351. #ifdef __cplusplus
  5352. extern "C"
  5353. #endif
  5354. char kdf_srtp ();
  5355. int
  5356. main ()
  5357. {
  5358. return kdf_srtp ();
  5359. ;
  5360. return 0;
  5361. }
  5362. _ACEOF
  5363. for ac_lib in '' crypto; do
  5364. if test -z "$ac_lib"; then
  5365. ac_res="none required"
  5366. else
  5367. ac_res=-l$ac_lib
  5368. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5369. fi
  5370. if ac_fn_c_try_link "$LINENO"; then :
  5371. ac_cv_search_kdf_srtp=$ac_res
  5372. fi
  5373. rm -f core conftest.err conftest.$ac_objext \
  5374. conftest$ac_exeext
  5375. if ${ac_cv_search_kdf_srtp+:} false; then :
  5376. break
  5377. fi
  5378. done
  5379. if ${ac_cv_search_kdf_srtp+:} false; then :
  5380. else
  5381. ac_cv_search_kdf_srtp=no
  5382. fi
  5383. rm conftest.$ac_ext
  5384. LIBS=$ac_func_search_save_LIBS
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kdf_srtp" >&5
  5387. $as_echo "$ac_cv_search_kdf_srtp" >&6; }
  5388. ac_res=$ac_cv_search_kdf_srtp
  5389. if test "$ac_res" != no; then :
  5390. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5391. else
  5392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5394. as_fn_error $? "can't find openssl KDF lib
  5395. See \`config.log' for more details" "$LINENO" 5; }
  5396. fi
  5397. $as_echo "#define OPENSSL_KDF 1" >>confdefs.h
  5398. fi
  5399. elif test "$enable_nss" = "yes"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user specified NSS directory" >&5
  5401. $as_echo_n "checking for user specified NSS directory... " >&6; }
  5402. # Check whether --with-nss-dir was given.
  5403. if test "${with_nss_dir+set}" = set; then :
  5404. withval=$with_nss_dir; if test "x$PKG_CONFIG" != "x" && test -f $with_nss_dir/lib/pkgconfig/nss.pc; then
  5405. if test "x$PKG_CONFIG_PATH" = "x"; then
  5406. export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig"
  5407. else
  5408. export PKG_CONFIG_PATH="$with_nss_dir/lib/pkgconfig:$PKG_CONFIG_PATH"
  5409. fi
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
  5411. $as_echo "$with_nss_dir" >&6; }
  5412. elif test -d $with_nss_dir/lib; then
  5413. CFLAGS="$CFLAGS -I$with_nss_dir/include"
  5414. CFLAGS="$CFLAGS -I$with_nss_dir/../public/nss"
  5415. if test "x$LDFLAGS" = "x"; then
  5416. LDFLAGS="-L$with_nss_dir/lib"
  5417. else
  5418. LDFLAGS="$LDFLAGS -L$with_nss_dir/lib"
  5419. fi
  5420. nss_skip_pkg_config=yes
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_nss_dir" >&5
  5422. $as_echo "$with_nss_dir" >&6; }
  5423. else
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
  5425. $as_echo "invalid" >&6; }
  5426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5428. as_fn_error $? "Invalid NSS location: $with_nss_dir
  5429. See \`config.log' for more details" "$LINENO" 5; }
  5430. fi
  5431. CRYPTO_LIBDIR=$with_nss_dir/lib
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. if test "x$PKG_CONFIG" != "x" && test "$nss_skip_pkg_config" != "yes"; then
  5437. pkg_failed=no
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
  5439. $as_echo_n "checking for nss... " >&6; }
  5440. if test -n "$nss_CFLAGS"; then
  5441. pkg_cv_nss_CFLAGS="$nss_CFLAGS"
  5442. elif test -n "$PKG_CONFIG"; then
  5443. if test -n "$PKG_CONFIG" && \
  5444. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  5445. ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
  5450. test "x$?" != "x0" && pkg_failed=yes
  5451. else
  5452. pkg_failed=yes
  5453. fi
  5454. else
  5455. pkg_failed=untried
  5456. fi
  5457. if test -n "$nss_LIBS"; then
  5458. pkg_cv_nss_LIBS="$nss_LIBS"
  5459. elif test -n "$PKG_CONFIG"; then
  5460. if test -n "$PKG_CONFIG" && \
  5461. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  5462. ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  5463. ac_status=$?
  5464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5465. test $ac_status = 0; }; then
  5466. pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
  5467. test "x$?" != "x0" && pkg_failed=yes
  5468. else
  5469. pkg_failed=yes
  5470. fi
  5471. else
  5472. pkg_failed=untried
  5473. fi
  5474. if test $pkg_failed = yes; then
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. $as_echo "no" >&6; }
  5477. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5478. _pkg_short_errors_supported=yes
  5479. else
  5480. _pkg_short_errors_supported=no
  5481. fi
  5482. if test $_pkg_short_errors_supported = yes; then
  5483. nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
  5484. else
  5485. nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
  5486. fi
  5487. # Put the nasty error message in config.log where it belongs
  5488. echo "$nss_PKG_ERRORS" >&5
  5489. as_fn_error $? "Package requirements (nss) were not met:
  5490. $nss_PKG_ERRORS
  5491. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  5492. installed software in a non-standard prefix.
  5493. Alternatively, you may set the environment variables nss_CFLAGS
  5494. and nss_LIBS to avoid the need to call pkg-config.
  5495. See the pkg-config man page for more details." "$LINENO" 5
  5496. elif test $pkg_failed = untried; then
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5501. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  5502. is in your PATH or set the PKG_CONFIG environment variable to the full
  5503. path to pkg-config.
  5504. Alternatively, you may set the environment variables nss_CFLAGS
  5505. and nss_LIBS to avoid the need to call pkg-config.
  5506. See the pkg-config man page for more details.
  5507. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  5508. See \`config.log' for more details" "$LINENO" 5; }
  5509. else
  5510. nss_CFLAGS=$pkg_cv_nss_CFLAGS
  5511. nss_LIBS=$pkg_cv_nss_LIBS
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5513. $as_echo "yes" >&6; }
  5514. CFLAGS="$CFLAGS $nss_CFLAGS"
  5515. LIBS="$nss_LIBS $LIBS"
  5516. fi
  5517. else
  5518. for ac_header in nss.h
  5519. do :
  5520. ac_fn_c_check_header_compile "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default
  5521. "
  5522. if test "x$ac_cv_header_nss_h" = xyes; then :
  5523. cat >>confdefs.h <<_ACEOF
  5524. #define HAVE_NSS_H 1
  5525. _ACEOF
  5526. else
  5527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5529. as_fn_error $? "can't find useable NSS headers
  5530. See \`config.log' for more details" "$LINENO" 5; }
  5531. fi
  5532. done
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_GetError in -lnspr4" >&5
  5534. $as_echo_n "checking for PR_GetError in -lnspr4... " >&6; }
  5535. if ${ac_cv_lib_nspr4_PR_GetError+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. ac_check_lib_save_LIBS=$LIBS
  5539. LIBS="-lnspr4 $LIBS"
  5540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5541. /* end confdefs.h. */
  5542. /* Override any GCC internal prototype to avoid an error.
  5543. Use char because int might match the return type of a GCC
  5544. builtin and then its argument prototype would still apply. */
  5545. #ifdef __cplusplus
  5546. extern "C"
  5547. #endif
  5548. char PR_GetError ();
  5549. int
  5550. main ()
  5551. {
  5552. return PR_GetError ();
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. if ac_fn_c_try_link "$LINENO"; then :
  5558. ac_cv_lib_nspr4_PR_GetError=yes
  5559. else
  5560. ac_cv_lib_nspr4_PR_GetError=no
  5561. fi
  5562. rm -f core conftest.err conftest.$ac_objext \
  5563. conftest$ac_exeext conftest.$ac_ext
  5564. LIBS=$ac_check_lib_save_LIBS
  5565. fi
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_GetError" >&5
  5567. $as_echo "$ac_cv_lib_nspr4_PR_GetError" >&6; }
  5568. if test "x$ac_cv_lib_nspr4_PR_GetError" = xyes; then :
  5569. cat >>confdefs.h <<_ACEOF
  5570. #define HAVE_LIBNSPR4 1
  5571. _ACEOF
  5572. LIBS="-lnspr4 $LIBS"
  5573. else
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libnspr4" >&5
  5575. $as_echo "$as_me: WARNING: can't find libnspr4" >&2;}
  5576. fi
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_NoDB_Init in -lnss3" >&5
  5578. $as_echo_n "checking for NSS_NoDB_Init in -lnss3... " >&6; }
  5579. if ${ac_cv_lib_nss3_NSS_NoDB_Init+:} false; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. ac_check_lib_save_LIBS=$LIBS
  5583. LIBS="-lnss3 $LIBS"
  5584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5585. /* end confdefs.h. */
  5586. /* Override any GCC internal prototype to avoid an error.
  5587. Use char because int might match the return type of a GCC
  5588. builtin and then its argument prototype would still apply. */
  5589. #ifdef __cplusplus
  5590. extern "C"
  5591. #endif
  5592. char NSS_NoDB_Init ();
  5593. int
  5594. main ()
  5595. {
  5596. return NSS_NoDB_Init ();
  5597. ;
  5598. return 0;
  5599. }
  5600. _ACEOF
  5601. if ac_fn_c_try_link "$LINENO"; then :
  5602. ac_cv_lib_nss3_NSS_NoDB_Init=yes
  5603. else
  5604. ac_cv_lib_nss3_NSS_NoDB_Init=no
  5605. fi
  5606. rm -f core conftest.err conftest.$ac_objext \
  5607. conftest$ac_exeext conftest.$ac_ext
  5608. LIBS=$ac_check_lib_save_LIBS
  5609. fi
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_NoDB_Init" >&5
  5611. $as_echo "$ac_cv_lib_nss3_NSS_NoDB_Init" >&6; }
  5612. if test "x$ac_cv_lib_nss3_NSS_NoDB_Init" = xyes; then :
  5613. cat >>confdefs.h <<_ACEOF
  5614. #define HAVE_LIBNSS3 1
  5615. _ACEOF
  5616. LIBS="-lnss3 $LIBS"
  5617. else
  5618. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5619. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5620. as_fn_error $? "can't find useable libnss3
  5621. See \`config.log' for more details" "$LINENO" 5; }
  5622. fi
  5623. fi
  5624. $as_echo "#define GCM 1" >>confdefs.h
  5625. $as_echo "#define NSS 1" >>confdefs.h
  5626. AES_ICM_OBJS="crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o"
  5627. # TODO(RLB): Use NSS for HMAC
  5628. HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
  5629. # TODO(RLB): Use NSS for KDF
  5630. USE_EXTERNAL_CRYPTO=1
  5631. else
  5632. AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o"
  5633. HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o"
  5634. fi
  5635. PCAP_LIB=""
  5636. # Check whether --enable-pcap was given.
  5637. if test "${enable_pcap+set}" = set; then :
  5638. enableval=$enable_pcap;
  5639. fi
  5640. if test "x$enable_pcap" != "xno"; then :
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
  5642. $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
  5643. if ${ac_cv_lib_pcap_pcap_create+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. ac_check_lib_save_LIBS=$LIBS
  5647. LIBS="-lpcap $LIBS"
  5648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5649. /* end confdefs.h. */
  5650. /* Override any GCC internal prototype to avoid an error.
  5651. Use char because int might match the return type of a GCC
  5652. builtin and then its argument prototype would still apply. */
  5653. #ifdef __cplusplus
  5654. extern "C"
  5655. #endif
  5656. char pcap_create ();
  5657. int
  5658. main ()
  5659. {
  5660. return pcap_create ();
  5661. ;
  5662. return 0;
  5663. }
  5664. _ACEOF
  5665. if ac_fn_c_try_link "$LINENO"; then :
  5666. ac_cv_lib_pcap_pcap_create=yes
  5667. else
  5668. ac_cv_lib_pcap_pcap_create=no
  5669. fi
  5670. rm -f core conftest.err conftest.$ac_objext \
  5671. conftest$ac_exeext conftest.$ac_ext
  5672. LIBS=$ac_check_lib_save_LIBS
  5673. fi
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
  5675. $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
  5676. if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
  5677. PCAP_LIB="-lpcap"
  5678. $as_echo "#define HAVE_PCAP 1" >>confdefs.h
  5679. HAVE_PCAP=1
  5680. fi
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lwpcap" >&5
  5682. $as_echo_n "checking for pcap_create in -lwpcap... " >&6; }
  5683. if ${ac_cv_lib_wpcap_pcap_create+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. ac_check_lib_save_LIBS=$LIBS
  5687. LIBS="-lwpcap $LIBS"
  5688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5689. /* end confdefs.h. */
  5690. /* Override any GCC internal prototype to avoid an error.
  5691. Use char because int might match the return type of a GCC
  5692. builtin and then its argument prototype would still apply. */
  5693. #ifdef __cplusplus
  5694. extern "C"
  5695. #endif
  5696. char pcap_create ();
  5697. int
  5698. main ()
  5699. {
  5700. return pcap_create ();
  5701. ;
  5702. return 0;
  5703. }
  5704. _ACEOF
  5705. if ac_fn_c_try_link "$LINENO"; then :
  5706. ac_cv_lib_wpcap_pcap_create=yes
  5707. else
  5708. ac_cv_lib_wpcap_pcap_create=no
  5709. fi
  5710. rm -f core conftest.err conftest.$ac_objext \
  5711. conftest$ac_exeext conftest.$ac_ext
  5712. LIBS=$ac_check_lib_save_LIBS
  5713. fi
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_create" >&5
  5715. $as_echo "$ac_cv_lib_wpcap_pcap_create" >&6; }
  5716. if test "x$ac_cv_lib_wpcap_pcap_create" = xyes; then :
  5717. PCAP_LIB="-lwpcap"
  5718. $as_echo "#define HAVE_PCAP 1" >>confdefs.h
  5719. HAVE_PCAP=1
  5720. fi
  5721. fi
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to redirect logging to stdout" >&5
  5723. $as_echo_n "checking whether to redirect logging to stdout... " >&6; }
  5724. # Check whether --enable-log-stdout was given.
  5725. if test "${enable_log_stdout+set}" = set; then :
  5726. enableval=$enable_log_stdout;
  5727. else
  5728. enable_log_stdout=no
  5729. fi
  5730. if test "$enable_log_stdout" = "yes"; then
  5731. $as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h
  5732. fi
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_stdout" >&5
  5734. $as_echo "$enable_log_stdout" >&6; }
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather to use a file for logging" >&5
  5736. $as_echo_n "checking wheather to use a file for logging... " >&6; }
  5737. # Check whether --with-log-file was given.
  5738. if test "${with_log_file+set}" = set; then :
  5739. withval=$with_log_file; case x$with_log_file in #(
  5740. x) :
  5741. valid_with_log_file="no" ;; #(
  5742. xyes) :
  5743. valid_with_log_file="no" ;; #(
  5744. *) :
  5745. valid_with_error_file="yes" ;;
  5746. esac
  5747. if test "$valid_with_log_file" = "no"; then :
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
  5749. $as_echo "invalid" >&6; }
  5750. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5751. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5752. as_fn_error $? "Invalid value for --with-log-file: \"$with_log_file\"
  5753. See \`config.log' for more details" "$LINENO" 5; }
  5754. else
  5755. cat >>confdefs.h <<_ACEOF
  5756. #define ERR_REPORTING_FILE "$with_log_file"
  5757. _ACEOF
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using log file: \"$with_log_file\"" >&5
  5759. $as_echo "using log file: \"$with_log_file\"" >&6; }
  5760. fi
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "$enable_log_stdout" = "yes" && test "x$with_log_file" != "x"; then :
  5766. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5767. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5768. as_fn_error $? "Can only use one of --enable-log-stdout and --with-log-file; they are mutually exclusive
  5769. See \`config.log' for more details" "$LINENO" 5; }
  5770. fi
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra C compiler flags" >&5
  5772. $as_echo_n "checking for extra C compiler flags... " >&6; }
  5773. if test "x$EXTRA_CFLAGS" != "x"; then :
  5774. if test "x$CFLAGS" = "x"; then :
  5775. CFLAGS="$EXTRA_CFLAGS"
  5776. else
  5777. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  5778. fi
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CFLAGS" >&5
  5780. $as_echo "$EXTRA_CFLAGS" >&6; }
  5781. else
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5783. $as_echo "no" >&6; }
  5784. fi
  5785. ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h"
  5786. ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile fuzzer/Makefile libsrtp2.pc"
  5787. cat >confcache <<\_ACEOF
  5788. # This file is a shell script that caches the results of configure
  5789. # tests run on this system so they can be shared between configure
  5790. # scripts and configure runs, see configure's option --config-cache.
  5791. # It is not useful on other systems. If it contains results you don't
  5792. # want to keep, you may remove or edit it.
  5793. #
  5794. # config.status only pays attention to the cache file if you give it
  5795. # the --recheck option to rerun configure.
  5796. #
  5797. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5798. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5799. # following values.
  5800. _ACEOF
  5801. # The following way of writing the cache mishandles newlines in values,
  5802. # but we know of no workaround that is simple, portable, and efficient.
  5803. # So, we kill variables containing newlines.
  5804. # Ultrix sh set writes to stderr and can't be redirected directly,
  5805. # and sets the high bit in the cache file unless we assign to the vars.
  5806. (
  5807. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5808. eval ac_val=\$$ac_var
  5809. case $ac_val in #(
  5810. *${as_nl}*)
  5811. case $ac_var in #(
  5812. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5813. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5814. esac
  5815. case $ac_var in #(
  5816. _ | IFS | as_nl) ;; #(
  5817. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5818. *) { eval $ac_var=; unset $ac_var;} ;;
  5819. esac ;;
  5820. esac
  5821. done
  5822. (set) 2>&1 |
  5823. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5824. *${as_nl}ac_space=\ *)
  5825. # `set' does not quote correctly, so add quotes: double-quote
  5826. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5827. sed -n \
  5828. "s/'/'\\\\''/g;
  5829. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5830. ;; #(
  5831. *)
  5832. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5833. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5834. ;;
  5835. esac |
  5836. sort
  5837. ) |
  5838. sed '
  5839. /^ac_cv_env_/b end
  5840. t clear
  5841. :clear
  5842. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5843. t end
  5844. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5845. :end' >>confcache
  5846. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5847. if test -w "$cache_file"; then
  5848. if test "x$cache_file" != "x/dev/null"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5850. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5851. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5852. cat confcache >"$cache_file"
  5853. else
  5854. case $cache_file in #(
  5855. */* | ?:*)
  5856. mv -f confcache "$cache_file"$$ &&
  5857. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5858. *)
  5859. mv -f confcache "$cache_file" ;;
  5860. esac
  5861. fi
  5862. fi
  5863. else
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5865. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5866. fi
  5867. fi
  5868. rm -f confcache
  5869. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5870. # Let make expand exec_prefix.
  5871. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5872. DEFS=-DHAVE_CONFIG_H
  5873. ac_libobjs=
  5874. ac_ltlibobjs=
  5875. U=
  5876. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5877. # 1. Remove the extension, and $U if already installed.
  5878. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5879. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5880. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5881. # will be set to the directory where LIBOBJS objects are built.
  5882. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5883. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5884. done
  5885. LIBOBJS=$ac_libobjs
  5886. LTLIBOBJS=$ac_ltlibobjs
  5887. : "${CONFIG_STATUS=./config.status}"
  5888. ac_write_fail=0
  5889. ac_clean_files_save=$ac_clean_files
  5890. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5892. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5893. as_write_fail=0
  5894. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5895. #! $SHELL
  5896. # Generated by $as_me.
  5897. # Run this file to recreate the current configuration.
  5898. # Compiler output produced by configure, useful for debugging
  5899. # configure, is in config.log if it exists.
  5900. debug=false
  5901. ac_cs_recheck=false
  5902. ac_cs_silent=false
  5903. SHELL=\${CONFIG_SHELL-$SHELL}
  5904. export SHELL
  5905. _ASEOF
  5906. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5907. ## -------------------- ##
  5908. ## M4sh Initialization. ##
  5909. ## -------------------- ##
  5910. # Be more Bourne compatible
  5911. DUALCASE=1; export DUALCASE # for MKS sh
  5912. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5913. emulate sh
  5914. NULLCMD=:
  5915. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5916. # is contrary to our usage. Disable this feature.
  5917. alias -g '${1+"$@"}'='"$@"'
  5918. setopt NO_GLOB_SUBST
  5919. else
  5920. case `(set -o) 2>/dev/null` in #(
  5921. *posix*) :
  5922. set -o posix ;; #(
  5923. *) :
  5924. ;;
  5925. esac
  5926. fi
  5927. as_nl='
  5928. '
  5929. export as_nl
  5930. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5931. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5932. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5933. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5934. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5935. # but without wasting forks for bash or zsh.
  5936. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5937. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5938. as_echo='print -r --'
  5939. as_echo_n='print -rn --'
  5940. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5941. as_echo='printf %s\n'
  5942. as_echo_n='printf %s'
  5943. else
  5944. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5945. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5946. as_echo_n='/usr/ucb/echo -n'
  5947. else
  5948. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5949. as_echo_n_body='eval
  5950. arg=$1;
  5951. case $arg in #(
  5952. *"$as_nl"*)
  5953. expr "X$arg" : "X\\(.*\\)$as_nl";
  5954. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5955. esac;
  5956. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5957. '
  5958. export as_echo_n_body
  5959. as_echo_n='sh -c $as_echo_n_body as_echo'
  5960. fi
  5961. export as_echo_body
  5962. as_echo='sh -c $as_echo_body as_echo'
  5963. fi
  5964. # The user is always right.
  5965. if test "${PATH_SEPARATOR+set}" != set; then
  5966. PATH_SEPARATOR=:
  5967. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5968. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5969. PATH_SEPARATOR=';'
  5970. }
  5971. fi
  5972. # IFS
  5973. # We need space, tab and new line, in precisely that order. Quoting is
  5974. # there to prevent editors from complaining about space-tab.
  5975. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5976. # splitting by setting IFS to empty value.)
  5977. IFS=" "" $as_nl"
  5978. # Find who we are. Look in the path if we contain no directory separator.
  5979. as_myself=
  5980. case $0 in #((
  5981. *[\\/]* ) as_myself=$0 ;;
  5982. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5983. for as_dir in $PATH
  5984. do
  5985. IFS=$as_save_IFS
  5986. test -z "$as_dir" && as_dir=.
  5987. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5988. done
  5989. IFS=$as_save_IFS
  5990. ;;
  5991. esac
  5992. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5993. # in which case we are not to be found in the path.
  5994. if test "x$as_myself" = x; then
  5995. as_myself=$0
  5996. fi
  5997. if test ! -f "$as_myself"; then
  5998. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5999. exit 1
  6000. fi
  6001. # Unset variables that we do not need and which cause bugs (e.g. in
  6002. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6003. # suppresses any "Segmentation fault" message there. '((' could
  6004. # trigger a bug in pdksh 5.2.14.
  6005. for as_var in BASH_ENV ENV MAIL MAILPATH
  6006. do eval test x\${$as_var+set} = xset \
  6007. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6008. done
  6009. PS1='$ '
  6010. PS2='> '
  6011. PS4='+ '
  6012. # NLS nuisances.
  6013. LC_ALL=C
  6014. export LC_ALL
  6015. LANGUAGE=C
  6016. export LANGUAGE
  6017. # CDPATH.
  6018. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6019. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6020. # ----------------------------------------
  6021. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6022. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6023. # script with STATUS, using 1 if that was 0.
  6024. as_fn_error ()
  6025. {
  6026. as_status=$1; test $as_status -eq 0 && as_status=1
  6027. if test "$4"; then
  6028. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6030. fi
  6031. $as_echo "$as_me: error: $2" >&2
  6032. as_fn_exit $as_status
  6033. } # as_fn_error
  6034. # as_fn_set_status STATUS
  6035. # -----------------------
  6036. # Set $? to STATUS, without forking.
  6037. as_fn_set_status ()
  6038. {
  6039. return $1
  6040. } # as_fn_set_status
  6041. # as_fn_exit STATUS
  6042. # -----------------
  6043. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6044. as_fn_exit ()
  6045. {
  6046. set +e
  6047. as_fn_set_status $1
  6048. exit $1
  6049. } # as_fn_exit
  6050. # as_fn_unset VAR
  6051. # ---------------
  6052. # Portably unset VAR.
  6053. as_fn_unset ()
  6054. {
  6055. { eval $1=; unset $1;}
  6056. }
  6057. as_unset=as_fn_unset
  6058. # as_fn_append VAR VALUE
  6059. # ----------------------
  6060. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6061. # advantage of any shell optimizations that allow amortized linear growth over
  6062. # repeated appends, instead of the typical quadratic growth present in naive
  6063. # implementations.
  6064. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6065. eval 'as_fn_append ()
  6066. {
  6067. eval $1+=\$2
  6068. }'
  6069. else
  6070. as_fn_append ()
  6071. {
  6072. eval $1=\$$1\$2
  6073. }
  6074. fi # as_fn_append
  6075. # as_fn_arith ARG...
  6076. # ------------------
  6077. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6078. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6079. # must be portable across $(()) and expr.
  6080. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6081. eval 'as_fn_arith ()
  6082. {
  6083. as_val=$(( $* ))
  6084. }'
  6085. else
  6086. as_fn_arith ()
  6087. {
  6088. as_val=`expr "$@" || test $? -eq 1`
  6089. }
  6090. fi # as_fn_arith
  6091. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6092. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6093. as_expr=expr
  6094. else
  6095. as_expr=false
  6096. fi
  6097. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6098. as_basename=basename
  6099. else
  6100. as_basename=false
  6101. fi
  6102. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6103. as_dirname=dirname
  6104. else
  6105. as_dirname=false
  6106. fi
  6107. as_me=`$as_basename -- "$0" ||
  6108. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6109. X"$0" : 'X\(//\)$' \| \
  6110. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6111. $as_echo X/"$0" |
  6112. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6113. s//\1/
  6114. q
  6115. }
  6116. /^X\/\(\/\/\)$/{
  6117. s//\1/
  6118. q
  6119. }
  6120. /^X\/\(\/\).*/{
  6121. s//\1/
  6122. q
  6123. }
  6124. s/.*/./; q'`
  6125. # Avoid depending upon Character Ranges.
  6126. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6127. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6128. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6129. as_cr_digits='0123456789'
  6130. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6131. ECHO_C= ECHO_N= ECHO_T=
  6132. case `echo -n x` in #(((((
  6133. -n*)
  6134. case `echo 'xy\c'` in
  6135. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6136. xy) ECHO_C='\c';;
  6137. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6138. ECHO_T=' ';;
  6139. esac;;
  6140. *)
  6141. ECHO_N='-n';;
  6142. esac
  6143. rm -f conf$$ conf$$.exe conf$$.file
  6144. if test -d conf$$.dir; then
  6145. rm -f conf$$.dir/conf$$.file
  6146. else
  6147. rm -f conf$$.dir
  6148. mkdir conf$$.dir 2>/dev/null
  6149. fi
  6150. if (echo >conf$$.file) 2>/dev/null; then
  6151. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6152. as_ln_s='ln -s'
  6153. # ... but there are two gotchas:
  6154. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6155. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6156. # In both cases, we have to default to `cp -pR'.
  6157. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6158. as_ln_s='cp -pR'
  6159. elif ln conf$$.file conf$$ 2>/dev/null; then
  6160. as_ln_s=ln
  6161. else
  6162. as_ln_s='cp -pR'
  6163. fi
  6164. else
  6165. as_ln_s='cp -pR'
  6166. fi
  6167. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6168. rmdir conf$$.dir 2>/dev/null
  6169. # as_fn_mkdir_p
  6170. # -------------
  6171. # Create "$as_dir" as a directory, including parents if necessary.
  6172. as_fn_mkdir_p ()
  6173. {
  6174. case $as_dir in #(
  6175. -*) as_dir=./$as_dir;;
  6176. esac
  6177. test -d "$as_dir" || eval $as_mkdir_p || {
  6178. as_dirs=
  6179. while :; do
  6180. case $as_dir in #(
  6181. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6182. *) as_qdir=$as_dir;;
  6183. esac
  6184. as_dirs="'$as_qdir' $as_dirs"
  6185. as_dir=`$as_dirname -- "$as_dir" ||
  6186. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6187. X"$as_dir" : 'X\(//\)[^/]' \| \
  6188. X"$as_dir" : 'X\(//\)$' \| \
  6189. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6190. $as_echo X"$as_dir" |
  6191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6192. s//\1/
  6193. q
  6194. }
  6195. /^X\(\/\/\)[^/].*/{
  6196. s//\1/
  6197. q
  6198. }
  6199. /^X\(\/\/\)$/{
  6200. s//\1/
  6201. q
  6202. }
  6203. /^X\(\/\).*/{
  6204. s//\1/
  6205. q
  6206. }
  6207. s/.*/./; q'`
  6208. test -d "$as_dir" && break
  6209. done
  6210. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6211. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6212. } # as_fn_mkdir_p
  6213. if mkdir -p . 2>/dev/null; then
  6214. as_mkdir_p='mkdir -p "$as_dir"'
  6215. else
  6216. test -d ./-p && rmdir ./-p
  6217. as_mkdir_p=false
  6218. fi
  6219. # as_fn_executable_p FILE
  6220. # -----------------------
  6221. # Test if FILE is an executable regular file.
  6222. as_fn_executable_p ()
  6223. {
  6224. test -f "$1" && test -x "$1"
  6225. } # as_fn_executable_p
  6226. as_test_x='test -x'
  6227. as_executable_p=as_fn_executable_p
  6228. # Sed expression to map a string onto a valid CPP name.
  6229. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6230. # Sed expression to map a string onto a valid variable name.
  6231. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6232. exec 6>&1
  6233. ## ----------------------------------- ##
  6234. ## Main body of $CONFIG_STATUS script. ##
  6235. ## ----------------------------------- ##
  6236. _ASEOF
  6237. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6239. # Save the log message, to keep $0 and so on meaningful, and to
  6240. # report actual input values of CONFIG_FILES etc. instead of their
  6241. # values after options handling.
  6242. ac_log="
  6243. This file was extended by libsrtp2 $as_me 2.3.0, which was
  6244. generated by GNU Autoconf 2.69. Invocation command line was
  6245. CONFIG_FILES = $CONFIG_FILES
  6246. CONFIG_HEADERS = $CONFIG_HEADERS
  6247. CONFIG_LINKS = $CONFIG_LINKS
  6248. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6249. $ $0 $@
  6250. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6251. "
  6252. _ACEOF
  6253. case $ac_config_files in *"
  6254. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6255. esac
  6256. case $ac_config_headers in *"
  6257. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6258. esac
  6259. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6260. # Files that config.status was made for.
  6261. config_files="$ac_config_files"
  6262. config_headers="$ac_config_headers"
  6263. _ACEOF
  6264. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6265. ac_cs_usage="\
  6266. \`$as_me' instantiates files and other configuration actions
  6267. from templates according to the current configuration. Unless the files
  6268. and actions are specified as TAGs, all are instantiated by default.
  6269. Usage: $0 [OPTION]... [TAG]...
  6270. -h, --help print this help, then exit
  6271. -V, --version print version number and configuration settings, then exit
  6272. --config print configuration, then exit
  6273. -q, --quiet, --silent
  6274. do not print progress messages
  6275. -d, --debug don't remove temporary files
  6276. --recheck update $as_me by reconfiguring in the same conditions
  6277. --file=FILE[:TEMPLATE]
  6278. instantiate the configuration file FILE
  6279. --header=FILE[:TEMPLATE]
  6280. instantiate the configuration header FILE
  6281. Configuration files:
  6282. $config_files
  6283. Configuration headers:
  6284. $config_headers
  6285. Report bugs to <https://github.com/cisco/libsrtp/issues>."
  6286. _ACEOF
  6287. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6288. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6289. ac_cs_version="\\
  6290. libsrtp2 config.status 2.3.0
  6291. configured by $0, generated by GNU Autoconf 2.69,
  6292. with options \\"\$ac_cs_config\\"
  6293. Copyright (C) 2012 Free Software Foundation, Inc.
  6294. This config.status script is free software; the Free Software Foundation
  6295. gives unlimited permission to copy, distribute and modify it."
  6296. ac_pwd='$ac_pwd'
  6297. srcdir='$srcdir'
  6298. INSTALL='$INSTALL'
  6299. test -n "\$AWK" || AWK=awk
  6300. _ACEOF
  6301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6302. # The default lists apply if the user does not specify any file.
  6303. ac_need_defaults=:
  6304. while test $# != 0
  6305. do
  6306. case $1 in
  6307. --*=?*)
  6308. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6309. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6310. ac_shift=:
  6311. ;;
  6312. --*=)
  6313. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6314. ac_optarg=
  6315. ac_shift=:
  6316. ;;
  6317. *)
  6318. ac_option=$1
  6319. ac_optarg=$2
  6320. ac_shift=shift
  6321. ;;
  6322. esac
  6323. case $ac_option in
  6324. # Handling of the options.
  6325. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6326. ac_cs_recheck=: ;;
  6327. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6328. $as_echo "$ac_cs_version"; exit ;;
  6329. --config | --confi | --conf | --con | --co | --c )
  6330. $as_echo "$ac_cs_config"; exit ;;
  6331. --debug | --debu | --deb | --de | --d | -d )
  6332. debug=: ;;
  6333. --file | --fil | --fi | --f )
  6334. $ac_shift
  6335. case $ac_optarg in
  6336. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6337. '') as_fn_error $? "missing file argument" ;;
  6338. esac
  6339. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6340. ac_need_defaults=false;;
  6341. --header | --heade | --head | --hea )
  6342. $ac_shift
  6343. case $ac_optarg in
  6344. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6345. esac
  6346. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6347. ac_need_defaults=false;;
  6348. --he | --h)
  6349. # Conflict between --help and --header
  6350. as_fn_error $? "ambiguous option: \`$1'
  6351. Try \`$0 --help' for more information.";;
  6352. --help | --hel | -h )
  6353. $as_echo "$ac_cs_usage"; exit ;;
  6354. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6355. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6356. ac_cs_silent=: ;;
  6357. # This is an error.
  6358. -*) as_fn_error $? "unrecognized option: \`$1'
  6359. Try \`$0 --help' for more information." ;;
  6360. *) as_fn_append ac_config_targets " $1"
  6361. ac_need_defaults=false ;;
  6362. esac
  6363. shift
  6364. done
  6365. ac_configure_extra_args=
  6366. if $ac_cs_silent; then
  6367. exec 6>/dev/null
  6368. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6369. fi
  6370. _ACEOF
  6371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6372. if \$ac_cs_recheck; then
  6373. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6374. shift
  6375. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6376. CONFIG_SHELL='$SHELL'
  6377. export CONFIG_SHELL
  6378. exec "\$@"
  6379. fi
  6380. _ACEOF
  6381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6382. exec 5>>config.log
  6383. {
  6384. echo
  6385. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6386. ## Running $as_me. ##
  6387. _ASBOX
  6388. $as_echo "$ac_log"
  6389. } >&5
  6390. _ACEOF
  6391. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6392. _ACEOF
  6393. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6394. # Handling of arguments.
  6395. for ac_config_target in $ac_config_targets
  6396. do
  6397. case $ac_config_target in
  6398. "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;;
  6399. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6400. "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;;
  6401. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  6402. "fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES fuzzer/Makefile" ;;
  6403. "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;;
  6404. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6405. esac
  6406. done
  6407. # If the user did not use the arguments to specify the items to instantiate,
  6408. # then the envvar interface is used. Set only those that are not.
  6409. # We use the long form for the default assignment because of an extremely
  6410. # bizarre bug on SunOS 4.1.3.
  6411. if $ac_need_defaults; then
  6412. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6413. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6414. fi
  6415. # Have a temporary directory for convenience. Make it in the build tree
  6416. # simply because there is no reason against having it here, and in addition,
  6417. # creating and moving files from /tmp can sometimes cause problems.
  6418. # Hook for its removal unless debugging.
  6419. # Note that there is a small window in which the directory will not be cleaned:
  6420. # after its creation but before its name has been assigned to `$tmp'.
  6421. $debug ||
  6422. {
  6423. tmp= ac_tmp=
  6424. trap 'exit_status=$?
  6425. : "${ac_tmp:=$tmp}"
  6426. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6427. ' 0
  6428. trap 'as_fn_exit 1' 1 2 13 15
  6429. }
  6430. # Create a (secure) tmp directory for tmp files.
  6431. {
  6432. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6433. test -d "$tmp"
  6434. } ||
  6435. {
  6436. tmp=./conf$$-$RANDOM
  6437. (umask 077 && mkdir "$tmp")
  6438. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6439. ac_tmp=$tmp
  6440. # Set up the scripts for CONFIG_FILES section.
  6441. # No need to generate them if there are no CONFIG_FILES.
  6442. # This happens for instance with `./config.status config.h'.
  6443. if test -n "$CONFIG_FILES"; then
  6444. ac_cr=`echo X | tr X '\015'`
  6445. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6446. # But we know of no other shell where ac_cr would be empty at this
  6447. # point, so we can use a bashism as a fallback.
  6448. if test "x$ac_cr" = x; then
  6449. eval ac_cr=\$\'\\r\'
  6450. fi
  6451. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6452. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6453. ac_cs_awk_cr='\\r'
  6454. else
  6455. ac_cs_awk_cr=$ac_cr
  6456. fi
  6457. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6458. _ACEOF
  6459. {
  6460. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6461. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6462. echo "_ACEOF"
  6463. } >conf$$subs.sh ||
  6464. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6465. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6466. ac_delim='%!_!# '
  6467. for ac_last_try in false false false false false :; do
  6468. . ./conf$$subs.sh ||
  6469. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6470. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6471. if test $ac_delim_n = $ac_delim_num; then
  6472. break
  6473. elif $ac_last_try; then
  6474. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6475. else
  6476. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6477. fi
  6478. done
  6479. rm -f conf$$subs.sh
  6480. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6481. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6482. _ACEOF
  6483. sed -n '
  6484. h
  6485. s/^/S["/; s/!.*/"]=/
  6486. p
  6487. g
  6488. s/^[^!]*!//
  6489. :repl
  6490. t repl
  6491. s/'"$ac_delim"'$//
  6492. t delim
  6493. :nl
  6494. h
  6495. s/\(.\{148\}\)..*/\1/
  6496. t more1
  6497. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6498. p
  6499. n
  6500. b repl
  6501. :more1
  6502. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6503. p
  6504. g
  6505. s/.\{148\}//
  6506. t nl
  6507. :delim
  6508. h
  6509. s/\(.\{148\}\)..*/\1/
  6510. t more2
  6511. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6512. p
  6513. b
  6514. :more2
  6515. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6516. p
  6517. g
  6518. s/.\{148\}//
  6519. t delim
  6520. ' <conf$$subs.awk | sed '
  6521. /^[^""]/{
  6522. N
  6523. s/\n//
  6524. }
  6525. ' >>$CONFIG_STATUS || ac_write_fail=1
  6526. rm -f conf$$subs.awk
  6527. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6528. _ACAWK
  6529. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6530. for (key in S) S_is_set[key] = 1
  6531. FS = ""
  6532. }
  6533. {
  6534. line = $ 0
  6535. nfields = split(line, field, "@")
  6536. substed = 0
  6537. len = length(field[1])
  6538. for (i = 2; i < nfields; i++) {
  6539. key = field[i]
  6540. keylen = length(key)
  6541. if (S_is_set[key]) {
  6542. value = S[key]
  6543. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6544. len += length(value) + length(field[++i])
  6545. substed = 1
  6546. } else
  6547. len += 1 + keylen
  6548. }
  6549. print line
  6550. }
  6551. _ACAWK
  6552. _ACEOF
  6553. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6554. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6555. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6556. else
  6557. cat
  6558. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6559. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6560. _ACEOF
  6561. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6562. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6563. # trailing colons and then remove the whole line if VPATH becomes empty
  6564. # (actually we leave an empty line to preserve line numbers).
  6565. if test "x$srcdir" = x.; then
  6566. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6567. h
  6568. s///
  6569. s/^/:/
  6570. s/[ ]*$/:/
  6571. s/:\$(srcdir):/:/g
  6572. s/:\${srcdir}:/:/g
  6573. s/:@srcdir@:/:/g
  6574. s/^:*//
  6575. s/:*$//
  6576. x
  6577. s/\(=[ ]*\).*/\1/
  6578. G
  6579. s/\n//
  6580. s/^[^=]*=[ ]*$//
  6581. }'
  6582. fi
  6583. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6584. fi # test -n "$CONFIG_FILES"
  6585. # Set up the scripts for CONFIG_HEADERS section.
  6586. # No need to generate them if there are no CONFIG_HEADERS.
  6587. # This happens for instance with `./config.status Makefile'.
  6588. if test -n "$CONFIG_HEADERS"; then
  6589. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6590. BEGIN {
  6591. _ACEOF
  6592. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6593. # here-document in config.status, that substitutes the proper values into
  6594. # config.h.in to produce config.h.
  6595. # Create a delimiter string that does not exist in confdefs.h, to ease
  6596. # handling of long lines.
  6597. ac_delim='%!_!# '
  6598. for ac_last_try in false false :; do
  6599. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6600. if test -z "$ac_tt"; then
  6601. break
  6602. elif $ac_last_try; then
  6603. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6604. else
  6605. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6606. fi
  6607. done
  6608. # For the awk script, D is an array of macro values keyed by name,
  6609. # likewise P contains macro parameters if any. Preserve backslash
  6610. # newline sequences.
  6611. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6612. sed -n '
  6613. s/.\{148\}/&'"$ac_delim"'/g
  6614. t rset
  6615. :rset
  6616. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6617. t def
  6618. d
  6619. :def
  6620. s/\\$//
  6621. t bsnl
  6622. s/["\\]/\\&/g
  6623. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6624. D["\1"]=" \3"/p
  6625. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6626. d
  6627. :bsnl
  6628. s/["\\]/\\&/g
  6629. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6630. D["\1"]=" \3\\\\\\n"\\/p
  6631. t cont
  6632. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6633. t cont
  6634. d
  6635. :cont
  6636. n
  6637. s/.\{148\}/&'"$ac_delim"'/g
  6638. t clear
  6639. :clear
  6640. s/\\$//
  6641. t bsnlc
  6642. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6643. d
  6644. :bsnlc
  6645. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6646. b cont
  6647. ' <confdefs.h | sed '
  6648. s/'"$ac_delim"'/"\\\
  6649. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6650. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6651. for (key in D) D_is_set[key] = 1
  6652. FS = ""
  6653. }
  6654. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6655. line = \$ 0
  6656. split(line, arg, " ")
  6657. if (arg[1] == "#") {
  6658. defundef = arg[2]
  6659. mac1 = arg[3]
  6660. } else {
  6661. defundef = substr(arg[1], 2)
  6662. mac1 = arg[2]
  6663. }
  6664. split(mac1, mac2, "(") #)
  6665. macro = mac2[1]
  6666. prefix = substr(line, 1, index(line, defundef) - 1)
  6667. if (D_is_set[macro]) {
  6668. # Preserve the white space surrounding the "#".
  6669. print prefix "define", macro P[macro] D[macro]
  6670. next
  6671. } else {
  6672. # Replace #undef with comments. This is necessary, for example,
  6673. # in the case of _POSIX_SOURCE, which is predefined and required
  6674. # on some systems where configure will not decide to define it.
  6675. if (defundef == "undef") {
  6676. print "/*", prefix defundef, macro, "*/"
  6677. next
  6678. }
  6679. }
  6680. }
  6681. { print }
  6682. _ACAWK
  6683. _ACEOF
  6684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6685. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6686. fi # test -n "$CONFIG_HEADERS"
  6687. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  6688. shift
  6689. for ac_tag
  6690. do
  6691. case $ac_tag in
  6692. :[FHLC]) ac_mode=$ac_tag; continue;;
  6693. esac
  6694. case $ac_mode$ac_tag in
  6695. :[FHL]*:*);;
  6696. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6697. :[FH]-) ac_tag=-:-;;
  6698. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6699. esac
  6700. ac_save_IFS=$IFS
  6701. IFS=:
  6702. set x $ac_tag
  6703. IFS=$ac_save_IFS
  6704. shift
  6705. ac_file=$1
  6706. shift
  6707. case $ac_mode in
  6708. :L) ac_source=$1;;
  6709. :[FH])
  6710. ac_file_inputs=
  6711. for ac_f
  6712. do
  6713. case $ac_f in
  6714. -) ac_f="$ac_tmp/stdin";;
  6715. *) # Look for the file first in the build tree, then in the source tree
  6716. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6717. # because $ac_f cannot contain `:'.
  6718. test -f "$ac_f" ||
  6719. case $ac_f in
  6720. [\\/$]*) false;;
  6721. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6722. esac ||
  6723. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6724. esac
  6725. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6726. as_fn_append ac_file_inputs " '$ac_f'"
  6727. done
  6728. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6729. # use $as_me), people would be surprised to read:
  6730. # /* config.h. Generated by config.status. */
  6731. configure_input='Generated from '`
  6732. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6733. `' by configure.'
  6734. if test x"$ac_file" != x-; then
  6735. configure_input="$ac_file. $configure_input"
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6737. $as_echo "$as_me: creating $ac_file" >&6;}
  6738. fi
  6739. # Neutralize special characters interpreted by sed in replacement strings.
  6740. case $configure_input in #(
  6741. *\&* | *\|* | *\\* )
  6742. ac_sed_conf_input=`$as_echo "$configure_input" |
  6743. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6744. *) ac_sed_conf_input=$configure_input;;
  6745. esac
  6746. case $ac_tag in
  6747. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  6748. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6749. esac
  6750. ;;
  6751. esac
  6752. ac_dir=`$as_dirname -- "$ac_file" ||
  6753. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6754. X"$ac_file" : 'X\(//\)[^/]' \| \
  6755. X"$ac_file" : 'X\(//\)$' \| \
  6756. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6757. $as_echo X"$ac_file" |
  6758. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6759. s//\1/
  6760. q
  6761. }
  6762. /^X\(\/\/\)[^/].*/{
  6763. s//\1/
  6764. q
  6765. }
  6766. /^X\(\/\/\)$/{
  6767. s//\1/
  6768. q
  6769. }
  6770. /^X\(\/\).*/{
  6771. s//\1/
  6772. q
  6773. }
  6774. s/.*/./; q'`
  6775. as_dir="$ac_dir"; as_fn_mkdir_p
  6776. ac_builddir=.
  6777. case "$ac_dir" in
  6778. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6779. *)
  6780. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6781. # A ".." for each directory in $ac_dir_suffix.
  6782. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6783. case $ac_top_builddir_sub in
  6784. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6785. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6786. esac ;;
  6787. esac
  6788. ac_abs_top_builddir=$ac_pwd
  6789. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6790. # for backward compatibility:
  6791. ac_top_builddir=$ac_top_build_prefix
  6792. case $srcdir in
  6793. .) # We are building in place.
  6794. ac_srcdir=.
  6795. ac_top_srcdir=$ac_top_builddir_sub
  6796. ac_abs_top_srcdir=$ac_pwd ;;
  6797. [\\/]* | ?:[\\/]* ) # Absolute name.
  6798. ac_srcdir=$srcdir$ac_dir_suffix;
  6799. ac_top_srcdir=$srcdir
  6800. ac_abs_top_srcdir=$srcdir ;;
  6801. *) # Relative name.
  6802. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6803. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6804. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6805. esac
  6806. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6807. case $ac_mode in
  6808. :F)
  6809. #
  6810. # CONFIG_FILE
  6811. #
  6812. case $INSTALL in
  6813. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6814. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6815. esac
  6816. _ACEOF
  6817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6818. # If the template does not know about datarootdir, expand it.
  6819. # FIXME: This hack should be removed a few years after 2.60.
  6820. ac_datarootdir_hack=; ac_datarootdir_seen=
  6821. ac_sed_dataroot='
  6822. /datarootdir/ {
  6823. p
  6824. q
  6825. }
  6826. /@datadir@/p
  6827. /@docdir@/p
  6828. /@infodir@/p
  6829. /@localedir@/p
  6830. /@mandir@/p'
  6831. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6832. *datarootdir*) ac_datarootdir_seen=yes;;
  6833. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6835. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6836. _ACEOF
  6837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6838. ac_datarootdir_hack='
  6839. s&@datadir@&$datadir&g
  6840. s&@docdir@&$docdir&g
  6841. s&@infodir@&$infodir&g
  6842. s&@localedir@&$localedir&g
  6843. s&@mandir@&$mandir&g
  6844. s&\\\${datarootdir}&$datarootdir&g' ;;
  6845. esac
  6846. _ACEOF
  6847. # Neutralize VPATH when `$srcdir' = `.'.
  6848. # Shell code in configure.ac might set extrasub.
  6849. # FIXME: do we really want to maintain this feature?
  6850. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6851. ac_sed_extra="$ac_vpsub
  6852. $extrasub
  6853. _ACEOF
  6854. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6855. :t
  6856. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6857. s|@configure_input@|$ac_sed_conf_input|;t t
  6858. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6859. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6860. s&@srcdir@&$ac_srcdir&;t t
  6861. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6862. s&@top_srcdir@&$ac_top_srcdir&;t t
  6863. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6864. s&@builddir@&$ac_builddir&;t t
  6865. s&@abs_builddir@&$ac_abs_builddir&;t t
  6866. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6867. s&@INSTALL@&$ac_INSTALL&;t t
  6868. $ac_datarootdir_hack
  6869. "
  6870. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6871. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6872. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6873. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6874. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6875. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6877. which seems to be undefined. Please make sure it is defined" >&5
  6878. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6879. which seems to be undefined. Please make sure it is defined" >&2;}
  6880. rm -f "$ac_tmp/stdin"
  6881. case $ac_file in
  6882. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6883. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6884. esac \
  6885. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6886. ;;
  6887. :H)
  6888. #
  6889. # CONFIG_HEADER
  6890. #
  6891. if test x"$ac_file" != x-; then
  6892. {
  6893. $as_echo "/* $configure_input */" \
  6894. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6895. } >"$ac_tmp/config.h" \
  6896. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6897. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6899. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6900. else
  6901. rm -f "$ac_file"
  6902. mv "$ac_tmp/config.h" "$ac_file" \
  6903. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6904. fi
  6905. else
  6906. $as_echo "/* $configure_input */" \
  6907. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6908. || as_fn_error $? "could not create -" "$LINENO" 5
  6909. fi
  6910. ;;
  6911. esac
  6912. done # for ac_tag
  6913. as_fn_exit 0
  6914. _ACEOF
  6915. ac_clean_files=$ac_clean_files_save
  6916. test $ac_write_fail = 0 ||
  6917. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6918. # configure is writing to config.log, and then calls config.status.
  6919. # config.status does its own redirection, appending to config.log.
  6920. # Unfortunately, on DOS this fails, as config.log is still kept open
  6921. # by configure, so config.status won't be able to write to it; its
  6922. # output is simply discarded. So we exec the FD to /dev/null,
  6923. # effectively closing config.log, so it can be properly (re)opened and
  6924. # appended to by config.status. When coming back to configure, we
  6925. # need to make the FD available again.
  6926. if test "$no_create" != yes; then
  6927. ac_cs_success=:
  6928. ac_config_status_args=
  6929. test "$silent" = yes &&
  6930. ac_config_status_args="$ac_config_status_args --quiet"
  6931. exec 5>/dev/null
  6932. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6933. exec 5>>config.log
  6934. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6935. # would make configure fail if this is the last instruction.
  6936. $ac_cs_success || as_fn_exit 1
  6937. fi
  6938. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6940. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6941. fi
  6942. # This is needed when building outside the source dir.
  6943. as_dir=crypto/cipher; as_fn_mkdir_p
  6944. as_dir=crypto/hash; as_fn_mkdir_p
  6945. as_dir=crypto/kernel; as_fn_mkdir_p
  6946. as_dir=crypto/math; as_fn_mkdir_p
  6947. as_dir=crypto/replay; as_fn_mkdir_p
  6948. as_dir=crypto/test; as_fn_mkdir_p
  6949. as_dir=doc; as_fn_mkdir_p
  6950. as_dir=srtp; as_fn_mkdir_p
  6951. as_dir=test; as_fn_mkdir_p