configure 165 KB

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