configure 146 KB

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