configure 144 KB

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