configure 145 KB

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