1
0

configure 159 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # 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. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1"
  162. if (eval "$as_required") 2>/dev/null; then :
  163. as_have_required=yes
  164. else
  165. as_have_required=no
  166. fi
  167. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  168. else
  169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  170. as_found=false
  171. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  172. do
  173. IFS=$as_save_IFS
  174. test -z "$as_dir" && as_dir=.
  175. as_found=:
  176. case $as_dir in #(
  177. /*)
  178. for as_base in sh bash ksh sh5; do
  179. # Try only shells that exist, to save several forks.
  180. as_shell=$as_dir/$as_base
  181. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  182. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  183. CONFIG_SHELL=$as_shell as_have_required=yes
  184. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. break 2
  186. fi
  187. fi
  188. done;;
  189. esac
  190. as_found=false
  191. done
  192. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  193. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  194. CONFIG_SHELL=$SHELL as_have_required=yes
  195. fi; }
  196. IFS=$as_save_IFS
  197. if test "x$CONFIG_SHELL" != x; then :
  198. # We cannot yet assume a decent shell, so we have to provide a
  199. # neutralization value for shells without unset; and this also
  200. # works around shells that cannot unset nonexistent variables.
  201. # Preserve -v and -x to the replacement shell.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. case $- in # ((((
  207. *v*x* | *x*v* ) as_opts=-vx ;;
  208. *v* ) as_opts=-v ;;
  209. *x* ) as_opts=-x ;;
  210. * ) as_opts= ;;
  211. esac
  212. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  213. fi
  214. if test x$as_have_required = xno; then :
  215. $as_echo "$0: This script requires a shell more modern than all"
  216. $as_echo "$0: the shells that I found on your system."
  217. if test x${ZSH_VERSION+set} = xset ; then
  218. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  219. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  220. else
  221. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  222. $0: including any error possibly output before this
  223. $0: message. Then install a modern shell, or manually run
  224. $0: the script under such a shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  340. # ----------------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with STATUS, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$1; test $as_status -eq 0 && as_status=1
  347. if test "$4"; then
  348. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  350. fi
  351. $as_echo "$as_me: error: $2" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME=
  512. PACKAGE_TARNAME=
  513. PACKAGE_VERSION=
  514. PACKAGE_STRING=
  515. PACKAGE_BUGREPORT=
  516. PACKAGE_URL=
  517. ac_unique_file="softflowd.c"
  518. # Factoring default headers for most tests.
  519. ac_includes_default="\
  520. #include <stdio.h>
  521. #ifdef HAVE_SYS_TYPES_H
  522. # include <sys/types.h>
  523. #endif
  524. #ifdef HAVE_SYS_STAT_H
  525. # include <sys/stat.h>
  526. #endif
  527. #ifdef STDC_HEADERS
  528. # include <stdlib.h>
  529. # include <stddef.h>
  530. #else
  531. # ifdef HAVE_STDLIB_H
  532. # include <stdlib.h>
  533. # endif
  534. #endif
  535. #ifdef HAVE_STRING_H
  536. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  537. # include <memory.h>
  538. # endif
  539. # include <string.h>
  540. #endif
  541. #ifdef HAVE_STRINGS_H
  542. # include <strings.h>
  543. #endif
  544. #ifdef HAVE_INTTYPES_H
  545. # include <inttypes.h>
  546. #endif
  547. #ifdef HAVE_STDINT_H
  548. # include <stdint.h>
  549. #endif
  550. #ifdef HAVE_UNISTD_H
  551. # include <unistd.h>
  552. #endif"
  553. ac_subst_vars='LTLIBOBJS
  554. LIBOBJS
  555. EGREP
  556. GREP
  557. CPP
  558. INSTALL_DATA
  559. INSTALL_SCRIPT
  560. INSTALL_PROGRAM
  561. OBJEXT
  562. EXEEXT
  563. ac_ct_CC
  564. CPPFLAGS
  565. LDFLAGS
  566. CFLAGS
  567. CC
  568. target_alias
  569. host_alias
  570. build_alias
  571. LIBS
  572. ECHO_T
  573. ECHO_N
  574. ECHO_C
  575. DEFS
  576. mandir
  577. localedir
  578. libdir
  579. psdir
  580. pdfdir
  581. dvidir
  582. htmldir
  583. infodir
  584. docdir
  585. oldincludedir
  586. includedir
  587. localstatedir
  588. sharedstatedir
  589. sysconfdir
  590. datadir
  591. datarootdir
  592. libexecdir
  593. sbindir
  594. bindir
  595. program_transform_name
  596. prefix
  597. exec_prefix
  598. PACKAGE_URL
  599. PACKAGE_BUGREPORT
  600. PACKAGE_STRING
  601. PACKAGE_VERSION
  602. PACKAGE_TARNAME
  603. PACKAGE_NAME
  604. PATH_SEPARATOR
  605. SHELL'
  606. ac_subst_files=''
  607. ac_user_opts='
  608. enable_option_checking
  609. enable_gcc_warnings
  610. with_cflags
  611. with_cppflags
  612. with_ldflags
  613. with_libs
  614. with_chrootdir
  615. '
  616. ac_precious_vars='build_alias
  617. host_alias
  618. target_alias
  619. CC
  620. CFLAGS
  621. LDFLAGS
  622. LIBS
  623. CPPFLAGS
  624. CPP'
  625. # Initialize some variables set by options.
  626. ac_init_help=
  627. ac_init_version=false
  628. ac_unrecognized_opts=
  629. ac_unrecognized_sep=
  630. # The variables have the same names as the options, with
  631. # dashes changed to underlines.
  632. cache_file=/dev/null
  633. exec_prefix=NONE
  634. no_create=
  635. no_recursion=
  636. prefix=NONE
  637. program_prefix=NONE
  638. program_suffix=NONE
  639. program_transform_name=s,x,x,
  640. silent=
  641. site=
  642. srcdir=
  643. verbose=
  644. x_includes=NONE
  645. x_libraries=NONE
  646. # Installation directory options.
  647. # These are left unexpanded so users can "make install exec_prefix=/foo"
  648. # and all the variables that are supposed to be based on exec_prefix
  649. # by default will actually change.
  650. # Use braces instead of parens because sh, perl, etc. also accept them.
  651. # (The list follows the same order as the GNU Coding Standards.)
  652. bindir='${exec_prefix}/bin'
  653. sbindir='${exec_prefix}/sbin'
  654. libexecdir='${exec_prefix}/libexec'
  655. datarootdir='${prefix}/share'
  656. datadir='${datarootdir}'
  657. sysconfdir='${prefix}/etc'
  658. sharedstatedir='${prefix}/com'
  659. localstatedir='${prefix}/var'
  660. includedir='${prefix}/include'
  661. oldincludedir='/usr/include'
  662. docdir='${datarootdir}/doc/${PACKAGE}'
  663. infodir='${datarootdir}/info'
  664. htmldir='${docdir}'
  665. dvidir='${docdir}'
  666. pdfdir='${docdir}'
  667. psdir='${docdir}'
  668. libdir='${exec_prefix}/lib'
  669. localedir='${datarootdir}/locale'
  670. mandir='${datarootdir}/man'
  671. ac_prev=
  672. ac_dashdash=
  673. for ac_option
  674. do
  675. # If the previous option needs an argument, assign it.
  676. if test -n "$ac_prev"; then
  677. eval $ac_prev=\$ac_option
  678. ac_prev=
  679. continue
  680. fi
  681. case $ac_option in
  682. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  683. *=) ac_optarg= ;;
  684. *) ac_optarg=yes ;;
  685. esac
  686. # Accept the important Cygnus configure options, so we can diagnose typos.
  687. case $ac_dashdash$ac_option in
  688. --)
  689. ac_dashdash=yes ;;
  690. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  691. ac_prev=bindir ;;
  692. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  693. bindir=$ac_optarg ;;
  694. -build | --build | --buil | --bui | --bu)
  695. ac_prev=build_alias ;;
  696. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  697. build_alias=$ac_optarg ;;
  698. -cache-file | --cache-file | --cache-fil | --cache-fi \
  699. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  700. ac_prev=cache_file ;;
  701. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  702. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  703. cache_file=$ac_optarg ;;
  704. --config-cache | -C)
  705. cache_file=config.cache ;;
  706. -datadir | --datadir | --datadi | --datad)
  707. ac_prev=datadir ;;
  708. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  709. datadir=$ac_optarg ;;
  710. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  711. | --dataroo | --dataro | --datar)
  712. ac_prev=datarootdir ;;
  713. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  714. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  715. datarootdir=$ac_optarg ;;
  716. -disable-* | --disable-*)
  717. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  718. # Reject names that are not valid shell variable names.
  719. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  720. as_fn_error $? "invalid feature name: $ac_useropt"
  721. ac_useropt_orig=$ac_useropt
  722. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  723. case $ac_user_opts in
  724. *"
  725. "enable_$ac_useropt"
  726. "*) ;;
  727. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  728. ac_unrecognized_sep=', ';;
  729. esac
  730. eval enable_$ac_useropt=no ;;
  731. -docdir | --docdir | --docdi | --doc | --do)
  732. ac_prev=docdir ;;
  733. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  734. docdir=$ac_optarg ;;
  735. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  736. ac_prev=dvidir ;;
  737. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  738. dvidir=$ac_optarg ;;
  739. -enable-* | --enable-*)
  740. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  741. # Reject names that are not valid shell variable names.
  742. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  743. as_fn_error $? "invalid feature name: $ac_useropt"
  744. ac_useropt_orig=$ac_useropt
  745. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  746. case $ac_user_opts in
  747. *"
  748. "enable_$ac_useropt"
  749. "*) ;;
  750. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  751. ac_unrecognized_sep=', ';;
  752. esac
  753. eval enable_$ac_useropt=\$ac_optarg ;;
  754. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  755. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  756. | --exec | --exe | --ex)
  757. ac_prev=exec_prefix ;;
  758. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  759. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  760. | --exec=* | --exe=* | --ex=*)
  761. exec_prefix=$ac_optarg ;;
  762. -gas | --gas | --ga | --g)
  763. # Obsolete; use --with-gas.
  764. with_gas=yes ;;
  765. -help | --help | --hel | --he | -h)
  766. ac_init_help=long ;;
  767. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  768. ac_init_help=recursive ;;
  769. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  770. ac_init_help=short ;;
  771. -host | --host | --hos | --ho)
  772. ac_prev=host_alias ;;
  773. -host=* | --host=* | --hos=* | --ho=*)
  774. host_alias=$ac_optarg ;;
  775. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  776. ac_prev=htmldir ;;
  777. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  778. | --ht=*)
  779. htmldir=$ac_optarg ;;
  780. -includedir | --includedir | --includedi | --included | --include \
  781. | --includ | --inclu | --incl | --inc)
  782. ac_prev=includedir ;;
  783. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  784. | --includ=* | --inclu=* | --incl=* | --inc=*)
  785. includedir=$ac_optarg ;;
  786. -infodir | --infodir | --infodi | --infod | --info | --inf)
  787. ac_prev=infodir ;;
  788. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  789. infodir=$ac_optarg ;;
  790. -libdir | --libdir | --libdi | --libd)
  791. ac_prev=libdir ;;
  792. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  793. libdir=$ac_optarg ;;
  794. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  795. | --libexe | --libex | --libe)
  796. ac_prev=libexecdir ;;
  797. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  798. | --libexe=* | --libex=* | --libe=*)
  799. libexecdir=$ac_optarg ;;
  800. -localedir | --localedir | --localedi | --localed | --locale)
  801. ac_prev=localedir ;;
  802. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  803. localedir=$ac_optarg ;;
  804. -localstatedir | --localstatedir | --localstatedi | --localstated \
  805. | --localstate | --localstat | --localsta | --localst | --locals)
  806. ac_prev=localstatedir ;;
  807. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  808. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  809. localstatedir=$ac_optarg ;;
  810. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  811. ac_prev=mandir ;;
  812. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  813. mandir=$ac_optarg ;;
  814. -nfp | --nfp | --nf)
  815. # Obsolete; use --without-fp.
  816. with_fp=no ;;
  817. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  818. | --no-cr | --no-c | -n)
  819. no_create=yes ;;
  820. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  821. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  822. no_recursion=yes ;;
  823. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  824. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  825. | --oldin | --oldi | --old | --ol | --o)
  826. ac_prev=oldincludedir ;;
  827. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  828. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  829. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  830. oldincludedir=$ac_optarg ;;
  831. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  832. ac_prev=prefix ;;
  833. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  834. prefix=$ac_optarg ;;
  835. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  836. | --program-pre | --program-pr | --program-p)
  837. ac_prev=program_prefix ;;
  838. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  839. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  840. program_prefix=$ac_optarg ;;
  841. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  842. | --program-suf | --program-su | --program-s)
  843. ac_prev=program_suffix ;;
  844. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  845. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  846. program_suffix=$ac_optarg ;;
  847. -program-transform-name | --program-transform-name \
  848. | --program-transform-nam | --program-transform-na \
  849. | --program-transform-n | --program-transform- \
  850. | --program-transform | --program-transfor \
  851. | --program-transfo | --program-transf \
  852. | --program-trans | --program-tran \
  853. | --progr-tra | --program-tr | --program-t)
  854. ac_prev=program_transform_name ;;
  855. -program-transform-name=* | --program-transform-name=* \
  856. | --program-transform-nam=* | --program-transform-na=* \
  857. | --program-transform-n=* | --program-transform-=* \
  858. | --program-transform=* | --program-transfor=* \
  859. | --program-transfo=* | --program-transf=* \
  860. | --program-trans=* | --program-tran=* \
  861. | --progr-tra=* | --program-tr=* | --program-t=*)
  862. program_transform_name=$ac_optarg ;;
  863. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  864. ac_prev=pdfdir ;;
  865. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  866. pdfdir=$ac_optarg ;;
  867. -psdir | --psdir | --psdi | --psd | --ps)
  868. ac_prev=psdir ;;
  869. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  870. psdir=$ac_optarg ;;
  871. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  872. | -silent | --silent | --silen | --sile | --sil)
  873. silent=yes ;;
  874. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  875. ac_prev=sbindir ;;
  876. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  877. | --sbi=* | --sb=*)
  878. sbindir=$ac_optarg ;;
  879. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  880. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  881. | --sharedst | --shareds | --shared | --share | --shar \
  882. | --sha | --sh)
  883. ac_prev=sharedstatedir ;;
  884. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  885. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  886. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  887. | --sha=* | --sh=*)
  888. sharedstatedir=$ac_optarg ;;
  889. -site | --site | --sit)
  890. ac_prev=site ;;
  891. -site=* | --site=* | --sit=*)
  892. site=$ac_optarg ;;
  893. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  894. ac_prev=srcdir ;;
  895. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  896. srcdir=$ac_optarg ;;
  897. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  898. | --syscon | --sysco | --sysc | --sys | --sy)
  899. ac_prev=sysconfdir ;;
  900. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  901. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  902. sysconfdir=$ac_optarg ;;
  903. -target | --target | --targe | --targ | --tar | --ta | --t)
  904. ac_prev=target_alias ;;
  905. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  906. target_alias=$ac_optarg ;;
  907. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  908. verbose=yes ;;
  909. -version | --version | --versio | --versi | --vers | -V)
  910. ac_init_version=: ;;
  911. -with-* | --with-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid package name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "with_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval with_$ac_useropt=\$ac_optarg ;;
  926. -without-* | --without-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error $? "invalid package name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "with_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval with_$ac_useropt=no ;;
  941. --x)
  942. # Obsolete; use --with-x.
  943. with_x=yes ;;
  944. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  945. | --x-incl | --x-inc | --x-in | --x-i)
  946. ac_prev=x_includes ;;
  947. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  948. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  949. x_includes=$ac_optarg ;;
  950. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  951. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  952. ac_prev=x_libraries ;;
  953. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  954. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  955. x_libraries=$ac_optarg ;;
  956. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  957. Try \`$0 --help' for more information"
  958. ;;
  959. *=*)
  960. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  961. # Reject names that are not valid shell variable names.
  962. case $ac_envvar in #(
  963. '' | [0-9]* | *[!_$as_cr_alnum]* )
  964. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  965. esac
  966. eval $ac_envvar=\$ac_optarg
  967. export $ac_envvar ;;
  968. *)
  969. # FIXME: should be removed in autoconf 3.0.
  970. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  971. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  972. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  973. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  974. ;;
  975. esac
  976. done
  977. if test -n "$ac_prev"; then
  978. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  979. as_fn_error $? "missing argument to $ac_option"
  980. fi
  981. if test -n "$ac_unrecognized_opts"; then
  982. case $enable_option_checking in
  983. no) ;;
  984. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  985. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  986. esac
  987. fi
  988. # Check all directory arguments for consistency.
  989. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  990. datadir sysconfdir sharedstatedir localstatedir includedir \
  991. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  992. libdir localedir mandir
  993. do
  994. eval ac_val=\$$ac_var
  995. # Remove trailing slashes.
  996. case $ac_val in
  997. */ )
  998. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  999. eval $ac_var=\$ac_val;;
  1000. esac
  1001. # Be sure to have absolute directory names.
  1002. case $ac_val in
  1003. [\\/$]* | ?:[\\/]* ) continue;;
  1004. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1005. esac
  1006. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1007. done
  1008. # There might be people who depend on the old broken behavior: `$host'
  1009. # used to hold the argument of --host etc.
  1010. # FIXME: To remove some day.
  1011. build=$build_alias
  1012. host=$host_alias
  1013. target=$target_alias
  1014. # FIXME: To remove some day.
  1015. if test "x$host_alias" != x; then
  1016. if test "x$build_alias" = x; then
  1017. cross_compiling=maybe
  1018. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1019. If a cross compiler is detected then cross compile mode will be used" >&2
  1020. elif test "x$build_alias" != "x$host_alias"; then
  1021. cross_compiling=yes
  1022. fi
  1023. fi
  1024. ac_tool_prefix=
  1025. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1026. test "$silent" = yes && exec 6>/dev/null
  1027. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1028. ac_ls_di=`ls -di .` &&
  1029. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1030. as_fn_error $? "working directory cannot be determined"
  1031. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1032. as_fn_error $? "pwd does not report name of working directory"
  1033. # Find the source files, if location was not specified.
  1034. if test -z "$srcdir"; then
  1035. ac_srcdir_defaulted=yes
  1036. # Try the directory containing this script, then the parent directory.
  1037. ac_confdir=`$as_dirname -- "$as_myself" ||
  1038. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1039. X"$as_myself" : 'X\(//\)[^/]' \| \
  1040. X"$as_myself" : 'X\(//\)$' \| \
  1041. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1042. $as_echo X"$as_myself" |
  1043. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1044. s//\1/
  1045. q
  1046. }
  1047. /^X\(\/\/\)[^/].*/{
  1048. s//\1/
  1049. q
  1050. }
  1051. /^X\(\/\/\)$/{
  1052. s//\1/
  1053. q
  1054. }
  1055. /^X\(\/\).*/{
  1056. s//\1/
  1057. q
  1058. }
  1059. s/.*/./; q'`
  1060. srcdir=$ac_confdir
  1061. if test ! -r "$srcdir/$ac_unique_file"; then
  1062. srcdir=..
  1063. fi
  1064. else
  1065. ac_srcdir_defaulted=no
  1066. fi
  1067. if test ! -r "$srcdir/$ac_unique_file"; then
  1068. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1069. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1070. fi
  1071. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1072. ac_abs_confdir=`(
  1073. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1074. pwd)`
  1075. # When building in place, set srcdir=.
  1076. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1077. srcdir=.
  1078. fi
  1079. # Remove unnecessary trailing slashes from srcdir.
  1080. # Double slashes in file names in object file debugging info
  1081. # mess up M-x gdb in Emacs.
  1082. case $srcdir in
  1083. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1084. esac
  1085. for ac_var in $ac_precious_vars; do
  1086. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1087. eval ac_env_${ac_var}_value=\$${ac_var}
  1088. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1089. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1090. done
  1091. #
  1092. # Report the --help message.
  1093. #
  1094. if test "$ac_init_help" = "long"; then
  1095. # Omit some internal or obsolete options to make the list less imposing.
  1096. # This message is too long to be a string in the A/UX 3.1 sh.
  1097. cat <<_ACEOF
  1098. \`configure' configures this package to adapt to many kinds of systems.
  1099. Usage: $0 [OPTION]... [VAR=VALUE]...
  1100. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1101. VAR=VALUE. See below for descriptions of some of the useful variables.
  1102. Defaults for the options are specified in brackets.
  1103. Configuration:
  1104. -h, --help display this help and exit
  1105. --help=short display options specific to this package
  1106. --help=recursive display the short help of all the included packages
  1107. -V, --version display version information and exit
  1108. -q, --quiet, --silent do not print \`checking ...' messages
  1109. --cache-file=FILE cache test results in FILE [disabled]
  1110. -C, --config-cache alias for \`--cache-file=config.cache'
  1111. -n, --no-create do not create output files
  1112. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1113. Installation directories:
  1114. --prefix=PREFIX install architecture-independent files in PREFIX
  1115. [$ac_default_prefix]
  1116. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1117. [PREFIX]
  1118. By default, \`make install' will install all the files in
  1119. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1120. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1121. for instance \`--prefix=\$HOME'.
  1122. For better control, use the options below.
  1123. Fine tuning of the installation directories:
  1124. --bindir=DIR user executables [EPREFIX/bin]
  1125. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1126. --libexecdir=DIR program executables [EPREFIX/libexec]
  1127. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1128. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1129. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1130. --libdir=DIR object code libraries [EPREFIX/lib]
  1131. --includedir=DIR C header files [PREFIX/include]
  1132. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1133. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1134. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1135. --infodir=DIR info documentation [DATAROOTDIR/info]
  1136. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1137. --mandir=DIR man documentation [DATAROOTDIR/man]
  1138. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1139. --htmldir=DIR html documentation [DOCDIR]
  1140. --dvidir=DIR dvi documentation [DOCDIR]
  1141. --pdfdir=DIR pdf documentation [DOCDIR]
  1142. --psdir=DIR ps documentation [DOCDIR]
  1143. _ACEOF
  1144. cat <<\_ACEOF
  1145. _ACEOF
  1146. fi
  1147. if test -n "$ac_init_help"; then
  1148. cat <<\_ACEOF
  1149. Optional Features:
  1150. --disable-option-checking ignore unrecognized --enable/--with options
  1151. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1152. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1153. --enable-gcc-warnings Enable verbose warnings (only for gcc)
  1154. Optional Packages:
  1155. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1156. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1157. --with-cflags Specify additional compiler flags
  1158. --with-cppflags Specify additional preprocessor flags
  1159. --with-ldflags Specify additional linker flags
  1160. --with-libs Specify additional libraries to link with
  1161. --with-chrootdir Specify chroot directory
  1162. Some influential environment variables:
  1163. CC C compiler command
  1164. CFLAGS C compiler flags
  1165. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1166. nonstandard directory <lib dir>
  1167. LIBS libraries to pass to the linker, e.g. -l<library>
  1168. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1169. you have headers in a nonstandard directory <include dir>
  1170. CPP C preprocessor
  1171. Use these variables to override the choices made by `configure' or to help
  1172. it to find libraries and programs with nonstandard names/locations.
  1173. Report bugs to the package provider.
  1174. _ACEOF
  1175. ac_status=$?
  1176. fi
  1177. if test "$ac_init_help" = "recursive"; then
  1178. # If there are subdirs, report their specific --help.
  1179. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1180. test -d "$ac_dir" ||
  1181. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1182. continue
  1183. ac_builddir=.
  1184. case "$ac_dir" in
  1185. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1186. *)
  1187. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1188. # A ".." for each directory in $ac_dir_suffix.
  1189. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1190. case $ac_top_builddir_sub in
  1191. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1192. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1193. esac ;;
  1194. esac
  1195. ac_abs_top_builddir=$ac_pwd
  1196. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1197. # for backward compatibility:
  1198. ac_top_builddir=$ac_top_build_prefix
  1199. case $srcdir in
  1200. .) # We are building in place.
  1201. ac_srcdir=.
  1202. ac_top_srcdir=$ac_top_builddir_sub
  1203. ac_abs_top_srcdir=$ac_pwd ;;
  1204. [\\/]* | ?:[\\/]* ) # Absolute name.
  1205. ac_srcdir=$srcdir$ac_dir_suffix;
  1206. ac_top_srcdir=$srcdir
  1207. ac_abs_top_srcdir=$srcdir ;;
  1208. *) # Relative name.
  1209. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1210. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1211. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1212. esac
  1213. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1214. cd "$ac_dir" || { ac_status=$?; continue; }
  1215. # Check for guested configure.
  1216. if test -f "$ac_srcdir/configure.gnu"; then
  1217. echo &&
  1218. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1219. elif test -f "$ac_srcdir/configure"; then
  1220. echo &&
  1221. $SHELL "$ac_srcdir/configure" --help=recursive
  1222. else
  1223. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1224. fi || ac_status=$?
  1225. cd "$ac_pwd" || { ac_status=$?; break; }
  1226. done
  1227. fi
  1228. test -n "$ac_init_help" && exit $ac_status
  1229. if $ac_init_version; then
  1230. cat <<\_ACEOF
  1231. configure
  1232. generated by GNU Autoconf 2.68
  1233. Copyright (C) 2010 Free Software Foundation, Inc.
  1234. This configure script is free software; the Free Software Foundation
  1235. gives unlimited permission to copy, distribute and modify it.
  1236. _ACEOF
  1237. exit
  1238. fi
  1239. ## ------------------------ ##
  1240. ## Autoconf initialization. ##
  1241. ## ------------------------ ##
  1242. # ac_fn_c_try_compile LINENO
  1243. # --------------------------
  1244. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1245. ac_fn_c_try_compile ()
  1246. {
  1247. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1248. rm -f conftest.$ac_objext
  1249. if { { ac_try="$ac_compile"
  1250. case "(($ac_try" in
  1251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1252. *) ac_try_echo=$ac_try;;
  1253. esac
  1254. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1255. $as_echo "$ac_try_echo"; } >&5
  1256. (eval "$ac_compile") 2>conftest.err
  1257. ac_status=$?
  1258. if test -s conftest.err; then
  1259. grep -v '^ *+' conftest.err >conftest.er1
  1260. cat conftest.er1 >&5
  1261. mv -f conftest.er1 conftest.err
  1262. fi
  1263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1264. test $ac_status = 0; } && {
  1265. test -z "$ac_c_werror_flag" ||
  1266. test ! -s conftest.err
  1267. } && test -s conftest.$ac_objext; then :
  1268. ac_retval=0
  1269. else
  1270. $as_echo "$as_me: failed program was:" >&5
  1271. sed 's/^/| /' conftest.$ac_ext >&5
  1272. ac_retval=1
  1273. fi
  1274. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1275. as_fn_set_status $ac_retval
  1276. } # ac_fn_c_try_compile
  1277. # ac_fn_c_try_cpp LINENO
  1278. # ----------------------
  1279. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1280. ac_fn_c_try_cpp ()
  1281. {
  1282. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1283. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1284. case "(($ac_try" in
  1285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1286. *) ac_try_echo=$ac_try;;
  1287. esac
  1288. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1289. $as_echo "$ac_try_echo"; } >&5
  1290. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1291. ac_status=$?
  1292. if test -s conftest.err; then
  1293. grep -v '^ *+' conftest.err >conftest.er1
  1294. cat conftest.er1 >&5
  1295. mv -f conftest.er1 conftest.err
  1296. fi
  1297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1298. test $ac_status = 0; } > conftest.i && {
  1299. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1300. test ! -s conftest.err
  1301. }; then :
  1302. ac_retval=0
  1303. else
  1304. $as_echo "$as_me: failed program was:" >&5
  1305. sed 's/^/| /' conftest.$ac_ext >&5
  1306. ac_retval=1
  1307. fi
  1308. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1309. as_fn_set_status $ac_retval
  1310. } # ac_fn_c_try_cpp
  1311. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1312. # -------------------------------------------------------
  1313. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1314. # the include files in INCLUDES and setting the cache variable VAR
  1315. # accordingly.
  1316. ac_fn_c_check_header_mongrel ()
  1317. {
  1318. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1319. if eval \${$3+:} false; then :
  1320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1321. $as_echo_n "checking for $2... " >&6; }
  1322. if eval \${$3+:} false; then :
  1323. $as_echo_n "(cached) " >&6
  1324. fi
  1325. eval ac_res=\$$3
  1326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1327. $as_echo "$ac_res" >&6; }
  1328. else
  1329. # Is the header compilable?
  1330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1331. $as_echo_n "checking $2 usability... " >&6; }
  1332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1333. /* end confdefs.h. */
  1334. $4
  1335. #include <$2>
  1336. _ACEOF
  1337. if ac_fn_c_try_compile "$LINENO"; then :
  1338. ac_header_compiler=yes
  1339. else
  1340. ac_header_compiler=no
  1341. fi
  1342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1344. $as_echo "$ac_header_compiler" >&6; }
  1345. # Is the header present?
  1346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1347. $as_echo_n "checking $2 presence... " >&6; }
  1348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1349. /* end confdefs.h. */
  1350. #include <$2>
  1351. _ACEOF
  1352. if ac_fn_c_try_cpp "$LINENO"; then :
  1353. ac_header_preproc=yes
  1354. else
  1355. ac_header_preproc=no
  1356. fi
  1357. rm -f conftest.err conftest.i conftest.$ac_ext
  1358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1359. $as_echo "$ac_header_preproc" >&6; }
  1360. # So? What about this header?
  1361. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1362. yes:no: )
  1363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1364. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1366. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1367. ;;
  1368. no:yes:* )
  1369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1370. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1372. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1374. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1376. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1378. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1379. ;;
  1380. esac
  1381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1382. $as_echo_n "checking for $2... " >&6; }
  1383. if eval \${$3+:} false; then :
  1384. $as_echo_n "(cached) " >&6
  1385. else
  1386. eval "$3=\$ac_header_compiler"
  1387. fi
  1388. eval ac_res=\$$3
  1389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1390. $as_echo "$ac_res" >&6; }
  1391. fi
  1392. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1393. } # ac_fn_c_check_header_mongrel
  1394. # ac_fn_c_try_run LINENO
  1395. # ----------------------
  1396. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1397. # that executables *can* be run.
  1398. ac_fn_c_try_run ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. if { { ac_try="$ac_link"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_link") 2>&5
  1409. ac_status=$?
  1410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1411. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1412. { { case "(($ac_try" in
  1413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1414. *) ac_try_echo=$ac_try;;
  1415. esac
  1416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1417. $as_echo "$ac_try_echo"; } >&5
  1418. (eval "$ac_try") 2>&5
  1419. ac_status=$?
  1420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1421. test $ac_status = 0; }; }; then :
  1422. ac_retval=0
  1423. else
  1424. $as_echo "$as_me: program exited with status $ac_status" >&5
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=$ac_status
  1428. fi
  1429. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } # ac_fn_c_try_run
  1433. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1434. # -------------------------------------------------------
  1435. # Tests whether HEADER exists and can be compiled using the include files in
  1436. # INCLUDES, setting the cache variable VAR accordingly.
  1437. ac_fn_c_check_header_compile ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1441. $as_echo_n "checking for $2... " >&6; }
  1442. if eval \${$3+:} false; then :
  1443. $as_echo_n "(cached) " >&6
  1444. else
  1445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1446. /* end confdefs.h. */
  1447. $4
  1448. #include <$2>
  1449. _ACEOF
  1450. if ac_fn_c_try_compile "$LINENO"; then :
  1451. eval "$3=yes"
  1452. else
  1453. eval "$3=no"
  1454. fi
  1455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1456. fi
  1457. eval ac_res=\$$3
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1459. $as_echo "$ac_res" >&6; }
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. } # ac_fn_c_check_header_compile
  1462. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1463. # ----------------------------------------------------
  1464. # Tries to find if the field MEMBER exists in type AGGR, after including
  1465. # INCLUDES, setting cache variable VAR accordingly.
  1466. ac_fn_c_check_member ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1470. $as_echo_n "checking for $2.$3... " >&6; }
  1471. if eval \${$4+:} false; then :
  1472. $as_echo_n "(cached) " >&6
  1473. else
  1474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1475. /* end confdefs.h. */
  1476. $5
  1477. int
  1478. main ()
  1479. {
  1480. static $2 ac_aggr;
  1481. if (ac_aggr.$3)
  1482. return 0;
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. if ac_fn_c_try_compile "$LINENO"; then :
  1488. eval "$4=yes"
  1489. else
  1490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1491. /* end confdefs.h. */
  1492. $5
  1493. int
  1494. main ()
  1495. {
  1496. static $2 ac_aggr;
  1497. if (sizeof ac_aggr.$3)
  1498. return 0;
  1499. ;
  1500. return 0;
  1501. }
  1502. _ACEOF
  1503. if ac_fn_c_try_compile "$LINENO"; then :
  1504. eval "$4=yes"
  1505. else
  1506. eval "$4=no"
  1507. fi
  1508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1509. fi
  1510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1511. fi
  1512. eval ac_res=\$$4
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1514. $as_echo "$ac_res" >&6; }
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. } # ac_fn_c_check_member
  1517. # ac_fn_c_try_link LINENO
  1518. # -----------------------
  1519. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1520. ac_fn_c_try_link ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. rm -f conftest.$ac_objext conftest$ac_exeext
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } && {
  1540. test -z "$ac_c_werror_flag" ||
  1541. test ! -s conftest.err
  1542. } && test -s conftest$ac_exeext && {
  1543. test "$cross_compiling" = yes ||
  1544. $as_test_x conftest$ac_exeext
  1545. }; then :
  1546. ac_retval=0
  1547. else
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=1
  1551. fi
  1552. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1553. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1554. # interfere with the next link command; also delete a directory that is
  1555. # left behind by Apple's compiler. We do this before executing the actions.
  1556. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_link
  1560. # ac_fn_c_check_func LINENO FUNC VAR
  1561. # ----------------------------------
  1562. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1563. ac_fn_c_check_func ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1567. $as_echo_n "checking for $2... " >&6; }
  1568. if eval \${$3+:} false; then :
  1569. $as_echo_n "(cached) " >&6
  1570. else
  1571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1572. /* end confdefs.h. */
  1573. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1574. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1575. #define $2 innocuous_$2
  1576. /* System header to define __stub macros and hopefully few prototypes,
  1577. which can conflict with char $2 (); below.
  1578. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1579. <limits.h> exists even on freestanding compilers. */
  1580. #ifdef __STDC__
  1581. # include <limits.h>
  1582. #else
  1583. # include <assert.h>
  1584. #endif
  1585. #undef $2
  1586. /* Override any GCC internal prototype to avoid an error.
  1587. Use char because int might match the return type of a GCC
  1588. builtin and then its argument prototype would still apply. */
  1589. #ifdef __cplusplus
  1590. extern "C"
  1591. #endif
  1592. char $2 ();
  1593. /* The GNU C library defines this for functions which it implements
  1594. to always fail with ENOSYS. Some functions are actually named
  1595. something starting with __ and the normal name is an alias. */
  1596. #if defined __stub_$2 || defined __stub___$2
  1597. choke me
  1598. #endif
  1599. int
  1600. main ()
  1601. {
  1602. return $2 ();
  1603. ;
  1604. return 0;
  1605. }
  1606. _ACEOF
  1607. if ac_fn_c_try_link "$LINENO"; then :
  1608. eval "$3=yes"
  1609. else
  1610. eval "$3=no"
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext \
  1613. conftest$ac_exeext conftest.$ac_ext
  1614. fi
  1615. eval ac_res=\$$3
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1617. $as_echo "$ac_res" >&6; }
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. } # ac_fn_c_check_func
  1620. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1621. # -------------------------------------------
  1622. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1623. # variable VAR accordingly.
  1624. ac_fn_c_check_type ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. eval "$3=no"
  1633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end confdefs.h. */
  1635. $4
  1636. int
  1637. main ()
  1638. {
  1639. if (sizeof ($2))
  1640. return 0;
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_c_try_compile "$LINENO"; then :
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. int
  1650. main ()
  1651. {
  1652. if (sizeof (($2)))
  1653. return 0;
  1654. ;
  1655. return 0;
  1656. }
  1657. _ACEOF
  1658. if ac_fn_c_try_compile "$LINENO"; then :
  1659. else
  1660. eval "$3=yes"
  1661. fi
  1662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. fi
  1666. eval ac_res=\$$3
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1668. $as_echo "$ac_res" >&6; }
  1669. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1670. } # ac_fn_c_check_type
  1671. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1672. # --------------------------------------------
  1673. # Tries to find the compile-time value of EXPR in a program that includes
  1674. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1675. # computed
  1676. ac_fn_c_compute_int ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. if test "$cross_compiling" = yes; then
  1680. # Depending upon the size, compute the lo and hi bounds.
  1681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1682. /* end confdefs.h. */
  1683. $4
  1684. int
  1685. main ()
  1686. {
  1687. static int test_array [1 - 2 * !(($2) >= 0)];
  1688. test_array [0] = 0
  1689. ;
  1690. return 0;
  1691. }
  1692. _ACEOF
  1693. if ac_fn_c_try_compile "$LINENO"; then :
  1694. ac_lo=0 ac_mid=0
  1695. while :; do
  1696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1697. /* end confdefs.h. */
  1698. $4
  1699. int
  1700. main ()
  1701. {
  1702. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1703. test_array [0] = 0
  1704. ;
  1705. return 0;
  1706. }
  1707. _ACEOF
  1708. if ac_fn_c_try_compile "$LINENO"; then :
  1709. ac_hi=$ac_mid; break
  1710. else
  1711. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1712. if test $ac_lo -le $ac_mid; then
  1713. ac_lo= ac_hi=
  1714. break
  1715. fi
  1716. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1717. fi
  1718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1719. done
  1720. else
  1721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1722. /* end confdefs.h. */
  1723. $4
  1724. int
  1725. main ()
  1726. {
  1727. static int test_array [1 - 2 * !(($2) < 0)];
  1728. test_array [0] = 0
  1729. ;
  1730. return 0;
  1731. }
  1732. _ACEOF
  1733. if ac_fn_c_try_compile "$LINENO"; then :
  1734. ac_hi=-1 ac_mid=-1
  1735. while :; do
  1736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1737. /* end confdefs.h. */
  1738. $4
  1739. int
  1740. main ()
  1741. {
  1742. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1743. test_array [0] = 0
  1744. ;
  1745. return 0;
  1746. }
  1747. _ACEOF
  1748. if ac_fn_c_try_compile "$LINENO"; then :
  1749. ac_lo=$ac_mid; break
  1750. else
  1751. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1752. if test $ac_mid -le $ac_hi; then
  1753. ac_lo= ac_hi=
  1754. break
  1755. fi
  1756. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1757. fi
  1758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. done
  1760. else
  1761. ac_lo= ac_hi=
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. # Binary search between lo and hi bounds.
  1767. while test "x$ac_lo" != "x$ac_hi"; do
  1768. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1770. /* end confdefs.h. */
  1771. $4
  1772. int
  1773. main ()
  1774. {
  1775. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1776. test_array [0] = 0
  1777. ;
  1778. return 0;
  1779. }
  1780. _ACEOF
  1781. if ac_fn_c_try_compile "$LINENO"; then :
  1782. ac_hi=$ac_mid
  1783. else
  1784. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1785. fi
  1786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1787. done
  1788. case $ac_lo in #((
  1789. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1790. '') ac_retval=1 ;;
  1791. esac
  1792. else
  1793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1794. /* end confdefs.h. */
  1795. $4
  1796. static long int longval () { return $2; }
  1797. static unsigned long int ulongval () { return $2; }
  1798. #include <stdio.h>
  1799. #include <stdlib.h>
  1800. int
  1801. main ()
  1802. {
  1803. FILE *f = fopen ("conftest.val", "w");
  1804. if (! f)
  1805. return 1;
  1806. if (($2) < 0)
  1807. {
  1808. long int i = longval ();
  1809. if (i != ($2))
  1810. return 1;
  1811. fprintf (f, "%ld", i);
  1812. }
  1813. else
  1814. {
  1815. unsigned long int i = ulongval ();
  1816. if (i != ($2))
  1817. return 1;
  1818. fprintf (f, "%lu", i);
  1819. }
  1820. /* Do not output a trailing newline, as this causes \r\n confusion
  1821. on some platforms. */
  1822. return ferror (f) || fclose (f) != 0;
  1823. ;
  1824. return 0;
  1825. }
  1826. _ACEOF
  1827. if ac_fn_c_try_run "$LINENO"; then :
  1828. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1829. else
  1830. ac_retval=1
  1831. fi
  1832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1833. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1834. rm -f conftest.val
  1835. fi
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. as_fn_set_status $ac_retval
  1838. } # ac_fn_c_compute_int
  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 $as_me, which was
  1843. generated by GNU Autoconf 2.68. 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. ac_config_headers="$ac_config_headers config.h"
  2156. ac_ext=c
  2157. ac_cpp='$CPP $CPPFLAGS'
  2158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2161. if test -n "$ac_tool_prefix"; then
  2162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2165. $as_echo_n "checking for $ac_word... " >&6; }
  2166. if ${ac_cv_prog_CC+:} false; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. if test -n "$CC"; then
  2170. ac_cv_prog_CC="$CC" # Let the user override the test.
  2171. else
  2172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2173. for as_dir in $PATH
  2174. do
  2175. IFS=$as_save_IFS
  2176. test -z "$as_dir" && as_dir=.
  2177. for ac_exec_ext in '' $ac_executable_extensions; do
  2178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2181. break 2
  2182. fi
  2183. done
  2184. done
  2185. IFS=$as_save_IFS
  2186. fi
  2187. fi
  2188. CC=$ac_cv_prog_CC
  2189. if test -n "$CC"; then
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2191. $as_echo "$CC" >&6; }
  2192. else
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2194. $as_echo "no" >&6; }
  2195. fi
  2196. fi
  2197. if test -z "$ac_cv_prog_CC"; then
  2198. ac_ct_CC=$CC
  2199. # Extract the first word of "gcc", so it can be a program name with args.
  2200. set dummy gcc; ac_word=$2
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2202. $as_echo_n "checking for $ac_word... " >&6; }
  2203. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. if test -n "$ac_ct_CC"; then
  2207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2208. else
  2209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2210. for as_dir in $PATH
  2211. do
  2212. IFS=$as_save_IFS
  2213. test -z "$as_dir" && as_dir=.
  2214. for ac_exec_ext in '' $ac_executable_extensions; do
  2215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2216. ac_cv_prog_ac_ct_CC="gcc"
  2217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2218. break 2
  2219. fi
  2220. done
  2221. done
  2222. IFS=$as_save_IFS
  2223. fi
  2224. fi
  2225. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2226. if test -n "$ac_ct_CC"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2228. $as_echo "$ac_ct_CC" >&6; }
  2229. else
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2231. $as_echo "no" >&6; }
  2232. fi
  2233. if test "x$ac_ct_CC" = x; then
  2234. CC=""
  2235. else
  2236. case $cross_compiling:$ac_tool_warned in
  2237. yes:)
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2239. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2240. ac_tool_warned=yes ;;
  2241. esac
  2242. CC=$ac_ct_CC
  2243. fi
  2244. else
  2245. CC="$ac_cv_prog_CC"
  2246. fi
  2247. if test -z "$CC"; then
  2248. if test -n "$ac_tool_prefix"; then
  2249. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2250. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2252. $as_echo_n "checking for $ac_word... " >&6; }
  2253. if ${ac_cv_prog_CC+:} false; then :
  2254. $as_echo_n "(cached) " >&6
  2255. else
  2256. if test -n "$CC"; then
  2257. ac_cv_prog_CC="$CC" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2266. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. CC=$ac_cv_prog_CC
  2276. if test -n "$CC"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2278. $as_echo "$CC" >&6; }
  2279. else
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2281. $as_echo "no" >&6; }
  2282. fi
  2283. fi
  2284. fi
  2285. if test -z "$CC"; then
  2286. # Extract the first word of "cc", so it can be a program name with args.
  2287. set dummy cc; ac_word=$2
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2289. $as_echo_n "checking for $ac_word... " >&6; }
  2290. if ${ac_cv_prog_CC+:} false; then :
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. if test -n "$CC"; then
  2294. ac_cv_prog_CC="$CC" # Let the user override the test.
  2295. else
  2296. ac_prog_rejected=no
  2297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2298. for as_dir in $PATH
  2299. do
  2300. IFS=$as_save_IFS
  2301. test -z "$as_dir" && as_dir=.
  2302. for ac_exec_ext in '' $ac_executable_extensions; do
  2303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2304. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2305. ac_prog_rejected=yes
  2306. continue
  2307. fi
  2308. ac_cv_prog_CC="cc"
  2309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2310. break 2
  2311. fi
  2312. done
  2313. done
  2314. IFS=$as_save_IFS
  2315. if test $ac_prog_rejected = yes; then
  2316. # We found a bogon in the path, so make sure we never use it.
  2317. set dummy $ac_cv_prog_CC
  2318. shift
  2319. if test $# != 0; then
  2320. # We chose a different compiler from the bogus one.
  2321. # However, it has the same basename, so the bogon will be chosen
  2322. # first if we set CC to just the basename; use the full file name.
  2323. shift
  2324. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2325. fi
  2326. fi
  2327. fi
  2328. fi
  2329. CC=$ac_cv_prog_CC
  2330. if test -n "$CC"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2332. $as_echo "$CC" >&6; }
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2335. $as_echo "no" >&6; }
  2336. fi
  2337. fi
  2338. if test -z "$CC"; then
  2339. if test -n "$ac_tool_prefix"; then
  2340. for ac_prog in cl.exe
  2341. do
  2342. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2343. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2345. $as_echo_n "checking for $ac_word... " >&6; }
  2346. if ${ac_cv_prog_CC+:} false; then :
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. if test -n "$CC"; then
  2350. ac_cv_prog_CC="$CC" # Let the user override the test.
  2351. else
  2352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2353. for as_dir in $PATH
  2354. do
  2355. IFS=$as_save_IFS
  2356. test -z "$as_dir" && as_dir=.
  2357. for ac_exec_ext in '' $ac_executable_extensions; do
  2358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2359. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2361. break 2
  2362. fi
  2363. done
  2364. done
  2365. IFS=$as_save_IFS
  2366. fi
  2367. fi
  2368. CC=$ac_cv_prog_CC
  2369. if test -n "$CC"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2371. $as_echo "$CC" >&6; }
  2372. else
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2374. $as_echo "no" >&6; }
  2375. fi
  2376. test -n "$CC" && break
  2377. done
  2378. fi
  2379. if test -z "$CC"; then
  2380. ac_ct_CC=$CC
  2381. for ac_prog in cl.exe
  2382. do
  2383. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2384. set dummy $ac_prog; ac_word=$2
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2386. $as_echo_n "checking for $ac_word... " >&6; }
  2387. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. if test -n "$ac_ct_CC"; then
  2391. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2392. else
  2393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2394. for as_dir in $PATH
  2395. do
  2396. IFS=$as_save_IFS
  2397. test -z "$as_dir" && as_dir=.
  2398. for ac_exec_ext in '' $ac_executable_extensions; do
  2399. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2400. ac_cv_prog_ac_ct_CC="$ac_prog"
  2401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2402. break 2
  2403. fi
  2404. done
  2405. done
  2406. IFS=$as_save_IFS
  2407. fi
  2408. fi
  2409. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2410. if test -n "$ac_ct_CC"; then
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2412. $as_echo "$ac_ct_CC" >&6; }
  2413. else
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2415. $as_echo "no" >&6; }
  2416. fi
  2417. test -n "$ac_ct_CC" && break
  2418. done
  2419. if test "x$ac_ct_CC" = x; then
  2420. CC=""
  2421. else
  2422. case $cross_compiling:$ac_tool_warned in
  2423. yes:)
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2425. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2426. ac_tool_warned=yes ;;
  2427. esac
  2428. CC=$ac_ct_CC
  2429. fi
  2430. fi
  2431. fi
  2432. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2433. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2434. as_fn_error $? "no acceptable C compiler found in \$PATH
  2435. See \`config.log' for more details" "$LINENO" 5; }
  2436. # Provide some information about the compiler.
  2437. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2438. set X $ac_compile
  2439. ac_compiler=$2
  2440. for ac_option in --version -v -V -qversion; do
  2441. { { ac_try="$ac_compiler $ac_option >&5"
  2442. case "(($ac_try" in
  2443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2444. *) ac_try_echo=$ac_try;;
  2445. esac
  2446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2447. $as_echo "$ac_try_echo"; } >&5
  2448. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2449. ac_status=$?
  2450. if test -s conftest.err; then
  2451. sed '10a\
  2452. ... rest of stderr output deleted ...
  2453. 10q' conftest.err >conftest.er1
  2454. cat conftest.er1 >&5
  2455. fi
  2456. rm -f conftest.er1 conftest.err
  2457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2458. test $ac_status = 0; }
  2459. done
  2460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2461. /* end confdefs.h. */
  2462. int
  2463. main ()
  2464. {
  2465. ;
  2466. return 0;
  2467. }
  2468. _ACEOF
  2469. ac_clean_files_save=$ac_clean_files
  2470. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2471. # Try to create an executable without -o first, disregard a.out.
  2472. # It will help us diagnose broken compilers, and finding out an intuition
  2473. # of exeext.
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2475. $as_echo_n "checking whether the C compiler works... " >&6; }
  2476. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2477. # The possible output files:
  2478. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2479. ac_rmfiles=
  2480. for ac_file in $ac_files
  2481. do
  2482. case $ac_file in
  2483. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2484. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2485. esac
  2486. done
  2487. rm -f $ac_rmfiles
  2488. if { { ac_try="$ac_link_default"
  2489. case "(($ac_try" in
  2490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2491. *) ac_try_echo=$ac_try;;
  2492. esac
  2493. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2494. $as_echo "$ac_try_echo"; } >&5
  2495. (eval "$ac_link_default") 2>&5
  2496. ac_status=$?
  2497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2498. test $ac_status = 0; }; then :
  2499. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2500. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2501. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2502. # so that the user can short-circuit this test for compilers unknown to
  2503. # Autoconf.
  2504. for ac_file in $ac_files ''
  2505. do
  2506. test -f "$ac_file" || continue
  2507. case $ac_file in
  2508. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2509. ;;
  2510. [ab].out )
  2511. # We found the default executable, but exeext='' is most
  2512. # certainly right.
  2513. break;;
  2514. *.* )
  2515. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2516. then :; else
  2517. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2518. fi
  2519. # We set ac_cv_exeext here because the later test for it is not
  2520. # safe: cross compilers may not add the suffix if given an `-o'
  2521. # argument, so we may need to know it at that point already.
  2522. # Even if this section looks crufty: it has the advantage of
  2523. # actually working.
  2524. break;;
  2525. * )
  2526. break;;
  2527. esac
  2528. done
  2529. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2530. else
  2531. ac_file=''
  2532. fi
  2533. if test -z "$ac_file"; then :
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2535. $as_echo "no" >&6; }
  2536. $as_echo "$as_me: failed program was:" >&5
  2537. sed 's/^/| /' conftest.$ac_ext >&5
  2538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2540. as_fn_error 77 "C compiler cannot create executables
  2541. See \`config.log' for more details" "$LINENO" 5; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2544. $as_echo "yes" >&6; }
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2547. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2549. $as_echo "$ac_file" >&6; }
  2550. ac_exeext=$ac_cv_exeext
  2551. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2552. ac_clean_files=$ac_clean_files_save
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2554. $as_echo_n "checking for suffix of executables... " >&6; }
  2555. if { { ac_try="$ac_link"
  2556. case "(($ac_try" in
  2557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2558. *) ac_try_echo=$ac_try;;
  2559. esac
  2560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2561. $as_echo "$ac_try_echo"; } >&5
  2562. (eval "$ac_link") 2>&5
  2563. ac_status=$?
  2564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2565. test $ac_status = 0; }; then :
  2566. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2567. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2568. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2569. # `rm'.
  2570. for ac_file in conftest.exe conftest conftest.*; do
  2571. test -f "$ac_file" || continue
  2572. case $ac_file in
  2573. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2574. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2575. break;;
  2576. * ) break;;
  2577. esac
  2578. done
  2579. else
  2580. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2581. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2582. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2583. See \`config.log' for more details" "$LINENO" 5; }
  2584. fi
  2585. rm -f conftest conftest$ac_cv_exeext
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2587. $as_echo "$ac_cv_exeext" >&6; }
  2588. rm -f conftest.$ac_ext
  2589. EXEEXT=$ac_cv_exeext
  2590. ac_exeext=$EXEEXT
  2591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end confdefs.h. */
  2593. #include <stdio.h>
  2594. int
  2595. main ()
  2596. {
  2597. FILE *f = fopen ("conftest.out", "w");
  2598. return ferror (f) || fclose (f) != 0;
  2599. ;
  2600. return 0;
  2601. }
  2602. _ACEOF
  2603. ac_clean_files="$ac_clean_files conftest.out"
  2604. # Check that the compiler produces executables we can run. If not, either
  2605. # the compiler is broken, or we cross compile.
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2607. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2608. if test "$cross_compiling" != yes; then
  2609. { { ac_try="$ac_link"
  2610. case "(($ac_try" in
  2611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2612. *) ac_try_echo=$ac_try;;
  2613. esac
  2614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2615. $as_echo "$ac_try_echo"; } >&5
  2616. (eval "$ac_link") 2>&5
  2617. ac_status=$?
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2619. test $ac_status = 0; }
  2620. if { ac_try='./conftest$ac_cv_exeext'
  2621. { { case "(($ac_try" in
  2622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2623. *) ac_try_echo=$ac_try;;
  2624. esac
  2625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2626. $as_echo "$ac_try_echo"; } >&5
  2627. (eval "$ac_try") 2>&5
  2628. ac_status=$?
  2629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2630. test $ac_status = 0; }; }; then
  2631. cross_compiling=no
  2632. else
  2633. if test "$cross_compiling" = maybe; then
  2634. cross_compiling=yes
  2635. else
  2636. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2638. as_fn_error $? "cannot run C compiled programs.
  2639. If you meant to cross compile, use \`--host'.
  2640. See \`config.log' for more details" "$LINENO" 5; }
  2641. fi
  2642. fi
  2643. fi
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2645. $as_echo "$cross_compiling" >&6; }
  2646. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2647. ac_clean_files=$ac_clean_files_save
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2649. $as_echo_n "checking for suffix of object files... " >&6; }
  2650. if ${ac_cv_objext+:} false; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2654. /* end confdefs.h. */
  2655. int
  2656. main ()
  2657. {
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. rm -f conftest.o conftest.obj
  2663. if { { ac_try="$ac_compile"
  2664. case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2669. $as_echo "$ac_try_echo"; } >&5
  2670. (eval "$ac_compile") 2>&5
  2671. ac_status=$?
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2673. test $ac_status = 0; }; then :
  2674. for ac_file in conftest.o conftest.obj conftest.*; do
  2675. test -f "$ac_file" || continue;
  2676. case $ac_file in
  2677. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2678. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2679. break;;
  2680. esac
  2681. done
  2682. else
  2683. $as_echo "$as_me: failed program was:" >&5
  2684. sed 's/^/| /' conftest.$ac_ext >&5
  2685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2687. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2688. See \`config.log' for more details" "$LINENO" 5; }
  2689. fi
  2690. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2693. $as_echo "$ac_cv_objext" >&6; }
  2694. OBJEXT=$ac_cv_objext
  2695. ac_objext=$OBJEXT
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2697. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2698. if ${ac_cv_c_compiler_gnu+:} false; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2702. /* end confdefs.h. */
  2703. int
  2704. main ()
  2705. {
  2706. #ifndef __GNUC__
  2707. choke me
  2708. #endif
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. if ac_fn_c_try_compile "$LINENO"; then :
  2714. ac_compiler_gnu=yes
  2715. else
  2716. ac_compiler_gnu=no
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2722. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2723. if test $ac_compiler_gnu = yes; then
  2724. GCC=yes
  2725. else
  2726. GCC=
  2727. fi
  2728. ac_test_CFLAGS=${CFLAGS+set}
  2729. ac_save_CFLAGS=$CFLAGS
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2731. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2732. if ${ac_cv_prog_cc_g+:} false; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. ac_save_c_werror_flag=$ac_c_werror_flag
  2736. ac_c_werror_flag=yes
  2737. ac_cv_prog_cc_g=no
  2738. CFLAGS="-g"
  2739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. if ac_fn_c_try_compile "$LINENO"; then :
  2749. ac_cv_prog_cc_g=yes
  2750. else
  2751. CFLAGS=""
  2752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2753. /* end confdefs.h. */
  2754. int
  2755. main ()
  2756. {
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. if ac_fn_c_try_compile "$LINENO"; then :
  2762. else
  2763. ac_c_werror_flag=$ac_save_c_werror_flag
  2764. CFLAGS="-g"
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. if ac_fn_c_try_compile "$LINENO"; then :
  2775. ac_cv_prog_cc_g=yes
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. fi
  2779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2780. fi
  2781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2782. ac_c_werror_flag=$ac_save_c_werror_flag
  2783. fi
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2785. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2786. if test "$ac_test_CFLAGS" = set; then
  2787. CFLAGS=$ac_save_CFLAGS
  2788. elif test $ac_cv_prog_cc_g = yes; then
  2789. if test "$GCC" = yes; then
  2790. CFLAGS="-g -O2"
  2791. else
  2792. CFLAGS="-g"
  2793. fi
  2794. else
  2795. if test "$GCC" = yes; then
  2796. CFLAGS="-O2"
  2797. else
  2798. CFLAGS=
  2799. fi
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2802. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2803. if ${ac_cv_prog_cc_c89+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. ac_cv_prog_cc_c89=no
  2807. ac_save_CC=$CC
  2808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2809. /* end confdefs.h. */
  2810. #include <stdarg.h>
  2811. #include <stdio.h>
  2812. #include <sys/types.h>
  2813. #include <sys/stat.h>
  2814. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2815. struct buf { int x; };
  2816. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2817. static char *e (p, i)
  2818. char **p;
  2819. int i;
  2820. {
  2821. return p[i];
  2822. }
  2823. static char *f (char * (*g) (char **, int), char **p, ...)
  2824. {
  2825. char *s;
  2826. va_list v;
  2827. va_start (v,p);
  2828. s = g (p, va_arg (v,int));
  2829. va_end (v);
  2830. return s;
  2831. }
  2832. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2833. function prototypes and stuff, but not '\xHH' hex character constants.
  2834. These don't provoke an error unfortunately, instead are silently treated
  2835. as 'x'. The following induces an error, until -std is added to get
  2836. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2837. array size at least. It's necessary to write '\x00'==0 to get something
  2838. that's true only with -std. */
  2839. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2840. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2841. inside strings and character constants. */
  2842. #define FOO(x) 'x'
  2843. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2844. int test (int i, double x);
  2845. struct s1 {int (*f) (int a);};
  2846. struct s2 {int (*f) (double a);};
  2847. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2848. int argc;
  2849. char **argv;
  2850. int
  2851. main ()
  2852. {
  2853. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2859. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2860. do
  2861. CC="$ac_save_CC $ac_arg"
  2862. if ac_fn_c_try_compile "$LINENO"; then :
  2863. ac_cv_prog_cc_c89=$ac_arg
  2864. fi
  2865. rm -f core conftest.err conftest.$ac_objext
  2866. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2867. done
  2868. rm -f conftest.$ac_ext
  2869. CC=$ac_save_CC
  2870. fi
  2871. # AC_CACHE_VAL
  2872. case "x$ac_cv_prog_cc_c89" in
  2873. x)
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2875. $as_echo "none needed" >&6; } ;;
  2876. xno)
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2878. $as_echo "unsupported" >&6; } ;;
  2879. *)
  2880. CC="$CC $ac_cv_prog_cc_c89"
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2882. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2883. esac
  2884. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2885. fi
  2886. ac_ext=c
  2887. ac_cpp='$CPP $CPPFLAGS'
  2888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2891. ac_aux_dir=
  2892. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2893. if test -f "$ac_dir/install-sh"; then
  2894. ac_aux_dir=$ac_dir
  2895. ac_install_sh="$ac_aux_dir/install-sh -c"
  2896. break
  2897. elif test -f "$ac_dir/install.sh"; then
  2898. ac_aux_dir=$ac_dir
  2899. ac_install_sh="$ac_aux_dir/install.sh -c"
  2900. break
  2901. elif test -f "$ac_dir/shtool"; then
  2902. ac_aux_dir=$ac_dir
  2903. ac_install_sh="$ac_aux_dir/shtool install -c"
  2904. break
  2905. fi
  2906. done
  2907. if test -z "$ac_aux_dir"; then
  2908. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2909. fi
  2910. # These three variables are undocumented and unsupported,
  2911. # and are intended to be withdrawn in a future Autoconf release.
  2912. # They can cause serious problems if a builder's source tree is in a directory
  2913. # whose full name contains unusual characters.
  2914. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2915. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2916. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2917. # Find a good install program. We prefer a C program (faster),
  2918. # so one script is as good as another. But avoid the broken or
  2919. # incompatible versions:
  2920. # SysV /etc/install, /usr/sbin/install
  2921. # SunOS /usr/etc/install
  2922. # IRIX /sbin/install
  2923. # AIX /bin/install
  2924. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2925. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2926. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2927. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2928. # OS/2's system install, which has a completely different semantic
  2929. # ./install, which can be erroneously created by make from ./install.sh.
  2930. # Reject install programs that cannot install multiple files.
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2932. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2933. if test -z "$INSTALL"; then
  2934. if ${ac_cv_path_install+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2938. for as_dir in $PATH
  2939. do
  2940. IFS=$as_save_IFS
  2941. test -z "$as_dir" && as_dir=.
  2942. # Account for people who put trailing slashes in PATH elements.
  2943. case $as_dir/ in #((
  2944. ./ | .// | /[cC]/* | \
  2945. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2946. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2947. /usr/ucb/* ) ;;
  2948. *)
  2949. # OSF1 and SCO ODT 3.0 have their own names for install.
  2950. # Don't use installbsd from OSF since it installs stuff as root
  2951. # by default.
  2952. for ac_prog in ginstall scoinst install; do
  2953. for ac_exec_ext in '' $ac_executable_extensions; do
  2954. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2955. if test $ac_prog = install &&
  2956. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2957. # AIX install. It has an incompatible calling convention.
  2958. :
  2959. elif test $ac_prog = install &&
  2960. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2961. # program-specific install script used by HP pwplus--don't use.
  2962. :
  2963. else
  2964. rm -rf conftest.one conftest.two conftest.dir
  2965. echo one > conftest.one
  2966. echo two > conftest.two
  2967. mkdir conftest.dir
  2968. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2969. test -s conftest.one && test -s conftest.two &&
  2970. test -s conftest.dir/conftest.one &&
  2971. test -s conftest.dir/conftest.two
  2972. then
  2973. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2974. break 3
  2975. fi
  2976. fi
  2977. fi
  2978. done
  2979. done
  2980. ;;
  2981. esac
  2982. done
  2983. IFS=$as_save_IFS
  2984. rm -rf conftest.one conftest.two conftest.dir
  2985. fi
  2986. if test "${ac_cv_path_install+set}" = set; then
  2987. INSTALL=$ac_cv_path_install
  2988. else
  2989. # As a last resort, use the slow shell script. Don't cache a
  2990. # value for INSTALL within a source directory, because that will
  2991. # break other packages using the cache if that directory is
  2992. # removed, or if the value is a relative name.
  2993. INSTALL=$ac_install_sh
  2994. fi
  2995. fi
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2997. $as_echo "$INSTALL" >&6; }
  2998. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2999. # It thinks the first close brace ends the variable substitution.
  3000. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3001. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3002. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3003. # Optional verbose warnings for gcc, see below
  3004. WFLAGS="-Wall -Waggregate-return -Wcast-align -Wcast-qual"
  3005. WFLAGS="$WFLAGS -Wmissing-declarations -Wmissing-prototypes"
  3006. WFLAGS="$WFLAGS -Wno-conversion -Wpointer-arith -Wshadow"
  3007. WFLAGS="$WFLAGS -Wuninitialized -Wcast-align -Wcast-qual"
  3008. WFLAGS="$WFLAGS -Wformat=2 -Wformat-nonliteral -Wwrite-strings"
  3009. # Process flag arguments early, so they are available for tests later
  3010. # Check whether --enable-gcc-warnings was given.
  3011. if test "${enable_gcc_warnings+set}" = set; then :
  3012. enableval=$enable_gcc_warnings; if test "x$enableval" = "xyes" ; then CFLAGS="$CFLAGS $WFLAGS"; fi
  3013. fi
  3014. # Check whether --with-cflags was given.
  3015. if test "${with_cflags+set}" = set; then :
  3016. withval=$with_cflags; if test "x$withval" != "xno" ; then CFLAGS="$CFLAGS $withval"; fi
  3017. fi
  3018. # Check whether --with-cppflags was given.
  3019. if test "${with_cppflags+set}" = set; then :
  3020. withval=$with_cppflags; if test "x$withval" != "xno"; then CPPFLAGS="$CPPFLAGS $withval"; fi
  3021. fi
  3022. # Check whether --with-ldflags was given.
  3023. if test "${with_ldflags+set}" = set; then :
  3024. withval=$with_ldflags; if test "x$withval" != "xno" ; then LDFLAGS="$LDFLAGS $withval"; fi
  3025. fi
  3026. # Check whether --with-libs was given.
  3027. if test "${with_libs+set}" = set; then :
  3028. withval=$with_libs; if test "x$withval" != "xno" ; then LIBS="$LIBS $withval"; fi
  3029. fi
  3030. # Check whether --with-chrootdir was given.
  3031. if test "${with_chrootdir+set}" = set; then :
  3032. withval=$with_chrootdir;
  3033. cat >>confdefs.h <<_ACEOF
  3034. #define PRIVDROP_CHROOT_DIR "${withval}"
  3035. _ACEOF
  3036. fi
  3037. ac_ext=c
  3038. ac_cpp='$CPP $CPPFLAGS'
  3039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3043. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3044. # On Suns, sometimes $CPP names a directory.
  3045. if test -n "$CPP" && test -d "$CPP"; then
  3046. CPP=
  3047. fi
  3048. if test -z "$CPP"; then
  3049. if ${ac_cv_prog_CPP+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. # Double quotes because CPP needs to be expanded
  3053. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3054. do
  3055. ac_preproc_ok=false
  3056. for ac_c_preproc_warn_flag in '' yes
  3057. do
  3058. # Use a header file that comes with gcc, so configuring glibc
  3059. # with a fresh cross-compiler works.
  3060. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3061. # <limits.h> exists even on freestanding compilers.
  3062. # On the NeXT, cc -E runs the code through the compiler's parser,
  3063. # not just through cpp. "Syntax error" is here to catch this case.
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. #ifdef __STDC__
  3067. # include <limits.h>
  3068. #else
  3069. # include <assert.h>
  3070. #endif
  3071. Syntax error
  3072. _ACEOF
  3073. if ac_fn_c_try_cpp "$LINENO"; then :
  3074. else
  3075. # Broken: fails on valid input.
  3076. continue
  3077. fi
  3078. rm -f conftest.err conftest.i conftest.$ac_ext
  3079. # OK, works on sane cases. Now check whether nonexistent headers
  3080. # can be detected and how.
  3081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3082. /* end confdefs.h. */
  3083. #include <ac_nonexistent.h>
  3084. _ACEOF
  3085. if ac_fn_c_try_cpp "$LINENO"; then :
  3086. # Broken: success on invalid input.
  3087. continue
  3088. else
  3089. # Passes both tests.
  3090. ac_preproc_ok=:
  3091. break
  3092. fi
  3093. rm -f conftest.err conftest.i conftest.$ac_ext
  3094. done
  3095. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3096. rm -f conftest.i conftest.err conftest.$ac_ext
  3097. if $ac_preproc_ok; then :
  3098. break
  3099. fi
  3100. done
  3101. ac_cv_prog_CPP=$CPP
  3102. fi
  3103. CPP=$ac_cv_prog_CPP
  3104. else
  3105. ac_cv_prog_CPP=$CPP
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3108. $as_echo "$CPP" >&6; }
  3109. ac_preproc_ok=false
  3110. for ac_c_preproc_warn_flag in '' yes
  3111. do
  3112. # Use a header file that comes with gcc, so configuring glibc
  3113. # with a fresh cross-compiler works.
  3114. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3115. # <limits.h> exists even on freestanding compilers.
  3116. # On the NeXT, cc -E runs the code through the compiler's parser,
  3117. # not just through cpp. "Syntax error" is here to catch this case.
  3118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3119. /* end confdefs.h. */
  3120. #ifdef __STDC__
  3121. # include <limits.h>
  3122. #else
  3123. # include <assert.h>
  3124. #endif
  3125. Syntax error
  3126. _ACEOF
  3127. if ac_fn_c_try_cpp "$LINENO"; then :
  3128. else
  3129. # Broken: fails on valid input.
  3130. continue
  3131. fi
  3132. rm -f conftest.err conftest.i conftest.$ac_ext
  3133. # OK, works on sane cases. Now check whether nonexistent headers
  3134. # can be detected and how.
  3135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3136. /* end confdefs.h. */
  3137. #include <ac_nonexistent.h>
  3138. _ACEOF
  3139. if ac_fn_c_try_cpp "$LINENO"; then :
  3140. # Broken: success on invalid input.
  3141. continue
  3142. else
  3143. # Passes both tests.
  3144. ac_preproc_ok=:
  3145. break
  3146. fi
  3147. rm -f conftest.err conftest.i conftest.$ac_ext
  3148. done
  3149. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3150. rm -f conftest.i conftest.err conftest.$ac_ext
  3151. if $ac_preproc_ok; then :
  3152. else
  3153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3155. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3156. See \`config.log' for more details" "$LINENO" 5; }
  3157. fi
  3158. ac_ext=c
  3159. ac_cpp='$CPP $CPPFLAGS'
  3160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3164. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3165. if ${ac_cv_path_GREP+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. if test -z "$GREP"; then
  3169. ac_path_GREP_found=false
  3170. # Loop through the user's path and test for each of PROGNAME-LIST
  3171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3172. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3173. do
  3174. IFS=$as_save_IFS
  3175. test -z "$as_dir" && as_dir=.
  3176. for ac_prog in grep ggrep; do
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3179. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3180. # Check for GNU ac_path_GREP and select it if it is found.
  3181. # Check for GNU $ac_path_GREP
  3182. case `"$ac_path_GREP" --version 2>&1` in
  3183. *GNU*)
  3184. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3185. *)
  3186. ac_count=0
  3187. $as_echo_n 0123456789 >"conftest.in"
  3188. while :
  3189. do
  3190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3191. mv "conftest.tmp" "conftest.in"
  3192. cp "conftest.in" "conftest.nl"
  3193. $as_echo 'GREP' >> "conftest.nl"
  3194. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3197. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3198. # Best one so far, save it but keep looking for a better one
  3199. ac_cv_path_GREP="$ac_path_GREP"
  3200. ac_path_GREP_max=$ac_count
  3201. fi
  3202. # 10*(2^10) chars as input seems more than enough
  3203. test $ac_count -gt 10 && break
  3204. done
  3205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3206. esac
  3207. $ac_path_GREP_found && break 3
  3208. done
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. if test -z "$ac_cv_path_GREP"; then
  3213. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3214. fi
  3215. else
  3216. ac_cv_path_GREP=$GREP
  3217. fi
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3220. $as_echo "$ac_cv_path_GREP" >&6; }
  3221. GREP="$ac_cv_path_GREP"
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3223. $as_echo_n "checking for egrep... " >&6; }
  3224. if ${ac_cv_path_EGREP+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3228. then ac_cv_path_EGREP="$GREP -E"
  3229. else
  3230. if test -z "$EGREP"; then
  3231. ac_path_EGREP_found=false
  3232. # Loop through the user's path and test for each of PROGNAME-LIST
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_prog in egrep; do
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3241. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3242. # Check for GNU ac_path_EGREP and select it if it is found.
  3243. # Check for GNU $ac_path_EGREP
  3244. case `"$ac_path_EGREP" --version 2>&1` in
  3245. *GNU*)
  3246. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3247. *)
  3248. ac_count=0
  3249. $as_echo_n 0123456789 >"conftest.in"
  3250. while :
  3251. do
  3252. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3253. mv "conftest.tmp" "conftest.in"
  3254. cp "conftest.in" "conftest.nl"
  3255. $as_echo 'EGREP' >> "conftest.nl"
  3256. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3257. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3258. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3259. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3260. # Best one so far, save it but keep looking for a better one
  3261. ac_cv_path_EGREP="$ac_path_EGREP"
  3262. ac_path_EGREP_max=$ac_count
  3263. fi
  3264. # 10*(2^10) chars as input seems more than enough
  3265. test $ac_count -gt 10 && break
  3266. done
  3267. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3268. esac
  3269. $ac_path_EGREP_found && break 3
  3270. done
  3271. done
  3272. done
  3273. IFS=$as_save_IFS
  3274. if test -z "$ac_cv_path_EGREP"; then
  3275. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3276. fi
  3277. else
  3278. ac_cv_path_EGREP=$EGREP
  3279. fi
  3280. fi
  3281. fi
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3283. $as_echo "$ac_cv_path_EGREP" >&6; }
  3284. EGREP="$ac_cv_path_EGREP"
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3286. $as_echo_n "checking for ANSI C header files... " >&6; }
  3287. if ${ac_cv_header_stdc+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. #include <stdlib.h>
  3293. #include <stdarg.h>
  3294. #include <string.h>
  3295. #include <float.h>
  3296. int
  3297. main ()
  3298. {
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. if ac_fn_c_try_compile "$LINENO"; then :
  3304. ac_cv_header_stdc=yes
  3305. else
  3306. ac_cv_header_stdc=no
  3307. fi
  3308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3309. if test $ac_cv_header_stdc = yes; then
  3310. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. #include <string.h>
  3314. _ACEOF
  3315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3316. $EGREP "memchr" >/dev/null 2>&1; then :
  3317. else
  3318. ac_cv_header_stdc=no
  3319. fi
  3320. rm -f conftest*
  3321. fi
  3322. if test $ac_cv_header_stdc = yes; then
  3323. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. #include <stdlib.h>
  3327. _ACEOF
  3328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3329. $EGREP "free" >/dev/null 2>&1; then :
  3330. else
  3331. ac_cv_header_stdc=no
  3332. fi
  3333. rm -f conftest*
  3334. fi
  3335. if test $ac_cv_header_stdc = yes; then
  3336. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3337. if test "$cross_compiling" = yes; then :
  3338. :
  3339. else
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <ctype.h>
  3343. #include <stdlib.h>
  3344. #if ((' ' & 0x0FF) == 0x020)
  3345. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3346. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3347. #else
  3348. # define ISLOWER(c) \
  3349. (('a' <= (c) && (c) <= 'i') \
  3350. || ('j' <= (c) && (c) <= 'r') \
  3351. || ('s' <= (c) && (c) <= 'z'))
  3352. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3353. #endif
  3354. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3355. int
  3356. main ()
  3357. {
  3358. int i;
  3359. for (i = 0; i < 256; i++)
  3360. if (XOR (islower (i), ISLOWER (i))
  3361. || toupper (i) != TOUPPER (i))
  3362. return 2;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. if ac_fn_c_try_run "$LINENO"; then :
  3367. else
  3368. ac_cv_header_stdc=no
  3369. fi
  3370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3371. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3372. fi
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3376. $as_echo "$ac_cv_header_stdc" >&6; }
  3377. if test $ac_cv_header_stdc = yes; then
  3378. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3379. fi
  3380. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3381. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3382. inttypes.h stdint.h unistd.h
  3383. do :
  3384. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3385. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3386. "
  3387. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3388. cat >>confdefs.h <<_ACEOF
  3389. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3390. _ACEOF
  3391. fi
  3392. done
  3393. for ac_header in net/bpf.h pcap.h pcap-bpf.h
  3394. do :
  3395. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3396. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3397. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3398. cat >>confdefs.h <<_ACEOF
  3399. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3400. _ACEOF
  3401. fi
  3402. done
  3403. ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
  3404. #include <sys/socket.h>
  3405. "
  3406. if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
  3407. $as_echo "#define SOCK_HAS_LEN 1" >>confdefs.h
  3408. fi
  3409. ac_fn_c_check_member "$LINENO" "struct ip6_ext" "ip6e_nxt" "ac_cv_member_struct_ip6_ext_ip6e_nxt" "
  3410. #include <sys/types.h>
  3411. #include <sys/socket.h>
  3412. #include <netinet/in.h>
  3413. #include <netinet/ip6.h>
  3414. "
  3415. if test "x$ac_cv_member_struct_ip6_ext_ip6e_nxt" = xyes; then :
  3416. $as_echo "#define HAVE_STRUCT_IP6_EXT 1" >>confdefs.h
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
  3419. $as_echo_n "checking for library containing daemon... " >&6; }
  3420. if ${ac_cv_search_daemon+:} false; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. ac_func_search_save_LIBS=$LIBS
  3424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3425. /* end confdefs.h. */
  3426. /* Override any GCC internal prototype to avoid an error.
  3427. Use char because int might match the return type of a GCC
  3428. builtin and then its argument prototype would still apply. */
  3429. #ifdef __cplusplus
  3430. extern "C"
  3431. #endif
  3432. char daemon ();
  3433. int
  3434. main ()
  3435. {
  3436. return daemon ();
  3437. ;
  3438. return 0;
  3439. }
  3440. _ACEOF
  3441. for ac_lib in '' bsd; do
  3442. if test -z "$ac_lib"; then
  3443. ac_res="none required"
  3444. else
  3445. ac_res=-l$ac_lib
  3446. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3447. fi
  3448. if ac_fn_c_try_link "$LINENO"; then :
  3449. ac_cv_search_daemon=$ac_res
  3450. fi
  3451. rm -f core conftest.err conftest.$ac_objext \
  3452. conftest$ac_exeext
  3453. if ${ac_cv_search_daemon+:} false; then :
  3454. break
  3455. fi
  3456. done
  3457. if ${ac_cv_search_daemon+:} false; then :
  3458. else
  3459. ac_cv_search_daemon=no
  3460. fi
  3461. rm conftest.$ac_ext
  3462. LIBS=$ac_func_search_save_LIBS
  3463. fi
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
  3465. $as_echo "$ac_cv_search_daemon" >&6; }
  3466. ac_res=$ac_cv_search_daemon
  3467. if test "$ac_res" != no; then :
  3468. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3469. fi
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  3471. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  3472. if ${ac_cv_search_gethostbyname+:} false; then :
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. ac_func_search_save_LIBS=$LIBS
  3476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h. */
  3478. /* Override any GCC internal prototype to avoid an error.
  3479. Use char because int might match the return type of a GCC
  3480. builtin and then its argument prototype would still apply. */
  3481. #ifdef __cplusplus
  3482. extern "C"
  3483. #endif
  3484. char gethostbyname ();
  3485. int
  3486. main ()
  3487. {
  3488. return gethostbyname ();
  3489. ;
  3490. return 0;
  3491. }
  3492. _ACEOF
  3493. for ac_lib in '' nsl; do
  3494. if test -z "$ac_lib"; then
  3495. ac_res="none required"
  3496. else
  3497. ac_res=-l$ac_lib
  3498. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3499. fi
  3500. if ac_fn_c_try_link "$LINENO"; then :
  3501. ac_cv_search_gethostbyname=$ac_res
  3502. fi
  3503. rm -f core conftest.err conftest.$ac_objext \
  3504. conftest$ac_exeext
  3505. if ${ac_cv_search_gethostbyname+:} false; then :
  3506. break
  3507. fi
  3508. done
  3509. if ${ac_cv_search_gethostbyname+:} false; then :
  3510. else
  3511. ac_cv_search_gethostbyname=no
  3512. fi
  3513. rm conftest.$ac_ext
  3514. LIBS=$ac_func_search_save_LIBS
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  3517. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  3518. ac_res=$ac_cv_search_gethostbyname
  3519. if test "$ac_res" != no; then :
  3520. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  3523. $as_echo_n "checking for library containing socket... " >&6; }
  3524. if ${ac_cv_search_socket+:} false; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. ac_func_search_save_LIBS=$LIBS
  3528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3529. /* end confdefs.h. */
  3530. /* Override any GCC internal prototype to avoid an error.
  3531. Use char because int might match the return type of a GCC
  3532. builtin and then its argument prototype would still apply. */
  3533. #ifdef __cplusplus
  3534. extern "C"
  3535. #endif
  3536. char socket ();
  3537. int
  3538. main ()
  3539. {
  3540. return socket ();
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. for ac_lib in '' socket; do
  3546. if test -z "$ac_lib"; then
  3547. ac_res="none required"
  3548. else
  3549. ac_res=-l$ac_lib
  3550. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3551. fi
  3552. if ac_fn_c_try_link "$LINENO"; then :
  3553. ac_cv_search_socket=$ac_res
  3554. fi
  3555. rm -f core conftest.err conftest.$ac_objext \
  3556. conftest$ac_exeext
  3557. if ${ac_cv_search_socket+:} false; then :
  3558. break
  3559. fi
  3560. done
  3561. if ${ac_cv_search_socket+:} false; then :
  3562. else
  3563. ac_cv_search_socket=no
  3564. fi
  3565. rm conftest.$ac_ext
  3566. LIBS=$ac_func_search_save_LIBS
  3567. fi
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  3569. $as_echo "$ac_cv_search_socket" >&6; }
  3570. ac_res=$ac_cv_search_socket
  3571. if test "$ac_res" != no; then :
  3572. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3573. fi
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
  3575. $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
  3576. if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. ac_check_lib_save_LIBS=$LIBS
  3580. LIBS="-lpcap $LIBS"
  3581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3582. /* end confdefs.h. */
  3583. /* Override any GCC internal prototype to avoid an error.
  3584. Use char because int might match the return type of a GCC
  3585. builtin and then its argument prototype would still apply. */
  3586. #ifdef __cplusplus
  3587. extern "C"
  3588. #endif
  3589. char pcap_open_live ();
  3590. int
  3591. main ()
  3592. {
  3593. return pcap_open_live ();
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_c_try_link "$LINENO"; then :
  3599. ac_cv_lib_pcap_pcap_open_live=yes
  3600. else
  3601. ac_cv_lib_pcap_pcap_open_live=no
  3602. fi
  3603. rm -f core conftest.err conftest.$ac_objext \
  3604. conftest$ac_exeext conftest.$ac_ext
  3605. LIBS=$ac_check_lib_save_LIBS
  3606. fi
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
  3608. $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
  3609. if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
  3610. cat >>confdefs.h <<_ACEOF
  3611. #define HAVE_LIBPCAP 1
  3612. _ACEOF
  3613. LIBS="-lpcap $LIBS"
  3614. fi
  3615. for ac_func in closefrom daemon setresuid setreuid setresgid setgid strlcpy strlcat
  3616. do :
  3617. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3618. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3619. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3620. cat >>confdefs.h <<_ACEOF
  3621. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3622. _ACEOF
  3623. fi
  3624. done
  3625. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  3626. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  3627. cat >>confdefs.h <<_ACEOF
  3628. #define HAVE_U_INT64_T 1
  3629. _ACEOF
  3630. fi
  3631. ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
  3632. if test "x$ac_cv_type_int64_t" = xyes; then :
  3633. cat >>confdefs.h <<_ACEOF
  3634. #define HAVE_INT64_T 1
  3635. _ACEOF
  3636. fi
  3637. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  3638. if test "x$ac_cv_type_uint64_t" = xyes; then :
  3639. cat >>confdefs.h <<_ACEOF
  3640. #define HAVE_UINT64_T 1
  3641. _ACEOF
  3642. fi
  3643. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  3644. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  3645. cat >>confdefs.h <<_ACEOF
  3646. #define HAVE_U_INT32_T 1
  3647. _ACEOF
  3648. fi
  3649. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  3650. if test "x$ac_cv_type_int32_t" = xyes; then :
  3651. cat >>confdefs.h <<_ACEOF
  3652. #define HAVE_INT32_T 1
  3653. _ACEOF
  3654. fi
  3655. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  3656. if test "x$ac_cv_type_uint32_t" = xyes; then :
  3657. cat >>confdefs.h <<_ACEOF
  3658. #define HAVE_UINT32_T 1
  3659. _ACEOF
  3660. fi
  3661. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  3662. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  3663. cat >>confdefs.h <<_ACEOF
  3664. #define HAVE_U_INT16_T 1
  3665. _ACEOF
  3666. fi
  3667. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  3668. if test "x$ac_cv_type_int16_t" = xyes; then :
  3669. cat >>confdefs.h <<_ACEOF
  3670. #define HAVE_INT16_T 1
  3671. _ACEOF
  3672. fi
  3673. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  3674. if test "x$ac_cv_type_uint16_t" = xyes; then :
  3675. cat >>confdefs.h <<_ACEOF
  3676. #define HAVE_UINT16_T 1
  3677. _ACEOF
  3678. fi
  3679. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  3680. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  3681. cat >>confdefs.h <<_ACEOF
  3682. #define HAVE_U_INT8_T 1
  3683. _ACEOF
  3684. fi
  3685. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  3686. if test "x$ac_cv_type_int8_t" = xyes; then :
  3687. cat >>confdefs.h <<_ACEOF
  3688. #define HAVE_INT8_T 1
  3689. _ACEOF
  3690. fi
  3691. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  3692. if test "x$ac_cv_type_uint8_t" = xyes; then :
  3693. cat >>confdefs.h <<_ACEOF
  3694. #define HAVE_UINT8_T 1
  3695. _ACEOF
  3696. fi
  3697. # The cast to long int works around a bug in the HP C Compiler
  3698. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3699. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3700. # This bug is HP SR number 8606223364.
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  3702. $as_echo_n "checking size of char... " >&6; }
  3703. if ${ac_cv_sizeof_char+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  3707. else
  3708. if test "$ac_cv_type_char" = yes; then
  3709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3711. as_fn_error 77 "cannot compute sizeof (char)
  3712. See \`config.log' for more details" "$LINENO" 5; }
  3713. else
  3714. ac_cv_sizeof_char=0
  3715. fi
  3716. fi
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  3719. $as_echo "$ac_cv_sizeof_char" >&6; }
  3720. cat >>confdefs.h <<_ACEOF
  3721. #define SIZEOF_CHAR $ac_cv_sizeof_char
  3722. _ACEOF
  3723. # The cast to long int works around a bug in the HP C Compiler
  3724. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3725. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3726. # This bug is HP SR number 8606223364.
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
  3728. $as_echo_n "checking size of short int... " >&6; }
  3729. if ${ac_cv_sizeof_short_int+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
  3733. else
  3734. if test "$ac_cv_type_short_int" = yes; then
  3735. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3736. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3737. as_fn_error 77 "cannot compute sizeof (short int)
  3738. See \`config.log' for more details" "$LINENO" 5; }
  3739. else
  3740. ac_cv_sizeof_short_int=0
  3741. fi
  3742. fi
  3743. fi
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
  3745. $as_echo "$ac_cv_sizeof_short_int" >&6; }
  3746. cat >>confdefs.h <<_ACEOF
  3747. #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
  3748. _ACEOF
  3749. # The cast to long int works around a bug in the HP C Compiler
  3750. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3751. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3752. # This bug is HP SR number 8606223364.
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  3754. $as_echo_n "checking size of int... " >&6; }
  3755. if ${ac_cv_sizeof_int+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  3759. else
  3760. if test "$ac_cv_type_int" = yes; then
  3761. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3763. as_fn_error 77 "cannot compute sizeof (int)
  3764. See \`config.log' for more details" "$LINENO" 5; }
  3765. else
  3766. ac_cv_sizeof_int=0
  3767. fi
  3768. fi
  3769. fi
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  3771. $as_echo "$ac_cv_sizeof_int" >&6; }
  3772. cat >>confdefs.h <<_ACEOF
  3773. #define SIZEOF_INT $ac_cv_sizeof_int
  3774. _ACEOF
  3775. # The cast to long int works around a bug in the HP C Compiler
  3776. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3777. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3778. # This bug is HP SR number 8606223364.
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
  3780. $as_echo_n "checking size of long int... " >&6; }
  3781. if ${ac_cv_sizeof_long_int+:} false; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
  3785. else
  3786. if test "$ac_cv_type_long_int" = yes; then
  3787. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3789. as_fn_error 77 "cannot compute sizeof (long int)
  3790. See \`config.log' for more details" "$LINENO" 5; }
  3791. else
  3792. ac_cv_sizeof_long_int=0
  3793. fi
  3794. fi
  3795. fi
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
  3797. $as_echo "$ac_cv_sizeof_long_int" >&6; }
  3798. cat >>confdefs.h <<_ACEOF
  3799. #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
  3800. _ACEOF
  3801. # The cast to long int works around a bug in the HP C Compiler
  3802. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3803. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3804. # This bug is HP SR number 8606223364.
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
  3806. $as_echo_n "checking size of long long int... " >&6; }
  3807. if ${ac_cv_sizeof_long_long_int+:} false; then :
  3808. $as_echo_n "(cached) " >&6
  3809. else
  3810. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
  3811. else
  3812. if test "$ac_cv_type_long_long_int" = yes; then
  3813. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3814. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3815. as_fn_error 77 "cannot compute sizeof (long long int)
  3816. See \`config.log' for more details" "$LINENO" 5; }
  3817. else
  3818. ac_cv_sizeof_long_long_int=0
  3819. fi
  3820. fi
  3821. fi
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
  3823. $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
  3824. cat >>confdefs.h <<_ACEOF
  3825. #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
  3826. _ACEOF
  3827. if test "x$ac_cv_type_uint8_t" = "xyes" ; then
  3828. $as_echo "#define OUR_CFG_U_INT8_T uint8_t" >>confdefs.h
  3829. elif test "x$ac_cv_sizeof_char" = "x1" ; then
  3830. $as_echo "#define OUR_CFG_U_INT8_T unsigned char" >>confdefs.h
  3831. else
  3832. as_fn_error $? "No 8-bit unsigned int type found" "$LINENO" 5
  3833. fi
  3834. if test "x$ac_cv_sizeof_char" = "x1" ; then
  3835. $as_echo "#define OUR_CFG_INT8_T signed char" >>confdefs.h
  3836. else
  3837. as_fn_error $? "No 8-bit signed int type found" "$LINENO" 5
  3838. fi
  3839. if test "x$ac_cv_type_uint16_t" = "xyes" ; then
  3840. $as_echo "#define OUR_CFG_U_INT16_T uint16_t" >>confdefs.h
  3841. elif test "x$ac_cv_sizeof_short_int" = "x2" ; then
  3842. $as_echo "#define OUR_CFG_U_INT16_T unsigned short int" >>confdefs.h
  3843. else
  3844. as_fn_error $? "No 16-bit unsigned int type found" "$LINENO" 5
  3845. fi
  3846. if test "x$ac_cv_sizeof_short_int" = "x2" ; then
  3847. $as_echo "#define OUR_CFG_INT16_T short int" >>confdefs.h
  3848. else
  3849. as_fn_error $? "No 16-bit signed int type found" "$LINENO" 5
  3850. fi
  3851. if test "x$ac_cv_type_uint32_t" = "xyes" ; then
  3852. $as_echo "#define OUR_CFG_U_INT32_T uint32_t" >>confdefs.h
  3853. elif test "x$ac_cv_sizeof_int" = "x4" ; then
  3854. $as_echo "#define OUR_CFG_U_INT32_T unsigned int" >>confdefs.h
  3855. else
  3856. as_fn_error $? "No 32-bit unsigned int type found" "$LINENO" 5
  3857. fi
  3858. if test "x$ac_cv_sizeof_int" = "x4" ; then
  3859. $as_echo "#define OUR_CFG_INT32_T int" >>confdefs.h
  3860. else
  3861. as_fn_error $? "No 32-bit signed int type found" "$LINENO" 5
  3862. fi
  3863. if test "x$ac_cv_type_uint64_t" = "xyes" ; then
  3864. $as_echo "#define OUR_CFG_U_INT64_T uint64_t" >>confdefs.h
  3865. elif test "x$ac_cv_sizeof_long_int" = "x8" ; then
  3866. $as_echo "#define OUR_CFG_U_INT64_T unsigned long int" >>confdefs.h
  3867. elif test "x$ac_cv_sizeof_long_long_int" = "x8" ; then
  3868. $as_echo "#define OUR_CFG_U_INT64_T unsigned long long int" >>confdefs.h
  3869. else
  3870. as_fn_error $? "No 64-bit unsigned int type found" "$LINENO" 5
  3871. fi
  3872. if test "x$ac_cv_sizeof_long_int" = "x8" ; then
  3873. $as_echo "#define OUR_CFG_INT64_T long int" >>confdefs.h
  3874. elif test "x$ac_cv_sizeof_long_long_int" = "x8" ; then
  3875. $as_echo "#define OUR_CFG_INT64_T long long int" >>confdefs.h
  3876. else
  3877. as_fn_error $? "No 64-bit signed int type found" "$LINENO" 5
  3878. fi
  3879. if test "x$ac_cv_header_pcap_bpf_h" != "xyes" && \
  3880. test "x$ac_cv_header_net_bpf_h" != "xyes" ; then
  3881. as_fn_error $? "No BPF header found" "$LINENO" 5
  3882. fi
  3883. if test "x$ac_cv_header_pcap_h" != "xyes" ; then
  3884. as_fn_error $? "No pcap.h header found" "$LINENO" 5
  3885. fi
  3886. if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes" ; then
  3887. as_fn_error $? "libpcap not found" "$LINENO" 5
  3888. fi
  3889. ac_config_files="$ac_config_files Makefile"
  3890. cat >confcache <<\_ACEOF
  3891. # This file is a shell script that caches the results of configure
  3892. # tests run on this system so they can be shared between configure
  3893. # scripts and configure runs, see configure's option --config-cache.
  3894. # It is not useful on other systems. If it contains results you don't
  3895. # want to keep, you may remove or edit it.
  3896. #
  3897. # config.status only pays attention to the cache file if you give it
  3898. # the --recheck option to rerun configure.
  3899. #
  3900. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3901. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3902. # following values.
  3903. _ACEOF
  3904. # The following way of writing the cache mishandles newlines in values,
  3905. # but we know of no workaround that is simple, portable, and efficient.
  3906. # So, we kill variables containing newlines.
  3907. # Ultrix sh set writes to stderr and can't be redirected directly,
  3908. # and sets the high bit in the cache file unless we assign to the vars.
  3909. (
  3910. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3911. eval ac_val=\$$ac_var
  3912. case $ac_val in #(
  3913. *${as_nl}*)
  3914. case $ac_var in #(
  3915. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3917. esac
  3918. case $ac_var in #(
  3919. _ | IFS | as_nl) ;; #(
  3920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3921. *) { eval $ac_var=; unset $ac_var;} ;;
  3922. esac ;;
  3923. esac
  3924. done
  3925. (set) 2>&1 |
  3926. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3927. *${as_nl}ac_space=\ *)
  3928. # `set' does not quote correctly, so add quotes: double-quote
  3929. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3930. sed -n \
  3931. "s/'/'\\\\''/g;
  3932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3933. ;; #(
  3934. *)
  3935. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3936. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3937. ;;
  3938. esac |
  3939. sort
  3940. ) |
  3941. sed '
  3942. /^ac_cv_env_/b end
  3943. t clear
  3944. :clear
  3945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3946. t end
  3947. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3948. :end' >>confcache
  3949. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3950. if test -w "$cache_file"; then
  3951. if test "x$cache_file" != "x/dev/null"; then
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3953. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3954. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3955. cat confcache >"$cache_file"
  3956. else
  3957. case $cache_file in #(
  3958. */* | ?:*)
  3959. mv -f confcache "$cache_file"$$ &&
  3960. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3961. *)
  3962. mv -f confcache "$cache_file" ;;
  3963. esac
  3964. fi
  3965. fi
  3966. else
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3968. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3969. fi
  3970. fi
  3971. rm -f confcache
  3972. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3973. # Let make expand exec_prefix.
  3974. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3975. DEFS=-DHAVE_CONFIG_H
  3976. ac_libobjs=
  3977. ac_ltlibobjs=
  3978. U=
  3979. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3980. # 1. Remove the extension, and $U if already installed.
  3981. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3982. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3983. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3984. # will be set to the directory where LIBOBJS objects are built.
  3985. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3986. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3987. done
  3988. LIBOBJS=$ac_libobjs
  3989. LTLIBOBJS=$ac_ltlibobjs
  3990. : "${CONFIG_STATUS=./config.status}"
  3991. ac_write_fail=0
  3992. ac_clean_files_save=$ac_clean_files
  3993. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3995. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3996. as_write_fail=0
  3997. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3998. #! $SHELL
  3999. # Generated by $as_me.
  4000. # Run this file to recreate the current configuration.
  4001. # Compiler output produced by configure, useful for debugging
  4002. # configure, is in config.log if it exists.
  4003. debug=false
  4004. ac_cs_recheck=false
  4005. ac_cs_silent=false
  4006. SHELL=\${CONFIG_SHELL-$SHELL}
  4007. export SHELL
  4008. _ASEOF
  4009. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4010. ## -------------------- ##
  4011. ## M4sh Initialization. ##
  4012. ## -------------------- ##
  4013. # Be more Bourne compatible
  4014. DUALCASE=1; export DUALCASE # for MKS sh
  4015. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4016. emulate sh
  4017. NULLCMD=:
  4018. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4019. # is contrary to our usage. Disable this feature.
  4020. alias -g '${1+"$@"}'='"$@"'
  4021. setopt NO_GLOB_SUBST
  4022. else
  4023. case `(set -o) 2>/dev/null` in #(
  4024. *posix*) :
  4025. set -o posix ;; #(
  4026. *) :
  4027. ;;
  4028. esac
  4029. fi
  4030. as_nl='
  4031. '
  4032. export as_nl
  4033. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4034. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4035. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4036. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4037. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4038. # but without wasting forks for bash or zsh.
  4039. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4040. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4041. as_echo='print -r --'
  4042. as_echo_n='print -rn --'
  4043. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4044. as_echo='printf %s\n'
  4045. as_echo_n='printf %s'
  4046. else
  4047. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4048. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4049. as_echo_n='/usr/ucb/echo -n'
  4050. else
  4051. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4052. as_echo_n_body='eval
  4053. arg=$1;
  4054. case $arg in #(
  4055. *"$as_nl"*)
  4056. expr "X$arg" : "X\\(.*\\)$as_nl";
  4057. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4058. esac;
  4059. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4060. '
  4061. export as_echo_n_body
  4062. as_echo_n='sh -c $as_echo_n_body as_echo'
  4063. fi
  4064. export as_echo_body
  4065. as_echo='sh -c $as_echo_body as_echo'
  4066. fi
  4067. # The user is always right.
  4068. if test "${PATH_SEPARATOR+set}" != set; then
  4069. PATH_SEPARATOR=:
  4070. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4071. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4072. PATH_SEPARATOR=';'
  4073. }
  4074. fi
  4075. # IFS
  4076. # We need space, tab and new line, in precisely that order. Quoting is
  4077. # there to prevent editors from complaining about space-tab.
  4078. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4079. # splitting by setting IFS to empty value.)
  4080. IFS=" "" $as_nl"
  4081. # Find who we are. Look in the path if we contain no directory separator.
  4082. as_myself=
  4083. case $0 in #((
  4084. *[\\/]* ) as_myself=$0 ;;
  4085. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4086. for as_dir in $PATH
  4087. do
  4088. IFS=$as_save_IFS
  4089. test -z "$as_dir" && as_dir=.
  4090. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4091. done
  4092. IFS=$as_save_IFS
  4093. ;;
  4094. esac
  4095. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4096. # in which case we are not to be found in the path.
  4097. if test "x$as_myself" = x; then
  4098. as_myself=$0
  4099. fi
  4100. if test ! -f "$as_myself"; then
  4101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4102. exit 1
  4103. fi
  4104. # Unset variables that we do not need and which cause bugs (e.g. in
  4105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4106. # suppresses any "Segmentation fault" message there. '((' could
  4107. # trigger a bug in pdksh 5.2.14.
  4108. for as_var in BASH_ENV ENV MAIL MAILPATH
  4109. do eval test x\${$as_var+set} = xset \
  4110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4111. done
  4112. PS1='$ '
  4113. PS2='> '
  4114. PS4='+ '
  4115. # NLS nuisances.
  4116. LC_ALL=C
  4117. export LC_ALL
  4118. LANGUAGE=C
  4119. export LANGUAGE
  4120. # CDPATH.
  4121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4122. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4123. # ----------------------------------------
  4124. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4125. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4126. # script with STATUS, using 1 if that was 0.
  4127. as_fn_error ()
  4128. {
  4129. as_status=$1; test $as_status -eq 0 && as_status=1
  4130. if test "$4"; then
  4131. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4132. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4133. fi
  4134. $as_echo "$as_me: error: $2" >&2
  4135. as_fn_exit $as_status
  4136. } # as_fn_error
  4137. # as_fn_set_status STATUS
  4138. # -----------------------
  4139. # Set $? to STATUS, without forking.
  4140. as_fn_set_status ()
  4141. {
  4142. return $1
  4143. } # as_fn_set_status
  4144. # as_fn_exit STATUS
  4145. # -----------------
  4146. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4147. as_fn_exit ()
  4148. {
  4149. set +e
  4150. as_fn_set_status $1
  4151. exit $1
  4152. } # as_fn_exit
  4153. # as_fn_unset VAR
  4154. # ---------------
  4155. # Portably unset VAR.
  4156. as_fn_unset ()
  4157. {
  4158. { eval $1=; unset $1;}
  4159. }
  4160. as_unset=as_fn_unset
  4161. # as_fn_append VAR VALUE
  4162. # ----------------------
  4163. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4164. # advantage of any shell optimizations that allow amortized linear growth over
  4165. # repeated appends, instead of the typical quadratic growth present in naive
  4166. # implementations.
  4167. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4168. eval 'as_fn_append ()
  4169. {
  4170. eval $1+=\$2
  4171. }'
  4172. else
  4173. as_fn_append ()
  4174. {
  4175. eval $1=\$$1\$2
  4176. }
  4177. fi # as_fn_append
  4178. # as_fn_arith ARG...
  4179. # ------------------
  4180. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4181. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4182. # must be portable across $(()) and expr.
  4183. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4184. eval 'as_fn_arith ()
  4185. {
  4186. as_val=$(( $* ))
  4187. }'
  4188. else
  4189. as_fn_arith ()
  4190. {
  4191. as_val=`expr "$@" || test $? -eq 1`
  4192. }
  4193. fi # as_fn_arith
  4194. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4195. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4196. as_expr=expr
  4197. else
  4198. as_expr=false
  4199. fi
  4200. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4201. as_basename=basename
  4202. else
  4203. as_basename=false
  4204. fi
  4205. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4206. as_dirname=dirname
  4207. else
  4208. as_dirname=false
  4209. fi
  4210. as_me=`$as_basename -- "$0" ||
  4211. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4212. X"$0" : 'X\(//\)$' \| \
  4213. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4214. $as_echo X/"$0" |
  4215. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4216. s//\1/
  4217. q
  4218. }
  4219. /^X\/\(\/\/\)$/{
  4220. s//\1/
  4221. q
  4222. }
  4223. /^X\/\(\/\).*/{
  4224. s//\1/
  4225. q
  4226. }
  4227. s/.*/./; q'`
  4228. # Avoid depending upon Character Ranges.
  4229. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4230. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4231. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4232. as_cr_digits='0123456789'
  4233. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4234. ECHO_C= ECHO_N= ECHO_T=
  4235. case `echo -n x` in #(((((
  4236. -n*)
  4237. case `echo 'xy\c'` in
  4238. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4239. xy) ECHO_C='\c';;
  4240. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4241. ECHO_T=' ';;
  4242. esac;;
  4243. *)
  4244. ECHO_N='-n';;
  4245. esac
  4246. rm -f conf$$ conf$$.exe conf$$.file
  4247. if test -d conf$$.dir; then
  4248. rm -f conf$$.dir/conf$$.file
  4249. else
  4250. rm -f conf$$.dir
  4251. mkdir conf$$.dir 2>/dev/null
  4252. fi
  4253. if (echo >conf$$.file) 2>/dev/null; then
  4254. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4255. as_ln_s='ln -s'
  4256. # ... but there are two gotchas:
  4257. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4258. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4259. # In both cases, we have to default to `cp -p'.
  4260. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4261. as_ln_s='cp -p'
  4262. elif ln conf$$.file conf$$ 2>/dev/null; then
  4263. as_ln_s=ln
  4264. else
  4265. as_ln_s='cp -p'
  4266. fi
  4267. else
  4268. as_ln_s='cp -p'
  4269. fi
  4270. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4271. rmdir conf$$.dir 2>/dev/null
  4272. # as_fn_mkdir_p
  4273. # -------------
  4274. # Create "$as_dir" as a directory, including parents if necessary.
  4275. as_fn_mkdir_p ()
  4276. {
  4277. case $as_dir in #(
  4278. -*) as_dir=./$as_dir;;
  4279. esac
  4280. test -d "$as_dir" || eval $as_mkdir_p || {
  4281. as_dirs=
  4282. while :; do
  4283. case $as_dir in #(
  4284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4285. *) as_qdir=$as_dir;;
  4286. esac
  4287. as_dirs="'$as_qdir' $as_dirs"
  4288. as_dir=`$as_dirname -- "$as_dir" ||
  4289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4290. X"$as_dir" : 'X\(//\)[^/]' \| \
  4291. X"$as_dir" : 'X\(//\)$' \| \
  4292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4293. $as_echo X"$as_dir" |
  4294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4295. s//\1/
  4296. q
  4297. }
  4298. /^X\(\/\/\)[^/].*/{
  4299. s//\1/
  4300. q
  4301. }
  4302. /^X\(\/\/\)$/{
  4303. s//\1/
  4304. q
  4305. }
  4306. /^X\(\/\).*/{
  4307. s//\1/
  4308. q
  4309. }
  4310. s/.*/./; q'`
  4311. test -d "$as_dir" && break
  4312. done
  4313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4315. } # as_fn_mkdir_p
  4316. if mkdir -p . 2>/dev/null; then
  4317. as_mkdir_p='mkdir -p "$as_dir"'
  4318. else
  4319. test -d ./-p && rmdir ./-p
  4320. as_mkdir_p=false
  4321. fi
  4322. if test -x / >/dev/null 2>&1; then
  4323. as_test_x='test -x'
  4324. else
  4325. if ls -dL / >/dev/null 2>&1; then
  4326. as_ls_L_option=L
  4327. else
  4328. as_ls_L_option=
  4329. fi
  4330. as_test_x='
  4331. eval sh -c '\''
  4332. if test -d "$1"; then
  4333. test -d "$1/.";
  4334. else
  4335. case $1 in #(
  4336. -*)set "./$1";;
  4337. esac;
  4338. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  4339. ???[sx]*):;;*)false;;esac;fi
  4340. '\'' sh
  4341. '
  4342. fi
  4343. as_executable_p=$as_test_x
  4344. # Sed expression to map a string onto a valid CPP name.
  4345. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4346. # Sed expression to map a string onto a valid variable name.
  4347. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4348. exec 6>&1
  4349. ## ----------------------------------- ##
  4350. ## Main body of $CONFIG_STATUS script. ##
  4351. ## ----------------------------------- ##
  4352. _ASEOF
  4353. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4354. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4355. # Save the log message, to keep $0 and so on meaningful, and to
  4356. # report actual input values of CONFIG_FILES etc. instead of their
  4357. # values after options handling.
  4358. ac_log="
  4359. This file was extended by $as_me, which was
  4360. generated by GNU Autoconf 2.68. Invocation command line was
  4361. CONFIG_FILES = $CONFIG_FILES
  4362. CONFIG_HEADERS = $CONFIG_HEADERS
  4363. CONFIG_LINKS = $CONFIG_LINKS
  4364. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4365. $ $0 $@
  4366. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4367. "
  4368. _ACEOF
  4369. case $ac_config_files in *"
  4370. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4371. esac
  4372. case $ac_config_headers in *"
  4373. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4374. esac
  4375. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4376. # Files that config.status was made for.
  4377. config_files="$ac_config_files"
  4378. config_headers="$ac_config_headers"
  4379. _ACEOF
  4380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4381. ac_cs_usage="\
  4382. \`$as_me' instantiates files and other configuration actions
  4383. from templates according to the current configuration. Unless the files
  4384. and actions are specified as TAGs, all are instantiated by default.
  4385. Usage: $0 [OPTION]... [TAG]...
  4386. -h, --help print this help, then exit
  4387. -V, --version print version number and configuration settings, then exit
  4388. --config print configuration, then exit
  4389. -q, --quiet, --silent
  4390. do not print progress messages
  4391. -d, --debug don't remove temporary files
  4392. --recheck update $as_me by reconfiguring in the same conditions
  4393. --file=FILE[:TEMPLATE]
  4394. instantiate the configuration file FILE
  4395. --header=FILE[:TEMPLATE]
  4396. instantiate the configuration header FILE
  4397. Configuration files:
  4398. $config_files
  4399. Configuration headers:
  4400. $config_headers
  4401. Report bugs to the package provider."
  4402. _ACEOF
  4403. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4404. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4405. ac_cs_version="\\
  4406. config.status
  4407. configured by $0, generated by GNU Autoconf 2.68,
  4408. with options \\"\$ac_cs_config\\"
  4409. Copyright (C) 2010 Free Software Foundation, Inc.
  4410. This config.status script is free software; the Free Software Foundation
  4411. gives unlimited permission to copy, distribute and modify it."
  4412. ac_pwd='$ac_pwd'
  4413. srcdir='$srcdir'
  4414. INSTALL='$INSTALL'
  4415. test -n "\$AWK" || AWK=awk
  4416. _ACEOF
  4417. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4418. # The default lists apply if the user does not specify any file.
  4419. ac_need_defaults=:
  4420. while test $# != 0
  4421. do
  4422. case $1 in
  4423. --*=?*)
  4424. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4425. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4426. ac_shift=:
  4427. ;;
  4428. --*=)
  4429. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4430. ac_optarg=
  4431. ac_shift=:
  4432. ;;
  4433. *)
  4434. ac_option=$1
  4435. ac_optarg=$2
  4436. ac_shift=shift
  4437. ;;
  4438. esac
  4439. case $ac_option in
  4440. # Handling of the options.
  4441. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4442. ac_cs_recheck=: ;;
  4443. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4444. $as_echo "$ac_cs_version"; exit ;;
  4445. --config | --confi | --conf | --con | --co | --c )
  4446. $as_echo "$ac_cs_config"; exit ;;
  4447. --debug | --debu | --deb | --de | --d | -d )
  4448. debug=: ;;
  4449. --file | --fil | --fi | --f )
  4450. $ac_shift
  4451. case $ac_optarg in
  4452. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4453. '') as_fn_error $? "missing file argument" ;;
  4454. esac
  4455. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4456. ac_need_defaults=false;;
  4457. --header | --heade | --head | --hea )
  4458. $ac_shift
  4459. case $ac_optarg in
  4460. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4461. esac
  4462. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4463. ac_need_defaults=false;;
  4464. --he | --h)
  4465. # Conflict between --help and --header
  4466. as_fn_error $? "ambiguous option: \`$1'
  4467. Try \`$0 --help' for more information.";;
  4468. --help | --hel | -h )
  4469. $as_echo "$ac_cs_usage"; exit ;;
  4470. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4471. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4472. ac_cs_silent=: ;;
  4473. # This is an error.
  4474. -*) as_fn_error $? "unrecognized option: \`$1'
  4475. Try \`$0 --help' for more information." ;;
  4476. *) as_fn_append ac_config_targets " $1"
  4477. ac_need_defaults=false ;;
  4478. esac
  4479. shift
  4480. done
  4481. ac_configure_extra_args=
  4482. if $ac_cs_silent; then
  4483. exec 6>/dev/null
  4484. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4485. fi
  4486. _ACEOF
  4487. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4488. if \$ac_cs_recheck; then
  4489. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4490. shift
  4491. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4492. CONFIG_SHELL='$SHELL'
  4493. export CONFIG_SHELL
  4494. exec "\$@"
  4495. fi
  4496. _ACEOF
  4497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4498. exec 5>>config.log
  4499. {
  4500. echo
  4501. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4502. ## Running $as_me. ##
  4503. _ASBOX
  4504. $as_echo "$ac_log"
  4505. } >&5
  4506. _ACEOF
  4507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4508. _ACEOF
  4509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4510. # Handling of arguments.
  4511. for ac_config_target in $ac_config_targets
  4512. do
  4513. case $ac_config_target in
  4514. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4515. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4516. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4517. esac
  4518. done
  4519. # If the user did not use the arguments to specify the items to instantiate,
  4520. # then the envvar interface is used. Set only those that are not.
  4521. # We use the long form for the default assignment because of an extremely
  4522. # bizarre bug on SunOS 4.1.3.
  4523. if $ac_need_defaults; then
  4524. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4525. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4526. fi
  4527. # Have a temporary directory for convenience. Make it in the build tree
  4528. # simply because there is no reason against having it here, and in addition,
  4529. # creating and moving files from /tmp can sometimes cause problems.
  4530. # Hook for its removal unless debugging.
  4531. # Note that there is a small window in which the directory will not be cleaned:
  4532. # after its creation but before its name has been assigned to `$tmp'.
  4533. $debug ||
  4534. {
  4535. tmp= ac_tmp=
  4536. trap 'exit_status=$?
  4537. : "${ac_tmp:=$tmp}"
  4538. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4539. ' 0
  4540. trap 'as_fn_exit 1' 1 2 13 15
  4541. }
  4542. # Create a (secure) tmp directory for tmp files.
  4543. {
  4544. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4545. test -d "$tmp"
  4546. } ||
  4547. {
  4548. tmp=./conf$$-$RANDOM
  4549. (umask 077 && mkdir "$tmp")
  4550. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4551. ac_tmp=$tmp
  4552. # Set up the scripts for CONFIG_FILES section.
  4553. # No need to generate them if there are no CONFIG_FILES.
  4554. # This happens for instance with `./config.status config.h'.
  4555. if test -n "$CONFIG_FILES"; then
  4556. ac_cr=`echo X | tr X '\015'`
  4557. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4558. # But we know of no other shell where ac_cr would be empty at this
  4559. # point, so we can use a bashism as a fallback.
  4560. if test "x$ac_cr" = x; then
  4561. eval ac_cr=\$\'\\r\'
  4562. fi
  4563. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4564. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4565. ac_cs_awk_cr='\\r'
  4566. else
  4567. ac_cs_awk_cr=$ac_cr
  4568. fi
  4569. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4570. _ACEOF
  4571. {
  4572. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4573. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4574. echo "_ACEOF"
  4575. } >conf$$subs.sh ||
  4576. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4577. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4578. ac_delim='%!_!# '
  4579. for ac_last_try in false false false false false :; do
  4580. . ./conf$$subs.sh ||
  4581. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4582. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4583. if test $ac_delim_n = $ac_delim_num; then
  4584. break
  4585. elif $ac_last_try; then
  4586. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4587. else
  4588. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4589. fi
  4590. done
  4591. rm -f conf$$subs.sh
  4592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4593. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4594. _ACEOF
  4595. sed -n '
  4596. h
  4597. s/^/S["/; s/!.*/"]=/
  4598. p
  4599. g
  4600. s/^[^!]*!//
  4601. :repl
  4602. t repl
  4603. s/'"$ac_delim"'$//
  4604. t delim
  4605. :nl
  4606. h
  4607. s/\(.\{148\}\)..*/\1/
  4608. t more1
  4609. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4610. p
  4611. n
  4612. b repl
  4613. :more1
  4614. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4615. p
  4616. g
  4617. s/.\{148\}//
  4618. t nl
  4619. :delim
  4620. h
  4621. s/\(.\{148\}\)..*/\1/
  4622. t more2
  4623. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4624. p
  4625. b
  4626. :more2
  4627. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4628. p
  4629. g
  4630. s/.\{148\}//
  4631. t delim
  4632. ' <conf$$subs.awk | sed '
  4633. /^[^""]/{
  4634. N
  4635. s/\n//
  4636. }
  4637. ' >>$CONFIG_STATUS || ac_write_fail=1
  4638. rm -f conf$$subs.awk
  4639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4640. _ACAWK
  4641. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4642. for (key in S) S_is_set[key] = 1
  4643. FS = ""
  4644. }
  4645. {
  4646. line = $ 0
  4647. nfields = split(line, field, "@")
  4648. substed = 0
  4649. len = length(field[1])
  4650. for (i = 2; i < nfields; i++) {
  4651. key = field[i]
  4652. keylen = length(key)
  4653. if (S_is_set[key]) {
  4654. value = S[key]
  4655. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4656. len += length(value) + length(field[++i])
  4657. substed = 1
  4658. } else
  4659. len += 1 + keylen
  4660. }
  4661. print line
  4662. }
  4663. _ACAWK
  4664. _ACEOF
  4665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4666. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4667. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4668. else
  4669. cat
  4670. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4671. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4672. _ACEOF
  4673. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4674. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4675. # trailing colons and then remove the whole line if VPATH becomes empty
  4676. # (actually we leave an empty line to preserve line numbers).
  4677. if test "x$srcdir" = x.; then
  4678. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4679. h
  4680. s///
  4681. s/^/:/
  4682. s/[ ]*$/:/
  4683. s/:\$(srcdir):/:/g
  4684. s/:\${srcdir}:/:/g
  4685. s/:@srcdir@:/:/g
  4686. s/^:*//
  4687. s/:*$//
  4688. x
  4689. s/\(=[ ]*\).*/\1/
  4690. G
  4691. s/\n//
  4692. s/^[^=]*=[ ]*$//
  4693. }'
  4694. fi
  4695. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4696. fi # test -n "$CONFIG_FILES"
  4697. # Set up the scripts for CONFIG_HEADERS section.
  4698. # No need to generate them if there are no CONFIG_HEADERS.
  4699. # This happens for instance with `./config.status Makefile'.
  4700. if test -n "$CONFIG_HEADERS"; then
  4701. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  4702. BEGIN {
  4703. _ACEOF
  4704. # Transform confdefs.h into an awk script `defines.awk', embedded as
  4705. # here-document in config.status, that substitutes the proper values into
  4706. # config.h.in to produce config.h.
  4707. # Create a delimiter string that does not exist in confdefs.h, to ease
  4708. # handling of long lines.
  4709. ac_delim='%!_!# '
  4710. for ac_last_try in false false :; do
  4711. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  4712. if test -z "$ac_tt"; then
  4713. break
  4714. elif $ac_last_try; then
  4715. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  4716. else
  4717. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4718. fi
  4719. done
  4720. # For the awk script, D is an array of macro values keyed by name,
  4721. # likewise P contains macro parameters if any. Preserve backslash
  4722. # newline sequences.
  4723. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4724. sed -n '
  4725. s/.\{148\}/&'"$ac_delim"'/g
  4726. t rset
  4727. :rset
  4728. s/^[ ]*#[ ]*define[ ][ ]*/ /
  4729. t def
  4730. d
  4731. :def
  4732. s/\\$//
  4733. t bsnl
  4734. s/["\\]/\\&/g
  4735. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4736. D["\1"]=" \3"/p
  4737. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  4738. d
  4739. :bsnl
  4740. s/["\\]/\\&/g
  4741. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4742. D["\1"]=" \3\\\\\\n"\\/p
  4743. t cont
  4744. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  4745. t cont
  4746. d
  4747. :cont
  4748. n
  4749. s/.\{148\}/&'"$ac_delim"'/g
  4750. t clear
  4751. :clear
  4752. s/\\$//
  4753. t bsnlc
  4754. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  4755. d
  4756. :bsnlc
  4757. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  4758. b cont
  4759. ' <confdefs.h | sed '
  4760. s/'"$ac_delim"'/"\\\
  4761. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  4762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4763. for (key in D) D_is_set[key] = 1
  4764. FS = ""
  4765. }
  4766. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  4767. line = \$ 0
  4768. split(line, arg, " ")
  4769. if (arg[1] == "#") {
  4770. defundef = arg[2]
  4771. mac1 = arg[3]
  4772. } else {
  4773. defundef = substr(arg[1], 2)
  4774. mac1 = arg[2]
  4775. }
  4776. split(mac1, mac2, "(") #)
  4777. macro = mac2[1]
  4778. prefix = substr(line, 1, index(line, defundef) - 1)
  4779. if (D_is_set[macro]) {
  4780. # Preserve the white space surrounding the "#".
  4781. print prefix "define", macro P[macro] D[macro]
  4782. next
  4783. } else {
  4784. # Replace #undef with comments. This is necessary, for example,
  4785. # in the case of _POSIX_SOURCE, which is predefined and required
  4786. # on some systems where configure will not decide to define it.
  4787. if (defundef == "undef") {
  4788. print "/*", prefix defundef, macro, "*/"
  4789. next
  4790. }
  4791. }
  4792. }
  4793. { print }
  4794. _ACAWK
  4795. _ACEOF
  4796. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4797. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  4798. fi # test -n "$CONFIG_HEADERS"
  4799. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  4800. shift
  4801. for ac_tag
  4802. do
  4803. case $ac_tag in
  4804. :[FHLC]) ac_mode=$ac_tag; continue;;
  4805. esac
  4806. case $ac_mode$ac_tag in
  4807. :[FHL]*:*);;
  4808. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4809. :[FH]-) ac_tag=-:-;;
  4810. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4811. esac
  4812. ac_save_IFS=$IFS
  4813. IFS=:
  4814. set x $ac_tag
  4815. IFS=$ac_save_IFS
  4816. shift
  4817. ac_file=$1
  4818. shift
  4819. case $ac_mode in
  4820. :L) ac_source=$1;;
  4821. :[FH])
  4822. ac_file_inputs=
  4823. for ac_f
  4824. do
  4825. case $ac_f in
  4826. -) ac_f="$ac_tmp/stdin";;
  4827. *) # Look for the file first in the build tree, then in the source tree
  4828. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4829. # because $ac_f cannot contain `:'.
  4830. test -f "$ac_f" ||
  4831. case $ac_f in
  4832. [\\/$]*) false;;
  4833. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4834. esac ||
  4835. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4836. esac
  4837. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4838. as_fn_append ac_file_inputs " '$ac_f'"
  4839. done
  4840. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4841. # use $as_me), people would be surprised to read:
  4842. # /* config.h. Generated by config.status. */
  4843. configure_input='Generated from '`
  4844. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4845. `' by configure.'
  4846. if test x"$ac_file" != x-; then
  4847. configure_input="$ac_file. $configure_input"
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4849. $as_echo "$as_me: creating $ac_file" >&6;}
  4850. fi
  4851. # Neutralize special characters interpreted by sed in replacement strings.
  4852. case $configure_input in #(
  4853. *\&* | *\|* | *\\* )
  4854. ac_sed_conf_input=`$as_echo "$configure_input" |
  4855. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4856. *) ac_sed_conf_input=$configure_input;;
  4857. esac
  4858. case $ac_tag in
  4859. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4860. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4861. esac
  4862. ;;
  4863. esac
  4864. ac_dir=`$as_dirname -- "$ac_file" ||
  4865. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4866. X"$ac_file" : 'X\(//\)[^/]' \| \
  4867. X"$ac_file" : 'X\(//\)$' \| \
  4868. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4869. $as_echo X"$ac_file" |
  4870. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4871. s//\1/
  4872. q
  4873. }
  4874. /^X\(\/\/\)[^/].*/{
  4875. s//\1/
  4876. q
  4877. }
  4878. /^X\(\/\/\)$/{
  4879. s//\1/
  4880. q
  4881. }
  4882. /^X\(\/\).*/{
  4883. s//\1/
  4884. q
  4885. }
  4886. s/.*/./; q'`
  4887. as_dir="$ac_dir"; as_fn_mkdir_p
  4888. ac_builddir=.
  4889. case "$ac_dir" in
  4890. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4891. *)
  4892. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4893. # A ".." for each directory in $ac_dir_suffix.
  4894. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4895. case $ac_top_builddir_sub in
  4896. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4897. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4898. esac ;;
  4899. esac
  4900. ac_abs_top_builddir=$ac_pwd
  4901. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4902. # for backward compatibility:
  4903. ac_top_builddir=$ac_top_build_prefix
  4904. case $srcdir in
  4905. .) # We are building in place.
  4906. ac_srcdir=.
  4907. ac_top_srcdir=$ac_top_builddir_sub
  4908. ac_abs_top_srcdir=$ac_pwd ;;
  4909. [\\/]* | ?:[\\/]* ) # Absolute name.
  4910. ac_srcdir=$srcdir$ac_dir_suffix;
  4911. ac_top_srcdir=$srcdir
  4912. ac_abs_top_srcdir=$srcdir ;;
  4913. *) # Relative name.
  4914. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4915. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4916. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4917. esac
  4918. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4919. case $ac_mode in
  4920. :F)
  4921. #
  4922. # CONFIG_FILE
  4923. #
  4924. case $INSTALL in
  4925. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4926. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  4927. esac
  4928. _ACEOF
  4929. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4930. # If the template does not know about datarootdir, expand it.
  4931. # FIXME: This hack should be removed a few years after 2.60.
  4932. ac_datarootdir_hack=; ac_datarootdir_seen=
  4933. ac_sed_dataroot='
  4934. /datarootdir/ {
  4935. p
  4936. q
  4937. }
  4938. /@datadir@/p
  4939. /@docdir@/p
  4940. /@infodir@/p
  4941. /@localedir@/p
  4942. /@mandir@/p'
  4943. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4944. *datarootdir*) ac_datarootdir_seen=yes;;
  4945. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4947. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4948. _ACEOF
  4949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4950. ac_datarootdir_hack='
  4951. s&@datadir@&$datadir&g
  4952. s&@docdir@&$docdir&g
  4953. s&@infodir@&$infodir&g
  4954. s&@localedir@&$localedir&g
  4955. s&@mandir@&$mandir&g
  4956. s&\\\${datarootdir}&$datarootdir&g' ;;
  4957. esac
  4958. _ACEOF
  4959. # Neutralize VPATH when `$srcdir' = `.'.
  4960. # Shell code in configure.ac might set extrasub.
  4961. # FIXME: do we really want to maintain this feature?
  4962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4963. ac_sed_extra="$ac_vpsub
  4964. $extrasub
  4965. _ACEOF
  4966. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4967. :t
  4968. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4969. s|@configure_input@|$ac_sed_conf_input|;t t
  4970. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4971. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4972. s&@srcdir@&$ac_srcdir&;t t
  4973. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4974. s&@top_srcdir@&$ac_top_srcdir&;t t
  4975. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4976. s&@builddir@&$ac_builddir&;t t
  4977. s&@abs_builddir@&$ac_abs_builddir&;t t
  4978. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4979. s&@INSTALL@&$ac_INSTALL&;t t
  4980. $ac_datarootdir_hack
  4981. "
  4982. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4983. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4984. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4985. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4986. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4987. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4989. which seems to be undefined. Please make sure it is defined" >&5
  4990. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4991. which seems to be undefined. Please make sure it is defined" >&2;}
  4992. rm -f "$ac_tmp/stdin"
  4993. case $ac_file in
  4994. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4995. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4996. esac \
  4997. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4998. ;;
  4999. :H)
  5000. #
  5001. # CONFIG_HEADER
  5002. #
  5003. if test x"$ac_file" != x-; then
  5004. {
  5005. $as_echo "/* $configure_input */" \
  5006. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5007. } >"$ac_tmp/config.h" \
  5008. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5009. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5011. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5012. else
  5013. rm -f "$ac_file"
  5014. mv "$ac_tmp/config.h" "$ac_file" \
  5015. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5016. fi
  5017. else
  5018. $as_echo "/* $configure_input */" \
  5019. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5020. || as_fn_error $? "could not create -" "$LINENO" 5
  5021. fi
  5022. ;;
  5023. esac
  5024. done # for ac_tag
  5025. as_fn_exit 0
  5026. _ACEOF
  5027. ac_clean_files=$ac_clean_files_save
  5028. test $ac_write_fail = 0 ||
  5029. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5030. # configure is writing to config.log, and then calls config.status.
  5031. # config.status does its own redirection, appending to config.log.
  5032. # Unfortunately, on DOS this fails, as config.log is still kept open
  5033. # by configure, so config.status won't be able to write to it; its
  5034. # output is simply discarded. So we exec the FD to /dev/null,
  5035. # effectively closing config.log, so it can be properly (re)opened and
  5036. # appended to by config.status. When coming back to configure, we
  5037. # need to make the FD available again.
  5038. if test "$no_create" != yes; then
  5039. ac_cs_success=:
  5040. ac_config_status_args=
  5041. test "$silent" = yes &&
  5042. ac_config_status_args="$ac_config_status_args --quiet"
  5043. exec 5>/dev/null
  5044. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5045. exec 5>>config.log
  5046. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5047. # would make configure fail if this is the last instruction.
  5048. $ac_cs_success || as_fn_exit 1
  5049. fi
  5050. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5052. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5053. fi