configure 145 KB

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