configure 146 KB

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