1
0

configure 148 KB

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