configure 150 KB

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