configure 175 KB

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