configure 143 KB

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