configure 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for cairo 1.16.0.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. as_echo='printf %s\n'
  37. as_echo_n='printf %s'
  38. # The user is always right.
  39. if test "${PATH_SEPARATOR+set}" != set; then
  40. PATH_SEPARATOR=:
  41. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  42. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  43. PATH_SEPARATOR=';'
  44. }
  45. fi
  46. # IFS
  47. # We need space, tab and new line, in precisely that order. Quoting is
  48. # there to prevent editors from complaining about space-tab.
  49. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  50. # splitting by setting IFS to empty value.)
  51. IFS=" "" $as_nl"
  52. # Find who we are. Look in the path if we contain no directory separator.
  53. as_myself=
  54. case $0 in #((
  55. *[\\/]* ) as_myself=$0 ;;
  56. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  57. for as_dir in $PATH
  58. do
  59. IFS=$as_save_IFS
  60. test -z "$as_dir" && as_dir=.
  61. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  62. done
  63. IFS=$as_save_IFS
  64. ;;
  65. esac
  66. # We did not find ourselves, most probably we were run as `sh COMMAND'
  67. # in which case we are not to be found in the path.
  68. if test "x$as_myself" = x; then
  69. as_myself=$0
  70. fi
  71. if test ! -f "$as_myself"; then
  72. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  73. exit 1
  74. fi
  75. # Unset variables that we do not need and which cause bugs (e.g. in
  76. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  77. # suppresses any "Segmentation fault" message there. '((' could
  78. # trigger a bug in pdksh 5.2.14.
  79. for as_var in BASH_ENV ENV MAIL MAILPATH
  80. do eval test x\${$as_var+set} = xset \
  81. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  82. done
  83. PS1='$ '
  84. PS2='> '
  85. PS4='+ '
  86. # NLS nuisances.
  87. LC_ALL=C
  88. export LC_ALL
  89. LANGUAGE=C
  90. export LANGUAGE
  91. # CDPATH.
  92. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  93. # Use a proper internal environment variable to ensure we don't fall
  94. # into an infinite loop, continuously re-executing ourselves.
  95. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  96. _as_can_reexec=no; export _as_can_reexec;
  97. # We cannot yet assume a decent shell, so we have to provide a
  98. # neutralization value for shells without unset; and this also
  99. # works around shells that cannot unset nonexistent variables.
  100. # Preserve -v and -x to the replacement shell.
  101. BASH_ENV=/dev/null
  102. ENV=/dev/null
  103. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  104. case $- in # ((((
  105. *v*x* | *x*v* ) as_opts=-vx ;;
  106. *v* ) as_opts=-v ;;
  107. *x* ) as_opts=-x ;;
  108. * ) as_opts= ;;
  109. esac
  110. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  111. # Admittedly, this is quite paranoid, since all the known shells bail
  112. # out after a failed `exec'.
  113. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  114. as_fn_exit 255
  115. fi
  116. # We don't want this to propagate to other subprocesses.
  117. { _as_can_reexec=; unset _as_can_reexec;}
  118. if test "x$CONFIG_SHELL" = x; then
  119. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  120. emulate sh
  121. NULLCMD=:
  122. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  123. # is contrary to our usage. Disable this feature.
  124. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  125. setopt NO_GLOB_SUBST
  126. else
  127. case \`(set -o) 2>/dev/null\` in #(
  128. *posix*) :
  129. set -o posix ;; #(
  130. *) :
  131. ;;
  132. esac
  133. fi
  134. "
  135. as_required="as_fn_return () { (exit \$1); }
  136. as_fn_success () { as_fn_return 0; }
  137. as_fn_failure () { as_fn_return 1; }
  138. as_fn_ret_success () { return 0; }
  139. as_fn_ret_failure () { return 1; }
  140. exitcode=0
  141. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  142. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  143. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  144. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  145. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  146. else
  147. exitcode=1; echo positional parameters were not saved.
  148. fi
  149. test x\$exitcode = x0 || exit 1
  150. test -x / || exit 1"
  151. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  152. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  153. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  154. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  155. test \$(( 1 + 1 )) = 2 || exit 1
  156. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  157. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  158. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  159. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  160. PATH=/empty FPATH=/empty; export PATH FPATH
  161. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  162. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in bash sh ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. export CONFIG_SHELL
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. case $- in # ((((
  208. *v*x* | *x*v* ) as_opts=-vx ;;
  209. *v* ) as_opts=-v ;;
  210. *x* ) as_opts=-x ;;
  211. * ) as_opts= ;;
  212. esac
  213. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  214. # Admittedly, this is quite paranoid, since all the known shells bail
  215. # out after a failed `exec'.
  216. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  217. exit 255
  218. fi
  219. if test x$as_have_required = xno; then :
  220. $as_echo "$0: This script requires a shell more modern than all"
  221. $as_echo "$0: the shells that I found on your system."
  222. if test x${ZSH_VERSION+set} = xset ; then
  223. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  224. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  225. else
  226. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  227. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=cairo
  228. $0: about your system, including any error possibly output
  229. $0: before this message. Then install a modern shell, or
  230. $0: manually run the script under such a shell if you do
  231. $0: have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_executable_p FILE
  314. # -----------------------
  315. # Test if FILE is an executable regular file.
  316. as_fn_executable_p ()
  317. {
  318. test -f "$1" && test -x "$1"
  319. } # as_fn_executable_p
  320. # as_fn_append VAR VALUE
  321. # ----------------------
  322. # Append the text in VALUE to the end of the definition contained in VAR. Take
  323. # advantage of any shell optimizations that allow amortized linear growth over
  324. # repeated appends, instead of the typical quadratic growth present in naive
  325. # implementations.
  326. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  327. eval 'as_fn_append ()
  328. {
  329. eval $1+=\$2
  330. }'
  331. else
  332. as_fn_append ()
  333. {
  334. eval $1=\$$1\$2
  335. }
  336. fi # as_fn_append
  337. # as_fn_arith ARG...
  338. # ------------------
  339. # Perform arithmetic evaluation on the ARGs, and store the result in the
  340. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  341. # must be portable across $(()) and expr.
  342. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  343. eval 'as_fn_arith ()
  344. {
  345. as_val=$(( $* ))
  346. }'
  347. else
  348. as_fn_arith ()
  349. {
  350. as_val=`expr "$@" || test $? -eq 1`
  351. }
  352. fi # as_fn_arith
  353. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  354. # ----------------------------------------
  355. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  356. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  357. # script with STATUS, using 1 if that was 0.
  358. as_fn_error ()
  359. {
  360. as_status=$1; test $as_status -eq 0 && as_status=1
  361. if test "$4"; then
  362. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  363. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  364. fi
  365. $as_echo "$as_me: error: $2" >&2
  366. as_fn_exit $as_status
  367. } # as_fn_error
  368. if expr a : '\(a\)' >/dev/null 2>&1 &&
  369. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  370. as_expr=expr
  371. else
  372. as_expr=false
  373. fi
  374. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  375. as_basename=basename
  376. else
  377. as_basename=false
  378. fi
  379. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  380. as_dirname=dirname
  381. else
  382. as_dirname=false
  383. fi
  384. as_me=`$as_basename -- "$0" ||
  385. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  386. X"$0" : 'X\(//\)$' \| \
  387. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  388. $as_echo X/"$0" |
  389. sed '/^.*\/\([^/][^/]*\)\/*$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\/\)$/{
  394. s//\1/
  395. q
  396. }
  397. /^X\/\(\/\).*/{
  398. s//\1/
  399. q
  400. }
  401. s/.*/./; q'`
  402. # Avoid depending upon Character Ranges.
  403. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  404. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  405. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  406. as_cr_digits='0123456789'
  407. as_cr_alnum=$as_cr_Letters$as_cr_digits
  408. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  409. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  410. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  411. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  412. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  413. sed -n '
  414. p
  415. /[$]LINENO/=
  416. ' <$as_myself |
  417. sed '
  418. s/[$]LINENO.*/&-/
  419. t lineno
  420. b
  421. :lineno
  422. N
  423. :loop
  424. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  425. t loop
  426. s/-\n.*//
  427. ' >$as_me.lineno &&
  428. chmod +x "$as_me.lineno" ||
  429. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  430. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  431. # already done that, so ensure we don't try to do so again and fall
  432. # in an infinite loop. This has already happened in practice.
  433. _as_can_reexec=no; export _as_can_reexec
  434. # Don't try to exec as it changes $[0], causing all sort of problems
  435. # (the dirname of $[0] is not the place where we might find the
  436. # original and so on. Autoconf is especially sensitive to this).
  437. . "./$as_me.lineno"
  438. # Exit status is that of the last command.
  439. exit
  440. }
  441. ECHO_C= ECHO_N= ECHO_T=
  442. case `echo -n x` in #(((((
  443. -n*)
  444. case `echo 'xy\c'` in
  445. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  446. xy) ECHO_C='\c';;
  447. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  448. ECHO_T=' ';;
  449. esac;;
  450. *)
  451. ECHO_N='-n';;
  452. esac
  453. rm -f conf$$ conf$$.exe conf$$.file
  454. if test -d conf$$.dir; then
  455. rm -f conf$$.dir/conf$$.file
  456. else
  457. rm -f conf$$.dir
  458. mkdir conf$$.dir 2>/dev/null
  459. fi
  460. if (echo >conf$$.file) 2>/dev/null; then
  461. if ln -s conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s='ln -s'
  463. # ... but there are two gotchas:
  464. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  465. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  466. # In both cases, we have to default to `cp -pR'.
  467. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  468. as_ln_s='cp -pR'
  469. elif ln conf$$.file conf$$ 2>/dev/null; then
  470. as_ln_s=ln
  471. else
  472. as_ln_s='cp -pR'
  473. fi
  474. else
  475. as_ln_s='cp -pR'
  476. fi
  477. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  478. rmdir conf$$.dir 2>/dev/null
  479. if mkdir -p . 2>/dev/null; then
  480. as_mkdir_p='mkdir -p "$as_dir"'
  481. else
  482. test -d ./-p && rmdir ./-p
  483. as_mkdir_p=false
  484. fi
  485. as_test_x='test -x'
  486. as_executable_p=as_fn_executable_p
  487. # Sed expression to map a string onto a valid CPP name.
  488. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  489. # Sed expression to map a string onto a valid variable name.
  490. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. test -n "$DJDIR" || exec 7<&0 </dev/null
  493. exec 6>&1
  494. # Name of the host.
  495. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  496. # so uname gets run too.
  497. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  498. #
  499. # Initializations.
  500. #
  501. ac_default_prefix=/usr/local
  502. ac_clean_files=
  503. ac_config_libobj_dir=.
  504. LIBOBJS=
  505. cross_compiling=no
  506. subdirs=
  507. MFLAGS=
  508. MAKEFLAGS=
  509. # Identity of this package.
  510. PACKAGE_NAME='cairo'
  511. PACKAGE_TARNAME='cairo'
  512. PACKAGE_VERSION='1.16.0'
  513. PACKAGE_STRING='cairo 1.16.0'
  514. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=cairo'
  515. PACKAGE_URL='https://cairographics.org/'
  516. # Factoring default headers for most tests.
  517. ac_includes_default="\
  518. #include <stdio.h>
  519. #ifdef HAVE_SYS_TYPES_H
  520. # include <sys/types.h>
  521. #endif
  522. #ifdef HAVE_SYS_STAT_H
  523. # include <sys/stat.h>
  524. #endif
  525. #ifdef STDC_HEADERS
  526. # include <stdlib.h>
  527. # include <stddef.h>
  528. #else
  529. # ifdef HAVE_STDLIB_H
  530. # include <stdlib.h>
  531. # endif
  532. #endif
  533. #ifdef HAVE_STRING_H
  534. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  535. # include <memory.h>
  536. # endif
  537. # include <string.h>
  538. #endif
  539. #ifdef HAVE_STRINGS_H
  540. # include <strings.h>
  541. #endif
  542. #ifdef HAVE_INTTYPES_H
  543. # include <inttypes.h>
  544. #endif
  545. #ifdef HAVE_STDINT_H
  546. # include <stdint.h>
  547. #endif
  548. #ifdef HAVE_UNISTD_H
  549. # include <unistd.h>
  550. #endif"
  551. ac_unique_file="src/cairo.h"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. HAVE_GTK_FALSE
  557. HAVE_GTK_TRUE
  558. gtk_LIBS
  559. gtk_CFLAGS
  560. BUILD_CXX_FALSE
  561. BUILD_CXX_TRUE
  562. DISABLE_SOME_FLOATING_POINT_FALSE
  563. DISABLE_SOME_FLOATING_POINT_TRUE
  564. shm_LIBS
  565. BUILD_SPHINX_FALSE
  566. BUILD_SPHINX_TRUE
  567. glib_LIBS
  568. glib_CFLAGS
  569. CAIRO_HAS_SYMBOL_LOOKUP_FALSE
  570. CAIRO_HAS_SYMBOL_LOOKUP_TRUE
  571. BFD_LIBS
  572. CAIRO_HAS_INTERPRETER_FALSE
  573. CAIRO_HAS_INTERPRETER_TRUE
  574. CAIRO_HAS_TRACE_FALSE
  575. CAIRO_HAS_TRACE_TRUE
  576. SHLIB_EXT
  577. BUILD_ANY2PPM_FALSE
  578. BUILD_ANY2PPM_TRUE
  579. CAIRO_TEST_MODE
  580. CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE
  581. CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE
  582. GOBJECT_LIBS
  583. GOBJECT_CFLAGS
  584. real_pthread_LIBS
  585. real_pthread_CFLAGS
  586. pthread_LIBS
  587. pthread_CFLAGS
  588. HAVE_PTHREAD_FALSE
  589. HAVE_PTHREAD_TRUE
  590. HAVE_REAL_PTHREAD_FALSE
  591. HAVE_REAL_PTHREAD_TRUE
  592. CAIRO_HAS_PTHREAD_FALSE
  593. CAIRO_HAS_PTHREAD_TRUE
  594. CAIRO_HAS_XML_SURFACE_FALSE
  595. CAIRO_HAS_XML_SURFACE_TRUE
  596. CAIRO_HAS_TEE_SURFACE_FALSE
  597. CAIRO_HAS_TEE_SURFACE_TRUE
  598. pixman_LIBS
  599. pixman_CFLAGS
  600. CAIRO_HAS_TEST_SURFACES_FALSE
  601. CAIRO_HAS_TEST_SURFACES_TRUE
  602. CAIRO_CAN_TEST_SVG_SURFACE_FALSE
  603. CAIRO_CAN_TEST_SVG_SURFACE_TRUE
  604. LIBRSVG_LIBS
  605. LIBRSVG_CFLAGS
  606. CAIRO_HAS_SVG_SURFACE_FALSE
  607. CAIRO_HAS_SVG_SURFACE_TRUE
  608. CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE
  609. CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE
  610. CAIRO_CAN_TEST_PDF_SURFACE_FALSE
  611. CAIRO_CAN_TEST_PDF_SURFACE_TRUE
  612. POPPLER_LIBS
  613. POPPLER_CFLAGS
  614. CAIRO_HAS_PDF_SURFACE_FALSE
  615. CAIRO_HAS_PDF_SURFACE_TRUE
  616. CAIRO_HAS_SPECTRE_FALSE
  617. CAIRO_HAS_SPECTRE_TRUE
  618. CAIRO_CAN_TEST_PS_SURFACE_FALSE
  619. CAIRO_CAN_TEST_PS_SURFACE_TRUE
  620. LIBSPECTRE_LIBS
  621. LIBSPECTRE_CFLAGS
  622. CAIRO_HAS_PS_SURFACE_FALSE
  623. CAIRO_HAS_PS_SURFACE_TRUE
  624. CAIRO_HAS_FC_FONT_FALSE
  625. CAIRO_HAS_FC_FONT_TRUE
  626. FONTCONFIG_LIBS
  627. FONTCONFIG_CFLAGS
  628. CAIRO_HAS_FT_FONT_FALSE
  629. CAIRO_HAS_FT_FONT_TRUE
  630. FREETYPE_CONFIG
  631. FREETYPE_LIBS
  632. FREETYPE_CFLAGS
  633. CAIRO_HAS_SCRIPT_SURFACE_FALSE
  634. CAIRO_HAS_SCRIPT_SURFACE_TRUE
  635. CAIRO_HAS_WGL_FUNCTIONS_FALSE
  636. CAIRO_HAS_WGL_FUNCTIONS_TRUE
  637. CAIRO_HAS_GLX_FUNCTIONS_FALSE
  638. CAIRO_HAS_GLX_FUNCTIONS_TRUE
  639. CAIRO_HAS_EGL_FUNCTIONS_FALSE
  640. CAIRO_HAS_EGL_FUNCTIONS_TRUE
  641. egl_LIBS
  642. egl_CFLAGS
  643. CAIRO_HAS_VG_SURFACE_FALSE
  644. CAIRO_HAS_VG_SURFACE_TRUE
  645. CAIRO_HAS_DIRECTFB_SURFACE_FALSE
  646. CAIRO_HAS_DIRECTFB_SURFACE_TRUE
  647. directfb_LIBS
  648. directfb_CFLAGS
  649. CAIRO_HAS_COGL_SURFACE_FALSE
  650. CAIRO_HAS_COGL_SURFACE_TRUE
  651. cogl_LIBS
  652. cogl_CFLAGS
  653. CAIRO_HAS_GLESV3_SURFACE_FALSE
  654. CAIRO_HAS_GLESV3_SURFACE_TRUE
  655. glesv3_LIBS
  656. glesv3_CFLAGS
  657. CAIRO_HAS_GLESV2_SURFACE_FALSE
  658. CAIRO_HAS_GLESV2_SURFACE_TRUE
  659. glesv2_LIBS
  660. glesv2_CFLAGS
  661. CAIRO_HAS_GL_SURFACE_FALSE
  662. CAIRO_HAS_GL_SURFACE_TRUE
  663. gl_LIBS
  664. gl_CFLAGS
  665. CAIRO_HAS_PNG_FUNCTIONS_FALSE
  666. CAIRO_HAS_PNG_FUNCTIONS_TRUE
  667. png_LIBS
  668. png_CFLAGS
  669. png_REQUIRES
  670. CAIRO_HAS_GALLIUM_SURFACE_FALSE
  671. CAIRO_HAS_GALLIUM_SURFACE_TRUE
  672. gallium_DIR
  673. mesa_DIR
  674. CAIRO_HAS_DRM_SURFACE_FALSE
  675. CAIRO_HAS_DRM_SURFACE_TRUE
  676. drm_LIBS
  677. drm_CFLAGS
  678. CAIRO_HAS_BEOS_SURFACE_FALSE
  679. CAIRO_HAS_BEOS_SURFACE_TRUE
  680. CAIRO_HAS_OS2_SURFACE_FALSE
  681. CAIRO_HAS_OS2_SURFACE_TRUE
  682. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE
  683. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE
  684. GS
  685. CAIRO_HAS_WIN32_FONT_FALSE
  686. CAIRO_HAS_WIN32_FONT_TRUE
  687. CAIRO_HAS_WIN32_SURFACE_FALSE
  688. CAIRO_HAS_WIN32_SURFACE_TRUE
  689. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE
  690. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE
  691. CAIRO_HAS_QUARTZ_FONT_FALSE
  692. CAIRO_HAS_QUARTZ_FONT_TRUE
  693. CAIRO_HAS_QUARTZ_SURFACE_FALSE
  694. CAIRO_HAS_QUARTZ_SURFACE_TRUE
  695. CAIRO_HAS_QT_SURFACE_FALSE
  696. CAIRO_HAS_QT_SURFACE_TRUE
  697. qt_LIBS
  698. qt_CFLAGS
  699. CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE
  700. CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE
  701. xcb_shm_LIBS
  702. xcb_shm_CFLAGS
  703. CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE
  704. CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE
  705. xlib_xcb_LIBS
  706. xlib_xcb_CFLAGS
  707. CAIRO_HAS_XCB_SURFACE_FALSE
  708. CAIRO_HAS_XCB_SURFACE_TRUE
  709. xcb_LIBS
  710. xcb_CFLAGS
  711. CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE
  712. CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE
  713. xlib_xrender_LIBS
  714. xlib_xrender_CFLAGS
  715. CAIRO_HAS_XLIB_SURFACE_FALSE
  716. CAIRO_HAS_XLIB_SURFACE_TRUE
  717. X_EXTRA_LIBS
  718. X_LIBS
  719. X_PRE_LIBS
  720. X_CFLAGS
  721. xlib_LIBS
  722. xlib_CFLAGS
  723. CAIRO_HAS_DLSYM_FALSE
  724. CAIRO_HAS_DLSYM_TRUE
  725. CAIRO_HAS_DL_FALSE
  726. CAIRO_HAS_DL_TRUE
  727. lzo_LIBS
  728. VALGRIND_LIBS
  729. VALGRIND_CFLAGS
  730. CAIRO_HAS_LCOV_FALSE
  731. CAIRO_HAS_LCOV_TRUE
  732. LTP_GENHTML
  733. LTP
  734. SHTOOL
  735. CAIROBOILERPLATE_LIBS
  736. SHM_LIBS
  737. HAVE_SHM_FALSE
  738. HAVE_SHM_TRUE
  739. LIBM
  740. OS_WIN32_FALSE
  741. OS_WIN32_TRUE
  742. CROSS_COMPILING_FALSE
  743. CROSS_COMPILING_TRUE
  744. CAIRO_TEST_UNDEFINED_LDFLAGS
  745. CAIRO_NONPKGCONFIG_LIBS
  746. CAIRO_LIBS
  747. CAIRO_NONPKGCONFIG_CFLAGS
  748. CAIRO_LDFLAGS
  749. CAIRO_CFLAGS
  750. CAIRO_REQUIRES
  751. PKGCONFIG_REQUIRES
  752. CXXCPP
  753. am__fastdepCXX_FALSE
  754. am__fastdepCXX_TRUE
  755. CXXDEPMODE
  756. ac_ct_CXX
  757. CXXFLAGS
  758. CXX
  759. XARGS
  760. FIND
  761. CAIRO_LIBTOOL_VERSION_INFO
  762. CAIRO_RELEASE_STATUS
  763. CAIRO_VERSION_SONUM
  764. CAIRO_VERSION_MICRO
  765. CAIRO_VERSION_MINOR
  766. CAIRO_VERSION_MAJOR
  767. GTK_DOC_USE_REBASE_FALSE
  768. GTK_DOC_USE_REBASE_TRUE
  769. GTK_DOC_USE_LIBTOOL_FALSE
  770. GTK_DOC_USE_LIBTOOL_TRUE
  771. GTK_DOC_BUILD_PDF_FALSE
  772. GTK_DOC_BUILD_PDF_TRUE
  773. GTK_DOC_BUILD_HTML_FALSE
  774. GTK_DOC_BUILD_HTML_TRUE
  775. ENABLE_GTK_DOC_FALSE
  776. ENABLE_GTK_DOC_TRUE
  777. HAVE_GTK_DOC_FALSE
  778. HAVE_GTK_DOC_TRUE
  779. GTKDOC_DEPS_LIBS
  780. GTKDOC_DEPS_CFLAGS
  781. HTML_DIR
  782. GTKDOC_MKPDF
  783. GTKDOC_REBASE
  784. GTKDOC_CHECK_PATH
  785. GTKDOC_CHECK
  786. PKG_CONFIG
  787. LT_SYS_LIBRARY_PATH
  788. OTOOL64
  789. OTOOL
  790. LIPO
  791. NMEDIT
  792. DSYMUTIL
  793. MANIFEST_TOOL
  794. RANLIB
  795. LN_S
  796. NM
  797. ac_ct_DUMPBIN
  798. DUMPBIN
  799. LD
  800. FGREP
  801. SED
  802. host_os
  803. host_vendor
  804. host_cpu
  805. host
  806. build_os
  807. build_vendor
  808. build_cpu
  809. build
  810. LIBTOOL
  811. OBJDUMP
  812. DLLTOOL
  813. AS
  814. ac_ct_AR
  815. AR
  816. AM_BACKSLASH
  817. AM_DEFAULT_VERBOSITY
  818. AM_DEFAULT_V
  819. AM_V
  820. am__fastdepCC_FALSE
  821. am__fastdepCC_TRUE
  822. CCDEPMODE
  823. am__nodep
  824. AMDEPBACKSLASH
  825. AMDEP_FALSE
  826. AMDEP_TRUE
  827. am__include
  828. DEPDIR
  829. am__untar
  830. am__tar
  831. AMTAR
  832. am__leading_dot
  833. SET_MAKE
  834. AWK
  835. mkdir_p
  836. MKDIR_P
  837. INSTALL_STRIP_PROGRAM
  838. STRIP
  839. install_sh
  840. MAKEINFO
  841. AUTOHEADER
  842. AUTOMAKE
  843. AUTOCONF
  844. ACLOCAL
  845. VERSION
  846. PACKAGE
  847. CYGPATH_W
  848. am__isrc
  849. INSTALL_DATA
  850. INSTALL_SCRIPT
  851. INSTALL_PROGRAM
  852. EGREP
  853. GREP
  854. CPP
  855. OBJEXT
  856. EXEEXT
  857. ac_ct_CC
  858. CPPFLAGS
  859. LDFLAGS
  860. CFLAGS
  861. CC
  862. target_alias
  863. host_alias
  864. build_alias
  865. LIBS
  866. ECHO_T
  867. ECHO_N
  868. ECHO_C
  869. DEFS
  870. mandir
  871. localedir
  872. libdir
  873. psdir
  874. pdfdir
  875. dvidir
  876. htmldir
  877. infodir
  878. docdir
  879. oldincludedir
  880. includedir
  881. localstatedir
  882. sharedstatedir
  883. sysconfdir
  884. datadir
  885. datarootdir
  886. libexecdir
  887. sbindir
  888. bindir
  889. program_transform_name
  890. prefix
  891. exec_prefix
  892. PACKAGE_URL
  893. PACKAGE_BUGREPORT
  894. PACKAGE_STRING
  895. PACKAGE_VERSION
  896. PACKAGE_TARNAME
  897. PACKAGE_NAME
  898. PATH_SEPARATOR
  899. SHELL
  900. am__quote'
  901. ac_subst_files=''
  902. ac_user_opts='
  903. enable_option_checking
  904. enable_dependency_tracking
  905. enable_silent_rules
  906. enable_shared
  907. enable_static
  908. with_pic
  909. enable_fast_install
  910. with_aix_soname
  911. with_gnu_ld
  912. with_libtool_sysroot
  913. enable_libtool_lock
  914. with_html_dir
  915. enable_gtk_doc
  916. enable_gtk_doc_html
  917. enable_gtk_doc_pdf
  918. enable_largefile
  919. enable_atomic
  920. enable_gcov
  921. enable_valgrind
  922. enable_xlib
  923. with_x
  924. enable_xlib_xrender
  925. enable_xcb
  926. enable_xlib_xcb
  927. enable_xcb_shm
  928. enable_qt
  929. enable_quartz
  930. enable_quartz_font
  931. enable_quartz_image
  932. enable_win32
  933. enable_win32_font
  934. enable_os2
  935. enable_beos
  936. enable_drm
  937. enable_gallium
  938. with_gallium
  939. enable_png
  940. enable_gl
  941. enable_glesv2
  942. enable_glesv3
  943. enable_cogl
  944. enable_directfb
  945. enable_vg
  946. enable_egl
  947. enable_glx
  948. enable_wgl
  949. enable_script
  950. enable_ft
  951. enable_fc
  952. enable_ps
  953. enable_pdf
  954. enable_svg
  955. enable_test_surfaces
  956. enable_tee
  957. enable_xml
  958. enable_pthread
  959. enable_gobject
  960. enable_full_testing
  961. enable_trace
  962. enable_interpreter
  963. enable_symbol_lookup
  964. enable_some_floating_point
  965. '
  966. ac_precious_vars='build_alias
  967. host_alias
  968. target_alias
  969. CC
  970. CFLAGS
  971. LDFLAGS
  972. LIBS
  973. CPPFLAGS
  974. CPP
  975. LT_SYS_LIBRARY_PATH
  976. PKG_CONFIG
  977. GTKDOC_DEPS_CFLAGS
  978. GTKDOC_DEPS_LIBS
  979. CXX
  980. CXXFLAGS
  981. CCC
  982. CXXCPP
  983. VALGRIND_CFLAGS
  984. VALGRIND_LIBS
  985. xlib_CFLAGS
  986. xlib_LIBS
  987. xlib_xrender_CFLAGS
  988. xlib_xrender_LIBS
  989. xcb_CFLAGS
  990. xcb_LIBS
  991. xlib_xcb_CFLAGS
  992. xlib_xcb_LIBS
  993. xcb_shm_CFLAGS
  994. xcb_shm_LIBS
  995. qt_CFLAGS
  996. qt_LIBS
  997. drm_CFLAGS
  998. drm_LIBS
  999. png_REQUIRES
  1000. png_CFLAGS
  1001. png_LIBS
  1002. gl_CFLAGS
  1003. gl_LIBS
  1004. glesv2_CFLAGS
  1005. glesv2_LIBS
  1006. glesv3_CFLAGS
  1007. glesv3_LIBS
  1008. cogl_CFLAGS
  1009. cogl_LIBS
  1010. directfb_CFLAGS
  1011. directfb_LIBS
  1012. egl_CFLAGS
  1013. egl_LIBS
  1014. FREETYPE_CFLAGS
  1015. FREETYPE_LIBS
  1016. FONTCONFIG_CFLAGS
  1017. FONTCONFIG_LIBS
  1018. LIBSPECTRE_CFLAGS
  1019. LIBSPECTRE_LIBS
  1020. POPPLER_CFLAGS
  1021. POPPLER_LIBS
  1022. LIBRSVG_CFLAGS
  1023. LIBRSVG_LIBS
  1024. pixman_CFLAGS
  1025. pixman_LIBS
  1026. GOBJECT_CFLAGS
  1027. GOBJECT_LIBS
  1028. glib_CFLAGS
  1029. glib_LIBS
  1030. gtk_CFLAGS
  1031. gtk_LIBS'
  1032. # Initialize some variables set by options.
  1033. ac_init_help=
  1034. ac_init_version=false
  1035. ac_unrecognized_opts=
  1036. ac_unrecognized_sep=
  1037. # The variables have the same names as the options, with
  1038. # dashes changed to underlines.
  1039. cache_file=/dev/null
  1040. exec_prefix=NONE
  1041. no_create=
  1042. no_recursion=
  1043. prefix=NONE
  1044. program_prefix=NONE
  1045. program_suffix=NONE
  1046. program_transform_name=s,x,x,
  1047. silent=
  1048. site=
  1049. srcdir=
  1050. verbose=
  1051. x_includes=NONE
  1052. x_libraries=NONE
  1053. # Installation directory options.
  1054. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1055. # and all the variables that are supposed to be based on exec_prefix
  1056. # by default will actually change.
  1057. # Use braces instead of parens because sh, perl, etc. also accept them.
  1058. # (The list follows the same order as the GNU Coding Standards.)
  1059. bindir='${exec_prefix}/bin'
  1060. sbindir='${exec_prefix}/sbin'
  1061. libexecdir='${exec_prefix}/libexec'
  1062. datarootdir='${prefix}/share'
  1063. datadir='${datarootdir}'
  1064. sysconfdir='${prefix}/etc'
  1065. sharedstatedir='${prefix}/com'
  1066. localstatedir='${prefix}/var'
  1067. includedir='${prefix}/include'
  1068. oldincludedir='/usr/include'
  1069. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1070. infodir='${datarootdir}/info'
  1071. htmldir='${docdir}'
  1072. dvidir='${docdir}'
  1073. pdfdir='${docdir}'
  1074. psdir='${docdir}'
  1075. libdir='${exec_prefix}/lib'
  1076. localedir='${datarootdir}/locale'
  1077. mandir='${datarootdir}/man'
  1078. ac_prev=
  1079. ac_dashdash=
  1080. for ac_option
  1081. do
  1082. # If the previous option needs an argument, assign it.
  1083. if test -n "$ac_prev"; then
  1084. eval $ac_prev=\$ac_option
  1085. ac_prev=
  1086. continue
  1087. fi
  1088. case $ac_option in
  1089. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1090. *=) ac_optarg= ;;
  1091. *) ac_optarg=yes ;;
  1092. esac
  1093. # Accept the important Cygnus configure options, so we can diagnose typos.
  1094. case $ac_dashdash$ac_option in
  1095. --)
  1096. ac_dashdash=yes ;;
  1097. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1098. ac_prev=bindir ;;
  1099. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1100. bindir=$ac_optarg ;;
  1101. -build | --build | --buil | --bui | --bu)
  1102. ac_prev=build_alias ;;
  1103. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1104. build_alias=$ac_optarg ;;
  1105. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1106. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1107. ac_prev=cache_file ;;
  1108. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1109. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1110. cache_file=$ac_optarg ;;
  1111. --config-cache | -C)
  1112. cache_file=config.cache ;;
  1113. -datadir | --datadir | --datadi | --datad)
  1114. ac_prev=datadir ;;
  1115. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1116. datadir=$ac_optarg ;;
  1117. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1118. | --dataroo | --dataro | --datar)
  1119. ac_prev=datarootdir ;;
  1120. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1121. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1122. datarootdir=$ac_optarg ;;
  1123. -disable-* | --disable-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error $? "invalid feature name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "enable_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval enable_$ac_useropt=no ;;
  1138. -docdir | --docdir | --docdi | --doc | --do)
  1139. ac_prev=docdir ;;
  1140. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1141. docdir=$ac_optarg ;;
  1142. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1143. ac_prev=dvidir ;;
  1144. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1145. dvidir=$ac_optarg ;;
  1146. -enable-* | --enable-*)
  1147. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1148. # Reject names that are not valid shell variable names.
  1149. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1150. as_fn_error $? "invalid feature name: $ac_useropt"
  1151. ac_useropt_orig=$ac_useropt
  1152. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1153. case $ac_user_opts in
  1154. *"
  1155. "enable_$ac_useropt"
  1156. "*) ;;
  1157. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1158. ac_unrecognized_sep=', ';;
  1159. esac
  1160. eval enable_$ac_useropt=\$ac_optarg ;;
  1161. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1162. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1163. | --exec | --exe | --ex)
  1164. ac_prev=exec_prefix ;;
  1165. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1166. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1167. | --exec=* | --exe=* | --ex=*)
  1168. exec_prefix=$ac_optarg ;;
  1169. -gas | --gas | --ga | --g)
  1170. # Obsolete; use --with-gas.
  1171. with_gas=yes ;;
  1172. -help | --help | --hel | --he | -h)
  1173. ac_init_help=long ;;
  1174. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1175. ac_init_help=recursive ;;
  1176. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1177. ac_init_help=short ;;
  1178. -host | --host | --hos | --ho)
  1179. ac_prev=host_alias ;;
  1180. -host=* | --host=* | --hos=* | --ho=*)
  1181. host_alias=$ac_optarg ;;
  1182. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1183. ac_prev=htmldir ;;
  1184. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1185. | --ht=*)
  1186. htmldir=$ac_optarg ;;
  1187. -includedir | --includedir | --includedi | --included | --include \
  1188. | --includ | --inclu | --incl | --inc)
  1189. ac_prev=includedir ;;
  1190. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1191. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1192. includedir=$ac_optarg ;;
  1193. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1194. ac_prev=infodir ;;
  1195. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1196. infodir=$ac_optarg ;;
  1197. -libdir | --libdir | --libdi | --libd)
  1198. ac_prev=libdir ;;
  1199. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1200. libdir=$ac_optarg ;;
  1201. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1202. | --libexe | --libex | --libe)
  1203. ac_prev=libexecdir ;;
  1204. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1205. | --libexe=* | --libex=* | --libe=*)
  1206. libexecdir=$ac_optarg ;;
  1207. -localedir | --localedir | --localedi | --localed | --locale)
  1208. ac_prev=localedir ;;
  1209. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1210. localedir=$ac_optarg ;;
  1211. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1212. | --localstate | --localstat | --localsta | --localst | --locals)
  1213. ac_prev=localstatedir ;;
  1214. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1215. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1216. localstatedir=$ac_optarg ;;
  1217. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1218. ac_prev=mandir ;;
  1219. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1220. mandir=$ac_optarg ;;
  1221. -nfp | --nfp | --nf)
  1222. # Obsolete; use --without-fp.
  1223. with_fp=no ;;
  1224. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1225. | --no-cr | --no-c | -n)
  1226. no_create=yes ;;
  1227. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1228. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1229. no_recursion=yes ;;
  1230. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1231. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1232. | --oldin | --oldi | --old | --ol | --o)
  1233. ac_prev=oldincludedir ;;
  1234. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1235. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1236. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1237. oldincludedir=$ac_optarg ;;
  1238. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1239. ac_prev=prefix ;;
  1240. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1241. prefix=$ac_optarg ;;
  1242. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1243. | --program-pre | --program-pr | --program-p)
  1244. ac_prev=program_prefix ;;
  1245. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1246. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1247. program_prefix=$ac_optarg ;;
  1248. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1249. | --program-suf | --program-su | --program-s)
  1250. ac_prev=program_suffix ;;
  1251. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1252. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1253. program_suffix=$ac_optarg ;;
  1254. -program-transform-name | --program-transform-name \
  1255. | --program-transform-nam | --program-transform-na \
  1256. | --program-transform-n | --program-transform- \
  1257. | --program-transform | --program-transfor \
  1258. | --program-transfo | --program-transf \
  1259. | --program-trans | --program-tran \
  1260. | --progr-tra | --program-tr | --program-t)
  1261. ac_prev=program_transform_name ;;
  1262. -program-transform-name=* | --program-transform-name=* \
  1263. | --program-transform-nam=* | --program-transform-na=* \
  1264. | --program-transform-n=* | --program-transform-=* \
  1265. | --program-transform=* | --program-transfor=* \
  1266. | --program-transfo=* | --program-transf=* \
  1267. | --program-trans=* | --program-tran=* \
  1268. | --progr-tra=* | --program-tr=* | --program-t=*)
  1269. program_transform_name=$ac_optarg ;;
  1270. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1271. ac_prev=pdfdir ;;
  1272. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1273. pdfdir=$ac_optarg ;;
  1274. -psdir | --psdir | --psdi | --psd | --ps)
  1275. ac_prev=psdir ;;
  1276. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1277. psdir=$ac_optarg ;;
  1278. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1279. | -silent | --silent | --silen | --sile | --sil)
  1280. silent=yes ;;
  1281. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1282. ac_prev=sbindir ;;
  1283. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1284. | --sbi=* | --sb=*)
  1285. sbindir=$ac_optarg ;;
  1286. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1287. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1288. | --sharedst | --shareds | --shared | --share | --shar \
  1289. | --sha | --sh)
  1290. ac_prev=sharedstatedir ;;
  1291. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1292. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1293. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1294. | --sha=* | --sh=*)
  1295. sharedstatedir=$ac_optarg ;;
  1296. -site | --site | --sit)
  1297. ac_prev=site ;;
  1298. -site=* | --site=* | --sit=*)
  1299. site=$ac_optarg ;;
  1300. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1301. ac_prev=srcdir ;;
  1302. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1303. srcdir=$ac_optarg ;;
  1304. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1305. | --syscon | --sysco | --sysc | --sys | --sy)
  1306. ac_prev=sysconfdir ;;
  1307. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1308. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1309. sysconfdir=$ac_optarg ;;
  1310. -target | --target | --targe | --targ | --tar | --ta | --t)
  1311. ac_prev=target_alias ;;
  1312. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1313. target_alias=$ac_optarg ;;
  1314. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1315. verbose=yes ;;
  1316. -version | --version | --versio | --versi | --vers | -V)
  1317. ac_init_version=: ;;
  1318. -with-* | --with-*)
  1319. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1320. # Reject names that are not valid shell variable names.
  1321. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1322. as_fn_error $? "invalid package name: $ac_useropt"
  1323. ac_useropt_orig=$ac_useropt
  1324. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1325. case $ac_user_opts in
  1326. *"
  1327. "with_$ac_useropt"
  1328. "*) ;;
  1329. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1330. ac_unrecognized_sep=', ';;
  1331. esac
  1332. eval with_$ac_useropt=\$ac_optarg ;;
  1333. -without-* | --without-*)
  1334. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1335. # Reject names that are not valid shell variable names.
  1336. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1337. as_fn_error $? "invalid package name: $ac_useropt"
  1338. ac_useropt_orig=$ac_useropt
  1339. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1340. case $ac_user_opts in
  1341. *"
  1342. "with_$ac_useropt"
  1343. "*) ;;
  1344. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1345. ac_unrecognized_sep=', ';;
  1346. esac
  1347. eval with_$ac_useropt=no ;;
  1348. --x)
  1349. # Obsolete; use --with-x.
  1350. with_x=yes ;;
  1351. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1352. | --x-incl | --x-inc | --x-in | --x-i)
  1353. ac_prev=x_includes ;;
  1354. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1355. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1356. x_includes=$ac_optarg ;;
  1357. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1358. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1359. ac_prev=x_libraries ;;
  1360. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1361. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1362. x_libraries=$ac_optarg ;;
  1363. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1364. Try \`$0 --help' for more information"
  1365. ;;
  1366. *=*)
  1367. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1368. # Reject names that are not valid shell variable names.
  1369. case $ac_envvar in #(
  1370. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1371. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1372. esac
  1373. eval $ac_envvar=\$ac_optarg
  1374. export $ac_envvar ;;
  1375. *)
  1376. # FIXME: should be removed in autoconf 3.0.
  1377. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1378. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1379. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1380. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1381. ;;
  1382. esac
  1383. done
  1384. if test -n "$ac_prev"; then
  1385. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1386. as_fn_error $? "missing argument to $ac_option"
  1387. fi
  1388. if test -n "$ac_unrecognized_opts"; then
  1389. case $enable_option_checking in
  1390. no) ;;
  1391. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1392. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1393. esac
  1394. fi
  1395. # Check all directory arguments for consistency.
  1396. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1397. datadir sysconfdir sharedstatedir localstatedir includedir \
  1398. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1399. libdir localedir mandir
  1400. do
  1401. eval ac_val=\$$ac_var
  1402. # Remove trailing slashes.
  1403. case $ac_val in
  1404. */ )
  1405. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1406. eval $ac_var=\$ac_val;;
  1407. esac
  1408. # Be sure to have absolute directory names.
  1409. case $ac_val in
  1410. [\\/$]* | ?:[\\/]* ) continue;;
  1411. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1412. esac
  1413. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1414. done
  1415. # There might be people who depend on the old broken behavior: `$host'
  1416. # used to hold the argument of --host etc.
  1417. # FIXME: To remove some day.
  1418. build=$build_alias
  1419. host=$host_alias
  1420. target=$target_alias
  1421. # FIXME: To remove some day.
  1422. if test "x$host_alias" != x; then
  1423. if test "x$build_alias" = x; then
  1424. cross_compiling=maybe
  1425. elif test "x$build_alias" != "x$host_alias"; then
  1426. cross_compiling=yes
  1427. fi
  1428. fi
  1429. ac_tool_prefix=
  1430. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1431. test "$silent" = yes && exec 6>/dev/null
  1432. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1433. ac_ls_di=`ls -di .` &&
  1434. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1435. as_fn_error $? "working directory cannot be determined"
  1436. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1437. as_fn_error $? "pwd does not report name of working directory"
  1438. # Find the source files, if location was not specified.
  1439. if test -z "$srcdir"; then
  1440. ac_srcdir_defaulted=yes
  1441. # Try the directory containing this script, then the parent directory.
  1442. ac_confdir=`$as_dirname -- "$as_myself" ||
  1443. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1444. X"$as_myself" : 'X\(//\)[^/]' \| \
  1445. X"$as_myself" : 'X\(//\)$' \| \
  1446. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1447. $as_echo X"$as_myself" |
  1448. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1449. s//\1/
  1450. q
  1451. }
  1452. /^X\(\/\/\)[^/].*/{
  1453. s//\1/
  1454. q
  1455. }
  1456. /^X\(\/\/\)$/{
  1457. s//\1/
  1458. q
  1459. }
  1460. /^X\(\/\).*/{
  1461. s//\1/
  1462. q
  1463. }
  1464. s/.*/./; q'`
  1465. srcdir=$ac_confdir
  1466. if test ! -r "$srcdir/$ac_unique_file"; then
  1467. srcdir=..
  1468. fi
  1469. else
  1470. ac_srcdir_defaulted=no
  1471. fi
  1472. if test ! -r "$srcdir/$ac_unique_file"; then
  1473. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1474. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1475. fi
  1476. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1477. ac_abs_confdir=`(
  1478. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1479. pwd)`
  1480. # When building in place, set srcdir=.
  1481. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1482. srcdir=.
  1483. fi
  1484. # Remove unnecessary trailing slashes from srcdir.
  1485. # Double slashes in file names in object file debugging info
  1486. # mess up M-x gdb in Emacs.
  1487. case $srcdir in
  1488. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1489. esac
  1490. for ac_var in $ac_precious_vars; do
  1491. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1492. eval ac_env_${ac_var}_value=\$${ac_var}
  1493. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1494. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1495. done
  1496. #
  1497. # Report the --help message.
  1498. #
  1499. if test "$ac_init_help" = "long"; then
  1500. # Omit some internal or obsolete options to make the list less imposing.
  1501. # This message is too long to be a string in the A/UX 3.1 sh.
  1502. cat <<_ACEOF
  1503. \`configure' configures cairo 1.16.0 to adapt to many kinds of systems.
  1504. Usage: $0 [OPTION]... [VAR=VALUE]...
  1505. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1506. VAR=VALUE. See below for descriptions of some of the useful variables.
  1507. Defaults for the options are specified in brackets.
  1508. Configuration:
  1509. -h, --help display this help and exit
  1510. --help=short display options specific to this package
  1511. --help=recursive display the short help of all the included packages
  1512. -V, --version display version information and exit
  1513. -q, --quiet, --silent do not print \`checking ...' messages
  1514. --cache-file=FILE cache test results in FILE [disabled]
  1515. -C, --config-cache alias for \`--cache-file=config.cache'
  1516. -n, --no-create do not create output files
  1517. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1518. Installation directories:
  1519. --prefix=PREFIX install architecture-independent files in PREFIX
  1520. [$ac_default_prefix]
  1521. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1522. [PREFIX]
  1523. By default, \`make install' will install all the files in
  1524. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1525. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1526. for instance \`--prefix=\$HOME'.
  1527. For better control, use the options below.
  1528. Fine tuning of the installation directories:
  1529. --bindir=DIR user executables [EPREFIX/bin]
  1530. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1531. --libexecdir=DIR program executables [EPREFIX/libexec]
  1532. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1533. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1534. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1535. --libdir=DIR object code libraries [EPREFIX/lib]
  1536. --includedir=DIR C header files [PREFIX/include]
  1537. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1538. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1539. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1540. --infodir=DIR info documentation [DATAROOTDIR/info]
  1541. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1542. --mandir=DIR man documentation [DATAROOTDIR/man]
  1543. --docdir=DIR documentation root [DATAROOTDIR/doc/cairo]
  1544. --htmldir=DIR html documentation [DOCDIR]
  1545. --dvidir=DIR dvi documentation [DOCDIR]
  1546. --pdfdir=DIR pdf documentation [DOCDIR]
  1547. --psdir=DIR ps documentation [DOCDIR]
  1548. _ACEOF
  1549. cat <<\_ACEOF
  1550. Program names:
  1551. --program-prefix=PREFIX prepend PREFIX to installed program names
  1552. --program-suffix=SUFFIX append SUFFIX to installed program names
  1553. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1554. X features:
  1555. --x-includes=DIR X include files are in DIR
  1556. --x-libraries=DIR X library files are in DIR
  1557. System types:
  1558. --build=BUILD configure for building on BUILD [guessed]
  1559. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1560. _ACEOF
  1561. fi
  1562. if test -n "$ac_init_help"; then
  1563. case $ac_init_help in
  1564. short | recursive ) echo "Configuration of cairo 1.16.0:";;
  1565. esac
  1566. cat <<\_ACEOF
  1567. Optional Features:
  1568. --disable-option-checking ignore unrecognized --enable/--with options
  1569. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1570. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1571. --enable-dependency-tracking
  1572. do not reject slow dependency extractors
  1573. --disable-dependency-tracking
  1574. speeds up one-time build
  1575. --enable-silent-rules less verbose build output (undo: "make V=1")
  1576. --disable-silent-rules verbose build output (undo: "make V=0")
  1577. --enable-shared[=PKGS] build shared libraries [default=yes]
  1578. --enable-static[=PKGS] build static libraries [default=yes]
  1579. --enable-fast-install[=PKGS]
  1580. optimize for fast installation [default=yes]
  1581. --disable-libtool-lock avoid locking (might break parallel builds)
  1582. --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
  1583. --enable-gtk-doc-html build documentation in html format [[default=yes]]
  1584. --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
  1585. --disable-largefile omit support for large files
  1586. --disable-atomic disable use of native atomic operations
  1587. --enable-gcov Enable gcov
  1588. --disable-valgrind Disable valgrind support
  1589. --enable-xlib=[no/auto/yes]
  1590. Enable cairo's Xlib surface backend feature
  1591. [default=auto]
  1592. --enable-xlib-xrender=[no/auto/yes]
  1593. Enable cairo's Xlib Xrender surface backend feature
  1594. [default=auto]
  1595. --enable-xcb=[no/auto/yes]
  1596. Enable cairo's XCB surface backend feature
  1597. [default=auto]
  1598. --enable-xlib-xcb=[no/auto/yes]
  1599. Enable cairo's Xlib/XCB functions feature
  1600. [default=no]
  1601. --enable-xcb-shm=[no/auto/yes]
  1602. Enable cairo's XCB/SHM functions feature
  1603. [default=auto]
  1604. --enable-qt=[no/auto/yes]
  1605. Enable cairo's Qt surface backend feature
  1606. [default=no]
  1607. --enable-quartz=[no/auto/yes]
  1608. Enable cairo's Quartz surface backend feature
  1609. [default=auto]
  1610. --enable-quartz-font=[no/auto/yes]
  1611. Enable cairo's Quartz font backend feature
  1612. [default=auto]
  1613. --enable-quartz-image=[no/auto/yes]
  1614. Enable cairo's Quartz Image surface backend feature
  1615. [default=no]
  1616. --enable-win32=[no/auto/yes]
  1617. Enable cairo's Microsoft Windows surface backend
  1618. feature [default=auto]
  1619. --enable-win32-font=[no/auto/yes]
  1620. Enable cairo's Microsoft Windows font backend
  1621. feature [default=auto]
  1622. --enable-os2=[no/auto/yes]
  1623. Enable cairo's OS/2 surface backend feature
  1624. [default=no]
  1625. --enable-beos=[no/auto/yes]
  1626. Enable cairo's BeOS/Zeta surface backend feature
  1627. [default=no]
  1628. --enable-drm=[no/auto/yes]
  1629. Enable cairo's DRM surface backend feature
  1630. [default=no]
  1631. --enable-gallium=[no/auto/yes]
  1632. Enable cairo's Gallium3D surface backend feature
  1633. [default=no]
  1634. --enable-png=[no/auto/yes]
  1635. Enable cairo's PNG functions feature [default=yes]
  1636. --enable-gl=[no/auto/yes]
  1637. Enable cairo's OpenGL surface backend feature
  1638. [default=no]
  1639. --enable-glesv2=[no/auto/yes]
  1640. Enable cairo's OpenGLESv2 surface backend feature
  1641. [default=no]
  1642. --enable-glesv3=[no/auto/yes]
  1643. Enable cairo's OpenGLESv3 surface backend feature
  1644. [default=no]
  1645. --enable-cogl=[no/auto/yes]
  1646. Enable cairo's Cogl surface backend feature
  1647. [default=no]
  1648. --enable-directfb=[no/auto/yes]
  1649. Enable cairo's directfb surface backend feature
  1650. [default=no]
  1651. --enable-vg=[no/auto/yes]
  1652. Enable cairo's OpenVG surface backend feature
  1653. [default=no]
  1654. --enable-egl=[no/auto/yes]
  1655. Enable cairo's EGL functions feature [default=auto]
  1656. --enable-glx=[no/auto/yes]
  1657. Enable cairo's GLX functions feature [default=auto]
  1658. --enable-wgl=[no/auto/yes]
  1659. Enable cairo's WGL functions feature [default=auto]
  1660. --enable-script=[no/auto/yes]
  1661. Enable cairo's script surface backend feature
  1662. [default=yes]
  1663. --enable-ft=[no/auto/yes]
  1664. Enable cairo's FreeType font backend feature
  1665. [default=auto]
  1666. --enable-fc=[no/auto/yes]
  1667. Enable cairo's Fontconfig font backend feature
  1668. [default=auto]
  1669. --enable-ps=[no/auto/yes]
  1670. Enable cairo's PostScript surface backend feature
  1671. [default=yes]
  1672. --enable-pdf=[no/auto/yes]
  1673. Enable cairo's PDF surface backend feature
  1674. [default=yes]
  1675. --enable-svg=[no/auto/yes]
  1676. Enable cairo's SVG surface backend feature
  1677. [default=yes]
  1678. --enable-test-surfaces=[no/auto/yes]
  1679. Enable cairo's test surfaces feature [default=no]
  1680. --enable-tee=[no/auto/yes]
  1681. Enable cairo's tee surface backend feature
  1682. [default=no]
  1683. --enable-xml=[no/auto/yes]
  1684. Enable cairo's xml surface backend feature
  1685. [default=no]
  1686. --enable-pthread=[no/auto/yes]
  1687. Enable cairo's pthread feature [default=auto]
  1688. --enable-gobject=[no/auto/yes]
  1689. Enable cairo's gobject functions feature
  1690. [default=auto]
  1691. --enable-full-testing Sets the test suite to perform full testing by
  1692. default, which will dramatically slow down make
  1693. check, but is a *requirement* before release.
  1694. --enable-trace=[no/auto/yes]
  1695. Enable cairo's cairo-trace feature [default=auto]
  1696. --enable-interpreter=[no/auto/yes]
  1697. Enable cairo's cairo-script-interpreter feature
  1698. [default=yes]
  1699. --enable-symbol-lookup=[no/auto/yes]
  1700. Enable cairo's symbol-lookup feature [default=auto]
  1701. --disable-some-floating-point
  1702. Disable certain code paths that rely heavily on
  1703. double precision floating-point calculation. This
  1704. option can improve performance on systems without a
  1705. double precision floating-point unit, but might
  1706. degrade performance on those that do.
  1707. Optional Packages:
  1708. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1709. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1710. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1711. both]
  1712. --with-aix-soname=aix|svr4|both
  1713. shared library versioning (aka "SONAME") variant to
  1714. provide on AIX, [default=aix].
  1715. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1716. --with-libtool-sysroot[=DIR]
  1717. Search for dependent libraries within DIR (or the
  1718. compiler's sysroot if not specified).
  1719. --with-html-dir=PATH path to installed docs
  1720. --with-x use the X Window System
  1721. --with-gallium=/path/to/mesa
  1722. directory to find gallium enabled mesa
  1723. Some influential environment variables:
  1724. CC C compiler command
  1725. CFLAGS C compiler flags
  1726. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1727. nonstandard directory <lib dir>
  1728. LIBS libraries to pass to the linker, e.g. -l<library>
  1729. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1730. you have headers in a nonstandard directory <include dir>
  1731. CPP C preprocessor
  1732. LT_SYS_LIBRARY_PATH
  1733. User-defined run-time library search path.
  1734. PKG_CONFIG path to pkg-config utility
  1735. GTKDOC_DEPS_CFLAGS
  1736. C compiler flags for GTKDOC_DEPS, overriding pkg-config
  1737. GTKDOC_DEPS_LIBS
  1738. linker flags for GTKDOC_DEPS, overriding pkg-config
  1739. CXX C++ compiler command
  1740. CXXFLAGS C++ compiler flags
  1741. CXXCPP C++ preprocessor
  1742. VALGRIND_CFLAGS
  1743. C compiler flags for VALGRIND, overriding pkg-config
  1744. VALGRIND_LIBS
  1745. linker flags for VALGRIND, overriding pkg-config
  1746. xlib_CFLAGS C compiler flags for xlib, overriding pkg-config
  1747. xlib_LIBS linker flags for xlib, overriding pkg-config
  1748. xlib_xrender_CFLAGS
  1749. C compiler flags for xlib_xrender, overriding pkg-config
  1750. xlib_xrender_LIBS
  1751. linker flags for xlib_xrender, overriding pkg-config
  1752. xcb_CFLAGS C compiler flags for xcb, overriding pkg-config
  1753. xcb_LIBS linker flags for xcb, overriding pkg-config
  1754. xlib_xcb_CFLAGS
  1755. C compiler flags for xlib_xcb, overriding pkg-config
  1756. xlib_xcb_LIBS
  1757. linker flags for xlib_xcb, overriding pkg-config
  1758. xcb_shm_CFLAGS
  1759. C compiler flags for xcb_shm, overriding pkg-config
  1760. xcb_shm_LIBS
  1761. linker flags for xcb_shm, overriding pkg-config
  1762. qt_CFLAGS C compiler flags for qt, overriding pkg-config
  1763. qt_LIBS linker flags for qt, overriding pkg-config
  1764. drm_CFLAGS C compiler flags for drm, overriding pkg-config
  1765. drm_LIBS linker flags for drm, overriding pkg-config
  1766. png_REQUIRES
  1767. module name for libpng to search for using pkg-config
  1768. png_CFLAGS C compiler flags for png, overriding pkg-config
  1769. png_LIBS linker flags for png, overriding pkg-config
  1770. gl_CFLAGS C compiler flags for gl, overriding pkg-config
  1771. gl_LIBS linker flags for gl, overriding pkg-config
  1772. glesv2_CFLAGS
  1773. C compiler flags for glesv2, overriding pkg-config
  1774. glesv2_LIBS linker flags for glesv2, overriding pkg-config
  1775. glesv3_CFLAGS
  1776. C compiler flags for glesv3, overriding pkg-config
  1777. glesv3_LIBS linker flags for glesv3, overriding pkg-config
  1778. cogl_CFLAGS C compiler flags for cogl, overriding pkg-config
  1779. cogl_LIBS linker flags for cogl, overriding pkg-config
  1780. directfb_CFLAGS
  1781. C compiler flags for directfb, overriding pkg-config
  1782. directfb_LIBS
  1783. linker flags for directfb, overriding pkg-config
  1784. egl_CFLAGS C compiler flags for egl, overriding pkg-config
  1785. egl_LIBS linker flags for egl, overriding pkg-config
  1786. FREETYPE_CFLAGS
  1787. C compiler flags for FREETYPE, overriding pkg-config
  1788. FREETYPE_LIBS
  1789. linker flags for FREETYPE, overriding pkg-config
  1790. FONTCONFIG_CFLAGS
  1791. C compiler flags for FONTCONFIG, overriding pkg-config
  1792. FONTCONFIG_LIBS
  1793. linker flags for FONTCONFIG, overriding pkg-config
  1794. LIBSPECTRE_CFLAGS
  1795. C compiler flags for LIBSPECTRE, overriding pkg-config
  1796. LIBSPECTRE_LIBS
  1797. linker flags for LIBSPECTRE, overriding pkg-config
  1798. POPPLER_CFLAGS
  1799. C compiler flags for POPPLER, overriding pkg-config
  1800. POPPLER_LIBS
  1801. linker flags for POPPLER, overriding pkg-config
  1802. LIBRSVG_CFLAGS
  1803. C compiler flags for LIBRSVG, overriding pkg-config
  1804. LIBRSVG_LIBS
  1805. linker flags for LIBRSVG, overriding pkg-config
  1806. pixman_CFLAGS
  1807. C compiler flags for pixman, overriding pkg-config
  1808. pixman_LIBS linker flags for pixman, overriding pkg-config
  1809. GOBJECT_CFLAGS
  1810. C compiler flags for GOBJECT, overriding pkg-config
  1811. GOBJECT_LIBS
  1812. linker flags for GOBJECT, overriding pkg-config
  1813. glib_CFLAGS C compiler flags for glib, overriding pkg-config
  1814. glib_LIBS linker flags for glib, overriding pkg-config
  1815. gtk_CFLAGS C compiler flags for gtk, overriding pkg-config
  1816. gtk_LIBS linker flags for gtk, overriding pkg-config
  1817. Use these variables to override the choices made by `configure' or to help
  1818. it to find libraries and programs with nonstandard names/locations.
  1819. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
  1820. cairo home page: <https://cairographics.org/>.
  1821. _ACEOF
  1822. ac_status=$?
  1823. fi
  1824. if test "$ac_init_help" = "recursive"; then
  1825. # If there are subdirs, report their specific --help.
  1826. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1827. test -d "$ac_dir" ||
  1828. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1829. continue
  1830. ac_builddir=.
  1831. case "$ac_dir" in
  1832. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1833. *)
  1834. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1835. # A ".." for each directory in $ac_dir_suffix.
  1836. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1837. case $ac_top_builddir_sub in
  1838. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1839. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1840. esac ;;
  1841. esac
  1842. ac_abs_top_builddir=$ac_pwd
  1843. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1844. # for backward compatibility:
  1845. ac_top_builddir=$ac_top_build_prefix
  1846. case $srcdir in
  1847. .) # We are building in place.
  1848. ac_srcdir=.
  1849. ac_top_srcdir=$ac_top_builddir_sub
  1850. ac_abs_top_srcdir=$ac_pwd ;;
  1851. [\\/]* | ?:[\\/]* ) # Absolute name.
  1852. ac_srcdir=$srcdir$ac_dir_suffix;
  1853. ac_top_srcdir=$srcdir
  1854. ac_abs_top_srcdir=$srcdir ;;
  1855. *) # Relative name.
  1856. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1857. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1858. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1859. esac
  1860. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1861. cd "$ac_dir" || { ac_status=$?; continue; }
  1862. # Check for guested configure.
  1863. if test -f "$ac_srcdir/configure.gnu"; then
  1864. echo &&
  1865. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1866. elif test -f "$ac_srcdir/configure"; then
  1867. echo &&
  1868. $SHELL "$ac_srcdir/configure" --help=recursive
  1869. else
  1870. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1871. fi || ac_status=$?
  1872. cd "$ac_pwd" || { ac_status=$?; break; }
  1873. done
  1874. fi
  1875. test -n "$ac_init_help" && exit $ac_status
  1876. if $ac_init_version; then
  1877. cat <<\_ACEOF
  1878. cairo configure 1.16.0
  1879. generated by GNU Autoconf 2.69
  1880. Copyright (C) 2012 Free Software Foundation, Inc.
  1881. This configure script is free software; the Free Software Foundation
  1882. gives unlimited permission to copy, distribute and modify it.
  1883. _ACEOF
  1884. exit
  1885. fi
  1886. ## ------------------------ ##
  1887. ## Autoconf initialization. ##
  1888. ## ------------------------ ##
  1889. # ac_fn_c_try_compile LINENO
  1890. # --------------------------
  1891. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1892. ac_fn_c_try_compile ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. rm -f conftest.$ac_objext
  1896. if { { ac_try="$ac_compile"
  1897. case "(($ac_try" in
  1898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1899. *) ac_try_echo=$ac_try;;
  1900. esac
  1901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1902. $as_echo "$ac_try_echo"; } >&5
  1903. (eval "$ac_compile") 2>conftest.err
  1904. ac_status=$?
  1905. if test -s conftest.err; then
  1906. grep -v '^ *+' conftest.err >conftest.er1
  1907. cat conftest.er1 >&5
  1908. mv -f conftest.er1 conftest.err
  1909. fi
  1910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1911. test $ac_status = 0; } && {
  1912. test -z "$ac_c_werror_flag" ||
  1913. test ! -s conftest.err
  1914. } && test -s conftest.$ac_objext; then :
  1915. ac_retval=0
  1916. else
  1917. $as_echo "$as_me: failed program was:" >&5
  1918. sed 's/^/| /' conftest.$ac_ext >&5
  1919. ac_retval=1
  1920. fi
  1921. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1922. as_fn_set_status $ac_retval
  1923. } # ac_fn_c_try_compile
  1924. # ac_fn_c_try_cpp LINENO
  1925. # ----------------------
  1926. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1927. ac_fn_c_try_cpp ()
  1928. {
  1929. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1930. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1931. case "(($ac_try" in
  1932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1933. *) ac_try_echo=$ac_try;;
  1934. esac
  1935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1936. $as_echo "$ac_try_echo"; } >&5
  1937. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1938. ac_status=$?
  1939. if test -s conftest.err; then
  1940. grep -v '^ *+' conftest.err >conftest.er1
  1941. cat conftest.er1 >&5
  1942. mv -f conftest.er1 conftest.err
  1943. fi
  1944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1945. test $ac_status = 0; } > conftest.i && {
  1946. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1947. test ! -s conftest.err
  1948. }; then :
  1949. ac_retval=0
  1950. else
  1951. $as_echo "$as_me: failed program was:" >&5
  1952. sed 's/^/| /' conftest.$ac_ext >&5
  1953. ac_retval=1
  1954. fi
  1955. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956. as_fn_set_status $ac_retval
  1957. } # ac_fn_c_try_cpp
  1958. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1959. # -------------------------------------------------------
  1960. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1961. # the include files in INCLUDES and setting the cache variable VAR
  1962. # accordingly.
  1963. ac_fn_c_check_header_mongrel ()
  1964. {
  1965. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1966. if eval \${$3+:} false; then :
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1968. $as_echo_n "checking for $2... " >&6; }
  1969. if eval \${$3+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. fi
  1972. eval ac_res=\$$3
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1974. $as_echo "$ac_res" >&6; }
  1975. else
  1976. # Is the header compilable?
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1978. $as_echo_n "checking $2 usability... " >&6; }
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $4
  1982. #include <$2>
  1983. _ACEOF
  1984. if ac_fn_c_try_compile "$LINENO"; then :
  1985. ac_header_compiler=yes
  1986. else
  1987. ac_header_compiler=no
  1988. fi
  1989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1991. $as_echo "$ac_header_compiler" >&6; }
  1992. # Is the header present?
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1994. $as_echo_n "checking $2 presence... " >&6; }
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. #include <$2>
  1998. _ACEOF
  1999. if ac_fn_c_try_cpp "$LINENO"; then :
  2000. ac_header_preproc=yes
  2001. else
  2002. ac_header_preproc=no
  2003. fi
  2004. rm -f conftest.err conftest.i conftest.$ac_ext
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2006. $as_echo "$ac_header_preproc" >&6; }
  2007. # So? What about this header?
  2008. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2009. yes:no: )
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2011. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2013. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2014. ;;
  2015. no:yes:* )
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2017. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2019. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2021. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2023. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2025. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2026. ( $as_echo "## ----------------------------------------------------------------------- ##
  2027. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=cairo ##
  2028. ## ----------------------------------------------------------------------- ##"
  2029. ) | sed "s/^/$as_me: WARNING: /" >&2
  2030. ;;
  2031. esac
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2033. $as_echo_n "checking for $2... " >&6; }
  2034. if eval \${$3+:} false; then :
  2035. $as_echo_n "(cached) " >&6
  2036. else
  2037. eval "$3=\$ac_header_compiler"
  2038. fi
  2039. eval ac_res=\$$3
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2041. $as_echo "$ac_res" >&6; }
  2042. fi
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. } # ac_fn_c_check_header_mongrel
  2045. # ac_fn_c_try_run LINENO
  2046. # ----------------------
  2047. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2048. # that executables *can* be run.
  2049. ac_fn_c_try_run ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. if { { ac_try="$ac_link"
  2053. case "(($ac_try" in
  2054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2055. *) ac_try_echo=$ac_try;;
  2056. esac
  2057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2058. $as_echo "$ac_try_echo"; } >&5
  2059. (eval "$ac_link") 2>&5
  2060. ac_status=$?
  2061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2062. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2063. { { case "(($ac_try" in
  2064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2065. *) ac_try_echo=$ac_try;;
  2066. esac
  2067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2068. $as_echo "$ac_try_echo"; } >&5
  2069. (eval "$ac_try") 2>&5
  2070. ac_status=$?
  2071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2072. test $ac_status = 0; }; }; then :
  2073. ac_retval=0
  2074. else
  2075. $as_echo "$as_me: program exited with status $ac_status" >&5
  2076. $as_echo "$as_me: failed program was:" >&5
  2077. sed 's/^/| /' conftest.$ac_ext >&5
  2078. ac_retval=$ac_status
  2079. fi
  2080. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. as_fn_set_status $ac_retval
  2083. } # ac_fn_c_try_run
  2084. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2085. # -------------------------------------------------------
  2086. # Tests whether HEADER exists and can be compiled using the include files in
  2087. # INCLUDES, setting the cache variable VAR accordingly.
  2088. ac_fn_c_check_header_compile ()
  2089. {
  2090. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2092. $as_echo_n "checking for $2... " >&6; }
  2093. if eval \${$3+:} false; then :
  2094. $as_echo_n "(cached) " >&6
  2095. else
  2096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2097. /* end confdefs.h. */
  2098. $4
  2099. #include <$2>
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. eval "$3=yes"
  2103. else
  2104. eval "$3=no"
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. fi
  2108. eval ac_res=\$$3
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2110. $as_echo "$ac_res" >&6; }
  2111. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2112. } # ac_fn_c_check_header_compile
  2113. # ac_fn_c_try_link LINENO
  2114. # -----------------------
  2115. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2116. ac_fn_c_try_link ()
  2117. {
  2118. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2119. rm -f conftest.$ac_objext conftest$ac_exeext
  2120. if { { ac_try="$ac_link"
  2121. case "(($ac_try" in
  2122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2123. *) ac_try_echo=$ac_try;;
  2124. esac
  2125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2126. $as_echo "$ac_try_echo"; } >&5
  2127. (eval "$ac_link") 2>conftest.err
  2128. ac_status=$?
  2129. if test -s conftest.err; then
  2130. grep -v '^ *+' conftest.err >conftest.er1
  2131. cat conftest.er1 >&5
  2132. mv -f conftest.er1 conftest.err
  2133. fi
  2134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2135. test $ac_status = 0; } && {
  2136. test -z "$ac_c_werror_flag" ||
  2137. test ! -s conftest.err
  2138. } && test -s conftest$ac_exeext && {
  2139. test "$cross_compiling" = yes ||
  2140. test -x conftest$ac_exeext
  2141. }; then :
  2142. ac_retval=0
  2143. else
  2144. $as_echo "$as_me: failed program was:" >&5
  2145. sed 's/^/| /' conftest.$ac_ext >&5
  2146. ac_retval=1
  2147. fi
  2148. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2149. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2150. # interfere with the next link command; also delete a directory that is
  2151. # left behind by Apple's compiler. We do this before executing the actions.
  2152. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2153. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2154. as_fn_set_status $ac_retval
  2155. } # ac_fn_c_try_link
  2156. # ac_fn_c_check_func LINENO FUNC VAR
  2157. # ----------------------------------
  2158. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2159. ac_fn_c_check_func ()
  2160. {
  2161. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2163. $as_echo_n "checking for $2... " >&6; }
  2164. if eval \${$3+:} false; then :
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2170. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2171. #define $2 innocuous_$2
  2172. /* System header to define __stub macros and hopefully few prototypes,
  2173. which can conflict with char $2 (); below.
  2174. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2175. <limits.h> exists even on freestanding compilers. */
  2176. #ifdef __STDC__
  2177. # include <limits.h>
  2178. #else
  2179. # include <assert.h>
  2180. #endif
  2181. #undef $2
  2182. /* Override any GCC internal prototype to avoid an error.
  2183. Use char because int might match the return type of a GCC
  2184. builtin and then its argument prototype would still apply. */
  2185. #ifdef __cplusplus
  2186. extern "C"
  2187. #endif
  2188. char $2 ();
  2189. /* The GNU C library defines this for functions which it implements
  2190. to always fail with ENOSYS. Some functions are actually named
  2191. something starting with __ and the normal name is an alias. */
  2192. #if defined __stub_$2 || defined __stub___$2
  2193. choke me
  2194. #endif
  2195. int
  2196. main ()
  2197. {
  2198. return $2 ();
  2199. ;
  2200. return 0;
  2201. }
  2202. _ACEOF
  2203. if ac_fn_c_try_link "$LINENO"; then :
  2204. eval "$3=yes"
  2205. else
  2206. eval "$3=no"
  2207. fi
  2208. rm -f core conftest.err conftest.$ac_objext \
  2209. conftest$ac_exeext conftest.$ac_ext
  2210. fi
  2211. eval ac_res=\$$3
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2213. $as_echo "$ac_res" >&6; }
  2214. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2215. } # ac_fn_c_check_func
  2216. # ac_fn_cxx_try_compile LINENO
  2217. # ----------------------------
  2218. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2219. ac_fn_cxx_try_compile ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. rm -f conftest.$ac_objext
  2223. if { { ac_try="$ac_compile"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2229. $as_echo "$ac_try_echo"; } >&5
  2230. (eval "$ac_compile") 2>conftest.err
  2231. ac_status=$?
  2232. if test -s conftest.err; then
  2233. grep -v '^ *+' conftest.err >conftest.er1
  2234. cat conftest.er1 >&5
  2235. mv -f conftest.er1 conftest.err
  2236. fi
  2237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2238. test $ac_status = 0; } && {
  2239. test -z "$ac_cxx_werror_flag" ||
  2240. test ! -s conftest.err
  2241. } && test -s conftest.$ac_objext; then :
  2242. ac_retval=0
  2243. else
  2244. $as_echo "$as_me: failed program was:" >&5
  2245. sed 's/^/| /' conftest.$ac_ext >&5
  2246. ac_retval=1
  2247. fi
  2248. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2249. as_fn_set_status $ac_retval
  2250. } # ac_fn_cxx_try_compile
  2251. # ac_fn_cxx_try_cpp LINENO
  2252. # ------------------------
  2253. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2254. ac_fn_cxx_try_cpp ()
  2255. {
  2256. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2257. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2258. case "(($ac_try" in
  2259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2260. *) ac_try_echo=$ac_try;;
  2261. esac
  2262. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2263. $as_echo "$ac_try_echo"; } >&5
  2264. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2265. ac_status=$?
  2266. if test -s conftest.err; then
  2267. grep -v '^ *+' conftest.err >conftest.er1
  2268. cat conftest.er1 >&5
  2269. mv -f conftest.er1 conftest.err
  2270. fi
  2271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2272. test $ac_status = 0; } > conftest.i && {
  2273. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2274. test ! -s conftest.err
  2275. }; then :
  2276. ac_retval=0
  2277. else
  2278. $as_echo "$as_me: failed program was:" >&5
  2279. sed 's/^/| /' conftest.$ac_ext >&5
  2280. ac_retval=1
  2281. fi
  2282. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2283. as_fn_set_status $ac_retval
  2284. } # ac_fn_cxx_try_cpp
  2285. # ac_fn_cxx_try_link LINENO
  2286. # -------------------------
  2287. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2288. ac_fn_cxx_try_link ()
  2289. {
  2290. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2291. rm -f conftest.$ac_objext conftest$ac_exeext
  2292. if { { ac_try="$ac_link"
  2293. case "(($ac_try" in
  2294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2295. *) ac_try_echo=$ac_try;;
  2296. esac
  2297. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2298. $as_echo "$ac_try_echo"; } >&5
  2299. (eval "$ac_link") 2>conftest.err
  2300. ac_status=$?
  2301. if test -s conftest.err; then
  2302. grep -v '^ *+' conftest.err >conftest.er1
  2303. cat conftest.er1 >&5
  2304. mv -f conftest.er1 conftest.err
  2305. fi
  2306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2307. test $ac_status = 0; } && {
  2308. test -z "$ac_cxx_werror_flag" ||
  2309. test ! -s conftest.err
  2310. } && test -s conftest$ac_exeext && {
  2311. test "$cross_compiling" = yes ||
  2312. test -x conftest$ac_exeext
  2313. }; then :
  2314. ac_retval=0
  2315. else
  2316. $as_echo "$as_me: failed program was:" >&5
  2317. sed 's/^/| /' conftest.$ac_ext >&5
  2318. ac_retval=1
  2319. fi
  2320. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2321. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2322. # interfere with the next link command; also delete a directory that is
  2323. # left behind by Apple's compiler. We do this before executing the actions.
  2324. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2325. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2326. as_fn_set_status $ac_retval
  2327. } # ac_fn_cxx_try_link
  2328. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2329. # --------------------------------------------
  2330. # Tries to find the compile-time value of EXPR in a program that includes
  2331. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2332. # computed
  2333. ac_fn_c_compute_int ()
  2334. {
  2335. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2336. if test "$cross_compiling" = yes; then
  2337. # Depending upon the size, compute the lo and hi bounds.
  2338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2339. /* end confdefs.h. */
  2340. $4
  2341. int
  2342. main ()
  2343. {
  2344. static int test_array [1 - 2 * !(($2) >= 0)];
  2345. test_array [0] = 0;
  2346. return test_array [0];
  2347. ;
  2348. return 0;
  2349. }
  2350. _ACEOF
  2351. if ac_fn_c_try_compile "$LINENO"; then :
  2352. ac_lo=0 ac_mid=0
  2353. while :; do
  2354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2355. /* end confdefs.h. */
  2356. $4
  2357. int
  2358. main ()
  2359. {
  2360. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2361. test_array [0] = 0;
  2362. return test_array [0];
  2363. ;
  2364. return 0;
  2365. }
  2366. _ACEOF
  2367. if ac_fn_c_try_compile "$LINENO"; then :
  2368. ac_hi=$ac_mid; break
  2369. else
  2370. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2371. if test $ac_lo -le $ac_mid; then
  2372. ac_lo= ac_hi=
  2373. break
  2374. fi
  2375. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2376. fi
  2377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2378. done
  2379. else
  2380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2381. /* end confdefs.h. */
  2382. $4
  2383. int
  2384. main ()
  2385. {
  2386. static int test_array [1 - 2 * !(($2) < 0)];
  2387. test_array [0] = 0;
  2388. return test_array [0];
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. if ac_fn_c_try_compile "$LINENO"; then :
  2394. ac_hi=-1 ac_mid=-1
  2395. while :; do
  2396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2397. /* end confdefs.h. */
  2398. $4
  2399. int
  2400. main ()
  2401. {
  2402. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2403. test_array [0] = 0;
  2404. return test_array [0];
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. if ac_fn_c_try_compile "$LINENO"; then :
  2410. ac_lo=$ac_mid; break
  2411. else
  2412. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2413. if test $ac_mid -le $ac_hi; then
  2414. ac_lo= ac_hi=
  2415. break
  2416. fi
  2417. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2418. fi
  2419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2420. done
  2421. else
  2422. ac_lo= ac_hi=
  2423. fi
  2424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2425. fi
  2426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2427. # Binary search between lo and hi bounds.
  2428. while test "x$ac_lo" != "x$ac_hi"; do
  2429. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2431. /* end confdefs.h. */
  2432. $4
  2433. int
  2434. main ()
  2435. {
  2436. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2437. test_array [0] = 0;
  2438. return test_array [0];
  2439. ;
  2440. return 0;
  2441. }
  2442. _ACEOF
  2443. if ac_fn_c_try_compile "$LINENO"; then :
  2444. ac_hi=$ac_mid
  2445. else
  2446. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2447. fi
  2448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2449. done
  2450. case $ac_lo in #((
  2451. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2452. '') ac_retval=1 ;;
  2453. esac
  2454. else
  2455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2456. /* end confdefs.h. */
  2457. $4
  2458. static long int longval () { return $2; }
  2459. static unsigned long int ulongval () { return $2; }
  2460. #include <stdio.h>
  2461. #include <stdlib.h>
  2462. int
  2463. main ()
  2464. {
  2465. FILE *f = fopen ("conftest.val", "w");
  2466. if (! f)
  2467. return 1;
  2468. if (($2) < 0)
  2469. {
  2470. long int i = longval ();
  2471. if (i != ($2))
  2472. return 1;
  2473. fprintf (f, "%ld", i);
  2474. }
  2475. else
  2476. {
  2477. unsigned long int i = ulongval ();
  2478. if (i != ($2))
  2479. return 1;
  2480. fprintf (f, "%lu", i);
  2481. }
  2482. /* Do not output a trailing newline, as this causes \r\n confusion
  2483. on some platforms. */
  2484. return ferror (f) || fclose (f) != 0;
  2485. ;
  2486. return 0;
  2487. }
  2488. _ACEOF
  2489. if ac_fn_c_try_run "$LINENO"; then :
  2490. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2491. else
  2492. ac_retval=1
  2493. fi
  2494. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2495. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2496. rm -f conftest.val
  2497. fi
  2498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2499. as_fn_set_status $ac_retval
  2500. } # ac_fn_c_compute_int
  2501. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2502. # -------------------------------------------
  2503. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2504. # variable VAR accordingly.
  2505. ac_fn_c_check_type ()
  2506. {
  2507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2509. $as_echo_n "checking for $2... " >&6; }
  2510. if eval \${$3+:} false; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. eval "$3=no"
  2514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2515. /* end confdefs.h. */
  2516. $4
  2517. int
  2518. main ()
  2519. {
  2520. if (sizeof ($2))
  2521. return 0;
  2522. ;
  2523. return 0;
  2524. }
  2525. _ACEOF
  2526. if ac_fn_c_try_compile "$LINENO"; then :
  2527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2528. /* end confdefs.h. */
  2529. $4
  2530. int
  2531. main ()
  2532. {
  2533. if (sizeof (($2)))
  2534. return 0;
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. if ac_fn_c_try_compile "$LINENO"; then :
  2540. else
  2541. eval "$3=yes"
  2542. fi
  2543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2544. fi
  2545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2546. fi
  2547. eval ac_res=\$$3
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2549. $as_echo "$ac_res" >&6; }
  2550. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2551. } # ac_fn_c_check_type
  2552. cat >config.log <<_ACEOF
  2553. This file contains any messages produced by compilers while
  2554. running configure, to aid debugging if configure makes a mistake.
  2555. It was created by cairo $as_me 1.16.0, which was
  2556. generated by GNU Autoconf 2.69. Invocation command line was
  2557. $ $0 $@
  2558. _ACEOF
  2559. exec 5>>config.log
  2560. {
  2561. cat <<_ASUNAME
  2562. ## --------- ##
  2563. ## Platform. ##
  2564. ## --------- ##
  2565. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2566. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2567. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2568. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2569. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2570. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2571. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2572. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2573. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2574. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2575. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2576. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2577. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2578. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2579. _ASUNAME
  2580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581. for as_dir in $PATH
  2582. do
  2583. IFS=$as_save_IFS
  2584. test -z "$as_dir" && as_dir=.
  2585. $as_echo "PATH: $as_dir"
  2586. done
  2587. IFS=$as_save_IFS
  2588. } >&5
  2589. cat >&5 <<_ACEOF
  2590. ## ----------- ##
  2591. ## Core tests. ##
  2592. ## ----------- ##
  2593. _ACEOF
  2594. # Keep a trace of the command line.
  2595. # Strip out --no-create and --no-recursion so they do not pile up.
  2596. # Strip out --silent because we don't want to record it for future runs.
  2597. # Also quote any args containing shell meta-characters.
  2598. # Make two passes to allow for proper duplicate-argument suppression.
  2599. ac_configure_args=
  2600. ac_configure_args0=
  2601. ac_configure_args1=
  2602. ac_must_keep_next=false
  2603. for ac_pass in 1 2
  2604. do
  2605. for ac_arg
  2606. do
  2607. case $ac_arg in
  2608. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2609. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2610. | -silent | --silent | --silen | --sile | --sil)
  2611. continue ;;
  2612. *\'*)
  2613. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2614. esac
  2615. case $ac_pass in
  2616. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2617. 2)
  2618. as_fn_append ac_configure_args1 " '$ac_arg'"
  2619. if test $ac_must_keep_next = true; then
  2620. ac_must_keep_next=false # Got value, back to normal.
  2621. else
  2622. case $ac_arg in
  2623. *=* | --config-cache | -C | -disable-* | --disable-* \
  2624. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2625. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2626. | -with-* | --with-* | -without-* | --without-* | --x)
  2627. case "$ac_configure_args0 " in
  2628. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2629. esac
  2630. ;;
  2631. -* ) ac_must_keep_next=true ;;
  2632. esac
  2633. fi
  2634. as_fn_append ac_configure_args " '$ac_arg'"
  2635. ;;
  2636. esac
  2637. done
  2638. done
  2639. { ac_configure_args0=; unset ac_configure_args0;}
  2640. { ac_configure_args1=; unset ac_configure_args1;}
  2641. # When interrupted or exit'd, cleanup temporary files, and complete
  2642. # config.log. We remove comments because anyway the quotes in there
  2643. # would cause problems or look ugly.
  2644. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2645. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2646. trap 'exit_status=$?
  2647. # Save into config.log some information that might help in debugging.
  2648. {
  2649. echo
  2650. $as_echo "## ---------------- ##
  2651. ## Cache variables. ##
  2652. ## ---------------- ##"
  2653. echo
  2654. # The following way of writing the cache mishandles newlines in values,
  2655. (
  2656. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2657. eval ac_val=\$$ac_var
  2658. case $ac_val in #(
  2659. *${as_nl}*)
  2660. case $ac_var in #(
  2661. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2662. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2663. esac
  2664. case $ac_var in #(
  2665. _ | IFS | as_nl) ;; #(
  2666. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2667. *) { eval $ac_var=; unset $ac_var;} ;;
  2668. esac ;;
  2669. esac
  2670. done
  2671. (set) 2>&1 |
  2672. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2673. *${as_nl}ac_space=\ *)
  2674. sed -n \
  2675. "s/'\''/'\''\\\\'\'''\''/g;
  2676. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2677. ;; #(
  2678. *)
  2679. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2680. ;;
  2681. esac |
  2682. sort
  2683. )
  2684. echo
  2685. $as_echo "## ----------------- ##
  2686. ## Output variables. ##
  2687. ## ----------------- ##"
  2688. echo
  2689. for ac_var in $ac_subst_vars
  2690. do
  2691. eval ac_val=\$$ac_var
  2692. case $ac_val in
  2693. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2694. esac
  2695. $as_echo "$ac_var='\''$ac_val'\''"
  2696. done | sort
  2697. echo
  2698. if test -n "$ac_subst_files"; then
  2699. $as_echo "## ------------------- ##
  2700. ## File substitutions. ##
  2701. ## ------------------- ##"
  2702. echo
  2703. for ac_var in $ac_subst_files
  2704. do
  2705. eval ac_val=\$$ac_var
  2706. case $ac_val in
  2707. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2708. esac
  2709. $as_echo "$ac_var='\''$ac_val'\''"
  2710. done | sort
  2711. echo
  2712. fi
  2713. if test -s confdefs.h; then
  2714. $as_echo "## ----------- ##
  2715. ## confdefs.h. ##
  2716. ## ----------- ##"
  2717. echo
  2718. cat confdefs.h
  2719. echo
  2720. fi
  2721. test "$ac_signal" != 0 &&
  2722. $as_echo "$as_me: caught signal $ac_signal"
  2723. $as_echo "$as_me: exit $exit_status"
  2724. } >&5
  2725. rm -f core *.core core.conftest.* &&
  2726. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2727. exit $exit_status
  2728. ' 0
  2729. for ac_signal in 1 2 13 15; do
  2730. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2731. done
  2732. ac_signal=0
  2733. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2734. rm -f -r conftest* confdefs.h
  2735. $as_echo "/* confdefs.h */" > confdefs.h
  2736. # Predefined preprocessor variables.
  2737. cat >>confdefs.h <<_ACEOF
  2738. #define PACKAGE_NAME "$PACKAGE_NAME"
  2739. _ACEOF
  2740. cat >>confdefs.h <<_ACEOF
  2741. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2742. _ACEOF
  2743. cat >>confdefs.h <<_ACEOF
  2744. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2745. _ACEOF
  2746. cat >>confdefs.h <<_ACEOF
  2747. #define PACKAGE_STRING "$PACKAGE_STRING"
  2748. _ACEOF
  2749. cat >>confdefs.h <<_ACEOF
  2750. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2751. _ACEOF
  2752. cat >>confdefs.h <<_ACEOF
  2753. #define PACKAGE_URL "$PACKAGE_URL"
  2754. _ACEOF
  2755. # Let the site file select an alternate cache file if it wants to.
  2756. # Prefer an explicitly selected file to automatically selected ones.
  2757. ac_site_file1=NONE
  2758. if test -n "$CONFIG_SITE"; then
  2759. # We do not want a PATH search for config.site.
  2760. case $CONFIG_SITE in #((
  2761. -*) ac_site_file1=./$CONFIG_SITE;;
  2762. */*) ac_site_file1=$CONFIG_SITE;;
  2763. *) ac_site_file1=./$CONFIG_SITE;;
  2764. esac
  2765. fi
  2766. for ac_site_file in $ac_site_file1
  2767. do
  2768. test "x$ac_site_file" = xNONE && continue
  2769. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2771. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2772. sed 's/^/| /' "$ac_site_file" >&5
  2773. . "$ac_site_file" \
  2774. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2775. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2776. as_fn_error $? "failed to load site script $ac_site_file
  2777. See \`config.log' for more details" "$LINENO" 5; }
  2778. fi
  2779. done
  2780. if test -r "$cache_file"; then
  2781. # Some versions of bash will fail to source /dev/null (special files
  2782. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2783. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2785. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2786. case $cache_file in
  2787. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2788. *) . "./$cache_file";;
  2789. esac
  2790. fi
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2793. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2794. >$cache_file
  2795. fi
  2796. # Check that the precious variables saved in the cache have kept the same
  2797. # value.
  2798. ac_cache_corrupted=false
  2799. for ac_var in $ac_precious_vars; do
  2800. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2801. eval ac_new_set=\$ac_env_${ac_var}_set
  2802. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2803. eval ac_new_val=\$ac_env_${ac_var}_value
  2804. case $ac_old_set,$ac_new_set in
  2805. set,)
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2807. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2808. ac_cache_corrupted=: ;;
  2809. ,set)
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2811. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2812. ac_cache_corrupted=: ;;
  2813. ,);;
  2814. *)
  2815. if test "x$ac_old_val" != "x$ac_new_val"; then
  2816. # differences in whitespace do not lead to failure.
  2817. ac_old_val_w=`echo x $ac_old_val`
  2818. ac_new_val_w=`echo x $ac_new_val`
  2819. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2821. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2822. ac_cache_corrupted=:
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2825. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2826. eval $ac_var=\$ac_old_val
  2827. fi
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2829. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2831. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2832. fi;;
  2833. esac
  2834. # Pass precious variables to config.status.
  2835. if test "$ac_new_set" = set; then
  2836. case $ac_new_val in
  2837. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2838. *) ac_arg=$ac_var=$ac_new_val ;;
  2839. esac
  2840. case " $ac_configure_args " in
  2841. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2842. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2843. esac
  2844. fi
  2845. done
  2846. if $ac_cache_corrupted; then
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2848. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2850. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2851. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2852. fi
  2853. ## -------------------- ##
  2854. ## Main body of script. ##
  2855. ## -------------------- ##
  2856. ac_ext=c
  2857. ac_cpp='$CPP $CPPFLAGS'
  2858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2861. ac_aux_dir=
  2862. for ac_dir in build "$srcdir"/build; do
  2863. if test -f "$ac_dir/install-sh"; then
  2864. ac_aux_dir=$ac_dir
  2865. ac_install_sh="$ac_aux_dir/install-sh -c"
  2866. break
  2867. elif test -f "$ac_dir/install.sh"; then
  2868. ac_aux_dir=$ac_dir
  2869. ac_install_sh="$ac_aux_dir/install.sh -c"
  2870. break
  2871. elif test -f "$ac_dir/shtool"; then
  2872. ac_aux_dir=$ac_dir
  2873. ac_install_sh="$ac_aux_dir/shtool install -c"
  2874. break
  2875. fi
  2876. done
  2877. if test -z "$ac_aux_dir"; then
  2878. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
  2879. fi
  2880. # These three variables are undocumented and unsupported,
  2881. # and are intended to be withdrawn in a future Autoconf release.
  2882. # They can cause serious problems if a builder's source tree is in a directory
  2883. # whose full name contains unusual characters.
  2884. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2885. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2886. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2887. # Expand $ac_aux_dir to an absolute path.
  2888. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2889. ac_ext=c
  2890. ac_cpp='$CPP $CPPFLAGS'
  2891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2894. if test -n "$ac_tool_prefix"; then
  2895. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2896. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2898. $as_echo_n "checking for $ac_word... " >&6; }
  2899. if ${ac_cv_prog_CC+:} false; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. if test -n "$CC"; then
  2903. ac_cv_prog_CC="$CC" # Let the user override the test.
  2904. else
  2905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906. for as_dir in $PATH
  2907. do
  2908. IFS=$as_save_IFS
  2909. test -z "$as_dir" && as_dir=.
  2910. for ac_exec_ext in '' $ac_executable_extensions; do
  2911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2912. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2914. break 2
  2915. fi
  2916. done
  2917. done
  2918. IFS=$as_save_IFS
  2919. fi
  2920. fi
  2921. CC=$ac_cv_prog_CC
  2922. if test -n "$CC"; then
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2924. $as_echo "$CC" >&6; }
  2925. else
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2927. $as_echo "no" >&6; }
  2928. fi
  2929. fi
  2930. if test -z "$ac_cv_prog_CC"; then
  2931. ac_ct_CC=$CC
  2932. # Extract the first word of "gcc", so it can be a program name with args.
  2933. set dummy gcc; ac_word=$2
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2935. $as_echo_n "checking for $ac_word... " >&6; }
  2936. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. if test -n "$ac_ct_CC"; then
  2940. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2941. else
  2942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2943. for as_dir in $PATH
  2944. do
  2945. IFS=$as_save_IFS
  2946. test -z "$as_dir" && as_dir=.
  2947. for ac_exec_ext in '' $ac_executable_extensions; do
  2948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2949. ac_cv_prog_ac_ct_CC="gcc"
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2951. break 2
  2952. fi
  2953. done
  2954. done
  2955. IFS=$as_save_IFS
  2956. fi
  2957. fi
  2958. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2959. if test -n "$ac_ct_CC"; then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2961. $as_echo "$ac_ct_CC" >&6; }
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. fi
  2966. if test "x$ac_ct_CC" = x; then
  2967. CC=""
  2968. else
  2969. case $cross_compiling:$ac_tool_warned in
  2970. yes:)
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2973. ac_tool_warned=yes ;;
  2974. esac
  2975. CC=$ac_ct_CC
  2976. fi
  2977. else
  2978. CC="$ac_cv_prog_CC"
  2979. fi
  2980. if test -z "$CC"; then
  2981. if test -n "$ac_tool_prefix"; then
  2982. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2983. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$CC"; then
  2990. ac_cv_prog_CC="$CC" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. fi
  3008. CC=$ac_cv_prog_CC
  3009. if test -n "$CC"; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3011. $as_echo "$CC" >&6; }
  3012. else
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. fi
  3016. fi
  3017. fi
  3018. if test -z "$CC"; then
  3019. # Extract the first word of "cc", so it can be a program name with args.
  3020. set dummy cc; ac_word=$2
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3022. $as_echo_n "checking for $ac_word... " >&6; }
  3023. if ${ac_cv_prog_CC+:} false; then :
  3024. $as_echo_n "(cached) " >&6
  3025. else
  3026. if test -n "$CC"; then
  3027. ac_cv_prog_CC="$CC" # Let the user override the test.
  3028. else
  3029. ac_prog_rejected=no
  3030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3031. for as_dir in $PATH
  3032. do
  3033. IFS=$as_save_IFS
  3034. test -z "$as_dir" && as_dir=.
  3035. for ac_exec_ext in '' $ac_executable_extensions; do
  3036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3037. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3038. ac_prog_rejected=yes
  3039. continue
  3040. fi
  3041. ac_cv_prog_CC="cc"
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3043. break 2
  3044. fi
  3045. done
  3046. done
  3047. IFS=$as_save_IFS
  3048. if test $ac_prog_rejected = yes; then
  3049. # We found a bogon in the path, so make sure we never use it.
  3050. set dummy $ac_cv_prog_CC
  3051. shift
  3052. if test $# != 0; then
  3053. # We chose a different compiler from the bogus one.
  3054. # However, it has the same basename, so the bogon will be chosen
  3055. # first if we set CC to just the basename; use the full file name.
  3056. shift
  3057. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3058. fi
  3059. fi
  3060. fi
  3061. fi
  3062. CC=$ac_cv_prog_CC
  3063. if test -n "$CC"; then
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3065. $as_echo "$CC" >&6; }
  3066. else
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3068. $as_echo "no" >&6; }
  3069. fi
  3070. fi
  3071. if test -z "$CC"; then
  3072. if test -n "$ac_tool_prefix"; then
  3073. for ac_prog in cl.exe
  3074. do
  3075. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3076. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3078. $as_echo_n "checking for $ac_word... " >&6; }
  3079. if ${ac_cv_prog_CC+:} false; then :
  3080. $as_echo_n "(cached) " >&6
  3081. else
  3082. if test -n "$CC"; then
  3083. ac_cv_prog_CC="$CC" # Let the user override the test.
  3084. else
  3085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3086. for as_dir in $PATH
  3087. do
  3088. IFS=$as_save_IFS
  3089. test -z "$as_dir" && as_dir=.
  3090. for ac_exec_ext in '' $ac_executable_extensions; do
  3091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3092. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3094. break 2
  3095. fi
  3096. done
  3097. done
  3098. IFS=$as_save_IFS
  3099. fi
  3100. fi
  3101. CC=$ac_cv_prog_CC
  3102. if test -n "$CC"; then
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3104. $as_echo "$CC" >&6; }
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3107. $as_echo "no" >&6; }
  3108. fi
  3109. test -n "$CC" && break
  3110. done
  3111. fi
  3112. if test -z "$CC"; then
  3113. ac_ct_CC=$CC
  3114. for ac_prog in cl.exe
  3115. do
  3116. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3117. set dummy $ac_prog; ac_word=$2
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3119. $as_echo_n "checking for $ac_word... " >&6; }
  3120. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3121. $as_echo_n "(cached) " >&6
  3122. else
  3123. if test -n "$ac_ct_CC"; then
  3124. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3125. else
  3126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3127. for as_dir in $PATH
  3128. do
  3129. IFS=$as_save_IFS
  3130. test -z "$as_dir" && as_dir=.
  3131. for ac_exec_ext in '' $ac_executable_extensions; do
  3132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3133. ac_cv_prog_ac_ct_CC="$ac_prog"
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3135. break 2
  3136. fi
  3137. done
  3138. done
  3139. IFS=$as_save_IFS
  3140. fi
  3141. fi
  3142. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3143. if test -n "$ac_ct_CC"; then
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3145. $as_echo "$ac_ct_CC" >&6; }
  3146. else
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3148. $as_echo "no" >&6; }
  3149. fi
  3150. test -n "$ac_ct_CC" && break
  3151. done
  3152. if test "x$ac_ct_CC" = x; then
  3153. CC=""
  3154. else
  3155. case $cross_compiling:$ac_tool_warned in
  3156. yes:)
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3159. ac_tool_warned=yes ;;
  3160. esac
  3161. CC=$ac_ct_CC
  3162. fi
  3163. fi
  3164. fi
  3165. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3167. as_fn_error $? "no acceptable C compiler found in \$PATH
  3168. See \`config.log' for more details" "$LINENO" 5; }
  3169. # Provide some information about the compiler.
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3171. set X $ac_compile
  3172. ac_compiler=$2
  3173. for ac_option in --version -v -V -qversion; do
  3174. { { ac_try="$ac_compiler $ac_option >&5"
  3175. case "(($ac_try" in
  3176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177. *) ac_try_echo=$ac_try;;
  3178. esac
  3179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3180. $as_echo "$ac_try_echo"; } >&5
  3181. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3182. ac_status=$?
  3183. if test -s conftest.err; then
  3184. sed '10a\
  3185. ... rest of stderr output deleted ...
  3186. 10q' conftest.err >conftest.er1
  3187. cat conftest.er1 >&5
  3188. fi
  3189. rm -f conftest.er1 conftest.err
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3191. test $ac_status = 0; }
  3192. done
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. ac_clean_files_save=$ac_clean_files
  3203. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3204. # Try to create an executable without -o first, disregard a.out.
  3205. # It will help us diagnose broken compilers, and finding out an intuition
  3206. # of exeext.
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3208. $as_echo_n "checking whether the C compiler works... " >&6; }
  3209. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3210. # The possible output files:
  3211. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3212. ac_rmfiles=
  3213. for ac_file in $ac_files
  3214. do
  3215. case $ac_file in
  3216. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3217. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3218. esac
  3219. done
  3220. rm -f $ac_rmfiles
  3221. if { { ac_try="$ac_link_default"
  3222. case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo"; } >&5
  3228. (eval "$ac_link_default") 2>&5
  3229. ac_status=$?
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3231. test $ac_status = 0; }; then :
  3232. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3233. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3234. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3235. # so that the user can short-circuit this test for compilers unknown to
  3236. # Autoconf.
  3237. for ac_file in $ac_files ''
  3238. do
  3239. test -f "$ac_file" || continue
  3240. case $ac_file in
  3241. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3242. ;;
  3243. [ab].out )
  3244. # We found the default executable, but exeext='' is most
  3245. # certainly right.
  3246. break;;
  3247. *.* )
  3248. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3249. then :; else
  3250. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3251. fi
  3252. # We set ac_cv_exeext here because the later test for it is not
  3253. # safe: cross compilers may not add the suffix if given an `-o'
  3254. # argument, so we may need to know it at that point already.
  3255. # Even if this section looks crufty: it has the advantage of
  3256. # actually working.
  3257. break;;
  3258. * )
  3259. break;;
  3260. esac
  3261. done
  3262. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3263. else
  3264. ac_file=''
  3265. fi
  3266. if test -z "$ac_file"; then :
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3268. $as_echo "no" >&6; }
  3269. $as_echo "$as_me: failed program was:" >&5
  3270. sed 's/^/| /' conftest.$ac_ext >&5
  3271. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3273. as_fn_error 77 "C compiler cannot create executables
  3274. See \`config.log' for more details" "$LINENO" 5; }
  3275. else
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3277. $as_echo "yes" >&6; }
  3278. fi
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3280. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3282. $as_echo "$ac_file" >&6; }
  3283. ac_exeext=$ac_cv_exeext
  3284. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3285. ac_clean_files=$ac_clean_files_save
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3287. $as_echo_n "checking for suffix of executables... " >&6; }
  3288. if { { ac_try="$ac_link"
  3289. case "(($ac_try" in
  3290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3291. *) ac_try_echo=$ac_try;;
  3292. esac
  3293. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3294. $as_echo "$ac_try_echo"; } >&5
  3295. (eval "$ac_link") 2>&5
  3296. ac_status=$?
  3297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3298. test $ac_status = 0; }; then :
  3299. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3300. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3301. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3302. # `rm'.
  3303. for ac_file in conftest.exe conftest conftest.*; do
  3304. test -f "$ac_file" || continue
  3305. case $ac_file in
  3306. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3307. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3308. break;;
  3309. * ) break;;
  3310. esac
  3311. done
  3312. else
  3313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3315. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3316. See \`config.log' for more details" "$LINENO" 5; }
  3317. fi
  3318. rm -f conftest conftest$ac_cv_exeext
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3320. $as_echo "$ac_cv_exeext" >&6; }
  3321. rm -f conftest.$ac_ext
  3322. EXEEXT=$ac_cv_exeext
  3323. ac_exeext=$EXEEXT
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. #include <stdio.h>
  3327. int
  3328. main ()
  3329. {
  3330. FILE *f = fopen ("conftest.out", "w");
  3331. return ferror (f) || fclose (f) != 0;
  3332. ;
  3333. return 0;
  3334. }
  3335. _ACEOF
  3336. ac_clean_files="$ac_clean_files conftest.out"
  3337. # Check that the compiler produces executables we can run. If not, either
  3338. # the compiler is broken, or we cross compile.
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3340. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3341. if test "$cross_compiling" != yes; then
  3342. { { ac_try="$ac_link"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3348. $as_echo "$ac_try_echo"; } >&5
  3349. (eval "$ac_link") 2>&5
  3350. ac_status=$?
  3351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3352. test $ac_status = 0; }
  3353. if { ac_try='./conftest$ac_cv_exeext'
  3354. { { case "(($ac_try" in
  3355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3356. *) ac_try_echo=$ac_try;;
  3357. esac
  3358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3359. $as_echo "$ac_try_echo"; } >&5
  3360. (eval "$ac_try") 2>&5
  3361. ac_status=$?
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3363. test $ac_status = 0; }; }; then
  3364. cross_compiling=no
  3365. else
  3366. if test "$cross_compiling" = maybe; then
  3367. cross_compiling=yes
  3368. else
  3369. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3370. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3371. as_fn_error $? "cannot run C compiled programs.
  3372. If you meant to cross compile, use \`--host'.
  3373. See \`config.log' for more details" "$LINENO" 5; }
  3374. fi
  3375. fi
  3376. fi
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3378. $as_echo "$cross_compiling" >&6; }
  3379. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3380. ac_clean_files=$ac_clean_files_save
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3382. $as_echo_n "checking for suffix of object files... " >&6; }
  3383. if ${ac_cv_objext+:} false; then :
  3384. $as_echo_n "(cached) " >&6
  3385. else
  3386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3387. /* end confdefs.h. */
  3388. int
  3389. main ()
  3390. {
  3391. ;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. rm -f conftest.o conftest.obj
  3396. if { { ac_try="$ac_compile"
  3397. case "(($ac_try" in
  3398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3399. *) ac_try_echo=$ac_try;;
  3400. esac
  3401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3402. $as_echo "$ac_try_echo"; } >&5
  3403. (eval "$ac_compile") 2>&5
  3404. ac_status=$?
  3405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3406. test $ac_status = 0; }; then :
  3407. for ac_file in conftest.o conftest.obj conftest.*; do
  3408. test -f "$ac_file" || continue;
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3411. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3412. break;;
  3413. esac
  3414. done
  3415. else
  3416. $as_echo "$as_me: failed program was:" >&5
  3417. sed 's/^/| /' conftest.$ac_ext >&5
  3418. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3419. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3420. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3421. See \`config.log' for more details" "$LINENO" 5; }
  3422. fi
  3423. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3424. fi
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3426. $as_echo "$ac_cv_objext" >&6; }
  3427. OBJEXT=$ac_cv_objext
  3428. ac_objext=$OBJEXT
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3430. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3431. if ${ac_cv_c_compiler_gnu+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3435. /* end confdefs.h. */
  3436. int
  3437. main ()
  3438. {
  3439. #ifndef __GNUC__
  3440. choke me
  3441. #endif
  3442. ;
  3443. return 0;
  3444. }
  3445. _ACEOF
  3446. if ac_fn_c_try_compile "$LINENO"; then :
  3447. ac_compiler_gnu=yes
  3448. else
  3449. ac_compiler_gnu=no
  3450. fi
  3451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3452. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3455. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3456. if test $ac_compiler_gnu = yes; then
  3457. GCC=yes
  3458. else
  3459. GCC=
  3460. fi
  3461. ac_test_CFLAGS=${CFLAGS+set}
  3462. ac_save_CFLAGS=$CFLAGS
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3464. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3465. if ${ac_cv_prog_cc_g+:} false; then :
  3466. $as_echo_n "(cached) " >&6
  3467. else
  3468. ac_save_c_werror_flag=$ac_c_werror_flag
  3469. ac_c_werror_flag=yes
  3470. ac_cv_prog_cc_g=no
  3471. CFLAGS="-g"
  3472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3473. /* end confdefs.h. */
  3474. int
  3475. main ()
  3476. {
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. if ac_fn_c_try_compile "$LINENO"; then :
  3482. ac_cv_prog_cc_g=yes
  3483. else
  3484. CFLAGS=""
  3485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3486. /* end confdefs.h. */
  3487. int
  3488. main ()
  3489. {
  3490. ;
  3491. return 0;
  3492. }
  3493. _ACEOF
  3494. if ac_fn_c_try_compile "$LINENO"; then :
  3495. else
  3496. ac_c_werror_flag=$ac_save_c_werror_flag
  3497. CFLAGS="-g"
  3498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3499. /* end confdefs.h. */
  3500. int
  3501. main ()
  3502. {
  3503. ;
  3504. return 0;
  3505. }
  3506. _ACEOF
  3507. if ac_fn_c_try_compile "$LINENO"; then :
  3508. ac_cv_prog_cc_g=yes
  3509. fi
  3510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3511. fi
  3512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3513. fi
  3514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3515. ac_c_werror_flag=$ac_save_c_werror_flag
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3518. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3519. if test "$ac_test_CFLAGS" = set; then
  3520. CFLAGS=$ac_save_CFLAGS
  3521. elif test $ac_cv_prog_cc_g = yes; then
  3522. if test "$GCC" = yes; then
  3523. CFLAGS="-g -O2"
  3524. else
  3525. CFLAGS="-g"
  3526. fi
  3527. else
  3528. if test "$GCC" = yes; then
  3529. CFLAGS="-O2"
  3530. else
  3531. CFLAGS=
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3535. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3536. if ${ac_cv_prog_cc_c89+:} false; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. ac_cv_prog_cc_c89=no
  3540. ac_save_CC=$CC
  3541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3542. /* end confdefs.h. */
  3543. #include <stdarg.h>
  3544. #include <stdio.h>
  3545. struct stat;
  3546. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3547. struct buf { int x; };
  3548. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3549. static char *e (p, i)
  3550. char **p;
  3551. int i;
  3552. {
  3553. return p[i];
  3554. }
  3555. static char *f (char * (*g) (char **, int), char **p, ...)
  3556. {
  3557. char *s;
  3558. va_list v;
  3559. va_start (v,p);
  3560. s = g (p, va_arg (v,int));
  3561. va_end (v);
  3562. return s;
  3563. }
  3564. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3565. function prototypes and stuff, but not '\xHH' hex character constants.
  3566. These don't provoke an error unfortunately, instead are silently treated
  3567. as 'x'. The following induces an error, until -std is added to get
  3568. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3569. array size at least. It's necessary to write '\x00'==0 to get something
  3570. that's true only with -std. */
  3571. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3572. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3573. inside strings and character constants. */
  3574. #define FOO(x) 'x'
  3575. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3576. int test (int i, double x);
  3577. struct s1 {int (*f) (int a);};
  3578. struct s2 {int (*f) (double a);};
  3579. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3580. int argc;
  3581. char **argv;
  3582. int
  3583. main ()
  3584. {
  3585. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3586. ;
  3587. return 0;
  3588. }
  3589. _ACEOF
  3590. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3591. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3592. do
  3593. CC="$ac_save_CC $ac_arg"
  3594. if ac_fn_c_try_compile "$LINENO"; then :
  3595. ac_cv_prog_cc_c89=$ac_arg
  3596. fi
  3597. rm -f core conftest.err conftest.$ac_objext
  3598. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3599. done
  3600. rm -f conftest.$ac_ext
  3601. CC=$ac_save_CC
  3602. fi
  3603. # AC_CACHE_VAL
  3604. case "x$ac_cv_prog_cc_c89" in
  3605. x)
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3607. $as_echo "none needed" >&6; } ;;
  3608. xno)
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3610. $as_echo "unsupported" >&6; } ;;
  3611. *)
  3612. CC="$CC $ac_cv_prog_cc_c89"
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3614. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3615. esac
  3616. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3617. fi
  3618. ac_ext=c
  3619. ac_cpp='$CPP $CPPFLAGS'
  3620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3623. ac_ext=c
  3624. ac_cpp='$CPP $CPPFLAGS'
  3625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3629. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3630. if ${am_cv_prog_cc_c_o+:} false; then :
  3631. $as_echo_n "(cached) " >&6
  3632. else
  3633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3634. /* end confdefs.h. */
  3635. int
  3636. main ()
  3637. {
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. # Make sure it works both with $CC and with simple cc.
  3643. # Following AC_PROG_CC_C_O, we do the test twice because some
  3644. # compilers refuse to overwrite an existing .o file with -o,
  3645. # though they will create one.
  3646. am_cv_prog_cc_c_o=yes
  3647. for am_i in 1 2; do
  3648. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3649. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3650. ac_status=$?
  3651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); } \
  3653. && test -f conftest2.$ac_objext; then
  3654. : OK
  3655. else
  3656. am_cv_prog_cc_c_o=no
  3657. break
  3658. fi
  3659. done
  3660. rm -f core conftest*
  3661. unset am_i
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3664. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3665. if test "$am_cv_prog_cc_c_o" != yes; then
  3666. # Losing compiler, so override with the script.
  3667. # FIXME: It is wrong to rewrite CC.
  3668. # But if we don't then we get into trouble of one sort or another.
  3669. # A longer-term fix would be to have automake use am__CC in this case,
  3670. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3671. CC="$am_aux_dir/compile $CC"
  3672. fi
  3673. ac_ext=c
  3674. ac_cpp='$CPP $CPPFLAGS'
  3675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3678. ac_ext=c
  3679. ac_cpp='$CPP $CPPFLAGS'
  3680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3684. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3685. # On Suns, sometimes $CPP names a directory.
  3686. if test -n "$CPP" && test -d "$CPP"; then
  3687. CPP=
  3688. fi
  3689. if test -z "$CPP"; then
  3690. if ${ac_cv_prog_CPP+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. # Double quotes because CPP needs to be expanded
  3694. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3695. do
  3696. ac_preproc_ok=false
  3697. for ac_c_preproc_warn_flag in '' yes
  3698. do
  3699. # Use a header file that comes with gcc, so configuring glibc
  3700. # with a fresh cross-compiler works.
  3701. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3702. # <limits.h> exists even on freestanding compilers.
  3703. # On the NeXT, cc -E runs the code through the compiler's parser,
  3704. # not just through cpp. "Syntax error" is here to catch this case.
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. #ifdef __STDC__
  3708. # include <limits.h>
  3709. #else
  3710. # include <assert.h>
  3711. #endif
  3712. Syntax error
  3713. _ACEOF
  3714. if ac_fn_c_try_cpp "$LINENO"; then :
  3715. else
  3716. # Broken: fails on valid input.
  3717. continue
  3718. fi
  3719. rm -f conftest.err conftest.i conftest.$ac_ext
  3720. # OK, works on sane cases. Now check whether nonexistent headers
  3721. # can be detected and how.
  3722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3723. /* end confdefs.h. */
  3724. #include <ac_nonexistent.h>
  3725. _ACEOF
  3726. if ac_fn_c_try_cpp "$LINENO"; then :
  3727. # Broken: success on invalid input.
  3728. continue
  3729. else
  3730. # Passes both tests.
  3731. ac_preproc_ok=:
  3732. break
  3733. fi
  3734. rm -f conftest.err conftest.i conftest.$ac_ext
  3735. done
  3736. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3737. rm -f conftest.i conftest.err conftest.$ac_ext
  3738. if $ac_preproc_ok; then :
  3739. break
  3740. fi
  3741. done
  3742. ac_cv_prog_CPP=$CPP
  3743. fi
  3744. CPP=$ac_cv_prog_CPP
  3745. else
  3746. ac_cv_prog_CPP=$CPP
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3749. $as_echo "$CPP" >&6; }
  3750. ac_preproc_ok=false
  3751. for ac_c_preproc_warn_flag in '' yes
  3752. do
  3753. # Use a header file that comes with gcc, so configuring glibc
  3754. # with a fresh cross-compiler works.
  3755. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3756. # <limits.h> exists even on freestanding compilers.
  3757. # On the NeXT, cc -E runs the code through the compiler's parser,
  3758. # not just through cpp. "Syntax error" is here to catch this case.
  3759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3760. /* end confdefs.h. */
  3761. #ifdef __STDC__
  3762. # include <limits.h>
  3763. #else
  3764. # include <assert.h>
  3765. #endif
  3766. Syntax error
  3767. _ACEOF
  3768. if ac_fn_c_try_cpp "$LINENO"; then :
  3769. else
  3770. # Broken: fails on valid input.
  3771. continue
  3772. fi
  3773. rm -f conftest.err conftest.i conftest.$ac_ext
  3774. # OK, works on sane cases. Now check whether nonexistent headers
  3775. # can be detected and how.
  3776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3777. /* end confdefs.h. */
  3778. #include <ac_nonexistent.h>
  3779. _ACEOF
  3780. if ac_fn_c_try_cpp "$LINENO"; then :
  3781. # Broken: success on invalid input.
  3782. continue
  3783. else
  3784. # Passes both tests.
  3785. ac_preproc_ok=:
  3786. break
  3787. fi
  3788. rm -f conftest.err conftest.i conftest.$ac_ext
  3789. done
  3790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3791. rm -f conftest.i conftest.err conftest.$ac_ext
  3792. if $ac_preproc_ok; then :
  3793. else
  3794. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3795. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3796. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3797. See \`config.log' for more details" "$LINENO" 5; }
  3798. fi
  3799. ac_ext=c
  3800. ac_cpp='$CPP $CPPFLAGS'
  3801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3805. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3806. if ${ac_cv_path_GREP+:} false; then :
  3807. $as_echo_n "(cached) " >&6
  3808. else
  3809. if test -z "$GREP"; then
  3810. ac_path_GREP_found=false
  3811. # Loop through the user's path and test for each of PROGNAME-LIST
  3812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3813. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3814. do
  3815. IFS=$as_save_IFS
  3816. test -z "$as_dir" && as_dir=.
  3817. for ac_prog in grep ggrep; do
  3818. for ac_exec_ext in '' $ac_executable_extensions; do
  3819. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3820. as_fn_executable_p "$ac_path_GREP" || continue
  3821. # Check for GNU ac_path_GREP and select it if it is found.
  3822. # Check for GNU $ac_path_GREP
  3823. case `"$ac_path_GREP" --version 2>&1` in
  3824. *GNU*)
  3825. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3826. *)
  3827. ac_count=0
  3828. $as_echo_n 0123456789 >"conftest.in"
  3829. while :
  3830. do
  3831. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3832. mv "conftest.tmp" "conftest.in"
  3833. cp "conftest.in" "conftest.nl"
  3834. $as_echo 'GREP' >> "conftest.nl"
  3835. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3836. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3837. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3838. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3839. # Best one so far, save it but keep looking for a better one
  3840. ac_cv_path_GREP="$ac_path_GREP"
  3841. ac_path_GREP_max=$ac_count
  3842. fi
  3843. # 10*(2^10) chars as input seems more than enough
  3844. test $ac_count -gt 10 && break
  3845. done
  3846. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3847. esac
  3848. $ac_path_GREP_found && break 3
  3849. done
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. if test -z "$ac_cv_path_GREP"; then
  3854. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3855. fi
  3856. else
  3857. ac_cv_path_GREP=$GREP
  3858. fi
  3859. fi
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3861. $as_echo "$ac_cv_path_GREP" >&6; }
  3862. GREP="$ac_cv_path_GREP"
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3864. $as_echo_n "checking for egrep... " >&6; }
  3865. if ${ac_cv_path_EGREP+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3869. then ac_cv_path_EGREP="$GREP -E"
  3870. else
  3871. if test -z "$EGREP"; then
  3872. ac_path_EGREP_found=false
  3873. # Loop through the user's path and test for each of PROGNAME-LIST
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. for ac_prog in egrep; do
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3882. as_fn_executable_p "$ac_path_EGREP" || continue
  3883. # Check for GNU ac_path_EGREP and select it if it is found.
  3884. # Check for GNU $ac_path_EGREP
  3885. case `"$ac_path_EGREP" --version 2>&1` in
  3886. *GNU*)
  3887. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3888. *)
  3889. ac_count=0
  3890. $as_echo_n 0123456789 >"conftest.in"
  3891. while :
  3892. do
  3893. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3894. mv "conftest.tmp" "conftest.in"
  3895. cp "conftest.in" "conftest.nl"
  3896. $as_echo 'EGREP' >> "conftest.nl"
  3897. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3898. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3899. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3900. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3901. # Best one so far, save it but keep looking for a better one
  3902. ac_cv_path_EGREP="$ac_path_EGREP"
  3903. ac_path_EGREP_max=$ac_count
  3904. fi
  3905. # 10*(2^10) chars as input seems more than enough
  3906. test $ac_count -gt 10 && break
  3907. done
  3908. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3909. esac
  3910. $ac_path_EGREP_found && break 3
  3911. done
  3912. done
  3913. done
  3914. IFS=$as_save_IFS
  3915. if test -z "$ac_cv_path_EGREP"; then
  3916. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3917. fi
  3918. else
  3919. ac_cv_path_EGREP=$EGREP
  3920. fi
  3921. fi
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3924. $as_echo "$ac_cv_path_EGREP" >&6; }
  3925. EGREP="$ac_cv_path_EGREP"
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3927. $as_echo_n "checking for ANSI C header files... " >&6; }
  3928. if ${ac_cv_header_stdc+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h. */
  3933. #include <stdlib.h>
  3934. #include <stdarg.h>
  3935. #include <string.h>
  3936. #include <float.h>
  3937. int
  3938. main ()
  3939. {
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. if ac_fn_c_try_compile "$LINENO"; then :
  3945. ac_cv_header_stdc=yes
  3946. else
  3947. ac_cv_header_stdc=no
  3948. fi
  3949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3950. if test $ac_cv_header_stdc = yes; then
  3951. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3953. /* end confdefs.h. */
  3954. #include <string.h>
  3955. _ACEOF
  3956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3957. $EGREP "memchr" >/dev/null 2>&1; then :
  3958. else
  3959. ac_cv_header_stdc=no
  3960. fi
  3961. rm -f conftest*
  3962. fi
  3963. if test $ac_cv_header_stdc = yes; then
  3964. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3966. /* end confdefs.h. */
  3967. #include <stdlib.h>
  3968. _ACEOF
  3969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3970. $EGREP "free" >/dev/null 2>&1; then :
  3971. else
  3972. ac_cv_header_stdc=no
  3973. fi
  3974. rm -f conftest*
  3975. fi
  3976. if test $ac_cv_header_stdc = yes; then
  3977. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3978. if test "$cross_compiling" = yes; then :
  3979. :
  3980. else
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. #include <ctype.h>
  3984. #include <stdlib.h>
  3985. #if ((' ' & 0x0FF) == 0x020)
  3986. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3987. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3988. #else
  3989. # define ISLOWER(c) \
  3990. (('a' <= (c) && (c) <= 'i') \
  3991. || ('j' <= (c) && (c) <= 'r') \
  3992. || ('s' <= (c) && (c) <= 'z'))
  3993. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3994. #endif
  3995. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3996. int
  3997. main ()
  3998. {
  3999. int i;
  4000. for (i = 0; i < 256; i++)
  4001. if (XOR (islower (i), ISLOWER (i))
  4002. || toupper (i) != TOUPPER (i))
  4003. return 2;
  4004. return 0;
  4005. }
  4006. _ACEOF
  4007. if ac_fn_c_try_run "$LINENO"; then :
  4008. else
  4009. ac_cv_header_stdc=no
  4010. fi
  4011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4012. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4013. fi
  4014. fi
  4015. fi
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4017. $as_echo "$ac_cv_header_stdc" >&6; }
  4018. if test $ac_cv_header_stdc = yes; then
  4019. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4020. fi
  4021. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4022. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4023. inttypes.h stdint.h unistd.h
  4024. do :
  4025. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4026. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4027. "
  4028. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4029. cat >>confdefs.h <<_ACEOF
  4030. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4031. _ACEOF
  4032. fi
  4033. done
  4034. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4035. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4036. MINIX=yes
  4037. else
  4038. MINIX=
  4039. fi
  4040. if test "$MINIX" = yes; then
  4041. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4042. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4043. $as_echo "#define _MINIX 1" >>confdefs.h
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4046. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4047. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. # define __EXTENSIONS__ 1
  4053. $ac_includes_default
  4054. int
  4055. main ()
  4056. {
  4057. ;
  4058. return 0;
  4059. }
  4060. _ACEOF
  4061. if ac_fn_c_try_compile "$LINENO"; then :
  4062. ac_cv_safe_to_define___extensions__=yes
  4063. else
  4064. ac_cv_safe_to_define___extensions__=no
  4065. fi
  4066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4067. fi
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4069. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4070. test $ac_cv_safe_to_define___extensions__ = yes &&
  4071. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4072. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4073. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4074. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4075. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4076. ac_config_headers="$ac_config_headers config.h"
  4077. for ac_header in unistd.h sys/ioctl.h
  4078. do :
  4079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4080. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4081. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4082. cat >>confdefs.h <<_ACEOF
  4083. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4084. _ACEOF
  4085. fi
  4086. done
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
  4088. $as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
  4089. if ${ac_cv_c_typeof+:} false; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. ac_cv_c_typeof=no
  4093. for ac_kw in typeof __typeof__ no; do
  4094. test $ac_kw = no && break
  4095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4096. /* end confdefs.h. */
  4097. int
  4098. main ()
  4099. {
  4100. int value;
  4101. typedef struct {
  4102. char a [1
  4103. + ! (($ac_kw (value))
  4104. (($ac_kw (value)) 0 < ($ac_kw (value)) -1
  4105. ? ($ac_kw (value)) - 1
  4106. : ~ (~ ($ac_kw (value)) 0
  4107. << sizeof ($ac_kw (value)))))]; }
  4108. ac__typeof_type_;
  4109. return
  4110. (! ((void) ((ac__typeof_type_ *) 0), 0));
  4111. ;
  4112. return 0;
  4113. }
  4114. _ACEOF
  4115. if ac_fn_c_try_compile "$LINENO"; then :
  4116. ac_cv_c_typeof=$ac_kw
  4117. fi
  4118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4119. test $ac_cv_c_typeof != no && break
  4120. done
  4121. fi
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
  4123. $as_echo "$ac_cv_c_typeof" >&6; }
  4124. if test $ac_cv_c_typeof != no; then
  4125. $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
  4126. if test $ac_cv_c_typeof != typeof; then
  4127. cat >>confdefs.h <<_ACEOF
  4128. #define typeof $ac_cv_c_typeof
  4129. _ACEOF
  4130. fi
  4131. fi
  4132. am__api_version='1.16'
  4133. # Find a good install program. We prefer a C program (faster),
  4134. # so one script is as good as another. But avoid the broken or
  4135. # incompatible versions:
  4136. # SysV /etc/install, /usr/sbin/install
  4137. # SunOS /usr/etc/install
  4138. # IRIX /sbin/install
  4139. # AIX /bin/install
  4140. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4141. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4142. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4143. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4144. # OS/2's system install, which has a completely different semantic
  4145. # ./install, which can be erroneously created by make from ./install.sh.
  4146. # Reject install programs that cannot install multiple files.
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4148. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4149. if test -z "$INSTALL"; then
  4150. if ${ac_cv_path_install+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. # Account for people who put trailing slashes in PATH elements.
  4159. case $as_dir/ in #((
  4160. ./ | .// | /[cC]/* | \
  4161. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4162. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4163. /usr/ucb/* ) ;;
  4164. *)
  4165. # OSF1 and SCO ODT 3.0 have their own names for install.
  4166. # Don't use installbsd from OSF since it installs stuff as root
  4167. # by default.
  4168. for ac_prog in ginstall scoinst install; do
  4169. for ac_exec_ext in '' $ac_executable_extensions; do
  4170. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4171. if test $ac_prog = install &&
  4172. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4173. # AIX install. It has an incompatible calling convention.
  4174. :
  4175. elif test $ac_prog = install &&
  4176. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4177. # program-specific install script used by HP pwplus--don't use.
  4178. :
  4179. else
  4180. rm -rf conftest.one conftest.two conftest.dir
  4181. echo one > conftest.one
  4182. echo two > conftest.two
  4183. mkdir conftest.dir
  4184. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4185. test -s conftest.one && test -s conftest.two &&
  4186. test -s conftest.dir/conftest.one &&
  4187. test -s conftest.dir/conftest.two
  4188. then
  4189. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4190. break 3
  4191. fi
  4192. fi
  4193. fi
  4194. done
  4195. done
  4196. ;;
  4197. esac
  4198. done
  4199. IFS=$as_save_IFS
  4200. rm -rf conftest.one conftest.two conftest.dir
  4201. fi
  4202. if test "${ac_cv_path_install+set}" = set; then
  4203. INSTALL=$ac_cv_path_install
  4204. else
  4205. # As a last resort, use the slow shell script. Don't cache a
  4206. # value for INSTALL within a source directory, because that will
  4207. # break other packages using the cache if that directory is
  4208. # removed, or if the value is a relative name.
  4209. INSTALL=$ac_install_sh
  4210. fi
  4211. fi
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4213. $as_echo "$INSTALL" >&6; }
  4214. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4215. # It thinks the first close brace ends the variable substitution.
  4216. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4217. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4218. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4220. $as_echo_n "checking whether build environment is sane... " >&6; }
  4221. # Reject unsafe characters in $srcdir or the absolute working directory
  4222. # name. Accept space and tab only in the latter.
  4223. am_lf='
  4224. '
  4225. case `pwd` in
  4226. *[\\\"\#\$\&\'\`$am_lf]*)
  4227. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4228. esac
  4229. case $srcdir in
  4230. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4231. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  4232. esac
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4234. $as_echo "yes" >&6; }
  4235. test "$program_prefix" != NONE &&
  4236. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4237. # Use a double $ so make ignores it.
  4238. test "$program_suffix" != NONE &&
  4239. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4240. # Double any \ or $.
  4241. # By default was `s,x,x', remove it if useless.
  4242. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4243. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4244. if test x"${MISSING+set}" != xset; then
  4245. case $am_aux_dir in
  4246. *\ * | *\ *)
  4247. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4248. *)
  4249. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4250. esac
  4251. fi
  4252. # Use eval to expand $SHELL
  4253. if eval "$MISSING --is-lightweight"; then
  4254. am_missing_run="$MISSING "
  4255. else
  4256. am_missing_run=
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  4258. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  4259. fi
  4260. if test x"${install_sh+set}" != xset; then
  4261. case $am_aux_dir in
  4262. *\ * | *\ *)
  4263. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4264. *)
  4265. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4266. esac
  4267. fi
  4268. # Installed binaries are usually stripped using 'strip' when the user
  4269. # run "make install-strip". However 'strip' might not be the right
  4270. # tool to use in cross-compilation environments, therefore Automake
  4271. # will honor the 'STRIP' environment variable to overrule this program.
  4272. if test "$cross_compiling" != no; then
  4273. if test -n "$ac_tool_prefix"; then
  4274. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4275. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4277. $as_echo_n "checking for $ac_word... " >&6; }
  4278. if ${ac_cv_prog_STRIP+:} false; then :
  4279. $as_echo_n "(cached) " >&6
  4280. else
  4281. if test -n "$STRIP"; then
  4282. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4283. else
  4284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4285. for as_dir in $PATH
  4286. do
  4287. IFS=$as_save_IFS
  4288. test -z "$as_dir" && as_dir=.
  4289. for ac_exec_ext in '' $ac_executable_extensions; do
  4290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4291. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4293. break 2
  4294. fi
  4295. done
  4296. done
  4297. IFS=$as_save_IFS
  4298. fi
  4299. fi
  4300. STRIP=$ac_cv_prog_STRIP
  4301. if test -n "$STRIP"; then
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4303. $as_echo "$STRIP" >&6; }
  4304. else
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4306. $as_echo "no" >&6; }
  4307. fi
  4308. fi
  4309. if test -z "$ac_cv_prog_STRIP"; then
  4310. ac_ct_STRIP=$STRIP
  4311. # Extract the first word of "strip", so it can be a program name with args.
  4312. set dummy strip; ac_word=$2
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4314. $as_echo_n "checking for $ac_word... " >&6; }
  4315. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. if test -n "$ac_ct_STRIP"; then
  4319. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4320. else
  4321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4322. for as_dir in $PATH
  4323. do
  4324. IFS=$as_save_IFS
  4325. test -z "$as_dir" && as_dir=.
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4328. ac_cv_prog_ac_ct_STRIP="strip"
  4329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4330. break 2
  4331. fi
  4332. done
  4333. done
  4334. IFS=$as_save_IFS
  4335. fi
  4336. fi
  4337. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4338. if test -n "$ac_ct_STRIP"; then
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4340. $as_echo "$ac_ct_STRIP" >&6; }
  4341. else
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4343. $as_echo "no" >&6; }
  4344. fi
  4345. if test "x$ac_ct_STRIP" = x; then
  4346. STRIP=":"
  4347. else
  4348. case $cross_compiling:$ac_tool_warned in
  4349. yes:)
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4351. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4352. ac_tool_warned=yes ;;
  4353. esac
  4354. STRIP=$ac_ct_STRIP
  4355. fi
  4356. else
  4357. STRIP="$ac_cv_prog_STRIP"
  4358. fi
  4359. fi
  4360. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4362. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4363. if test -z "$MKDIR_P"; then
  4364. if ${ac_cv_path_mkdir+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4368. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4369. do
  4370. IFS=$as_save_IFS
  4371. test -z "$as_dir" && as_dir=.
  4372. for ac_prog in mkdir gmkdir; do
  4373. for ac_exec_ext in '' $ac_executable_extensions; do
  4374. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  4375. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4376. 'mkdir (GNU coreutils) '* | \
  4377. 'mkdir (coreutils) '* | \
  4378. 'mkdir (fileutils) '4.1*)
  4379. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4380. break 3;;
  4381. esac
  4382. done
  4383. done
  4384. done
  4385. IFS=$as_save_IFS
  4386. fi
  4387. test -d ./--version && rmdir ./--version
  4388. if test "${ac_cv_path_mkdir+set}" = set; then
  4389. MKDIR_P="$ac_cv_path_mkdir -p"
  4390. else
  4391. # As a last resort, use the slow shell script. Don't cache a
  4392. # value for MKDIR_P within a source directory, because that will
  4393. # break other packages using the cache if that directory is
  4394. # removed, or if the value is a relative name.
  4395. MKDIR_P="$ac_install_sh -d"
  4396. fi
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4399. $as_echo "$MKDIR_P" >&6; }
  4400. for ac_prog in gawk mawk nawk awk
  4401. do
  4402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4403. set dummy $ac_prog; ac_word=$2
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4405. $as_echo_n "checking for $ac_word... " >&6; }
  4406. if ${ac_cv_prog_AWK+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. if test -n "$AWK"; then
  4410. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4411. else
  4412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4413. for as_dir in $PATH
  4414. do
  4415. IFS=$as_save_IFS
  4416. test -z "$as_dir" && as_dir=.
  4417. for ac_exec_ext in '' $ac_executable_extensions; do
  4418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4419. ac_cv_prog_AWK="$ac_prog"
  4420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4421. break 2
  4422. fi
  4423. done
  4424. done
  4425. IFS=$as_save_IFS
  4426. fi
  4427. fi
  4428. AWK=$ac_cv_prog_AWK
  4429. if test -n "$AWK"; then
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4431. $as_echo "$AWK" >&6; }
  4432. else
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4434. $as_echo "no" >&6; }
  4435. fi
  4436. test -n "$AWK" && break
  4437. done
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4439. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4440. set x ${MAKE-make}
  4441. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4442. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. cat >conftest.make <<\_ACEOF
  4446. SHELL = /bin/sh
  4447. all:
  4448. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4449. _ACEOF
  4450. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4451. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4452. *@@@%%%=?*=@@@%%%*)
  4453. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4454. *)
  4455. eval ac_cv_prog_make_${ac_make}_set=no;;
  4456. esac
  4457. rm -f conftest.make
  4458. fi
  4459. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4461. $as_echo "yes" >&6; }
  4462. SET_MAKE=
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. SET_MAKE="MAKE=${MAKE-make}"
  4467. fi
  4468. rm -rf .tst 2>/dev/null
  4469. mkdir .tst 2>/dev/null
  4470. if test -d .tst; then
  4471. am__leading_dot=.
  4472. else
  4473. am__leading_dot=_
  4474. fi
  4475. rmdir .tst 2>/dev/null
  4476. DEPDIR="${am__leading_dot}deps"
  4477. ac_config_commands="$ac_config_commands depfiles"
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4479. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4480. cat > confinc.mk << 'END'
  4481. am__doit:
  4482. @echo this is the am__doit target >confinc.out
  4483. .PHONY: am__doit
  4484. END
  4485. am__include="#"
  4486. am__quote=
  4487. # BSD make does it like this.
  4488. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4489. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4490. echo 'include confinc.mk # ignored' > confmf.GNU
  4491. _am_result=no
  4492. for s in GNU BSD; do
  4493. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4494. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4495. ac_status=$?
  4496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4497. (exit $ac_status); }
  4498. case $?:`cat confinc.out 2>/dev/null` in #(
  4499. '0:this is the am__doit target') :
  4500. case $s in #(
  4501. BSD) :
  4502. am__include='.include' am__quote='"' ;; #(
  4503. *) :
  4504. am__include='include' am__quote='' ;;
  4505. esac ;; #(
  4506. *) :
  4507. ;;
  4508. esac
  4509. if test "$am__include" != "#"; then
  4510. _am_result="yes ($s style)"
  4511. break
  4512. fi
  4513. done
  4514. rm -f confinc.* confmf.*
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4516. $as_echo "${_am_result}" >&6; }
  4517. # Check whether --enable-dependency-tracking was given.
  4518. if test "${enable_dependency_tracking+set}" = set; then :
  4519. enableval=$enable_dependency_tracking;
  4520. fi
  4521. if test "x$enable_dependency_tracking" != xno; then
  4522. am_depcomp="$ac_aux_dir/depcomp"
  4523. AMDEPBACKSLASH='\'
  4524. am__nodep='_no'
  4525. fi
  4526. if test "x$enable_dependency_tracking" != xno; then
  4527. AMDEP_TRUE=
  4528. AMDEP_FALSE='#'
  4529. else
  4530. AMDEP_TRUE='#'
  4531. AMDEP_FALSE=
  4532. fi
  4533. # Check whether --enable-silent-rules was given.
  4534. if test "${enable_silent_rules+set}" = set; then :
  4535. enableval=$enable_silent_rules;
  4536. fi
  4537. case $enable_silent_rules in # (((
  4538. yes) AM_DEFAULT_VERBOSITY=0;;
  4539. no) AM_DEFAULT_VERBOSITY=1;;
  4540. *) AM_DEFAULT_VERBOSITY=1;;
  4541. esac
  4542. am_make=${MAKE-make}
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4544. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4545. if ${am_cv_make_support_nested_variables+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if $as_echo 'TRUE=$(BAR$(V))
  4549. BAR0=false
  4550. BAR1=true
  4551. V=1
  4552. am__doit:
  4553. @$(TRUE)
  4554. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4555. am_cv_make_support_nested_variables=yes
  4556. else
  4557. am_cv_make_support_nested_variables=no
  4558. fi
  4559. fi
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4561. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4562. if test $am_cv_make_support_nested_variables = yes; then
  4563. AM_V='$(V)'
  4564. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4565. else
  4566. AM_V=$AM_DEFAULT_VERBOSITY
  4567. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4568. fi
  4569. AM_BACKSLASH='\'
  4570. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4571. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4572. # is not polluted with repeated "-I."
  4573. am__isrc=' -I$(srcdir)'
  4574. # test to see if srcdir already configured
  4575. if test -f $srcdir/config.status; then
  4576. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4577. fi
  4578. fi
  4579. # test whether we have cygpath
  4580. if test -z "$CYGPATH_W"; then
  4581. if (cygpath --version) >/dev/null 2>/dev/null; then
  4582. CYGPATH_W='cygpath -w'
  4583. else
  4584. CYGPATH_W=echo
  4585. fi
  4586. fi
  4587. # Define the identity of the package.
  4588. PACKAGE='cairo'
  4589. VERSION='1.16.0'
  4590. # Some tools Automake needs.
  4591. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4592. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4593. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4594. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4595. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4596. # For better backward compatibility. To be removed once Automake 1.9.x
  4597. # dies out for good. For more background, see:
  4598. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4599. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4600. mkdir_p='$(MKDIR_P)'
  4601. # We need awk for the "check" target (and possibly the TAP driver). The
  4602. # system "awk" is bad on some platforms.
  4603. # Always define AMTAR for backward compatibility. Yes, it's still used
  4604. # in the wild :-( We should find a proper way to deprecate it ...
  4605. AMTAR='$${TAR-tar}'
  4606. # We'll loop over all known methods to create a tar archive until one works.
  4607. _am_tools='gnutar pax cpio none'
  4608. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4609. depcc="$CC" am_compiler_list=
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4611. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4612. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4613. $as_echo_n "(cached) " >&6
  4614. else
  4615. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4616. # We make a subdir and do the tests there. Otherwise we can end up
  4617. # making bogus files that we don't know about and never remove. For
  4618. # instance it was reported that on HP-UX the gcc test will end up
  4619. # making a dummy file named 'D' -- because '-MD' means "put the output
  4620. # in D".
  4621. rm -rf conftest.dir
  4622. mkdir conftest.dir
  4623. # Copy depcomp to subdir because otherwise we won't find it if we're
  4624. # using a relative directory.
  4625. cp "$am_depcomp" conftest.dir
  4626. cd conftest.dir
  4627. # We will build objects and dependencies in a subdirectory because
  4628. # it helps to detect inapplicable dependency modes. For instance
  4629. # both Tru64's cc and ICC support -MD to output dependencies as a
  4630. # side effect of compilation, but ICC will put the dependencies in
  4631. # the current directory while Tru64 will put them in the object
  4632. # directory.
  4633. mkdir sub
  4634. am_cv_CC_dependencies_compiler_type=none
  4635. if test "$am_compiler_list" = ""; then
  4636. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4637. fi
  4638. am__universal=false
  4639. case " $depcc " in #(
  4640. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4641. esac
  4642. for depmode in $am_compiler_list; do
  4643. # Setup a source with many dependencies, because some compilers
  4644. # like to wrap large dependency lists on column 80 (with \), and
  4645. # we should not choose a depcomp mode which is confused by this.
  4646. #
  4647. # We need to recreate these files for each test, as the compiler may
  4648. # overwrite some of them when testing with obscure command lines.
  4649. # This happens at least with the AIX C compiler.
  4650. : > sub/conftest.c
  4651. for i in 1 2 3 4 5 6; do
  4652. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4653. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4654. # Solaris 10 /bin/sh.
  4655. echo '/* dummy */' > sub/conftst$i.h
  4656. done
  4657. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4658. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4659. # mode. It turns out that the SunPro C++ compiler does not properly
  4660. # handle '-M -o', and we need to detect this. Also, some Intel
  4661. # versions had trouble with output in subdirs.
  4662. am__obj=sub/conftest.${OBJEXT-o}
  4663. am__minus_obj="-o $am__obj"
  4664. case $depmode in
  4665. gcc)
  4666. # This depmode causes a compiler race in universal mode.
  4667. test "$am__universal" = false || continue
  4668. ;;
  4669. nosideeffect)
  4670. # After this tag, mechanisms are not by side-effect, so they'll
  4671. # only be used when explicitly requested.
  4672. if test "x$enable_dependency_tracking" = xyes; then
  4673. continue
  4674. else
  4675. break
  4676. fi
  4677. ;;
  4678. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4679. # This compiler won't grok '-c -o', but also, the minuso test has
  4680. # not run yet. These depmodes are late enough in the game, and
  4681. # so weak that their functioning should not be impacted.
  4682. am__obj=conftest.${OBJEXT-o}
  4683. am__minus_obj=
  4684. ;;
  4685. none) break ;;
  4686. esac
  4687. if depmode=$depmode \
  4688. source=sub/conftest.c object=$am__obj \
  4689. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4690. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4691. >/dev/null 2>conftest.err &&
  4692. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4693. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4694. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4695. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4696. # icc doesn't choke on unknown options, it will just issue warnings
  4697. # or remarks (even with -Werror). So we grep stderr for any message
  4698. # that says an option was ignored or not supported.
  4699. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4700. # icc: Command line warning: ignoring option '-M'; no argument required
  4701. # The diagnosis changed in icc 8.0:
  4702. # icc: Command line remark: option '-MP' not supported
  4703. if (grep 'ignoring option' conftest.err ||
  4704. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4705. am_cv_CC_dependencies_compiler_type=$depmode
  4706. break
  4707. fi
  4708. fi
  4709. done
  4710. cd ..
  4711. rm -rf conftest.dir
  4712. else
  4713. am_cv_CC_dependencies_compiler_type=none
  4714. fi
  4715. fi
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4717. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4718. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4719. if
  4720. test "x$enable_dependency_tracking" != xno \
  4721. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4722. am__fastdepCC_TRUE=
  4723. am__fastdepCC_FALSE='#'
  4724. else
  4725. am__fastdepCC_TRUE='#'
  4726. am__fastdepCC_FALSE=
  4727. fi
  4728. # POSIX will say in a future version that running "rm -f" with no argument
  4729. # is OK; and we want to be able to make that assumption in our Makefile
  4730. # recipes. So use an aggressive probe to check that the usage we want is
  4731. # actually supported "in the wild" to an acceptable degree.
  4732. # See automake bug#10828.
  4733. # To make any issue more visible, cause the running configure to be aborted
  4734. # by default if the 'rm' program in use doesn't match our expectations; the
  4735. # user can still override this though.
  4736. if rm -f && rm -fr && rm -rf; then : OK; else
  4737. cat >&2 <<'END'
  4738. Oops!
  4739. Your 'rm' program seems unable to run without file operands specified
  4740. on the command line, even when the '-f' option is present. This is contrary
  4741. to the behaviour of most rm programs out there, and not conforming with
  4742. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4743. Please tell bug-automake@gnu.org about your system, including the value
  4744. of your $PATH and any error possibly output before this message. This
  4745. can help us improve future automake versions.
  4746. END
  4747. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4748. echo 'Configuration will proceed anyway, since you have set the' >&2
  4749. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4750. echo >&2
  4751. else
  4752. cat >&2 <<'END'
  4753. Aborting the configuration process, to ensure you take notice of the issue.
  4754. You can download and install GNU coreutils to get an 'rm' implementation
  4755. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  4756. If you want to complete the configuration process using your problematic
  4757. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4758. to "yes", and re-run configure.
  4759. END
  4760. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4761. fi
  4762. fi
  4763. # Check whether --enable-silent-rules was given.
  4764. if test "${enable_silent_rules+set}" = set; then :
  4765. enableval=$enable_silent_rules;
  4766. fi
  4767. case $enable_silent_rules in # (((
  4768. yes) AM_DEFAULT_VERBOSITY=0;;
  4769. no) AM_DEFAULT_VERBOSITY=1;;
  4770. *) AM_DEFAULT_VERBOSITY=0;;
  4771. esac
  4772. am_make=${MAKE-make}
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4774. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4775. if ${am_cv_make_support_nested_variables+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if $as_echo 'TRUE=$(BAR$(V))
  4779. BAR0=false
  4780. BAR1=true
  4781. V=1
  4782. am__doit:
  4783. @$(TRUE)
  4784. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4785. am_cv_make_support_nested_variables=yes
  4786. else
  4787. am_cv_make_support_nested_variables=no
  4788. fi
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4791. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4792. if test $am_cv_make_support_nested_variables = yes; then
  4793. AM_V='$(V)'
  4794. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4795. else
  4796. AM_V=$AM_DEFAULT_VERBOSITY
  4797. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4798. fi
  4799. AM_BACKSLASH='\'
  4800. if test -n "$ac_tool_prefix"; then
  4801. for ac_prog in ar lib "link -lib"
  4802. do
  4803. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4804. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4806. $as_echo_n "checking for $ac_word... " >&6; }
  4807. if ${ac_cv_prog_AR+:} false; then :
  4808. $as_echo_n "(cached) " >&6
  4809. else
  4810. if test -n "$AR"; then
  4811. ac_cv_prog_AR="$AR" # Let the user override the test.
  4812. else
  4813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4814. for as_dir in $PATH
  4815. do
  4816. IFS=$as_save_IFS
  4817. test -z "$as_dir" && as_dir=.
  4818. for ac_exec_ext in '' $ac_executable_extensions; do
  4819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4820. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4822. break 2
  4823. fi
  4824. done
  4825. done
  4826. IFS=$as_save_IFS
  4827. fi
  4828. fi
  4829. AR=$ac_cv_prog_AR
  4830. if test -n "$AR"; then
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4832. $as_echo "$AR" >&6; }
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4835. $as_echo "no" >&6; }
  4836. fi
  4837. test -n "$AR" && break
  4838. done
  4839. fi
  4840. if test -z "$AR"; then
  4841. ac_ct_AR=$AR
  4842. for ac_prog in ar lib "link -lib"
  4843. do
  4844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4845. set dummy $ac_prog; ac_word=$2
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4847. $as_echo_n "checking for $ac_word... " >&6; }
  4848. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. if test -n "$ac_ct_AR"; then
  4852. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4853. else
  4854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4855. for as_dir in $PATH
  4856. do
  4857. IFS=$as_save_IFS
  4858. test -z "$as_dir" && as_dir=.
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4861. ac_cv_prog_ac_ct_AR="$ac_prog"
  4862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4863. break 2
  4864. fi
  4865. done
  4866. done
  4867. IFS=$as_save_IFS
  4868. fi
  4869. fi
  4870. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4871. if test -n "$ac_ct_AR"; then
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4873. $as_echo "$ac_ct_AR" >&6; }
  4874. else
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4876. $as_echo "no" >&6; }
  4877. fi
  4878. test -n "$ac_ct_AR" && break
  4879. done
  4880. if test "x$ac_ct_AR" = x; then
  4881. AR="false"
  4882. else
  4883. case $cross_compiling:$ac_tool_warned in
  4884. yes:)
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4887. ac_tool_warned=yes ;;
  4888. esac
  4889. AR=$ac_ct_AR
  4890. fi
  4891. fi
  4892. : ${AR=ar}
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4894. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4895. if ${am_cv_ar_interface+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. ac_ext=c
  4899. ac_cpp='$CPP $CPPFLAGS'
  4900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4903. am_cv_ar_interface=ar
  4904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4905. /* end confdefs.h. */
  4906. int some_variable = 0;
  4907. _ACEOF
  4908. if ac_fn_c_try_compile "$LINENO"; then :
  4909. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4910. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4911. (eval $am_ar_try) 2>&5
  4912. ac_status=$?
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4914. test $ac_status = 0; }
  4915. if test "$ac_status" -eq 0; then
  4916. am_cv_ar_interface=ar
  4917. else
  4918. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4919. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4920. (eval $am_ar_try) 2>&5
  4921. ac_status=$?
  4922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4923. test $ac_status = 0; }
  4924. if test "$ac_status" -eq 0; then
  4925. am_cv_ar_interface=lib
  4926. else
  4927. am_cv_ar_interface=unknown
  4928. fi
  4929. fi
  4930. rm -f conftest.lib libconftest.a
  4931. fi
  4932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4933. ac_ext=c
  4934. ac_cpp='$CPP $CPPFLAGS'
  4935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4938. fi
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4940. $as_echo "$am_cv_ar_interface" >&6; }
  4941. case $am_cv_ar_interface in
  4942. ar)
  4943. ;;
  4944. lib)
  4945. # Microsoft lib, so override with the ar-lib wrapper script.
  4946. # FIXME: It is wrong to rewrite AR.
  4947. # But if we don't then we get into trouble of one sort or another.
  4948. # A longer-term fix would be to have automake use am__AR in this case,
  4949. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4950. # similar.
  4951. AR="$am_aux_dir/ar-lib $AR"
  4952. ;;
  4953. unknown)
  4954. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4955. ;;
  4956. esac
  4957. # Initialize libtool
  4958. case `pwd` in
  4959. *\ * | *\ *)
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4961. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4962. esac
  4963. macro_version='2.4.6'
  4964. macro_revision='2.4.6'
  4965. ltmain=$ac_aux_dir/ltmain.sh
  4966. # Make sure we can run config.sub.
  4967. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4968. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4970. $as_echo_n "checking build system type... " >&6; }
  4971. if ${ac_cv_build+:} false; then :
  4972. $as_echo_n "(cached) " >&6
  4973. else
  4974. ac_build_alias=$build_alias
  4975. test "x$ac_build_alias" = x &&
  4976. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4977. test "x$ac_build_alias" = x &&
  4978. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4979. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4980. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4981. fi
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4983. $as_echo "$ac_cv_build" >&6; }
  4984. case $ac_cv_build in
  4985. *-*-*) ;;
  4986. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4987. esac
  4988. build=$ac_cv_build
  4989. ac_save_IFS=$IFS; IFS='-'
  4990. set x $ac_cv_build
  4991. shift
  4992. build_cpu=$1
  4993. build_vendor=$2
  4994. shift; shift
  4995. # Remember, the first character of IFS is used to create $*,
  4996. # except with old shells:
  4997. build_os=$*
  4998. IFS=$ac_save_IFS
  4999. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5001. $as_echo_n "checking host system type... " >&6; }
  5002. if ${ac_cv_host+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. if test "x$host_alias" = x; then
  5006. ac_cv_host=$ac_cv_build
  5007. else
  5008. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5009. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5010. fi
  5011. fi
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5013. $as_echo "$ac_cv_host" >&6; }
  5014. case $ac_cv_host in
  5015. *-*-*) ;;
  5016. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5017. esac
  5018. host=$ac_cv_host
  5019. ac_save_IFS=$IFS; IFS='-'
  5020. set x $ac_cv_host
  5021. shift
  5022. host_cpu=$1
  5023. host_vendor=$2
  5024. shift; shift
  5025. # Remember, the first character of IFS is used to create $*,
  5026. # except with old shells:
  5027. host_os=$*
  5028. IFS=$ac_save_IFS
  5029. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5030. # Backslashify metacharacters that are still active within
  5031. # double-quoted strings.
  5032. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5033. # Same as above, but do not quote variable references.
  5034. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5035. # Sed substitution to delay expansion of an escaped shell variable in a
  5036. # double_quote_subst'ed string.
  5037. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5038. # Sed substitution to delay expansion of an escaped single quote.
  5039. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5040. # Sed substitution to avoid accidental globbing in evaled expressions
  5041. no_glob_subst='s/\*/\\\*/g'
  5042. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5043. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5044. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5046. $as_echo_n "checking how to print strings... " >&6; }
  5047. # Test print first, because it will be a builtin if present.
  5048. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5049. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5050. ECHO='print -r --'
  5051. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5052. ECHO='printf %s\n'
  5053. else
  5054. # Use this function as a fallback that always works.
  5055. func_fallback_echo ()
  5056. {
  5057. eval 'cat <<_LTECHO_EOF
  5058. $1
  5059. _LTECHO_EOF'
  5060. }
  5061. ECHO='func_fallback_echo'
  5062. fi
  5063. # func_echo_all arg...
  5064. # Invoke $ECHO with all args, space-separated.
  5065. func_echo_all ()
  5066. {
  5067. $ECHO ""
  5068. }
  5069. case $ECHO in
  5070. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5071. $as_echo "printf" >&6; } ;;
  5072. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5073. $as_echo "print -r" >&6; } ;;
  5074. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5075. $as_echo "cat" >&6; } ;;
  5076. esac
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5078. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5079. if ${ac_cv_path_SED+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5083. for ac_i in 1 2 3 4 5 6 7; do
  5084. ac_script="$ac_script$as_nl$ac_script"
  5085. done
  5086. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5087. { ac_script=; unset ac_script;}
  5088. if test -z "$SED"; then
  5089. ac_path_SED_found=false
  5090. # Loop through the user's path and test for each of PROGNAME-LIST
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. test -z "$as_dir" && as_dir=.
  5096. for ac_prog in sed gsed; do
  5097. for ac_exec_ext in '' $ac_executable_extensions; do
  5098. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5099. as_fn_executable_p "$ac_path_SED" || continue
  5100. # Check for GNU ac_path_SED and select it if it is found.
  5101. # Check for GNU $ac_path_SED
  5102. case `"$ac_path_SED" --version 2>&1` in
  5103. *GNU*)
  5104. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5105. *)
  5106. ac_count=0
  5107. $as_echo_n 0123456789 >"conftest.in"
  5108. while :
  5109. do
  5110. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5111. mv "conftest.tmp" "conftest.in"
  5112. cp "conftest.in" "conftest.nl"
  5113. $as_echo '' >> "conftest.nl"
  5114. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5115. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5116. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5117. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5118. # Best one so far, save it but keep looking for a better one
  5119. ac_cv_path_SED="$ac_path_SED"
  5120. ac_path_SED_max=$ac_count
  5121. fi
  5122. # 10*(2^10) chars as input seems more than enough
  5123. test $ac_count -gt 10 && break
  5124. done
  5125. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5126. esac
  5127. $ac_path_SED_found && break 3
  5128. done
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. if test -z "$ac_cv_path_SED"; then
  5133. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5134. fi
  5135. else
  5136. ac_cv_path_SED=$SED
  5137. fi
  5138. fi
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5140. $as_echo "$ac_cv_path_SED" >&6; }
  5141. SED="$ac_cv_path_SED"
  5142. rm -f conftest.sed
  5143. test -z "$SED" && SED=sed
  5144. Xsed="$SED -e 1s/^X//"
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5146. $as_echo_n "checking for fgrep... " >&6; }
  5147. if ${ac_cv_path_FGREP+:} false; then :
  5148. $as_echo_n "(cached) " >&6
  5149. else
  5150. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5151. then ac_cv_path_FGREP="$GREP -F"
  5152. else
  5153. if test -z "$FGREP"; then
  5154. ac_path_FGREP_found=false
  5155. # Loop through the user's path and test for each of PROGNAME-LIST
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5158. do
  5159. IFS=$as_save_IFS
  5160. test -z "$as_dir" && as_dir=.
  5161. for ac_prog in fgrep; do
  5162. for ac_exec_ext in '' $ac_executable_extensions; do
  5163. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5164. as_fn_executable_p "$ac_path_FGREP" || continue
  5165. # Check for GNU ac_path_FGREP and select it if it is found.
  5166. # Check for GNU $ac_path_FGREP
  5167. case `"$ac_path_FGREP" --version 2>&1` in
  5168. *GNU*)
  5169. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5170. *)
  5171. ac_count=0
  5172. $as_echo_n 0123456789 >"conftest.in"
  5173. while :
  5174. do
  5175. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5176. mv "conftest.tmp" "conftest.in"
  5177. cp "conftest.in" "conftest.nl"
  5178. $as_echo 'FGREP' >> "conftest.nl"
  5179. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5180. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5181. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5182. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5183. # Best one so far, save it but keep looking for a better one
  5184. ac_cv_path_FGREP="$ac_path_FGREP"
  5185. ac_path_FGREP_max=$ac_count
  5186. fi
  5187. # 10*(2^10) chars as input seems more than enough
  5188. test $ac_count -gt 10 && break
  5189. done
  5190. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5191. esac
  5192. $ac_path_FGREP_found && break 3
  5193. done
  5194. done
  5195. done
  5196. IFS=$as_save_IFS
  5197. if test -z "$ac_cv_path_FGREP"; then
  5198. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5199. fi
  5200. else
  5201. ac_cv_path_FGREP=$FGREP
  5202. fi
  5203. fi
  5204. fi
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5206. $as_echo "$ac_cv_path_FGREP" >&6; }
  5207. FGREP="$ac_cv_path_FGREP"
  5208. test -z "$GREP" && GREP=grep
  5209. # Check whether --with-gnu-ld was given.
  5210. if test "${with_gnu_ld+set}" = set; then :
  5211. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5212. else
  5213. with_gnu_ld=no
  5214. fi
  5215. ac_prog=ld
  5216. if test yes = "$GCC"; then
  5217. # Check if gcc -print-prog-name=ld gives a path.
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5219. $as_echo_n "checking for ld used by $CC... " >&6; }
  5220. case $host in
  5221. *-*-mingw*)
  5222. # gcc leaves a trailing carriage return, which upsets mingw
  5223. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5224. *)
  5225. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5226. esac
  5227. case $ac_prog in
  5228. # Accept absolute paths.
  5229. [\\/]* | ?:[\\/]*)
  5230. re_direlt='/[^/][^/]*/\.\./'
  5231. # Canonicalize the pathname of ld
  5232. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5233. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5234. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5235. done
  5236. test -z "$LD" && LD=$ac_prog
  5237. ;;
  5238. "")
  5239. # If it fails, then pretend we aren't using GCC.
  5240. ac_prog=ld
  5241. ;;
  5242. *)
  5243. # If it is relative, then search for the first ld in PATH.
  5244. with_gnu_ld=unknown
  5245. ;;
  5246. esac
  5247. elif test yes = "$with_gnu_ld"; then
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5249. $as_echo_n "checking for GNU ld... " >&6; }
  5250. else
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5252. $as_echo_n "checking for non-GNU ld... " >&6; }
  5253. fi
  5254. if ${lt_cv_path_LD+:} false; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. if test -z "$LD"; then
  5258. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5259. for ac_dir in $PATH; do
  5260. IFS=$lt_save_ifs
  5261. test -z "$ac_dir" && ac_dir=.
  5262. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5263. lt_cv_path_LD=$ac_dir/$ac_prog
  5264. # Check to see if the program is GNU ld. I'd rather use --version,
  5265. # but apparently some variants of GNU ld only accept -v.
  5266. # Break only if it was the GNU/non-GNU ld that we prefer.
  5267. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5268. *GNU* | *'with BFD'*)
  5269. test no != "$with_gnu_ld" && break
  5270. ;;
  5271. *)
  5272. test yes != "$with_gnu_ld" && break
  5273. ;;
  5274. esac
  5275. fi
  5276. done
  5277. IFS=$lt_save_ifs
  5278. else
  5279. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5280. fi
  5281. fi
  5282. LD=$lt_cv_path_LD
  5283. if test -n "$LD"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5285. $as_echo "$LD" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5292. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5293. if ${lt_cv_prog_gnu_ld+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5297. case `$LD -v 2>&1 </dev/null` in
  5298. *GNU* | *'with BFD'*)
  5299. lt_cv_prog_gnu_ld=yes
  5300. ;;
  5301. *)
  5302. lt_cv_prog_gnu_ld=no
  5303. ;;
  5304. esac
  5305. fi
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5307. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5308. with_gnu_ld=$lt_cv_prog_gnu_ld
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5310. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5311. if ${lt_cv_path_NM+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. if test -n "$NM"; then
  5315. # Let the user override the test.
  5316. lt_cv_path_NM=$NM
  5317. else
  5318. lt_nm_to_check=${ac_tool_prefix}nm
  5319. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5320. lt_nm_to_check="$lt_nm_to_check nm"
  5321. fi
  5322. for lt_tmp_nm in $lt_nm_to_check; do
  5323. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5324. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5325. IFS=$lt_save_ifs
  5326. test -z "$ac_dir" && ac_dir=.
  5327. tmp_nm=$ac_dir/$lt_tmp_nm
  5328. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5329. # Check to see if the nm accepts a BSD-compat flag.
  5330. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5331. # nm: unknown option "B" ignored
  5332. # Tru64's nm complains that /dev/null is an invalid object file
  5333. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5334. case $build_os in
  5335. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5336. *) lt_bad_file=/dev/null ;;
  5337. esac
  5338. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5339. *$lt_bad_file* | *'Invalid file or object type'*)
  5340. lt_cv_path_NM="$tmp_nm -B"
  5341. break 2
  5342. ;;
  5343. *)
  5344. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5345. */dev/null*)
  5346. lt_cv_path_NM="$tmp_nm -p"
  5347. break 2
  5348. ;;
  5349. *)
  5350. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5351. continue # so that we can try to find one that supports BSD flags
  5352. ;;
  5353. esac
  5354. ;;
  5355. esac
  5356. fi
  5357. done
  5358. IFS=$lt_save_ifs
  5359. done
  5360. : ${lt_cv_path_NM=no}
  5361. fi
  5362. fi
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5364. $as_echo "$lt_cv_path_NM" >&6; }
  5365. if test no != "$lt_cv_path_NM"; then
  5366. NM=$lt_cv_path_NM
  5367. else
  5368. # Didn't find any BSD compatible name lister, look for dumpbin.
  5369. if test -n "$DUMPBIN"; then :
  5370. # Let the user override the test.
  5371. else
  5372. if test -n "$ac_tool_prefix"; then
  5373. for ac_prog in dumpbin "link -dump"
  5374. do
  5375. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5376. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5378. $as_echo_n "checking for $ac_word... " >&6; }
  5379. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. if test -n "$DUMPBIN"; then
  5383. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5384. else
  5385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5386. for as_dir in $PATH
  5387. do
  5388. IFS=$as_save_IFS
  5389. test -z "$as_dir" && as_dir=.
  5390. for ac_exec_ext in '' $ac_executable_extensions; do
  5391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5392. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5394. break 2
  5395. fi
  5396. done
  5397. done
  5398. IFS=$as_save_IFS
  5399. fi
  5400. fi
  5401. DUMPBIN=$ac_cv_prog_DUMPBIN
  5402. if test -n "$DUMPBIN"; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5404. $as_echo "$DUMPBIN" >&6; }
  5405. else
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5407. $as_echo "no" >&6; }
  5408. fi
  5409. test -n "$DUMPBIN" && break
  5410. done
  5411. fi
  5412. if test -z "$DUMPBIN"; then
  5413. ac_ct_DUMPBIN=$DUMPBIN
  5414. for ac_prog in dumpbin "link -dump"
  5415. do
  5416. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5417. set dummy $ac_prog; ac_word=$2
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5419. $as_echo_n "checking for $ac_word... " >&6; }
  5420. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. if test -n "$ac_ct_DUMPBIN"; then
  5424. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5425. else
  5426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5427. for as_dir in $PATH
  5428. do
  5429. IFS=$as_save_IFS
  5430. test -z "$as_dir" && as_dir=.
  5431. for ac_exec_ext in '' $ac_executable_extensions; do
  5432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5433. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5435. break 2
  5436. fi
  5437. done
  5438. done
  5439. IFS=$as_save_IFS
  5440. fi
  5441. fi
  5442. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5443. if test -n "$ac_ct_DUMPBIN"; then
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5445. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5446. else
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5448. $as_echo "no" >&6; }
  5449. fi
  5450. test -n "$ac_ct_DUMPBIN" && break
  5451. done
  5452. if test "x$ac_ct_DUMPBIN" = x; then
  5453. DUMPBIN=":"
  5454. else
  5455. case $cross_compiling:$ac_tool_warned in
  5456. yes:)
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5459. ac_tool_warned=yes ;;
  5460. esac
  5461. DUMPBIN=$ac_ct_DUMPBIN
  5462. fi
  5463. fi
  5464. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5465. *COFF*)
  5466. DUMPBIN="$DUMPBIN -symbols -headers"
  5467. ;;
  5468. *)
  5469. DUMPBIN=:
  5470. ;;
  5471. esac
  5472. fi
  5473. if test : != "$DUMPBIN"; then
  5474. NM=$DUMPBIN
  5475. fi
  5476. fi
  5477. test -z "$NM" && NM=nm
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5479. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5480. if ${lt_cv_nm_interface+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. lt_cv_nm_interface="BSD nm"
  5484. echo "int some_variable = 0;" > conftest.$ac_ext
  5485. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5486. (eval "$ac_compile" 2>conftest.err)
  5487. cat conftest.err >&5
  5488. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5489. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5490. cat conftest.err >&5
  5491. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5492. cat conftest.out >&5
  5493. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5494. lt_cv_nm_interface="MS dumpbin"
  5495. fi
  5496. rm -f conftest*
  5497. fi
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5499. $as_echo "$lt_cv_nm_interface" >&6; }
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5501. $as_echo_n "checking whether ln -s works... " >&6; }
  5502. LN_S=$as_ln_s
  5503. if test "$LN_S" = "ln -s"; then
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5505. $as_echo "yes" >&6; }
  5506. else
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5508. $as_echo "no, using $LN_S" >&6; }
  5509. fi
  5510. # find the maximum length of command line arguments
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5512. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5513. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. i=0
  5517. teststring=ABCD
  5518. case $build_os in
  5519. msdosdjgpp*)
  5520. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5521. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5522. # during glob expansion). Even if it were fixed, the result of this
  5523. # check would be larger than it should be.
  5524. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5525. ;;
  5526. gnu*)
  5527. # Under GNU Hurd, this test is not required because there is
  5528. # no limit to the length of command line arguments.
  5529. # Libtool will interpret -1 as no limit whatsoever
  5530. lt_cv_sys_max_cmd_len=-1;
  5531. ;;
  5532. cygwin* | mingw* | cegcc*)
  5533. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5534. # about 5 minutes as the teststring grows exponentially.
  5535. # Worse, since 9x/ME are not pre-emptively multitasking,
  5536. # you end up with a "frozen" computer, even though with patience
  5537. # the test eventually succeeds (with a max line length of 256k).
  5538. # Instead, let's just punt: use the minimum linelength reported by
  5539. # all of the supported platforms: 8192 (on NT/2K/XP).
  5540. lt_cv_sys_max_cmd_len=8192;
  5541. ;;
  5542. mint*)
  5543. # On MiNT this can take a long time and run out of memory.
  5544. lt_cv_sys_max_cmd_len=8192;
  5545. ;;
  5546. amigaos*)
  5547. # On AmigaOS with pdksh, this test takes hours, literally.
  5548. # So we just punt and use a minimum line length of 8192.
  5549. lt_cv_sys_max_cmd_len=8192;
  5550. ;;
  5551. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5552. # This has been around since 386BSD, at least. Likely further.
  5553. if test -x /sbin/sysctl; then
  5554. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5555. elif test -x /usr/sbin/sysctl; then
  5556. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5557. else
  5558. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5559. fi
  5560. # And add a safety zone
  5561. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5562. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5563. ;;
  5564. interix*)
  5565. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5566. lt_cv_sys_max_cmd_len=196608
  5567. ;;
  5568. os2*)
  5569. # The test takes a long time on OS/2.
  5570. lt_cv_sys_max_cmd_len=8192
  5571. ;;
  5572. osf*)
  5573. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5574. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5575. # nice to cause kernel panics so lets avoid the loop below.
  5576. # First set a reasonable default.
  5577. lt_cv_sys_max_cmd_len=16384
  5578. #
  5579. if test -x /sbin/sysconfig; then
  5580. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5581. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5582. esac
  5583. fi
  5584. ;;
  5585. sco3.2v5*)
  5586. lt_cv_sys_max_cmd_len=102400
  5587. ;;
  5588. sysv5* | sco5v6* | sysv4.2uw2*)
  5589. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5590. if test -n "$kargmax"; then
  5591. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5592. else
  5593. lt_cv_sys_max_cmd_len=32768
  5594. fi
  5595. ;;
  5596. *)
  5597. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5598. if test -n "$lt_cv_sys_max_cmd_len" && \
  5599. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5600. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5601. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5602. else
  5603. # Make teststring a little bigger before we do anything with it.
  5604. # a 1K string should be a reasonable start.
  5605. for i in 1 2 3 4 5 6 7 8; do
  5606. teststring=$teststring$teststring
  5607. done
  5608. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5609. # If test is not a shell built-in, we'll probably end up computing a
  5610. # maximum length that is only half of the actual maximum length, but
  5611. # we can't tell.
  5612. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5613. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5614. test 17 != "$i" # 1/2 MB should be enough
  5615. do
  5616. i=`expr $i + 1`
  5617. teststring=$teststring$teststring
  5618. done
  5619. # Only check the string length outside the loop.
  5620. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5621. teststring=
  5622. # Add a significant safety factor because C++ compilers can tack on
  5623. # massive amounts of additional arguments before passing them to the
  5624. # linker. It appears as though 1/2 is a usable value.
  5625. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5626. fi
  5627. ;;
  5628. esac
  5629. fi
  5630. if test -n "$lt_cv_sys_max_cmd_len"; then
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5632. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5633. else
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5635. $as_echo "none" >&6; }
  5636. fi
  5637. max_cmd_len=$lt_cv_sys_max_cmd_len
  5638. : ${CP="cp -f"}
  5639. : ${MV="mv -f"}
  5640. : ${RM="rm -f"}
  5641. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5642. lt_unset=unset
  5643. else
  5644. lt_unset=false
  5645. fi
  5646. # test EBCDIC or ASCII
  5647. case `echo X|tr X '\101'` in
  5648. A) # ASCII based system
  5649. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5650. lt_SP2NL='tr \040 \012'
  5651. lt_NL2SP='tr \015\012 \040\040'
  5652. ;;
  5653. *) # EBCDIC based system
  5654. lt_SP2NL='tr \100 \n'
  5655. lt_NL2SP='tr \r\n \100\100'
  5656. ;;
  5657. esac
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5659. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5660. if ${lt_cv_to_host_file_cmd+:} false; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. case $host in
  5664. *-*-mingw* )
  5665. case $build in
  5666. *-*-mingw* ) # actually msys
  5667. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5668. ;;
  5669. *-*-cygwin* )
  5670. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5671. ;;
  5672. * ) # otherwise, assume *nix
  5673. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5674. ;;
  5675. esac
  5676. ;;
  5677. *-*-cygwin* )
  5678. case $build in
  5679. *-*-mingw* ) # actually msys
  5680. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5681. ;;
  5682. *-*-cygwin* )
  5683. lt_cv_to_host_file_cmd=func_convert_file_noop
  5684. ;;
  5685. * ) # otherwise, assume *nix
  5686. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5687. ;;
  5688. esac
  5689. ;;
  5690. * ) # unhandled hosts (and "normal" native builds)
  5691. lt_cv_to_host_file_cmd=func_convert_file_noop
  5692. ;;
  5693. esac
  5694. fi
  5695. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5697. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5699. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5700. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. #assume ordinary cross tools, or native build.
  5704. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5705. case $host in
  5706. *-*-mingw* )
  5707. case $build in
  5708. *-*-mingw* ) # actually msys
  5709. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5710. ;;
  5711. esac
  5712. ;;
  5713. esac
  5714. fi
  5715. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5717. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5719. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5720. if ${lt_cv_ld_reload_flag+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. lt_cv_ld_reload_flag='-r'
  5724. fi
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5726. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5727. reload_flag=$lt_cv_ld_reload_flag
  5728. case $reload_flag in
  5729. "" | " "*) ;;
  5730. *) reload_flag=" $reload_flag" ;;
  5731. esac
  5732. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5733. case $host_os in
  5734. cygwin* | mingw* | pw32* | cegcc*)
  5735. if test yes != "$GCC"; then
  5736. reload_cmds=false
  5737. fi
  5738. ;;
  5739. darwin*)
  5740. if test yes = "$GCC"; then
  5741. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5742. else
  5743. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5744. fi
  5745. ;;
  5746. esac
  5747. if test -n "$ac_tool_prefix"; then
  5748. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5749. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5751. $as_echo_n "checking for $ac_word... " >&6; }
  5752. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5753. $as_echo_n "(cached) " >&6
  5754. else
  5755. if test -n "$OBJDUMP"; then
  5756. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5757. else
  5758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5759. for as_dir in $PATH
  5760. do
  5761. IFS=$as_save_IFS
  5762. test -z "$as_dir" && as_dir=.
  5763. for ac_exec_ext in '' $ac_executable_extensions; do
  5764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5765. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5767. break 2
  5768. fi
  5769. done
  5770. done
  5771. IFS=$as_save_IFS
  5772. fi
  5773. fi
  5774. OBJDUMP=$ac_cv_prog_OBJDUMP
  5775. if test -n "$OBJDUMP"; then
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5777. $as_echo "$OBJDUMP" >&6; }
  5778. else
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5780. $as_echo "no" >&6; }
  5781. fi
  5782. fi
  5783. if test -z "$ac_cv_prog_OBJDUMP"; then
  5784. ac_ct_OBJDUMP=$OBJDUMP
  5785. # Extract the first word of "objdump", so it can be a program name with args.
  5786. set dummy objdump; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. if test -n "$ac_ct_OBJDUMP"; then
  5793. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5794. else
  5795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5796. for as_dir in $PATH
  5797. do
  5798. IFS=$as_save_IFS
  5799. test -z "$as_dir" && as_dir=.
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5802. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5812. if test -n "$ac_ct_OBJDUMP"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5814. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. if test "x$ac_ct_OBJDUMP" = x; then
  5820. OBJDUMP="false"
  5821. else
  5822. case $cross_compiling:$ac_tool_warned in
  5823. yes:)
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5826. ac_tool_warned=yes ;;
  5827. esac
  5828. OBJDUMP=$ac_ct_OBJDUMP
  5829. fi
  5830. else
  5831. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5832. fi
  5833. test -z "$OBJDUMP" && OBJDUMP=objdump
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5835. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5836. if ${lt_cv_deplibs_check_method+:} false; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5840. lt_cv_file_magic_test_file=
  5841. lt_cv_deplibs_check_method='unknown'
  5842. # Need to set the preceding variable on all platforms that support
  5843. # interlibrary dependencies.
  5844. # 'none' -- dependencies not supported.
  5845. # 'unknown' -- same as none, but documents that we really don't know.
  5846. # 'pass_all' -- all dependencies passed with no checks.
  5847. # 'test_compile' -- check by making test program.
  5848. # 'file_magic [[regex]]' -- check by looking for files in library path
  5849. # that responds to the $file_magic_cmd with a given extended regex.
  5850. # If you have 'file' or equivalent on your system and you're not sure
  5851. # whether 'pass_all' will *always* work, you probably want this one.
  5852. case $host_os in
  5853. aix[4-9]*)
  5854. lt_cv_deplibs_check_method=pass_all
  5855. ;;
  5856. beos*)
  5857. lt_cv_deplibs_check_method=pass_all
  5858. ;;
  5859. bsdi[45]*)
  5860. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5861. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5862. lt_cv_file_magic_test_file=/shlib/libc.so
  5863. ;;
  5864. cygwin*)
  5865. # func_win32_libid is a shell function defined in ltmain.sh
  5866. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5867. lt_cv_file_magic_cmd='func_win32_libid'
  5868. ;;
  5869. mingw* | pw32*)
  5870. # Base MSYS/MinGW do not provide the 'file' command needed by
  5871. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5872. # unless we find 'file', for example because we are cross-compiling.
  5873. if ( file / ) >/dev/null 2>&1; then
  5874. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5875. lt_cv_file_magic_cmd='func_win32_libid'
  5876. else
  5877. # Keep this pattern in sync with the one in func_win32_libid.
  5878. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5879. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5880. fi
  5881. ;;
  5882. cegcc*)
  5883. # use the weaker test based on 'objdump'. See mingw*.
  5884. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5885. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5886. ;;
  5887. darwin* | rhapsody*)
  5888. lt_cv_deplibs_check_method=pass_all
  5889. ;;
  5890. freebsd* | dragonfly*)
  5891. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5892. case $host_cpu in
  5893. i*86 )
  5894. # Not sure whether the presence of OpenBSD here was a mistake.
  5895. # Let's accept both of them until this is cleared up.
  5896. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5897. lt_cv_file_magic_cmd=/usr/bin/file
  5898. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5899. ;;
  5900. esac
  5901. else
  5902. lt_cv_deplibs_check_method=pass_all
  5903. fi
  5904. ;;
  5905. haiku*)
  5906. lt_cv_deplibs_check_method=pass_all
  5907. ;;
  5908. hpux10.20* | hpux11*)
  5909. lt_cv_file_magic_cmd=/usr/bin/file
  5910. case $host_cpu in
  5911. ia64*)
  5912. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5913. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5914. ;;
  5915. hppa*64*)
  5916. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5917. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5918. ;;
  5919. *)
  5920. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5921. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5922. ;;
  5923. esac
  5924. ;;
  5925. interix[3-9]*)
  5926. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5927. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5928. ;;
  5929. irix5* | irix6* | nonstopux*)
  5930. case $LD in
  5931. *-32|*"-32 ") libmagic=32-bit;;
  5932. *-n32|*"-n32 ") libmagic=N32;;
  5933. *-64|*"-64 ") libmagic=64-bit;;
  5934. *) libmagic=never-match;;
  5935. esac
  5936. lt_cv_deplibs_check_method=pass_all
  5937. ;;
  5938. # This must be glibc/ELF.
  5939. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5940. lt_cv_deplibs_check_method=pass_all
  5941. ;;
  5942. netbsd*)
  5943. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5944. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5945. else
  5946. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5947. fi
  5948. ;;
  5949. newos6*)
  5950. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5951. lt_cv_file_magic_cmd=/usr/bin/file
  5952. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5953. ;;
  5954. *nto* | *qnx*)
  5955. lt_cv_deplibs_check_method=pass_all
  5956. ;;
  5957. openbsd* | bitrig*)
  5958. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5959. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5960. else
  5961. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5962. fi
  5963. ;;
  5964. osf3* | osf4* | osf5*)
  5965. lt_cv_deplibs_check_method=pass_all
  5966. ;;
  5967. rdos*)
  5968. lt_cv_deplibs_check_method=pass_all
  5969. ;;
  5970. solaris*)
  5971. lt_cv_deplibs_check_method=pass_all
  5972. ;;
  5973. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5974. lt_cv_deplibs_check_method=pass_all
  5975. ;;
  5976. sysv4 | sysv4.3*)
  5977. case $host_vendor in
  5978. motorola)
  5979. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5980. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5981. ;;
  5982. ncr)
  5983. lt_cv_deplibs_check_method=pass_all
  5984. ;;
  5985. sequent)
  5986. lt_cv_file_magic_cmd='/bin/file'
  5987. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5988. ;;
  5989. sni)
  5990. lt_cv_file_magic_cmd='/bin/file'
  5991. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5992. lt_cv_file_magic_test_file=/lib/libc.so
  5993. ;;
  5994. siemens)
  5995. lt_cv_deplibs_check_method=pass_all
  5996. ;;
  5997. pc)
  5998. lt_cv_deplibs_check_method=pass_all
  5999. ;;
  6000. esac
  6001. ;;
  6002. tpf*)
  6003. lt_cv_deplibs_check_method=pass_all
  6004. ;;
  6005. os2*)
  6006. lt_cv_deplibs_check_method=pass_all
  6007. ;;
  6008. esac
  6009. fi
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6011. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6012. file_magic_glob=
  6013. want_nocaseglob=no
  6014. if test "$build" = "$host"; then
  6015. case $host_os in
  6016. mingw* | pw32*)
  6017. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6018. want_nocaseglob=yes
  6019. else
  6020. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6021. fi
  6022. ;;
  6023. esac
  6024. fi
  6025. file_magic_cmd=$lt_cv_file_magic_cmd
  6026. deplibs_check_method=$lt_cv_deplibs_check_method
  6027. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6028. if test -n "$ac_tool_prefix"; then
  6029. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6030. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6032. $as_echo_n "checking for $ac_word... " >&6; }
  6033. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. if test -n "$DLLTOOL"; then
  6037. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6038. else
  6039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6040. for as_dir in $PATH
  6041. do
  6042. IFS=$as_save_IFS
  6043. test -z "$as_dir" && as_dir=.
  6044. for ac_exec_ext in '' $ac_executable_extensions; do
  6045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6046. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6048. break 2
  6049. fi
  6050. done
  6051. done
  6052. IFS=$as_save_IFS
  6053. fi
  6054. fi
  6055. DLLTOOL=$ac_cv_prog_DLLTOOL
  6056. if test -n "$DLLTOOL"; then
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6058. $as_echo "$DLLTOOL" >&6; }
  6059. else
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6061. $as_echo "no" >&6; }
  6062. fi
  6063. fi
  6064. if test -z "$ac_cv_prog_DLLTOOL"; then
  6065. ac_ct_DLLTOOL=$DLLTOOL
  6066. # Extract the first word of "dlltool", so it can be a program name with args.
  6067. set dummy dlltool; ac_word=$2
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6069. $as_echo_n "checking for $ac_word... " >&6; }
  6070. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. if test -n "$ac_ct_DLLTOOL"; then
  6074. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6083. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6093. if test -n "$ac_ct_DLLTOOL"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6095. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. if test "x$ac_ct_DLLTOOL" = x; then
  6101. DLLTOOL="false"
  6102. else
  6103. case $cross_compiling:$ac_tool_warned in
  6104. yes:)
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6106. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6107. ac_tool_warned=yes ;;
  6108. esac
  6109. DLLTOOL=$ac_ct_DLLTOOL
  6110. fi
  6111. else
  6112. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6113. fi
  6114. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6116. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6117. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6121. case $host_os in
  6122. cygwin* | mingw* | pw32* | cegcc*)
  6123. # two different shell functions defined in ltmain.sh;
  6124. # decide which one to use based on capabilities of $DLLTOOL
  6125. case `$DLLTOOL --help 2>&1` in
  6126. *--identify-strict*)
  6127. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6128. ;;
  6129. *)
  6130. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6131. ;;
  6132. esac
  6133. ;;
  6134. *)
  6135. # fallback: assume linklib IS sharedlib
  6136. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6137. ;;
  6138. esac
  6139. fi
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6141. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6142. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6143. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6144. if test -n "$ac_tool_prefix"; then
  6145. for ac_prog in ar
  6146. do
  6147. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6148. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6150. $as_echo_n "checking for $ac_word... " >&6; }
  6151. if ${ac_cv_prog_AR+:} false; then :
  6152. $as_echo_n "(cached) " >&6
  6153. else
  6154. if test -n "$AR"; then
  6155. ac_cv_prog_AR="$AR" # Let the user override the test.
  6156. else
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. test -z "$as_dir" && as_dir=.
  6162. for ac_exec_ext in '' $ac_executable_extensions; do
  6163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6164. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6166. break 2
  6167. fi
  6168. done
  6169. done
  6170. IFS=$as_save_IFS
  6171. fi
  6172. fi
  6173. AR=$ac_cv_prog_AR
  6174. if test -n "$AR"; then
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6176. $as_echo "$AR" >&6; }
  6177. else
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6179. $as_echo "no" >&6; }
  6180. fi
  6181. test -n "$AR" && break
  6182. done
  6183. fi
  6184. if test -z "$AR"; then
  6185. ac_ct_AR=$AR
  6186. for ac_prog in ar
  6187. do
  6188. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6189. set dummy $ac_prog; ac_word=$2
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6191. $as_echo_n "checking for $ac_word... " >&6; }
  6192. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6193. $as_echo_n "(cached) " >&6
  6194. else
  6195. if test -n "$ac_ct_AR"; then
  6196. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6197. else
  6198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6199. for as_dir in $PATH
  6200. do
  6201. IFS=$as_save_IFS
  6202. test -z "$as_dir" && as_dir=.
  6203. for ac_exec_ext in '' $ac_executable_extensions; do
  6204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6205. ac_cv_prog_ac_ct_AR="$ac_prog"
  6206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6207. break 2
  6208. fi
  6209. done
  6210. done
  6211. IFS=$as_save_IFS
  6212. fi
  6213. fi
  6214. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6215. if test -n "$ac_ct_AR"; then
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6217. $as_echo "$ac_ct_AR" >&6; }
  6218. else
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6220. $as_echo "no" >&6; }
  6221. fi
  6222. test -n "$ac_ct_AR" && break
  6223. done
  6224. if test "x$ac_ct_AR" = x; then
  6225. AR="false"
  6226. else
  6227. case $cross_compiling:$ac_tool_warned in
  6228. yes:)
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6231. ac_tool_warned=yes ;;
  6232. esac
  6233. AR=$ac_ct_AR
  6234. fi
  6235. fi
  6236. : ${AR=ar}
  6237. : ${AR_FLAGS=cru}
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6239. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6240. if ${lt_cv_ar_at_file+:} false; then :
  6241. $as_echo_n "(cached) " >&6
  6242. else
  6243. lt_cv_ar_at_file=no
  6244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end confdefs.h. */
  6246. int
  6247. main ()
  6248. {
  6249. ;
  6250. return 0;
  6251. }
  6252. _ACEOF
  6253. if ac_fn_c_try_compile "$LINENO"; then :
  6254. echo conftest.$ac_objext > conftest.lst
  6255. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6256. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6257. (eval $lt_ar_try) 2>&5
  6258. ac_status=$?
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6260. test $ac_status = 0; }
  6261. if test 0 -eq "$ac_status"; then
  6262. # Ensure the archiver fails upon bogus file names.
  6263. rm -f conftest.$ac_objext libconftest.a
  6264. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6265. (eval $lt_ar_try) 2>&5
  6266. ac_status=$?
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6268. test $ac_status = 0; }
  6269. if test 0 -ne "$ac_status"; then
  6270. lt_cv_ar_at_file=@
  6271. fi
  6272. fi
  6273. rm -f conftest.* libconftest.a
  6274. fi
  6275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6276. fi
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6278. $as_echo "$lt_cv_ar_at_file" >&6; }
  6279. if test no = "$lt_cv_ar_at_file"; then
  6280. archiver_list_spec=
  6281. else
  6282. archiver_list_spec=$lt_cv_ar_at_file
  6283. fi
  6284. if test -n "$ac_tool_prefix"; then
  6285. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6286. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6288. $as_echo_n "checking for $ac_word... " >&6; }
  6289. if ${ac_cv_prog_STRIP+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. if test -n "$STRIP"; then
  6293. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6294. else
  6295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6296. for as_dir in $PATH
  6297. do
  6298. IFS=$as_save_IFS
  6299. test -z "$as_dir" && as_dir=.
  6300. for ac_exec_ext in '' $ac_executable_extensions; do
  6301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6302. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6304. break 2
  6305. fi
  6306. done
  6307. done
  6308. IFS=$as_save_IFS
  6309. fi
  6310. fi
  6311. STRIP=$ac_cv_prog_STRIP
  6312. if test -n "$STRIP"; then
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6314. $as_echo "$STRIP" >&6; }
  6315. else
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6317. $as_echo "no" >&6; }
  6318. fi
  6319. fi
  6320. if test -z "$ac_cv_prog_STRIP"; then
  6321. ac_ct_STRIP=$STRIP
  6322. # Extract the first word of "strip", so it can be a program name with args.
  6323. set dummy strip; ac_word=$2
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6325. $as_echo_n "checking for $ac_word... " >&6; }
  6326. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6327. $as_echo_n "(cached) " >&6
  6328. else
  6329. if test -n "$ac_ct_STRIP"; then
  6330. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6331. else
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. test -z "$as_dir" && as_dir=.
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6339. ac_cv_prog_ac_ct_STRIP="strip"
  6340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. fi
  6347. fi
  6348. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6349. if test -n "$ac_ct_STRIP"; then
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6351. $as_echo "$ac_ct_STRIP" >&6; }
  6352. else
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6354. $as_echo "no" >&6; }
  6355. fi
  6356. if test "x$ac_ct_STRIP" = x; then
  6357. STRIP=":"
  6358. else
  6359. case $cross_compiling:$ac_tool_warned in
  6360. yes:)
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6363. ac_tool_warned=yes ;;
  6364. esac
  6365. STRIP=$ac_ct_STRIP
  6366. fi
  6367. else
  6368. STRIP="$ac_cv_prog_STRIP"
  6369. fi
  6370. test -z "$STRIP" && STRIP=:
  6371. if test -n "$ac_tool_prefix"; then
  6372. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6373. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6375. $as_echo_n "checking for $ac_word... " >&6; }
  6376. if ${ac_cv_prog_RANLIB+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. if test -n "$RANLIB"; then
  6380. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6389. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. RANLIB=$ac_cv_prog_RANLIB
  6399. if test -n "$RANLIB"; then
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6401. $as_echo "$RANLIB" >&6; }
  6402. else
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6404. $as_echo "no" >&6; }
  6405. fi
  6406. fi
  6407. if test -z "$ac_cv_prog_RANLIB"; then
  6408. ac_ct_RANLIB=$RANLIB
  6409. # Extract the first word of "ranlib", so it can be a program name with args.
  6410. set dummy ranlib; ac_word=$2
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6412. $as_echo_n "checking for $ac_word... " >&6; }
  6413. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. if test -n "$ac_ct_RANLIB"; then
  6417. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6418. else
  6419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420. for as_dir in $PATH
  6421. do
  6422. IFS=$as_save_IFS
  6423. test -z "$as_dir" && as_dir=.
  6424. for ac_exec_ext in '' $ac_executable_extensions; do
  6425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6426. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6428. break 2
  6429. fi
  6430. done
  6431. done
  6432. IFS=$as_save_IFS
  6433. fi
  6434. fi
  6435. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6436. if test -n "$ac_ct_RANLIB"; then
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6438. $as_echo "$ac_ct_RANLIB" >&6; }
  6439. else
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6441. $as_echo "no" >&6; }
  6442. fi
  6443. if test "x$ac_ct_RANLIB" = x; then
  6444. RANLIB=":"
  6445. else
  6446. case $cross_compiling:$ac_tool_warned in
  6447. yes:)
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6449. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6450. ac_tool_warned=yes ;;
  6451. esac
  6452. RANLIB=$ac_ct_RANLIB
  6453. fi
  6454. else
  6455. RANLIB="$ac_cv_prog_RANLIB"
  6456. fi
  6457. test -z "$RANLIB" && RANLIB=:
  6458. # Determine commands to create old-style static archives.
  6459. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6460. old_postinstall_cmds='chmod 644 $oldlib'
  6461. old_postuninstall_cmds=
  6462. if test -n "$RANLIB"; then
  6463. case $host_os in
  6464. bitrig* | openbsd*)
  6465. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6466. ;;
  6467. *)
  6468. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6469. ;;
  6470. esac
  6471. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6472. fi
  6473. case $host_os in
  6474. darwin*)
  6475. lock_old_archive_extraction=yes ;;
  6476. *)
  6477. lock_old_archive_extraction=no ;;
  6478. esac
  6479. # If no C compiler was specified, use CC.
  6480. LTCC=${LTCC-"$CC"}
  6481. # If no C compiler flags were specified, use CFLAGS.
  6482. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6483. # Allow CC to be a program name with arguments.
  6484. compiler=$CC
  6485. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6487. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6488. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. # These are sane defaults that work on at least a few old systems.
  6492. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6493. # Character class describing NM global symbol codes.
  6494. symcode='[BCDEGRST]'
  6495. # Regexp to match symbols that can be accessed directly from C.
  6496. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6497. # Define system-specific variables.
  6498. case $host_os in
  6499. aix*)
  6500. symcode='[BCDT]'
  6501. ;;
  6502. cygwin* | mingw* | pw32* | cegcc*)
  6503. symcode='[ABCDGISTW]'
  6504. ;;
  6505. hpux*)
  6506. if test ia64 = "$host_cpu"; then
  6507. symcode='[ABCDEGRST]'
  6508. fi
  6509. ;;
  6510. irix* | nonstopux*)
  6511. symcode='[BCDEGRST]'
  6512. ;;
  6513. osf*)
  6514. symcode='[BCDEGQRST]'
  6515. ;;
  6516. solaris*)
  6517. symcode='[BDRT]'
  6518. ;;
  6519. sco3.2v5*)
  6520. symcode='[DT]'
  6521. ;;
  6522. sysv4.2uw2*)
  6523. symcode='[DT]'
  6524. ;;
  6525. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6526. symcode='[ABDT]'
  6527. ;;
  6528. sysv4)
  6529. symcode='[DFNSTU]'
  6530. ;;
  6531. esac
  6532. # If we're using GNU nm, then use its standard symbol codes.
  6533. case `$NM -V 2>&1` in
  6534. *GNU* | *'with BFD'*)
  6535. symcode='[ABCDGIRSTW]' ;;
  6536. esac
  6537. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6538. # Gets list of data symbols to import.
  6539. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6540. # Adjust the below global symbol transforms to fixup imported variables.
  6541. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6542. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6543. lt_c_name_lib_hook="\
  6544. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6545. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6546. else
  6547. # Disable hooks by default.
  6548. lt_cv_sys_global_symbol_to_import=
  6549. lt_cdecl_hook=
  6550. lt_c_name_hook=
  6551. lt_c_name_lib_hook=
  6552. fi
  6553. # Transform an extracted symbol line into a proper C declaration.
  6554. # Some systems (esp. on ia64) link data and code symbols differently,
  6555. # so use this general approach.
  6556. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6557. $lt_cdecl_hook\
  6558. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6559. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6560. # Transform an extracted symbol line into symbol name and symbol address
  6561. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6562. $lt_c_name_hook\
  6563. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6564. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6565. # Transform an extracted symbol line into symbol name with lib prefix and
  6566. # symbol address.
  6567. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6568. $lt_c_name_lib_hook\
  6569. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6570. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6571. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6572. # Handle CRLF in mingw tool chain
  6573. opt_cr=
  6574. case $build_os in
  6575. mingw*)
  6576. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6577. ;;
  6578. esac
  6579. # Try without a prefix underscore, then with it.
  6580. for ac_symprfx in "" "_"; do
  6581. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6582. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6583. # Write the raw and C identifiers.
  6584. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6585. # Fake it for dumpbin and say T for any non-static function,
  6586. # D for any global variable and I for any imported variable.
  6587. # Also find C++ and __fastcall symbols from MSVC++,
  6588. # which start with @ or ?.
  6589. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6590. " {last_section=section; section=\$ 3};"\
  6591. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6592. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6593. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6594. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6595. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6596. " \$ 0!~/External *\|/{next};"\
  6597. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6598. " {if(hide[section]) next};"\
  6599. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6600. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6601. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6602. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6603. " ' prfx=^$ac_symprfx"
  6604. else
  6605. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6606. fi
  6607. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6608. # Check to see that the pipe works correctly.
  6609. pipe_works=no
  6610. rm -f conftest*
  6611. cat > conftest.$ac_ext <<_LT_EOF
  6612. #ifdef __cplusplus
  6613. extern "C" {
  6614. #endif
  6615. char nm_test_var;
  6616. void nm_test_func(void);
  6617. void nm_test_func(void){}
  6618. #ifdef __cplusplus
  6619. }
  6620. #endif
  6621. int main(){nm_test_var='a';nm_test_func();return(0);}
  6622. _LT_EOF
  6623. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6624. (eval $ac_compile) 2>&5
  6625. ac_status=$?
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6627. test $ac_status = 0; }; then
  6628. # Now try to grab the symbols.
  6629. nlist=conftest.nm
  6630. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6631. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6632. ac_status=$?
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6634. test $ac_status = 0; } && test -s "$nlist"; then
  6635. # Try sorting and uniquifying the output.
  6636. if sort "$nlist" | uniq > "$nlist"T; then
  6637. mv -f "$nlist"T "$nlist"
  6638. else
  6639. rm -f "$nlist"T
  6640. fi
  6641. # Make sure that we snagged all the symbols we need.
  6642. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6643. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6644. cat <<_LT_EOF > conftest.$ac_ext
  6645. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6646. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6647. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6648. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6649. # define LT_DLSYM_CONST
  6650. #elif defined __osf__
  6651. /* This system does not cope well with relocations in const data. */
  6652. # define LT_DLSYM_CONST
  6653. #else
  6654. # define LT_DLSYM_CONST const
  6655. #endif
  6656. #ifdef __cplusplus
  6657. extern "C" {
  6658. #endif
  6659. _LT_EOF
  6660. # Now generate the symbol file.
  6661. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6662. cat <<_LT_EOF >> conftest.$ac_ext
  6663. /* The mapping between symbol names and symbols. */
  6664. LT_DLSYM_CONST struct {
  6665. const char *name;
  6666. void *address;
  6667. }
  6668. lt__PROGRAM__LTX_preloaded_symbols[] =
  6669. {
  6670. { "@PROGRAM@", (void *) 0 },
  6671. _LT_EOF
  6672. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6673. cat <<\_LT_EOF >> conftest.$ac_ext
  6674. {0, (void *) 0}
  6675. };
  6676. /* This works around a problem in FreeBSD linker */
  6677. #ifdef FREEBSD_WORKAROUND
  6678. static const void *lt_preloaded_setup() {
  6679. return lt__PROGRAM__LTX_preloaded_symbols;
  6680. }
  6681. #endif
  6682. #ifdef __cplusplus
  6683. }
  6684. #endif
  6685. _LT_EOF
  6686. # Now try linking the two files.
  6687. mv conftest.$ac_objext conftstm.$ac_objext
  6688. lt_globsym_save_LIBS=$LIBS
  6689. lt_globsym_save_CFLAGS=$CFLAGS
  6690. LIBS=conftstm.$ac_objext
  6691. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6692. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6693. (eval $ac_link) 2>&5
  6694. ac_status=$?
  6695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6696. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6697. pipe_works=yes
  6698. fi
  6699. LIBS=$lt_globsym_save_LIBS
  6700. CFLAGS=$lt_globsym_save_CFLAGS
  6701. else
  6702. echo "cannot find nm_test_func in $nlist" >&5
  6703. fi
  6704. else
  6705. echo "cannot find nm_test_var in $nlist" >&5
  6706. fi
  6707. else
  6708. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6709. fi
  6710. else
  6711. echo "$progname: failed program was:" >&5
  6712. cat conftest.$ac_ext >&5
  6713. fi
  6714. rm -rf conftest* conftst*
  6715. # Do not use the global_symbol_pipe unless it works.
  6716. if test yes = "$pipe_works"; then
  6717. break
  6718. else
  6719. lt_cv_sys_global_symbol_pipe=
  6720. fi
  6721. done
  6722. fi
  6723. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6724. lt_cv_sys_global_symbol_to_cdecl=
  6725. fi
  6726. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6728. $as_echo "failed" >&6; }
  6729. else
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6731. $as_echo "ok" >&6; }
  6732. fi
  6733. # Response file support.
  6734. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6735. nm_file_list_spec='@'
  6736. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6737. nm_file_list_spec='@'
  6738. fi
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6740. $as_echo_n "checking for sysroot... " >&6; }
  6741. # Check whether --with-libtool-sysroot was given.
  6742. if test "${with_libtool_sysroot+set}" = set; then :
  6743. withval=$with_libtool_sysroot;
  6744. else
  6745. with_libtool_sysroot=no
  6746. fi
  6747. lt_sysroot=
  6748. case $with_libtool_sysroot in #(
  6749. no)
  6750. if test yes = "$GCC"; then
  6751. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6752. # Treat "/" the same a an unset sysroot. It seems to be more
  6753. # compatible across host platforms that way!?
  6754. if test "$lt_sysroot" = /; then
  6755. lt_sysroot=
  6756. fi
  6757. fi
  6758. ;; #(
  6759. yes|''|/)
  6760. ;; #(
  6761. /*)
  6762. lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
  6763. ;; #(
  6764. *)
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libtool_sysroot" >&5
  6766. $as_echo "$with_libtool_sysroot" >&6; }
  6767. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6768. ;;
  6769. esac
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6771. $as_echo "${lt_sysroot:-no}" >&6; }
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6773. $as_echo_n "checking for a working dd... " >&6; }
  6774. if ${ac_cv_path_lt_DD+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. printf 0123456789abcdef0123456789abcdef >conftest.i
  6778. cat conftest.i conftest.i >conftest2.i
  6779. : ${lt_DD:=$DD}
  6780. if test -z "$lt_DD"; then
  6781. ac_path_lt_DD_found=false
  6782. # Loop through the user's path and test for each of PROGNAME-LIST
  6783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6784. for as_dir in $PATH
  6785. do
  6786. IFS=$as_save_IFS
  6787. test -z "$as_dir" && as_dir=.
  6788. for ac_prog in dd; do
  6789. for ac_exec_ext in '' $ac_executable_extensions; do
  6790. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6791. as_fn_executable_p "$ac_path_lt_DD" || continue
  6792. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6793. cmp -s conftest.i conftest.out \
  6794. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6795. fi
  6796. $ac_path_lt_DD_found && break 3
  6797. done
  6798. done
  6799. done
  6800. IFS=$as_save_IFS
  6801. if test -z "$ac_cv_path_lt_DD"; then
  6802. :
  6803. fi
  6804. else
  6805. ac_cv_path_lt_DD=$lt_DD
  6806. fi
  6807. rm -f conftest.i conftest2.i conftest.out
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6810. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6812. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6813. if ${lt_cv_truncate_bin+:} false; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. printf 0123456789abcdef0123456789abcdef >conftest.i
  6817. cat conftest.i conftest.i >conftest2.i
  6818. lt_cv_truncate_bin=
  6819. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6820. cmp -s conftest.i conftest.out \
  6821. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6822. fi
  6823. rm -f conftest.i conftest2.i conftest.out
  6824. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6825. fi
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6827. $as_echo "$lt_cv_truncate_bin" >&6; }
  6828. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6829. func_cc_basename ()
  6830. {
  6831. for cc_temp in $*""; do
  6832. case $cc_temp in
  6833. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6834. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6835. \-*) ;;
  6836. *) break;;
  6837. esac
  6838. done
  6839. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6840. }
  6841. # Check whether --enable-libtool-lock was given.
  6842. if test "${enable_libtool_lock+set}" = set; then :
  6843. enableval=$enable_libtool_lock;
  6844. fi
  6845. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6846. # Some flags need to be propagated to the compiler or linker for good
  6847. # libtool support.
  6848. case $host in
  6849. ia64-*-hpux*)
  6850. # Find out what ABI is being produced by ac_compile, and set mode
  6851. # options accordingly.
  6852. echo 'int i;' > conftest.$ac_ext
  6853. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6854. (eval $ac_compile) 2>&5
  6855. ac_status=$?
  6856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6857. test $ac_status = 0; }; then
  6858. case `/usr/bin/file conftest.$ac_objext` in
  6859. *ELF-32*)
  6860. HPUX_IA64_MODE=32
  6861. ;;
  6862. *ELF-64*)
  6863. HPUX_IA64_MODE=64
  6864. ;;
  6865. esac
  6866. fi
  6867. rm -rf conftest*
  6868. ;;
  6869. *-*-irix6*)
  6870. # Find out what ABI is being produced by ac_compile, and set linker
  6871. # options accordingly.
  6872. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6874. (eval $ac_compile) 2>&5
  6875. ac_status=$?
  6876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6877. test $ac_status = 0; }; then
  6878. if test yes = "$lt_cv_prog_gnu_ld"; then
  6879. case `/usr/bin/file conftest.$ac_objext` in
  6880. *32-bit*)
  6881. LD="${LD-ld} -melf32bsmip"
  6882. ;;
  6883. *N32*)
  6884. LD="${LD-ld} -melf32bmipn32"
  6885. ;;
  6886. *64-bit*)
  6887. LD="${LD-ld} -melf64bmip"
  6888. ;;
  6889. esac
  6890. else
  6891. case `/usr/bin/file conftest.$ac_objext` in
  6892. *32-bit*)
  6893. LD="${LD-ld} -32"
  6894. ;;
  6895. *N32*)
  6896. LD="${LD-ld} -n32"
  6897. ;;
  6898. *64-bit*)
  6899. LD="${LD-ld} -64"
  6900. ;;
  6901. esac
  6902. fi
  6903. fi
  6904. rm -rf conftest*
  6905. ;;
  6906. mips64*-*linux*)
  6907. # Find out what ABI is being produced by ac_compile, and set linker
  6908. # options accordingly.
  6909. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6910. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6911. (eval $ac_compile) 2>&5
  6912. ac_status=$?
  6913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6914. test $ac_status = 0; }; then
  6915. emul=elf
  6916. case `/usr/bin/file conftest.$ac_objext` in
  6917. *32-bit*)
  6918. emul="${emul}32"
  6919. ;;
  6920. *64-bit*)
  6921. emul="${emul}64"
  6922. ;;
  6923. esac
  6924. case `/usr/bin/file conftest.$ac_objext` in
  6925. *MSB*)
  6926. emul="${emul}btsmip"
  6927. ;;
  6928. *LSB*)
  6929. emul="${emul}ltsmip"
  6930. ;;
  6931. esac
  6932. case `/usr/bin/file conftest.$ac_objext` in
  6933. *N32*)
  6934. emul="${emul}n32"
  6935. ;;
  6936. esac
  6937. LD="${LD-ld} -m $emul"
  6938. fi
  6939. rm -rf conftest*
  6940. ;;
  6941. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6942. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6943. # Find out what ABI is being produced by ac_compile, and set linker
  6944. # options accordingly. Note that the listed cases only cover the
  6945. # situations where additional linker options are needed (such as when
  6946. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6947. # vice versa); the common cases where no linker options are needed do
  6948. # not appear in the list.
  6949. echo 'int i;' > conftest.$ac_ext
  6950. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6951. (eval $ac_compile) 2>&5
  6952. ac_status=$?
  6953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6954. test $ac_status = 0; }; then
  6955. case `/usr/bin/file conftest.o` in
  6956. *32-bit*)
  6957. case $host in
  6958. x86_64-*kfreebsd*-gnu)
  6959. LD="${LD-ld} -m elf_i386_fbsd"
  6960. ;;
  6961. x86_64-*linux*)
  6962. case `/usr/bin/file conftest.o` in
  6963. *x86-64*)
  6964. LD="${LD-ld} -m elf32_x86_64"
  6965. ;;
  6966. *)
  6967. LD="${LD-ld} -m elf_i386"
  6968. ;;
  6969. esac
  6970. ;;
  6971. powerpc64le-*linux*)
  6972. LD="${LD-ld} -m elf32lppclinux"
  6973. ;;
  6974. powerpc64-*linux*)
  6975. LD="${LD-ld} -m elf32ppclinux"
  6976. ;;
  6977. s390x-*linux*)
  6978. LD="${LD-ld} -m elf_s390"
  6979. ;;
  6980. sparc64-*linux*)
  6981. LD="${LD-ld} -m elf32_sparc"
  6982. ;;
  6983. esac
  6984. ;;
  6985. *64-bit*)
  6986. case $host in
  6987. x86_64-*kfreebsd*-gnu)
  6988. LD="${LD-ld} -m elf_x86_64_fbsd"
  6989. ;;
  6990. x86_64-*linux*)
  6991. LD="${LD-ld} -m elf_x86_64"
  6992. ;;
  6993. powerpcle-*linux*)
  6994. LD="${LD-ld} -m elf64lppc"
  6995. ;;
  6996. powerpc-*linux*)
  6997. LD="${LD-ld} -m elf64ppc"
  6998. ;;
  6999. s390*-*linux*|s390*-*tpf*)
  7000. LD="${LD-ld} -m elf64_s390"
  7001. ;;
  7002. sparc*-*linux*)
  7003. LD="${LD-ld} -m elf64_sparc"
  7004. ;;
  7005. esac
  7006. ;;
  7007. esac
  7008. fi
  7009. rm -rf conftest*
  7010. ;;
  7011. *-*-sco3.2v5*)
  7012. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7013. SAVE_CFLAGS=$CFLAGS
  7014. CFLAGS="$CFLAGS -belf"
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7016. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7017. if ${lt_cv_cc_needs_belf+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. ac_ext=c
  7021. ac_cpp='$CPP $CPPFLAGS'
  7022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7026. /* end confdefs.h. */
  7027. int
  7028. main ()
  7029. {
  7030. ;
  7031. return 0;
  7032. }
  7033. _ACEOF
  7034. if ac_fn_c_try_link "$LINENO"; then :
  7035. lt_cv_cc_needs_belf=yes
  7036. else
  7037. lt_cv_cc_needs_belf=no
  7038. fi
  7039. rm -f core conftest.err conftest.$ac_objext \
  7040. conftest$ac_exeext conftest.$ac_ext
  7041. ac_ext=c
  7042. ac_cpp='$CPP $CPPFLAGS'
  7043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7048. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7049. if test yes != "$lt_cv_cc_needs_belf"; then
  7050. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7051. CFLAGS=$SAVE_CFLAGS
  7052. fi
  7053. ;;
  7054. *-*solaris*)
  7055. # Find out what ABI is being produced by ac_compile, and set linker
  7056. # options accordingly.
  7057. echo 'int i;' > conftest.$ac_ext
  7058. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7059. (eval $ac_compile) 2>&5
  7060. ac_status=$?
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7062. test $ac_status = 0; }; then
  7063. case `/usr/bin/file conftest.o` in
  7064. *64-bit*)
  7065. case $lt_cv_prog_gnu_ld in
  7066. yes*)
  7067. case $host in
  7068. i?86-*-solaris*|x86_64-*-solaris*)
  7069. LD="${LD-ld} -m elf_x86_64"
  7070. ;;
  7071. sparc*-*-solaris*)
  7072. LD="${LD-ld} -m elf64_sparc"
  7073. ;;
  7074. esac
  7075. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7076. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7077. LD=${LD-ld}_sol2
  7078. fi
  7079. ;;
  7080. *)
  7081. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7082. LD="${LD-ld} -64"
  7083. fi
  7084. ;;
  7085. esac
  7086. ;;
  7087. esac
  7088. fi
  7089. rm -rf conftest*
  7090. ;;
  7091. esac
  7092. need_locks=$enable_libtool_lock
  7093. if test -n "$ac_tool_prefix"; then
  7094. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7095. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7097. $as_echo_n "checking for $ac_word... " >&6; }
  7098. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7099. $as_echo_n "(cached) " >&6
  7100. else
  7101. if test -n "$MANIFEST_TOOL"; then
  7102. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7103. else
  7104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7105. for as_dir in $PATH
  7106. do
  7107. IFS=$as_save_IFS
  7108. test -z "$as_dir" && as_dir=.
  7109. for ac_exec_ext in '' $ac_executable_extensions; do
  7110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7111. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7113. break 2
  7114. fi
  7115. done
  7116. done
  7117. IFS=$as_save_IFS
  7118. fi
  7119. fi
  7120. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7121. if test -n "$MANIFEST_TOOL"; then
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7123. $as_echo "$MANIFEST_TOOL" >&6; }
  7124. else
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7126. $as_echo "no" >&6; }
  7127. fi
  7128. fi
  7129. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7130. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7131. # Extract the first word of "mt", so it can be a program name with args.
  7132. set dummy mt; ac_word=$2
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7134. $as_echo_n "checking for $ac_word... " >&6; }
  7135. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7139. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7140. else
  7141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7142. for as_dir in $PATH
  7143. do
  7144. IFS=$as_save_IFS
  7145. test -z "$as_dir" && as_dir=.
  7146. for ac_exec_ext in '' $ac_executable_extensions; do
  7147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7148. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7150. break 2
  7151. fi
  7152. done
  7153. done
  7154. IFS=$as_save_IFS
  7155. fi
  7156. fi
  7157. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7158. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7160. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7161. else
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7163. $as_echo "no" >&6; }
  7164. fi
  7165. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7166. MANIFEST_TOOL=":"
  7167. else
  7168. case $cross_compiling:$ac_tool_warned in
  7169. yes:)
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7172. ac_tool_warned=yes ;;
  7173. esac
  7174. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7175. fi
  7176. else
  7177. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7178. fi
  7179. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7181. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7182. if ${lt_cv_path_mainfest_tool+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. lt_cv_path_mainfest_tool=no
  7186. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7187. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7188. cat conftest.err >&5
  7189. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7190. lt_cv_path_mainfest_tool=yes
  7191. fi
  7192. rm -f conftest*
  7193. fi
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7195. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7196. if test yes != "$lt_cv_path_mainfest_tool"; then
  7197. MANIFEST_TOOL=:
  7198. fi
  7199. case $host_os in
  7200. rhapsody* | darwin*)
  7201. if test -n "$ac_tool_prefix"; then
  7202. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7203. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7205. $as_echo_n "checking for $ac_word... " >&6; }
  7206. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7207. $as_echo_n "(cached) " >&6
  7208. else
  7209. if test -n "$DSYMUTIL"; then
  7210. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7211. else
  7212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7213. for as_dir in $PATH
  7214. do
  7215. IFS=$as_save_IFS
  7216. test -z "$as_dir" && as_dir=.
  7217. for ac_exec_ext in '' $ac_executable_extensions; do
  7218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7219. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7221. break 2
  7222. fi
  7223. done
  7224. done
  7225. IFS=$as_save_IFS
  7226. fi
  7227. fi
  7228. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7229. if test -n "$DSYMUTIL"; then
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7231. $as_echo "$DSYMUTIL" >&6; }
  7232. else
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7234. $as_echo "no" >&6; }
  7235. fi
  7236. fi
  7237. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7238. ac_ct_DSYMUTIL=$DSYMUTIL
  7239. # Extract the first word of "dsymutil", so it can be a program name with args.
  7240. set dummy dsymutil; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test -n "$ac_ct_DSYMUTIL"; then
  7247. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252. IFS=$as_save_IFS
  7253. test -z "$as_dir" && as_dir=.
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7266. if test -n "$ac_ct_DSYMUTIL"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7268. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7269. else
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. $as_echo "no" >&6; }
  7272. fi
  7273. if test "x$ac_ct_DSYMUTIL" = x; then
  7274. DSYMUTIL=":"
  7275. else
  7276. case $cross_compiling:$ac_tool_warned in
  7277. yes:)
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7279. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7280. ac_tool_warned=yes ;;
  7281. esac
  7282. DSYMUTIL=$ac_ct_DSYMUTIL
  7283. fi
  7284. else
  7285. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7286. fi
  7287. if test -n "$ac_tool_prefix"; then
  7288. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7289. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7291. $as_echo_n "checking for $ac_word... " >&6; }
  7292. if ${ac_cv_prog_NMEDIT+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. if test -n "$NMEDIT"; then
  7296. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7297. else
  7298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7299. for as_dir in $PATH
  7300. do
  7301. IFS=$as_save_IFS
  7302. test -z "$as_dir" && as_dir=.
  7303. for ac_exec_ext in '' $ac_executable_extensions; do
  7304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7305. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7307. break 2
  7308. fi
  7309. done
  7310. done
  7311. IFS=$as_save_IFS
  7312. fi
  7313. fi
  7314. NMEDIT=$ac_cv_prog_NMEDIT
  7315. if test -n "$NMEDIT"; then
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7317. $as_echo "$NMEDIT" >&6; }
  7318. else
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7320. $as_echo "no" >&6; }
  7321. fi
  7322. fi
  7323. if test -z "$ac_cv_prog_NMEDIT"; then
  7324. ac_ct_NMEDIT=$NMEDIT
  7325. # Extract the first word of "nmedit", so it can be a program name with args.
  7326. set dummy nmedit; ac_word=$2
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7328. $as_echo_n "checking for $ac_word... " >&6; }
  7329. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. if test -n "$ac_ct_NMEDIT"; then
  7333. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7334. else
  7335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7336. for as_dir in $PATH
  7337. do
  7338. IFS=$as_save_IFS
  7339. test -z "$as_dir" && as_dir=.
  7340. for ac_exec_ext in '' $ac_executable_extensions; do
  7341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7342. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7344. break 2
  7345. fi
  7346. done
  7347. done
  7348. IFS=$as_save_IFS
  7349. fi
  7350. fi
  7351. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7352. if test -n "$ac_ct_NMEDIT"; then
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7354. $as_echo "$ac_ct_NMEDIT" >&6; }
  7355. else
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7357. $as_echo "no" >&6; }
  7358. fi
  7359. if test "x$ac_ct_NMEDIT" = x; then
  7360. NMEDIT=":"
  7361. else
  7362. case $cross_compiling:$ac_tool_warned in
  7363. yes:)
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7366. ac_tool_warned=yes ;;
  7367. esac
  7368. NMEDIT=$ac_ct_NMEDIT
  7369. fi
  7370. else
  7371. NMEDIT="$ac_cv_prog_NMEDIT"
  7372. fi
  7373. if test -n "$ac_tool_prefix"; then
  7374. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7375. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7377. $as_echo_n "checking for $ac_word... " >&6; }
  7378. if ${ac_cv_prog_LIPO+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. if test -n "$LIPO"; then
  7382. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7383. else
  7384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7385. for as_dir in $PATH
  7386. do
  7387. IFS=$as_save_IFS
  7388. test -z "$as_dir" && as_dir=.
  7389. for ac_exec_ext in '' $ac_executable_extensions; do
  7390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7391. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7393. break 2
  7394. fi
  7395. done
  7396. done
  7397. IFS=$as_save_IFS
  7398. fi
  7399. fi
  7400. LIPO=$ac_cv_prog_LIPO
  7401. if test -n "$LIPO"; then
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7403. $as_echo "$LIPO" >&6; }
  7404. else
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7406. $as_echo "no" >&6; }
  7407. fi
  7408. fi
  7409. if test -z "$ac_cv_prog_LIPO"; then
  7410. ac_ct_LIPO=$LIPO
  7411. # Extract the first word of "lipo", so it can be a program name with args.
  7412. set dummy lipo; ac_word=$2
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7414. $as_echo_n "checking for $ac_word... " >&6; }
  7415. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. if test -n "$ac_ct_LIPO"; then
  7419. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7420. else
  7421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7422. for as_dir in $PATH
  7423. do
  7424. IFS=$as_save_IFS
  7425. test -z "$as_dir" && as_dir=.
  7426. for ac_exec_ext in '' $ac_executable_extensions; do
  7427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7428. ac_cv_prog_ac_ct_LIPO="lipo"
  7429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7430. break 2
  7431. fi
  7432. done
  7433. done
  7434. IFS=$as_save_IFS
  7435. fi
  7436. fi
  7437. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7438. if test -n "$ac_ct_LIPO"; then
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7440. $as_echo "$ac_ct_LIPO" >&6; }
  7441. else
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7443. $as_echo "no" >&6; }
  7444. fi
  7445. if test "x$ac_ct_LIPO" = x; then
  7446. LIPO=":"
  7447. else
  7448. case $cross_compiling:$ac_tool_warned in
  7449. yes:)
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7452. ac_tool_warned=yes ;;
  7453. esac
  7454. LIPO=$ac_ct_LIPO
  7455. fi
  7456. else
  7457. LIPO="$ac_cv_prog_LIPO"
  7458. fi
  7459. if test -n "$ac_tool_prefix"; then
  7460. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7461. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7463. $as_echo_n "checking for $ac_word... " >&6; }
  7464. if ${ac_cv_prog_OTOOL+:} false; then :
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. if test -n "$OTOOL"; then
  7468. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7469. else
  7470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7471. for as_dir in $PATH
  7472. do
  7473. IFS=$as_save_IFS
  7474. test -z "$as_dir" && as_dir=.
  7475. for ac_exec_ext in '' $ac_executable_extensions; do
  7476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7477. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7479. break 2
  7480. fi
  7481. done
  7482. done
  7483. IFS=$as_save_IFS
  7484. fi
  7485. fi
  7486. OTOOL=$ac_cv_prog_OTOOL
  7487. if test -n "$OTOOL"; then
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7489. $as_echo "$OTOOL" >&6; }
  7490. else
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7492. $as_echo "no" >&6; }
  7493. fi
  7494. fi
  7495. if test -z "$ac_cv_prog_OTOOL"; then
  7496. ac_ct_OTOOL=$OTOOL
  7497. # Extract the first word of "otool", so it can be a program name with args.
  7498. set dummy otool; ac_word=$2
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7500. $as_echo_n "checking for $ac_word... " >&6; }
  7501. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. if test -n "$ac_ct_OTOOL"; then
  7505. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7506. else
  7507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7508. for as_dir in $PATH
  7509. do
  7510. IFS=$as_save_IFS
  7511. test -z "$as_dir" && as_dir=.
  7512. for ac_exec_ext in '' $ac_executable_extensions; do
  7513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7514. ac_cv_prog_ac_ct_OTOOL="otool"
  7515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7516. break 2
  7517. fi
  7518. done
  7519. done
  7520. IFS=$as_save_IFS
  7521. fi
  7522. fi
  7523. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7524. if test -n "$ac_ct_OTOOL"; then
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7526. $as_echo "$ac_ct_OTOOL" >&6; }
  7527. else
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7529. $as_echo "no" >&6; }
  7530. fi
  7531. if test "x$ac_ct_OTOOL" = x; then
  7532. OTOOL=":"
  7533. else
  7534. case $cross_compiling:$ac_tool_warned in
  7535. yes:)
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7538. ac_tool_warned=yes ;;
  7539. esac
  7540. OTOOL=$ac_ct_OTOOL
  7541. fi
  7542. else
  7543. OTOOL="$ac_cv_prog_OTOOL"
  7544. fi
  7545. if test -n "$ac_tool_prefix"; then
  7546. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7547. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7549. $as_echo_n "checking for $ac_word... " >&6; }
  7550. if ${ac_cv_prog_OTOOL64+:} false; then :
  7551. $as_echo_n "(cached) " >&6
  7552. else
  7553. if test -n "$OTOOL64"; then
  7554. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7555. else
  7556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7557. for as_dir in $PATH
  7558. do
  7559. IFS=$as_save_IFS
  7560. test -z "$as_dir" && as_dir=.
  7561. for ac_exec_ext in '' $ac_executable_extensions; do
  7562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7563. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7565. break 2
  7566. fi
  7567. done
  7568. done
  7569. IFS=$as_save_IFS
  7570. fi
  7571. fi
  7572. OTOOL64=$ac_cv_prog_OTOOL64
  7573. if test -n "$OTOOL64"; then
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7575. $as_echo "$OTOOL64" >&6; }
  7576. else
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7578. $as_echo "no" >&6; }
  7579. fi
  7580. fi
  7581. if test -z "$ac_cv_prog_OTOOL64"; then
  7582. ac_ct_OTOOL64=$OTOOL64
  7583. # Extract the first word of "otool64", so it can be a program name with args.
  7584. set dummy otool64; ac_word=$2
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7586. $as_echo_n "checking for $ac_word... " >&6; }
  7587. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. if test -n "$ac_ct_OTOOL64"; then
  7591. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7592. else
  7593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7594. for as_dir in $PATH
  7595. do
  7596. IFS=$as_save_IFS
  7597. test -z "$as_dir" && as_dir=.
  7598. for ac_exec_ext in '' $ac_executable_extensions; do
  7599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7600. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7602. break 2
  7603. fi
  7604. done
  7605. done
  7606. IFS=$as_save_IFS
  7607. fi
  7608. fi
  7609. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7610. if test -n "$ac_ct_OTOOL64"; then
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7612. $as_echo "$ac_ct_OTOOL64" >&6; }
  7613. else
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7615. $as_echo "no" >&6; }
  7616. fi
  7617. if test "x$ac_ct_OTOOL64" = x; then
  7618. OTOOL64=":"
  7619. else
  7620. case $cross_compiling:$ac_tool_warned in
  7621. yes:)
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7624. ac_tool_warned=yes ;;
  7625. esac
  7626. OTOOL64=$ac_ct_OTOOL64
  7627. fi
  7628. else
  7629. OTOOL64="$ac_cv_prog_OTOOL64"
  7630. fi
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7632. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7633. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7634. $as_echo_n "(cached) " >&6
  7635. else
  7636. lt_cv_apple_cc_single_mod=no
  7637. if test -z "$LT_MULTI_MODULE"; then
  7638. # By default we will add the -single_module flag. You can override
  7639. # by either setting the environment variable LT_MULTI_MODULE
  7640. # non-empty at configure time, or by adding -multi_module to the
  7641. # link flags.
  7642. rm -rf libconftest.dylib*
  7643. echo "int foo(void){return 1;}" > conftest.c
  7644. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7645. -dynamiclib -Wl,-single_module conftest.c" >&5
  7646. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7647. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7648. _lt_result=$?
  7649. # If there is a non-empty error log, and "single_module"
  7650. # appears in it, assume the flag caused a linker warning
  7651. if test -s conftest.err && $GREP single_module conftest.err; then
  7652. cat conftest.err >&5
  7653. # Otherwise, if the output was created with a 0 exit code from
  7654. # the compiler, it worked.
  7655. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7656. lt_cv_apple_cc_single_mod=yes
  7657. else
  7658. cat conftest.err >&5
  7659. fi
  7660. rm -rf libconftest.dylib*
  7661. rm -f conftest.*
  7662. fi
  7663. fi
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7665. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7667. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7668. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7669. $as_echo_n "(cached) " >&6
  7670. else
  7671. lt_cv_ld_exported_symbols_list=no
  7672. save_LDFLAGS=$LDFLAGS
  7673. echo "_main" > conftest.sym
  7674. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7676. /* end confdefs.h. */
  7677. int
  7678. main ()
  7679. {
  7680. ;
  7681. return 0;
  7682. }
  7683. _ACEOF
  7684. if ac_fn_c_try_link "$LINENO"; then :
  7685. lt_cv_ld_exported_symbols_list=yes
  7686. else
  7687. lt_cv_ld_exported_symbols_list=no
  7688. fi
  7689. rm -f core conftest.err conftest.$ac_objext \
  7690. conftest$ac_exeext conftest.$ac_ext
  7691. LDFLAGS=$save_LDFLAGS
  7692. fi
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7694. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7696. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7697. if ${lt_cv_ld_force_load+:} false; then :
  7698. $as_echo_n "(cached) " >&6
  7699. else
  7700. lt_cv_ld_force_load=no
  7701. cat > conftest.c << _LT_EOF
  7702. int forced_loaded() { return 2;}
  7703. _LT_EOF
  7704. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7705. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7706. echo "$AR cru libconftest.a conftest.o" >&5
  7707. $AR cru libconftest.a conftest.o 2>&5
  7708. echo "$RANLIB libconftest.a" >&5
  7709. $RANLIB libconftest.a 2>&5
  7710. cat > conftest.c << _LT_EOF
  7711. int main() { return 0;}
  7712. _LT_EOF
  7713. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7714. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7715. _lt_result=$?
  7716. if test -s conftest.err && $GREP force_load conftest.err; then
  7717. cat conftest.err >&5
  7718. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7719. lt_cv_ld_force_load=yes
  7720. else
  7721. cat conftest.err >&5
  7722. fi
  7723. rm -f conftest.err libconftest.a conftest conftest.c
  7724. rm -rf conftest.dSYM
  7725. fi
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7727. $as_echo "$lt_cv_ld_force_load" >&6; }
  7728. case $host_os in
  7729. rhapsody* | darwin1.[012])
  7730. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7731. darwin1.*)
  7732. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7733. darwin*) # darwin 5.x on
  7734. # if running on 10.5 or later, the deployment target defaults
  7735. # to the OS version, if on x86, and 10.4, the deployment
  7736. # target defaults to 10.4. Don't you love it?
  7737. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7738. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7739. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7740. 10.[012][,.]*)
  7741. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7742. 10.*)
  7743. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7744. esac
  7745. ;;
  7746. esac
  7747. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7748. _lt_dar_single_mod='$single_module'
  7749. fi
  7750. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7751. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7752. else
  7753. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7754. fi
  7755. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7756. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7757. else
  7758. _lt_dsymutil=
  7759. fi
  7760. ;;
  7761. esac
  7762. # func_munge_path_list VARIABLE PATH
  7763. # -----------------------------------
  7764. # VARIABLE is name of variable containing _space_ separated list of
  7765. # directories to be munged by the contents of PATH, which is string
  7766. # having a format:
  7767. # "DIR[:DIR]:"
  7768. # string "DIR[ DIR]" will be prepended to VARIABLE
  7769. # ":DIR[:DIR]"
  7770. # string "DIR[ DIR]" will be appended to VARIABLE
  7771. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7772. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7773. # "DIRA[ DIRA]" will be appended to VARIABLE
  7774. # "DIR[:DIR]"
  7775. # VARIABLE will be replaced by "DIR[ DIR]"
  7776. func_munge_path_list ()
  7777. {
  7778. case x$2 in
  7779. x)
  7780. ;;
  7781. *:)
  7782. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7783. ;;
  7784. x:*)
  7785. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7786. ;;
  7787. *::*)
  7788. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7789. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7790. ;;
  7791. *)
  7792. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7793. ;;
  7794. esac
  7795. }
  7796. for ac_header in dlfcn.h
  7797. do :
  7798. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7799. "
  7800. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7801. cat >>confdefs.h <<_ACEOF
  7802. #define HAVE_DLFCN_H 1
  7803. _ACEOF
  7804. fi
  7805. done
  7806. # Set options
  7807. enable_win32_dll=yes
  7808. case $host in
  7809. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7810. if test -n "$ac_tool_prefix"; then
  7811. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7812. set dummy ${ac_tool_prefix}as; ac_word=$2
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7814. $as_echo_n "checking for $ac_word... " >&6; }
  7815. if ${ac_cv_prog_AS+:} false; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. if test -n "$AS"; then
  7819. ac_cv_prog_AS="$AS" # Let the user override the test.
  7820. else
  7821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7822. for as_dir in $PATH
  7823. do
  7824. IFS=$as_save_IFS
  7825. test -z "$as_dir" && as_dir=.
  7826. for ac_exec_ext in '' $ac_executable_extensions; do
  7827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7828. ac_cv_prog_AS="${ac_tool_prefix}as"
  7829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7830. break 2
  7831. fi
  7832. done
  7833. done
  7834. IFS=$as_save_IFS
  7835. fi
  7836. fi
  7837. AS=$ac_cv_prog_AS
  7838. if test -n "$AS"; then
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7840. $as_echo "$AS" >&6; }
  7841. else
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7843. $as_echo "no" >&6; }
  7844. fi
  7845. fi
  7846. if test -z "$ac_cv_prog_AS"; then
  7847. ac_ct_AS=$AS
  7848. # Extract the first word of "as", so it can be a program name with args.
  7849. set dummy as; ac_word=$2
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7851. $as_echo_n "checking for $ac_word... " >&6; }
  7852. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7853. $as_echo_n "(cached) " >&6
  7854. else
  7855. if test -n "$ac_ct_AS"; then
  7856. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7857. else
  7858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7859. for as_dir in $PATH
  7860. do
  7861. IFS=$as_save_IFS
  7862. test -z "$as_dir" && as_dir=.
  7863. for ac_exec_ext in '' $ac_executable_extensions; do
  7864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7865. ac_cv_prog_ac_ct_AS="as"
  7866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7867. break 2
  7868. fi
  7869. done
  7870. done
  7871. IFS=$as_save_IFS
  7872. fi
  7873. fi
  7874. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7875. if test -n "$ac_ct_AS"; then
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7877. $as_echo "$ac_ct_AS" >&6; }
  7878. else
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7880. $as_echo "no" >&6; }
  7881. fi
  7882. if test "x$ac_ct_AS" = x; then
  7883. AS="false"
  7884. else
  7885. case $cross_compiling:$ac_tool_warned in
  7886. yes:)
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7889. ac_tool_warned=yes ;;
  7890. esac
  7891. AS=$ac_ct_AS
  7892. fi
  7893. else
  7894. AS="$ac_cv_prog_AS"
  7895. fi
  7896. if test -n "$ac_tool_prefix"; then
  7897. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7898. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7900. $as_echo_n "checking for $ac_word... " >&6; }
  7901. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7902. $as_echo_n "(cached) " >&6
  7903. else
  7904. if test -n "$DLLTOOL"; then
  7905. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7906. else
  7907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7908. for as_dir in $PATH
  7909. do
  7910. IFS=$as_save_IFS
  7911. test -z "$as_dir" && as_dir=.
  7912. for ac_exec_ext in '' $ac_executable_extensions; do
  7913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7914. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7916. break 2
  7917. fi
  7918. done
  7919. done
  7920. IFS=$as_save_IFS
  7921. fi
  7922. fi
  7923. DLLTOOL=$ac_cv_prog_DLLTOOL
  7924. if test -n "$DLLTOOL"; then
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7926. $as_echo "$DLLTOOL" >&6; }
  7927. else
  7928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7929. $as_echo "no" >&6; }
  7930. fi
  7931. fi
  7932. if test -z "$ac_cv_prog_DLLTOOL"; then
  7933. ac_ct_DLLTOOL=$DLLTOOL
  7934. # Extract the first word of "dlltool", so it can be a program name with args.
  7935. set dummy dlltool; ac_word=$2
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7937. $as_echo_n "checking for $ac_word... " >&6; }
  7938. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7939. $as_echo_n "(cached) " >&6
  7940. else
  7941. if test -n "$ac_ct_DLLTOOL"; then
  7942. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7943. else
  7944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7945. for as_dir in $PATH
  7946. do
  7947. IFS=$as_save_IFS
  7948. test -z "$as_dir" && as_dir=.
  7949. for ac_exec_ext in '' $ac_executable_extensions; do
  7950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7951. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7953. break 2
  7954. fi
  7955. done
  7956. done
  7957. IFS=$as_save_IFS
  7958. fi
  7959. fi
  7960. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7961. if test -n "$ac_ct_DLLTOOL"; then
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7963. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7964. else
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7966. $as_echo "no" >&6; }
  7967. fi
  7968. if test "x$ac_ct_DLLTOOL" = x; then
  7969. DLLTOOL="false"
  7970. else
  7971. case $cross_compiling:$ac_tool_warned in
  7972. yes:)
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7975. ac_tool_warned=yes ;;
  7976. esac
  7977. DLLTOOL=$ac_ct_DLLTOOL
  7978. fi
  7979. else
  7980. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7981. fi
  7982. if test -n "$ac_tool_prefix"; then
  7983. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7984. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7986. $as_echo_n "checking for $ac_word... " >&6; }
  7987. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. if test -n "$OBJDUMP"; then
  7991. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7992. else
  7993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7994. for as_dir in $PATH
  7995. do
  7996. IFS=$as_save_IFS
  7997. test -z "$as_dir" && as_dir=.
  7998. for ac_exec_ext in '' $ac_executable_extensions; do
  7999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8000. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8002. break 2
  8003. fi
  8004. done
  8005. done
  8006. IFS=$as_save_IFS
  8007. fi
  8008. fi
  8009. OBJDUMP=$ac_cv_prog_OBJDUMP
  8010. if test -n "$OBJDUMP"; then
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8012. $as_echo "$OBJDUMP" >&6; }
  8013. else
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8015. $as_echo "no" >&6; }
  8016. fi
  8017. fi
  8018. if test -z "$ac_cv_prog_OBJDUMP"; then
  8019. ac_ct_OBJDUMP=$OBJDUMP
  8020. # Extract the first word of "objdump", so it can be a program name with args.
  8021. set dummy objdump; ac_word=$2
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8023. $as_echo_n "checking for $ac_word... " >&6; }
  8024. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8025. $as_echo_n "(cached) " >&6
  8026. else
  8027. if test -n "$ac_ct_OBJDUMP"; then
  8028. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8029. else
  8030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8031. for as_dir in $PATH
  8032. do
  8033. IFS=$as_save_IFS
  8034. test -z "$as_dir" && as_dir=.
  8035. for ac_exec_ext in '' $ac_executable_extensions; do
  8036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8037. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8039. break 2
  8040. fi
  8041. done
  8042. done
  8043. IFS=$as_save_IFS
  8044. fi
  8045. fi
  8046. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8047. if test -n "$ac_ct_OBJDUMP"; then
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8049. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8050. else
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8052. $as_echo "no" >&6; }
  8053. fi
  8054. if test "x$ac_ct_OBJDUMP" = x; then
  8055. OBJDUMP="false"
  8056. else
  8057. case $cross_compiling:$ac_tool_warned in
  8058. yes:)
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8061. ac_tool_warned=yes ;;
  8062. esac
  8063. OBJDUMP=$ac_ct_OBJDUMP
  8064. fi
  8065. else
  8066. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8067. fi
  8068. ;;
  8069. esac
  8070. test -z "$AS" && AS=as
  8071. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8072. test -z "$OBJDUMP" && OBJDUMP=objdump
  8073. enable_dlopen=no
  8074. # Check whether --enable-shared was given.
  8075. if test "${enable_shared+set}" = set; then :
  8076. enableval=$enable_shared; p=${PACKAGE-default}
  8077. case $enableval in
  8078. yes) enable_shared=yes ;;
  8079. no) enable_shared=no ;;
  8080. *)
  8081. enable_shared=no
  8082. # Look at the argument we got. We use all the common list separators.
  8083. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8084. for pkg in $enableval; do
  8085. IFS=$lt_save_ifs
  8086. if test "X$pkg" = "X$p"; then
  8087. enable_shared=yes
  8088. fi
  8089. done
  8090. IFS=$lt_save_ifs
  8091. ;;
  8092. esac
  8093. else
  8094. enable_shared=yes
  8095. fi
  8096. # Check whether --enable-static was given.
  8097. if test "${enable_static+set}" = set; then :
  8098. enableval=$enable_static; p=${PACKAGE-default}
  8099. case $enableval in
  8100. yes) enable_static=yes ;;
  8101. no) enable_static=no ;;
  8102. *)
  8103. enable_static=no
  8104. # Look at the argument we got. We use all the common list separators.
  8105. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8106. for pkg in $enableval; do
  8107. IFS=$lt_save_ifs
  8108. if test "X$pkg" = "X$p"; then
  8109. enable_static=yes
  8110. fi
  8111. done
  8112. IFS=$lt_save_ifs
  8113. ;;
  8114. esac
  8115. else
  8116. enable_static=yes
  8117. fi
  8118. # Check whether --with-pic was given.
  8119. if test "${with_pic+set}" = set; then :
  8120. withval=$with_pic; lt_p=${PACKAGE-default}
  8121. case $withval in
  8122. yes|no) pic_mode=$withval ;;
  8123. *)
  8124. pic_mode=default
  8125. # Look at the argument we got. We use all the common list separators.
  8126. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8127. for lt_pkg in $withval; do
  8128. IFS=$lt_save_ifs
  8129. if test "X$lt_pkg" = "X$lt_p"; then
  8130. pic_mode=yes
  8131. fi
  8132. done
  8133. IFS=$lt_save_ifs
  8134. ;;
  8135. esac
  8136. else
  8137. pic_mode=default
  8138. fi
  8139. # Check whether --enable-fast-install was given.
  8140. if test "${enable_fast_install+set}" = set; then :
  8141. enableval=$enable_fast_install; p=${PACKAGE-default}
  8142. case $enableval in
  8143. yes) enable_fast_install=yes ;;
  8144. no) enable_fast_install=no ;;
  8145. *)
  8146. enable_fast_install=no
  8147. # Look at the argument we got. We use all the common list separators.
  8148. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8149. for pkg in $enableval; do
  8150. IFS=$lt_save_ifs
  8151. if test "X$pkg" = "X$p"; then
  8152. enable_fast_install=yes
  8153. fi
  8154. done
  8155. IFS=$lt_save_ifs
  8156. ;;
  8157. esac
  8158. else
  8159. enable_fast_install=yes
  8160. fi
  8161. shared_archive_member_spec=
  8162. case $host,$enable_shared in
  8163. power*-*-aix[5-9]*,yes)
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8165. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8166. # Check whether --with-aix-soname was given.
  8167. if test "${with_aix_soname+set}" = set; then :
  8168. withval=$with_aix_soname; case $withval in
  8169. aix|svr4|both)
  8170. ;;
  8171. *)
  8172. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8173. ;;
  8174. esac
  8175. lt_cv_with_aix_soname=$with_aix_soname
  8176. else
  8177. if ${lt_cv_with_aix_soname+:} false; then :
  8178. $as_echo_n "(cached) " >&6
  8179. else
  8180. lt_cv_with_aix_soname=aix
  8181. fi
  8182. with_aix_soname=$lt_cv_with_aix_soname
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8185. $as_echo "$with_aix_soname" >&6; }
  8186. if test aix != "$with_aix_soname"; then
  8187. # For the AIX way of multilib, we name the shared archive member
  8188. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8189. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8190. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8191. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8192. if test 64 = "${OBJECT_MODE-32}"; then
  8193. shared_archive_member_spec=shr_64
  8194. else
  8195. shared_archive_member_spec=shr
  8196. fi
  8197. fi
  8198. ;;
  8199. *)
  8200. with_aix_soname=aix
  8201. ;;
  8202. esac
  8203. # This can be used to rebuild libtool when needed
  8204. LIBTOOL_DEPS=$ltmain
  8205. # Always use our own libtool.
  8206. LIBTOOL='$(top_builddir)'
  8207. LIBTOOL="$LIBTOOL/${host_alias}-libtool"
  8208. test -z "$LN_S" && LN_S="ln -s"
  8209. if test -n "${ZSH_VERSION+set}"; then
  8210. setopt NO_GLOB_SUBST
  8211. fi
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8213. $as_echo_n "checking for objdir... " >&6; }
  8214. if ${lt_cv_objdir+:} false; then :
  8215. $as_echo_n "(cached) " >&6
  8216. else
  8217. rm -f .libs 2>/dev/null
  8218. mkdir .libs 2>/dev/null
  8219. if test -d .libs; then
  8220. lt_cv_objdir=.libs
  8221. else
  8222. # MS-DOS does not allow filenames that begin with a dot.
  8223. lt_cv_objdir=_libs
  8224. fi
  8225. rmdir .libs 2>/dev/null
  8226. fi
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8228. $as_echo "$lt_cv_objdir" >&6; }
  8229. objdir=$lt_cv_objdir
  8230. cat >>confdefs.h <<_ACEOF
  8231. #define LT_OBJDIR "$lt_cv_objdir/"
  8232. _ACEOF
  8233. case $host_os in
  8234. aix3*)
  8235. # AIX sometimes has problems with the GCC collect2 program. For some
  8236. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8237. # vanish in a puff of smoke.
  8238. if test set != "${COLLECT_NAMES+set}"; then
  8239. COLLECT_NAMES=
  8240. export COLLECT_NAMES
  8241. fi
  8242. ;;
  8243. esac
  8244. # Global variables:
  8245. ofile=${host_alias}-libtool
  8246. can_build_shared=yes
  8247. # All known linkers require a '.a' archive for static linking (except MSVC,
  8248. # which needs '.lib').
  8249. libext=a
  8250. with_gnu_ld=$lt_cv_prog_gnu_ld
  8251. old_CC=$CC
  8252. old_CFLAGS=$CFLAGS
  8253. # Set sane defaults for various variables
  8254. test -z "$CC" && CC=cc
  8255. test -z "$LTCC" && LTCC=$CC
  8256. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8257. test -z "$LD" && LD=ld
  8258. test -z "$ac_objext" && ac_objext=o
  8259. func_cc_basename $compiler
  8260. cc_basename=$func_cc_basename_result
  8261. # Only perform the check for file, if the check method requires it
  8262. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8263. case $deplibs_check_method in
  8264. file_magic*)
  8265. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8267. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8268. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. case $MAGIC_CMD in
  8272. [\\/*] | ?:[\\/]*)
  8273. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8274. ;;
  8275. *)
  8276. lt_save_MAGIC_CMD=$MAGIC_CMD
  8277. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8278. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8279. for ac_dir in $ac_dummy; do
  8280. IFS=$lt_save_ifs
  8281. test -z "$ac_dir" && ac_dir=.
  8282. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8283. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8284. if test -n "$file_magic_test_file"; then
  8285. case $deplibs_check_method in
  8286. "file_magic "*)
  8287. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8288. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8289. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8290. $EGREP "$file_magic_regex" > /dev/null; then
  8291. :
  8292. else
  8293. cat <<_LT_EOF 1>&2
  8294. *** Warning: the command libtool uses to detect shared libraries,
  8295. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8296. *** The result is that libtool may fail to recognize shared libraries
  8297. *** as such. This will affect the creation of libtool libraries that
  8298. *** depend on shared libraries, but programs linked with such libtool
  8299. *** libraries will work regardless of this problem. Nevertheless, you
  8300. *** may want to report the problem to your system manager and/or to
  8301. *** bug-libtool@gnu.org
  8302. _LT_EOF
  8303. fi ;;
  8304. esac
  8305. fi
  8306. break
  8307. fi
  8308. done
  8309. IFS=$lt_save_ifs
  8310. MAGIC_CMD=$lt_save_MAGIC_CMD
  8311. ;;
  8312. esac
  8313. fi
  8314. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8315. if test -n "$MAGIC_CMD"; then
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8317. $as_echo "$MAGIC_CMD" >&6; }
  8318. else
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8320. $as_echo "no" >&6; }
  8321. fi
  8322. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8323. if test -n "$ac_tool_prefix"; then
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8325. $as_echo_n "checking for file... " >&6; }
  8326. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8327. $as_echo_n "(cached) " >&6
  8328. else
  8329. case $MAGIC_CMD in
  8330. [\\/*] | ?:[\\/]*)
  8331. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8332. ;;
  8333. *)
  8334. lt_save_MAGIC_CMD=$MAGIC_CMD
  8335. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8336. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8337. for ac_dir in $ac_dummy; do
  8338. IFS=$lt_save_ifs
  8339. test -z "$ac_dir" && ac_dir=.
  8340. if test -f "$ac_dir/file"; then
  8341. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8342. if test -n "$file_magic_test_file"; then
  8343. case $deplibs_check_method in
  8344. "file_magic "*)
  8345. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8346. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8347. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8348. $EGREP "$file_magic_regex" > /dev/null; then
  8349. :
  8350. else
  8351. cat <<_LT_EOF 1>&2
  8352. *** Warning: the command libtool uses to detect shared libraries,
  8353. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8354. *** The result is that libtool may fail to recognize shared libraries
  8355. *** as such. This will affect the creation of libtool libraries that
  8356. *** depend on shared libraries, but programs linked with such libtool
  8357. *** libraries will work regardless of this problem. Nevertheless, you
  8358. *** may want to report the problem to your system manager and/or to
  8359. *** bug-libtool@gnu.org
  8360. _LT_EOF
  8361. fi ;;
  8362. esac
  8363. fi
  8364. break
  8365. fi
  8366. done
  8367. IFS=$lt_save_ifs
  8368. MAGIC_CMD=$lt_save_MAGIC_CMD
  8369. ;;
  8370. esac
  8371. fi
  8372. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8373. if test -n "$MAGIC_CMD"; then
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8375. $as_echo "$MAGIC_CMD" >&6; }
  8376. else
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8378. $as_echo "no" >&6; }
  8379. fi
  8380. else
  8381. MAGIC_CMD=:
  8382. fi
  8383. fi
  8384. fi
  8385. ;;
  8386. esac
  8387. # Use C for the default configuration in the libtool script
  8388. lt_save_CC=$CC
  8389. ac_ext=c
  8390. ac_cpp='$CPP $CPPFLAGS'
  8391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8394. # Source file extension for C test sources.
  8395. ac_ext=c
  8396. # Object file extension for compiled C test sources.
  8397. objext=o
  8398. objext=$objext
  8399. # Code to be used in simple compile tests
  8400. lt_simple_compile_test_code="int some_variable = 0;"
  8401. # Code to be used in simple link tests
  8402. lt_simple_link_test_code='int main(){return(0);}'
  8403. # If no C compiler was specified, use CC.
  8404. LTCC=${LTCC-"$CC"}
  8405. # If no C compiler flags were specified, use CFLAGS.
  8406. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8407. # Allow CC to be a program name with arguments.
  8408. compiler=$CC
  8409. # Save the default compiler, since it gets overwritten when the other
  8410. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8411. compiler_DEFAULT=$CC
  8412. # save warnings/boilerplate of simple test code
  8413. ac_outfile=conftest.$ac_objext
  8414. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8415. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8416. _lt_compiler_boilerplate=`cat conftest.err`
  8417. $RM conftest*
  8418. ac_outfile=conftest.$ac_objext
  8419. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8420. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8421. _lt_linker_boilerplate=`cat conftest.err`
  8422. $RM -r conftest*
  8423. if test -n "$compiler"; then
  8424. lt_prog_compiler_no_builtin_flag=
  8425. if test yes = "$GCC"; then
  8426. case $cc_basename in
  8427. nvcc*)
  8428. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8429. *)
  8430. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8431. esac
  8432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8433. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8434. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8435. $as_echo_n "(cached) " >&6
  8436. else
  8437. lt_cv_prog_compiler_rtti_exceptions=no
  8438. ac_outfile=conftest.$ac_objext
  8439. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8440. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8441. # Insert the option either (1) after the last *FLAGS variable, or
  8442. # (2) before a word containing "conftest.", or (3) at the end.
  8443. # Note that $ac_compile itself does not contain backslashes and begins
  8444. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8445. # The option is referenced via a variable to avoid confusing sed.
  8446. lt_compile=`echo "$ac_compile" | $SED \
  8447. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8448. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8449. -e 's:$: $lt_compiler_flag:'`
  8450. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8451. (eval "$lt_compile" 2>conftest.err)
  8452. ac_status=$?
  8453. cat conftest.err >&5
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. if (exit $ac_status) && test -s "$ac_outfile"; then
  8456. # The compiler can only warn and ignore the option if not recognized
  8457. # So say no if there are warnings other than the usual output.
  8458. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8459. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8460. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8461. lt_cv_prog_compiler_rtti_exceptions=yes
  8462. fi
  8463. fi
  8464. $RM conftest*
  8465. fi
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8467. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8468. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8469. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8470. else
  8471. :
  8472. fi
  8473. fi
  8474. lt_prog_compiler_wl=
  8475. lt_prog_compiler_pic=
  8476. lt_prog_compiler_static=
  8477. if test yes = "$GCC"; then
  8478. lt_prog_compiler_wl='-Wl,'
  8479. lt_prog_compiler_static='-static'
  8480. case $host_os in
  8481. aix*)
  8482. # All AIX code is PIC.
  8483. if test ia64 = "$host_cpu"; then
  8484. # AIX 5 now supports IA64 processor
  8485. lt_prog_compiler_static='-Bstatic'
  8486. fi
  8487. lt_prog_compiler_pic='-fPIC'
  8488. ;;
  8489. amigaos*)
  8490. case $host_cpu in
  8491. powerpc)
  8492. # see comment about AmigaOS4 .so support
  8493. lt_prog_compiler_pic='-fPIC'
  8494. ;;
  8495. m68k)
  8496. # FIXME: we need at least 68020 code to build shared libraries, but
  8497. # adding the '-m68020' flag to GCC prevents building anything better,
  8498. # like '-m68040'.
  8499. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8500. ;;
  8501. esac
  8502. ;;
  8503. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8504. # PIC is the default for these OSes.
  8505. ;;
  8506. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8507. # This hack is so that the source file can tell whether it is being
  8508. # built for inclusion in a dll (and should export symbols for example).
  8509. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8510. # (--disable-auto-import) libraries
  8511. lt_prog_compiler_pic='-DDLL_EXPORT'
  8512. case $host_os in
  8513. os2*)
  8514. lt_prog_compiler_static='$wl-static'
  8515. ;;
  8516. esac
  8517. ;;
  8518. darwin* | rhapsody*)
  8519. # PIC is the default on this platform
  8520. # Common symbols not allowed in MH_DYLIB files
  8521. lt_prog_compiler_pic='-fno-common'
  8522. ;;
  8523. haiku*)
  8524. # PIC is the default for Haiku.
  8525. # The "-static" flag exists, but is broken.
  8526. lt_prog_compiler_static=
  8527. ;;
  8528. hpux*)
  8529. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8530. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8531. # sets the default TLS model and affects inlining.
  8532. case $host_cpu in
  8533. hppa*64*)
  8534. # +Z the default
  8535. ;;
  8536. *)
  8537. lt_prog_compiler_pic='-fPIC'
  8538. ;;
  8539. esac
  8540. ;;
  8541. interix[3-9]*)
  8542. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8543. # Instead, we relocate shared libraries at runtime.
  8544. ;;
  8545. msdosdjgpp*)
  8546. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8547. # on systems that don't support them.
  8548. lt_prog_compiler_can_build_shared=no
  8549. enable_shared=no
  8550. ;;
  8551. *nto* | *qnx*)
  8552. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8553. # it will coredump.
  8554. lt_prog_compiler_pic='-fPIC -shared'
  8555. ;;
  8556. sysv4*MP*)
  8557. if test -d /usr/nec; then
  8558. lt_prog_compiler_pic=-Kconform_pic
  8559. fi
  8560. ;;
  8561. *)
  8562. lt_prog_compiler_pic='-fPIC'
  8563. ;;
  8564. esac
  8565. case $cc_basename in
  8566. nvcc*) # Cuda Compiler Driver 2.2
  8567. lt_prog_compiler_wl='-Xlinker '
  8568. if test -n "$lt_prog_compiler_pic"; then
  8569. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8570. fi
  8571. ;;
  8572. esac
  8573. else
  8574. # PORTME Check for flag to pass linker flags through the system compiler.
  8575. case $host_os in
  8576. aix*)
  8577. lt_prog_compiler_wl='-Wl,'
  8578. if test ia64 = "$host_cpu"; then
  8579. # AIX 5 now supports IA64 processor
  8580. lt_prog_compiler_static='-Bstatic'
  8581. else
  8582. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8583. fi
  8584. ;;
  8585. darwin* | rhapsody*)
  8586. # PIC is the default on this platform
  8587. # Common symbols not allowed in MH_DYLIB files
  8588. lt_prog_compiler_pic='-fno-common'
  8589. case $cc_basename in
  8590. nagfor*)
  8591. # NAG Fortran compiler
  8592. lt_prog_compiler_wl='-Wl,-Wl,,'
  8593. lt_prog_compiler_pic='-PIC'
  8594. lt_prog_compiler_static='-Bstatic'
  8595. ;;
  8596. esac
  8597. ;;
  8598. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8599. # This hack is so that the source file can tell whether it is being
  8600. # built for inclusion in a dll (and should export symbols for example).
  8601. lt_prog_compiler_pic='-DDLL_EXPORT'
  8602. case $host_os in
  8603. os2*)
  8604. lt_prog_compiler_static='$wl-static'
  8605. ;;
  8606. esac
  8607. ;;
  8608. hpux9* | hpux10* | hpux11*)
  8609. lt_prog_compiler_wl='-Wl,'
  8610. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8611. # not for PA HP-UX.
  8612. case $host_cpu in
  8613. hppa*64*|ia64*)
  8614. # +Z the default
  8615. ;;
  8616. *)
  8617. lt_prog_compiler_pic='+Z'
  8618. ;;
  8619. esac
  8620. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8621. lt_prog_compiler_static='$wl-a ${wl}archive'
  8622. ;;
  8623. irix5* | irix6* | nonstopux*)
  8624. lt_prog_compiler_wl='-Wl,'
  8625. # PIC (with -KPIC) is the default.
  8626. lt_prog_compiler_static='-non_shared'
  8627. ;;
  8628. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8629. case $cc_basename in
  8630. # old Intel for x86_64, which still supported -KPIC.
  8631. ecc*)
  8632. lt_prog_compiler_wl='-Wl,'
  8633. lt_prog_compiler_pic='-KPIC'
  8634. lt_prog_compiler_static='-static'
  8635. ;;
  8636. # icc used to be incompatible with GCC.
  8637. # ICC 10 doesn't accept -KPIC any more.
  8638. icc* | ifort*)
  8639. lt_prog_compiler_wl='-Wl,'
  8640. lt_prog_compiler_pic='-fPIC'
  8641. lt_prog_compiler_static='-static'
  8642. ;;
  8643. # Lahey Fortran 8.1.
  8644. lf95*)
  8645. lt_prog_compiler_wl='-Wl,'
  8646. lt_prog_compiler_pic='--shared'
  8647. lt_prog_compiler_static='--static'
  8648. ;;
  8649. nagfor*)
  8650. # NAG Fortran compiler
  8651. lt_prog_compiler_wl='-Wl,-Wl,,'
  8652. lt_prog_compiler_pic='-PIC'
  8653. lt_prog_compiler_static='-Bstatic'
  8654. ;;
  8655. tcc*)
  8656. # Fabrice Bellard et al's Tiny C Compiler
  8657. lt_prog_compiler_wl='-Wl,'
  8658. lt_prog_compiler_pic='-fPIC'
  8659. lt_prog_compiler_static='-static'
  8660. ;;
  8661. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8662. # Portland Group compilers (*not* the Pentium gcc compiler,
  8663. # which looks to be a dead project)
  8664. lt_prog_compiler_wl='-Wl,'
  8665. lt_prog_compiler_pic='-fpic'
  8666. lt_prog_compiler_static='-Bstatic'
  8667. ;;
  8668. ccc*)
  8669. lt_prog_compiler_wl='-Wl,'
  8670. # All Alpha code is PIC.
  8671. lt_prog_compiler_static='-non_shared'
  8672. ;;
  8673. xl* | bgxl* | bgf* | mpixl*)
  8674. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8675. lt_prog_compiler_wl='-Wl,'
  8676. lt_prog_compiler_pic='-qpic'
  8677. lt_prog_compiler_static='-qstaticlink'
  8678. ;;
  8679. *)
  8680. case `$CC -V 2>&1 | sed 5q` in
  8681. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8682. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8683. lt_prog_compiler_pic='-KPIC'
  8684. lt_prog_compiler_static='-Bstatic'
  8685. lt_prog_compiler_wl=''
  8686. ;;
  8687. *Sun\ F* | *Sun*Fortran*)
  8688. lt_prog_compiler_pic='-KPIC'
  8689. lt_prog_compiler_static='-Bstatic'
  8690. lt_prog_compiler_wl='-Qoption ld '
  8691. ;;
  8692. *Sun\ C*)
  8693. # Sun C 5.9
  8694. lt_prog_compiler_pic='-KPIC'
  8695. lt_prog_compiler_static='-Bstatic'
  8696. lt_prog_compiler_wl='-Wl,'
  8697. ;;
  8698. *Intel*\ [CF]*Compiler*)
  8699. lt_prog_compiler_wl='-Wl,'
  8700. lt_prog_compiler_pic='-fPIC'
  8701. lt_prog_compiler_static='-static'
  8702. ;;
  8703. *Portland\ Group*)
  8704. lt_prog_compiler_wl='-Wl,'
  8705. lt_prog_compiler_pic='-fpic'
  8706. lt_prog_compiler_static='-Bstatic'
  8707. ;;
  8708. esac
  8709. ;;
  8710. esac
  8711. ;;
  8712. newsos6)
  8713. lt_prog_compiler_pic='-KPIC'
  8714. lt_prog_compiler_static='-Bstatic'
  8715. ;;
  8716. *nto* | *qnx*)
  8717. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8718. # it will coredump.
  8719. lt_prog_compiler_pic='-fPIC -shared'
  8720. ;;
  8721. osf3* | osf4* | osf5*)
  8722. lt_prog_compiler_wl='-Wl,'
  8723. # All OSF/1 code is PIC.
  8724. lt_prog_compiler_static='-non_shared'
  8725. ;;
  8726. rdos*)
  8727. lt_prog_compiler_static='-non_shared'
  8728. ;;
  8729. solaris*)
  8730. lt_prog_compiler_pic='-KPIC'
  8731. lt_prog_compiler_static='-Bstatic'
  8732. case $cc_basename in
  8733. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8734. lt_prog_compiler_wl='-Qoption ld ';;
  8735. *)
  8736. lt_prog_compiler_wl='-Wl,';;
  8737. esac
  8738. ;;
  8739. sunos4*)
  8740. lt_prog_compiler_wl='-Qoption ld '
  8741. lt_prog_compiler_pic='-PIC'
  8742. lt_prog_compiler_static='-Bstatic'
  8743. ;;
  8744. sysv4 | sysv4.2uw2* | sysv4.3*)
  8745. lt_prog_compiler_wl='-Wl,'
  8746. lt_prog_compiler_pic='-KPIC'
  8747. lt_prog_compiler_static='-Bstatic'
  8748. ;;
  8749. sysv4*MP*)
  8750. if test -d /usr/nec; then
  8751. lt_prog_compiler_pic='-Kconform_pic'
  8752. lt_prog_compiler_static='-Bstatic'
  8753. fi
  8754. ;;
  8755. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8756. lt_prog_compiler_wl='-Wl,'
  8757. lt_prog_compiler_pic='-KPIC'
  8758. lt_prog_compiler_static='-Bstatic'
  8759. ;;
  8760. unicos*)
  8761. lt_prog_compiler_wl='-Wl,'
  8762. lt_prog_compiler_can_build_shared=no
  8763. ;;
  8764. uts4*)
  8765. lt_prog_compiler_pic='-pic'
  8766. lt_prog_compiler_static='-Bstatic'
  8767. ;;
  8768. *)
  8769. lt_prog_compiler_can_build_shared=no
  8770. ;;
  8771. esac
  8772. fi
  8773. case $host_os in
  8774. # For platforms that do not support PIC, -DPIC is meaningless:
  8775. *djgpp*)
  8776. lt_prog_compiler_pic=
  8777. ;;
  8778. *)
  8779. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8780. ;;
  8781. esac
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8783. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8784. if ${lt_cv_prog_compiler_pic+:} false; then :
  8785. $as_echo_n "(cached) " >&6
  8786. else
  8787. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8788. fi
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8790. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8791. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8792. #
  8793. # Check to make sure the PIC flag actually works.
  8794. #
  8795. if test -n "$lt_prog_compiler_pic"; then
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8797. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8798. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8799. $as_echo_n "(cached) " >&6
  8800. else
  8801. lt_cv_prog_compiler_pic_works=no
  8802. ac_outfile=conftest.$ac_objext
  8803. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8804. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8805. # Insert the option either (1) after the last *FLAGS variable, or
  8806. # (2) before a word containing "conftest.", or (3) at the end.
  8807. # Note that $ac_compile itself does not contain backslashes and begins
  8808. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8809. # The option is referenced via a variable to avoid confusing sed.
  8810. lt_compile=`echo "$ac_compile" | $SED \
  8811. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8812. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8813. -e 's:$: $lt_compiler_flag:'`
  8814. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8815. (eval "$lt_compile" 2>conftest.err)
  8816. ac_status=$?
  8817. cat conftest.err >&5
  8818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8819. if (exit $ac_status) && test -s "$ac_outfile"; then
  8820. # The compiler can only warn and ignore the option if not recognized
  8821. # So say no if there are warnings other than the usual output.
  8822. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8823. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8824. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8825. lt_cv_prog_compiler_pic_works=yes
  8826. fi
  8827. fi
  8828. $RM conftest*
  8829. fi
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8831. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8832. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8833. case $lt_prog_compiler_pic in
  8834. "" | " "*) ;;
  8835. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8836. esac
  8837. else
  8838. lt_prog_compiler_pic=
  8839. lt_prog_compiler_can_build_shared=no
  8840. fi
  8841. fi
  8842. #
  8843. # Check to make sure the static flag actually works.
  8844. #
  8845. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8847. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8848. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8849. $as_echo_n "(cached) " >&6
  8850. else
  8851. lt_cv_prog_compiler_static_works=no
  8852. save_LDFLAGS=$LDFLAGS
  8853. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8854. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8855. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8856. # The linker can only warn and ignore the option if not recognized
  8857. # So say no if there are warnings
  8858. if test -s conftest.err; then
  8859. # Append any errors to the config.log.
  8860. cat conftest.err 1>&5
  8861. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8862. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8863. if diff conftest.exp conftest.er2 >/dev/null; then
  8864. lt_cv_prog_compiler_static_works=yes
  8865. fi
  8866. else
  8867. lt_cv_prog_compiler_static_works=yes
  8868. fi
  8869. fi
  8870. $RM -r conftest*
  8871. LDFLAGS=$save_LDFLAGS
  8872. fi
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8874. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8875. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8876. :
  8877. else
  8878. lt_prog_compiler_static=
  8879. fi
  8880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8881. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8882. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8883. $as_echo_n "(cached) " >&6
  8884. else
  8885. lt_cv_prog_compiler_c_o=no
  8886. $RM -r conftest 2>/dev/null
  8887. mkdir conftest
  8888. cd conftest
  8889. mkdir out
  8890. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8891. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8892. # Insert the option either (1) after the last *FLAGS variable, or
  8893. # (2) before a word containing "conftest.", or (3) at the end.
  8894. # Note that $ac_compile itself does not contain backslashes and begins
  8895. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8896. lt_compile=`echo "$ac_compile" | $SED \
  8897. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8898. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8899. -e 's:$: $lt_compiler_flag:'`
  8900. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8901. (eval "$lt_compile" 2>out/conftest.err)
  8902. ac_status=$?
  8903. cat out/conftest.err >&5
  8904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8905. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8906. then
  8907. # The compiler can only warn and ignore the option if not recognized
  8908. # So say no if there are warnings
  8909. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8910. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8911. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8912. lt_cv_prog_compiler_c_o=yes
  8913. fi
  8914. fi
  8915. chmod u+w . 2>&5
  8916. $RM conftest*
  8917. # SGI C++ compiler will create directory out/ii_files/ for
  8918. # template instantiation
  8919. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8920. $RM out/* && rmdir out
  8921. cd ..
  8922. $RM -r conftest
  8923. $RM conftest*
  8924. fi
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8926. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8928. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8929. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8930. $as_echo_n "(cached) " >&6
  8931. else
  8932. lt_cv_prog_compiler_c_o=no
  8933. $RM -r conftest 2>/dev/null
  8934. mkdir conftest
  8935. cd conftest
  8936. mkdir out
  8937. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8938. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8939. # Insert the option either (1) after the last *FLAGS variable, or
  8940. # (2) before a word containing "conftest.", or (3) at the end.
  8941. # Note that $ac_compile itself does not contain backslashes and begins
  8942. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8943. lt_compile=`echo "$ac_compile" | $SED \
  8944. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8945. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8946. -e 's:$: $lt_compiler_flag:'`
  8947. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8948. (eval "$lt_compile" 2>out/conftest.err)
  8949. ac_status=$?
  8950. cat out/conftest.err >&5
  8951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8952. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8953. then
  8954. # The compiler can only warn and ignore the option if not recognized
  8955. # So say no if there are warnings
  8956. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8957. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8958. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8959. lt_cv_prog_compiler_c_o=yes
  8960. fi
  8961. fi
  8962. chmod u+w . 2>&5
  8963. $RM conftest*
  8964. # SGI C++ compiler will create directory out/ii_files/ for
  8965. # template instantiation
  8966. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8967. $RM out/* && rmdir out
  8968. cd ..
  8969. $RM -r conftest
  8970. $RM conftest*
  8971. fi
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8973. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8974. hard_links=nottested
  8975. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8976. # do not overwrite the value of need_locks provided by the user
  8977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8978. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8979. hard_links=yes
  8980. $RM conftest*
  8981. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8982. touch conftest.a
  8983. ln conftest.a conftest.b 2>&5 || hard_links=no
  8984. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8986. $as_echo "$hard_links" >&6; }
  8987. if test no = "$hard_links"; then
  8988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8989. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8990. need_locks=warn
  8991. fi
  8992. else
  8993. need_locks=no
  8994. fi
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8996. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8997. runpath_var=
  8998. allow_undefined_flag=
  8999. always_export_symbols=no
  9000. archive_cmds=
  9001. archive_expsym_cmds=
  9002. compiler_needs_object=no
  9003. enable_shared_with_static_runtimes=no
  9004. export_dynamic_flag_spec=
  9005. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9006. hardcode_automatic=no
  9007. hardcode_direct=no
  9008. hardcode_direct_absolute=no
  9009. hardcode_libdir_flag_spec=
  9010. hardcode_libdir_separator=
  9011. hardcode_minus_L=no
  9012. hardcode_shlibpath_var=unsupported
  9013. inherit_rpath=no
  9014. link_all_deplibs=unknown
  9015. module_cmds=
  9016. module_expsym_cmds=
  9017. old_archive_from_new_cmds=
  9018. old_archive_from_expsyms_cmds=
  9019. thread_safe_flag_spec=
  9020. whole_archive_flag_spec=
  9021. # include_expsyms should be a list of space-separated symbols to be *always*
  9022. # included in the symbol list
  9023. include_expsyms=
  9024. # exclude_expsyms can be an extended regexp of symbols to exclude
  9025. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9026. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9027. # as well as any symbol that contains 'd'.
  9028. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9029. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9030. # platforms (ab)use it in PIC code, but their linkers get confused if
  9031. # the symbol is explicitly referenced. Since portable code cannot
  9032. # rely on this symbol name, it's probably fine to never include it in
  9033. # preloaded symbol tables.
  9034. # Exclude shared library initialization/finalization symbols.
  9035. extract_expsyms_cmds=
  9036. case $host_os in
  9037. cygwin* | mingw* | pw32* | cegcc*)
  9038. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9039. # When not using gcc, we currently assume that we are using
  9040. # Microsoft Visual C++.
  9041. if test yes != "$GCC"; then
  9042. with_gnu_ld=no
  9043. fi
  9044. ;;
  9045. interix*)
  9046. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9047. with_gnu_ld=yes
  9048. ;;
  9049. openbsd* | bitrig*)
  9050. with_gnu_ld=no
  9051. ;;
  9052. esac
  9053. ld_shlibs=yes
  9054. # On some targets, GNU ld is compatible enough with the native linker
  9055. # that we're better off using the native interface for both.
  9056. lt_use_gnu_ld_interface=no
  9057. if test yes = "$with_gnu_ld"; then
  9058. case $host_os in
  9059. aix*)
  9060. # The AIX port of GNU ld has always aspired to compatibility
  9061. # with the native linker. However, as the warning in the GNU ld
  9062. # block says, versions before 2.19.5* couldn't really create working
  9063. # shared libraries, regardless of the interface used.
  9064. case `$LD -v 2>&1` in
  9065. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9066. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9067. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9068. *)
  9069. lt_use_gnu_ld_interface=yes
  9070. ;;
  9071. esac
  9072. ;;
  9073. *)
  9074. lt_use_gnu_ld_interface=yes
  9075. ;;
  9076. esac
  9077. fi
  9078. if test yes = "$lt_use_gnu_ld_interface"; then
  9079. # If archive_cmds runs LD, not CC, wlarc should be empty
  9080. wlarc='$wl'
  9081. # Set some defaults for GNU ld with shared library support. These
  9082. # are reset later if shared libraries are not supported. Putting them
  9083. # here allows them to be overridden if necessary.
  9084. runpath_var=LD_RUN_PATH
  9085. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9086. export_dynamic_flag_spec='$wl--export-dynamic'
  9087. # ancient GNU ld didn't support --whole-archive et. al.
  9088. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9089. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9090. else
  9091. whole_archive_flag_spec=
  9092. fi
  9093. supports_anon_versioning=no
  9094. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9095. *GNU\ gold*) supports_anon_versioning=yes ;;
  9096. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9097. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9098. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9099. *\ 2.11.*) ;; # other 2.11 versions
  9100. *) supports_anon_versioning=yes ;;
  9101. esac
  9102. # See if GNU ld supports shared libraries.
  9103. case $host_os in
  9104. aix[3-9]*)
  9105. # On AIX/PPC, the GNU linker is very broken
  9106. if test ia64 != "$host_cpu"; then
  9107. ld_shlibs=no
  9108. cat <<_LT_EOF 1>&2
  9109. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9110. *** to be unable to reliably create shared libraries on AIX.
  9111. *** Therefore, libtool is disabling shared libraries support. If you
  9112. *** really care for shared libraries, you may want to install binutils
  9113. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9114. *** You will then need to restart the configuration process.
  9115. _LT_EOF
  9116. fi
  9117. ;;
  9118. amigaos*)
  9119. case $host_cpu in
  9120. powerpc)
  9121. # see comment about AmigaOS4 .so support
  9122. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9123. archive_expsym_cmds=''
  9124. ;;
  9125. m68k)
  9126. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9127. hardcode_libdir_flag_spec='-L$libdir'
  9128. hardcode_minus_L=yes
  9129. ;;
  9130. esac
  9131. ;;
  9132. beos*)
  9133. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9134. allow_undefined_flag=unsupported
  9135. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9136. # support --undefined. This deserves some investigation. FIXME
  9137. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9138. else
  9139. ld_shlibs=no
  9140. fi
  9141. ;;
  9142. cygwin* | mingw* | pw32* | cegcc*)
  9143. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9144. # as there is no search path for DLLs.
  9145. hardcode_libdir_flag_spec='-L$libdir'
  9146. export_dynamic_flag_spec='$wl--export-all-symbols'
  9147. allow_undefined_flag=unsupported
  9148. always_export_symbols=no
  9149. enable_shared_with_static_runtimes=yes
  9150. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  9151. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9152. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9154. # If the export-symbols file already is a .def file, use it as
  9155. # is; otherwise, prepend EXPORTS...
  9156. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9157. cp $export_symbols $output_objdir/$soname.def;
  9158. else
  9159. echo EXPORTS > $output_objdir/$soname.def;
  9160. cat $export_symbols >> $output_objdir/$soname.def;
  9161. fi~
  9162. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9163. else
  9164. ld_shlibs=no
  9165. fi
  9166. ;;
  9167. haiku*)
  9168. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9169. link_all_deplibs=yes
  9170. ;;
  9171. os2*)
  9172. hardcode_libdir_flag_spec='-L$libdir'
  9173. hardcode_minus_L=yes
  9174. allow_undefined_flag=unsupported
  9175. shrext_cmds=.dll
  9176. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9177. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9178. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9179. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9180. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9181. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9182. emximp -o $lib $output_objdir/$libname.def'
  9183. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9184. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9185. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9186. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9187. prefix_cmds="$SED"~
  9188. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9189. prefix_cmds="$prefix_cmds -e 1d";
  9190. fi~
  9191. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9192. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9193. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9194. emximp -o $lib $output_objdir/$libname.def'
  9195. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9196. enable_shared_with_static_runtimes=yes
  9197. ;;
  9198. interix[3-9]*)
  9199. hardcode_direct=no
  9200. hardcode_shlibpath_var=no
  9201. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9202. export_dynamic_flag_spec='$wl-E'
  9203. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9204. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9205. # default) and relocated if they conflict, which is a slow very memory
  9206. # consuming and fragmenting process. To avoid this, we pick a random,
  9207. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9208. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9209. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9210. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9211. ;;
  9212. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9213. tmp_diet=no
  9214. if test linux-dietlibc = "$host_os"; then
  9215. case $cc_basename in
  9216. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9217. esac
  9218. fi
  9219. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9220. && test no = "$tmp_diet"
  9221. then
  9222. tmp_addflag=' $pic_flag'
  9223. tmp_sharedflag='-shared'
  9224. case $cc_basename,$host_cpu in
  9225. pgcc*) # Portland Group C compiler
  9226. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9227. tmp_addflag=' $pic_flag'
  9228. ;;
  9229. pgf77* | pgf90* | pgf95* | pgfortran*)
  9230. # Portland Group f77 and f90 compilers
  9231. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9232. tmp_addflag=' $pic_flag -Mnomain' ;;
  9233. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9234. tmp_addflag=' -i_dynamic' ;;
  9235. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9236. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9237. ifc* | ifort*) # Intel Fortran compiler
  9238. tmp_addflag=' -nofor_main' ;;
  9239. lf95*) # Lahey Fortran 8.1
  9240. whole_archive_flag_spec=
  9241. tmp_sharedflag='--shared' ;;
  9242. nagfor*) # NAGFOR 5.3
  9243. tmp_sharedflag='-Wl,-shared' ;;
  9244. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9245. tmp_sharedflag='-qmkshrobj'
  9246. tmp_addflag= ;;
  9247. nvcc*) # Cuda Compiler Driver 2.2
  9248. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9249. compiler_needs_object=yes
  9250. ;;
  9251. esac
  9252. case `$CC -V 2>&1 | sed 5q` in
  9253. *Sun\ C*) # Sun C 5.9
  9254. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  9255. compiler_needs_object=yes
  9256. tmp_sharedflag='-G' ;;
  9257. *Sun\ F*) # Sun Fortran 8.3
  9258. tmp_sharedflag='-G' ;;
  9259. esac
  9260. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9261. if test yes = "$supports_anon_versioning"; then
  9262. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9263. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9264. echo "local: *; };" >> $output_objdir/$libname.ver~
  9265. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9266. fi
  9267. case $cc_basename in
  9268. tcc*)
  9269. export_dynamic_flag_spec='-rdynamic'
  9270. ;;
  9271. xlf* | bgf* | bgxlf* | mpixlf*)
  9272. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9273. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9274. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9275. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9276. if test yes = "$supports_anon_versioning"; then
  9277. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9278. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9279. echo "local: *; };" >> $output_objdir/$libname.ver~
  9280. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9281. fi
  9282. ;;
  9283. esac
  9284. else
  9285. ld_shlibs=no
  9286. fi
  9287. ;;
  9288. netbsd*)
  9289. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9290. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9291. wlarc=
  9292. else
  9293. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9294. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9295. fi
  9296. ;;
  9297. solaris*)
  9298. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9299. ld_shlibs=no
  9300. cat <<_LT_EOF 1>&2
  9301. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9302. *** create shared libraries on Solaris systems. Therefore, libtool
  9303. *** is disabling shared libraries support. We urge you to upgrade GNU
  9304. *** binutils to release 2.9.1 or newer. Another option is to modify
  9305. *** your PATH or compiler configuration so that the native linker is
  9306. *** used, and then restart.
  9307. _LT_EOF
  9308. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9309. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9310. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9311. else
  9312. ld_shlibs=no
  9313. fi
  9314. ;;
  9315. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9316. case `$LD -v 2>&1` in
  9317. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9318. ld_shlibs=no
  9319. cat <<_LT_EOF 1>&2
  9320. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9321. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9322. *** is disabling shared libraries support. We urge you to upgrade GNU
  9323. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9324. *** your PATH or compiler configuration so that the native linker is
  9325. *** used, and then restart.
  9326. _LT_EOF
  9327. ;;
  9328. *)
  9329. # For security reasons, it is highly recommended that you always
  9330. # use absolute paths for naming shared libraries, and exclude the
  9331. # DT_RUNPATH tag from executables and libraries. But doing so
  9332. # requires that you compile everything twice, which is a pain.
  9333. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9334. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9335. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9336. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9337. else
  9338. ld_shlibs=no
  9339. fi
  9340. ;;
  9341. esac
  9342. ;;
  9343. sunos4*)
  9344. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9345. wlarc=
  9346. hardcode_direct=yes
  9347. hardcode_shlibpath_var=no
  9348. ;;
  9349. *)
  9350. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9351. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9352. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9353. else
  9354. ld_shlibs=no
  9355. fi
  9356. ;;
  9357. esac
  9358. if test no = "$ld_shlibs"; then
  9359. runpath_var=
  9360. hardcode_libdir_flag_spec=
  9361. export_dynamic_flag_spec=
  9362. whole_archive_flag_spec=
  9363. fi
  9364. else
  9365. # PORTME fill in a description of your system's linker (not GNU ld)
  9366. case $host_os in
  9367. aix3*)
  9368. allow_undefined_flag=unsupported
  9369. always_export_symbols=yes
  9370. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9371. # Note: this linker hardcodes the directories in LIBPATH if there
  9372. # are no directories specified by -L.
  9373. hardcode_minus_L=yes
  9374. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9375. # Neither direct hardcoding nor static linking is supported with a
  9376. # broken collect2.
  9377. hardcode_direct=unsupported
  9378. fi
  9379. ;;
  9380. aix[4-9]*)
  9381. if test ia64 = "$host_cpu"; then
  9382. # On IA64, the linker does run time linking by default, so we don't
  9383. # have to do anything special.
  9384. aix_use_runtimelinking=no
  9385. exp_sym_flag='-Bexport'
  9386. no_entry_flag=
  9387. else
  9388. # If we're using GNU nm, then we don't want the "-C" option.
  9389. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9390. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9391. # weak defined symbols like other global defined symbols, whereas
  9392. # GNU nm marks them as "W".
  9393. # While the 'weak' keyword is ignored in the Export File, we need
  9394. # it in the Import File for the 'aix-soname' feature, so we have
  9395. # to replace the "-B" option with "-P" for AIX nm.
  9396. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9397. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9398. else
  9399. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9400. fi
  9401. aix_use_runtimelinking=no
  9402. # Test if we are trying to use run time linking or normal
  9403. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9404. # have runtime linking enabled, and use it for executables.
  9405. # For shared libraries, we enable/disable runtime linking
  9406. # depending on the kind of the shared library created -
  9407. # when "with_aix_soname,aix_use_runtimelinking" is:
  9408. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9409. # "aix,yes" lib.so shared, rtl:yes, for executables
  9410. # lib.a static archive
  9411. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9412. # lib.a(lib.so.V) shared, rtl:no, for executables
  9413. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9414. # lib.a(lib.so.V) shared, rtl:no
  9415. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9416. # lib.a static archive
  9417. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9418. for ld_flag in $LDFLAGS; do
  9419. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9420. aix_use_runtimelinking=yes
  9421. break
  9422. fi
  9423. done
  9424. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9425. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9426. # so we don't have lib.a shared libs to link our executables.
  9427. # We have to force runtime linking in this case.
  9428. aix_use_runtimelinking=yes
  9429. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9430. fi
  9431. ;;
  9432. esac
  9433. exp_sym_flag='-bexport'
  9434. no_entry_flag='-bnoentry'
  9435. fi
  9436. # When large executables or shared objects are built, AIX ld can
  9437. # have problems creating the table of contents. If linking a library
  9438. # or program results in "error TOC overflow" add -mminimal-toc to
  9439. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9440. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9441. archive_cmds=''
  9442. hardcode_direct=yes
  9443. hardcode_direct_absolute=yes
  9444. hardcode_libdir_separator=':'
  9445. link_all_deplibs=yes
  9446. file_list_spec='$wl-f,'
  9447. case $with_aix_soname,$aix_use_runtimelinking in
  9448. aix,*) ;; # traditional, no import file
  9449. svr4,* | *,yes) # use import file
  9450. # The Import File defines what to hardcode.
  9451. hardcode_direct=no
  9452. hardcode_direct_absolute=no
  9453. ;;
  9454. esac
  9455. if test yes = "$GCC"; then
  9456. case $host_os in aix4.[012]|aix4.[012].*)
  9457. # We only want to do this on AIX 4.2 and lower, the check
  9458. # below for broken collect2 doesn't work under 4.3+
  9459. collect2name=`$CC -print-prog-name=collect2`
  9460. if test -f "$collect2name" &&
  9461. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9462. then
  9463. # We have reworked collect2
  9464. :
  9465. else
  9466. # We have old collect2
  9467. hardcode_direct=unsupported
  9468. # It fails to find uninstalled libraries when the uninstalled
  9469. # path is not listed in the libpath. Setting hardcode_minus_L
  9470. # to unsupported forces relinking
  9471. hardcode_minus_L=yes
  9472. hardcode_libdir_flag_spec='-L$libdir'
  9473. hardcode_libdir_separator=
  9474. fi
  9475. ;;
  9476. esac
  9477. shared_flag='-shared'
  9478. if test yes = "$aix_use_runtimelinking"; then
  9479. shared_flag="$shared_flag "'$wl-G'
  9480. fi
  9481. # Need to ensure runtime linking is disabled for the traditional
  9482. # shared library, or the linker may eventually find shared libraries
  9483. # /with/ Import File - we do not want to mix them.
  9484. shared_flag_aix='-shared'
  9485. shared_flag_svr4='-shared $wl-G'
  9486. else
  9487. # not using gcc
  9488. if test ia64 = "$host_cpu"; then
  9489. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9490. # chokes on -Wl,-G. The following line is correct:
  9491. shared_flag='-G'
  9492. else
  9493. if test yes = "$aix_use_runtimelinking"; then
  9494. shared_flag='$wl-G'
  9495. else
  9496. shared_flag='$wl-bM:SRE'
  9497. fi
  9498. shared_flag_aix='$wl-bM:SRE'
  9499. shared_flag_svr4='$wl-G'
  9500. fi
  9501. fi
  9502. export_dynamic_flag_spec='$wl-bexpall'
  9503. # It seems that -bexpall does not export symbols beginning with
  9504. # underscore (_), so it is better to generate a list of symbols to export.
  9505. always_export_symbols=yes
  9506. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9507. # Warning - without using the other runtime loading flags (-brtl),
  9508. # -berok will link without error, but may produce a broken library.
  9509. allow_undefined_flag='-berok'
  9510. # Determine the default libpath from the value encoded in an
  9511. # empty executable.
  9512. if test set = "${lt_cv_aix_libpath+set}"; then
  9513. aix_libpath=$lt_cv_aix_libpath
  9514. else
  9515. if ${lt_cv_aix_libpath_+:} false; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9519. /* end confdefs.h. */
  9520. int
  9521. main ()
  9522. {
  9523. ;
  9524. return 0;
  9525. }
  9526. _ACEOF
  9527. if ac_fn_c_try_link "$LINENO"; then :
  9528. lt_aix_libpath_sed='
  9529. /Import File Strings/,/^$/ {
  9530. /^0/ {
  9531. s/^0 *\([^ ]*\) *$/\1/
  9532. p
  9533. }
  9534. }'
  9535. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9536. # Check for a 64-bit object if we didn't find anything.
  9537. if test -z "$lt_cv_aix_libpath_"; then
  9538. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9539. fi
  9540. fi
  9541. rm -f core conftest.err conftest.$ac_objext \
  9542. conftest$ac_exeext conftest.$ac_ext
  9543. if test -z "$lt_cv_aix_libpath_"; then
  9544. lt_cv_aix_libpath_=/usr/lib:/lib
  9545. fi
  9546. fi
  9547. aix_libpath=$lt_cv_aix_libpath_
  9548. fi
  9549. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9550. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9551. else
  9552. if test ia64 = "$host_cpu"; then
  9553. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9554. allow_undefined_flag="-z nodefs"
  9555. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9556. else
  9557. # Determine the default libpath from the value encoded in an
  9558. # empty executable.
  9559. if test set = "${lt_cv_aix_libpath+set}"; then
  9560. aix_libpath=$lt_cv_aix_libpath
  9561. else
  9562. if ${lt_cv_aix_libpath_+:} false; then :
  9563. $as_echo_n "(cached) " >&6
  9564. else
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. int
  9568. main ()
  9569. {
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. if ac_fn_c_try_link "$LINENO"; then :
  9575. lt_aix_libpath_sed='
  9576. /Import File Strings/,/^$/ {
  9577. /^0/ {
  9578. s/^0 *\([^ ]*\) *$/\1/
  9579. p
  9580. }
  9581. }'
  9582. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9583. # Check for a 64-bit object if we didn't find anything.
  9584. if test -z "$lt_cv_aix_libpath_"; then
  9585. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9586. fi
  9587. fi
  9588. rm -f core conftest.err conftest.$ac_objext \
  9589. conftest$ac_exeext conftest.$ac_ext
  9590. if test -z "$lt_cv_aix_libpath_"; then
  9591. lt_cv_aix_libpath_=/usr/lib:/lib
  9592. fi
  9593. fi
  9594. aix_libpath=$lt_cv_aix_libpath_
  9595. fi
  9596. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9597. # Warning - without using the other run time loading flags,
  9598. # -berok will link without error, but may produce a broken library.
  9599. no_undefined_flag=' $wl-bernotok'
  9600. allow_undefined_flag=' $wl-berok'
  9601. if test yes = "$with_gnu_ld"; then
  9602. # We only use this code for GNU lds that support --whole-archive.
  9603. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9604. else
  9605. # Exported symbols can be pulled into shared objects from archives
  9606. whole_archive_flag_spec='$convenience'
  9607. fi
  9608. archive_cmds_need_lc=yes
  9609. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9610. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9611. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9612. if test svr4 != "$with_aix_soname"; then
  9613. # This is similar to how AIX traditionally builds its shared libraries.
  9614. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9615. fi
  9616. if test aix != "$with_aix_soname"; then
  9617. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9618. else
  9619. # used by -dlpreopen to get the symbols
  9620. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9621. fi
  9622. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9623. fi
  9624. fi
  9625. ;;
  9626. amigaos*)
  9627. case $host_cpu in
  9628. powerpc)
  9629. # see comment about AmigaOS4 .so support
  9630. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9631. archive_expsym_cmds=''
  9632. ;;
  9633. m68k)
  9634. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9635. hardcode_libdir_flag_spec='-L$libdir'
  9636. hardcode_minus_L=yes
  9637. ;;
  9638. esac
  9639. ;;
  9640. bsdi[45]*)
  9641. export_dynamic_flag_spec=-rdynamic
  9642. ;;
  9643. cygwin* | mingw* | pw32* | cegcc*)
  9644. # When not using gcc, we currently assume that we are using
  9645. # Microsoft Visual C++.
  9646. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9647. # no search path for DLLs.
  9648. case $cc_basename in
  9649. cl*)
  9650. # Native MSVC
  9651. hardcode_libdir_flag_spec=' '
  9652. allow_undefined_flag=unsupported
  9653. always_export_symbols=yes
  9654. file_list_spec='@'
  9655. # Tell ltmain to make .lib files, not .a files.
  9656. libext=lib
  9657. # Tell ltmain to make .dll files, not .so files.
  9658. shrext_cmds=.dll
  9659. # FIXME: Setting linknames here is a bad hack.
  9660. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9661. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9662. cp "$export_symbols" "$output_objdir/$soname.def";
  9663. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9664. else
  9665. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9666. fi~
  9667. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9668. linknames='
  9669. # The linker will not automatically build a static lib if we build a DLL.
  9670. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9671. enable_shared_with_static_runtimes=yes
  9672. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9673. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9674. # Don't use ranlib
  9675. old_postinstall_cmds='chmod 644 $oldlib'
  9676. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9677. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9678. case $lt_outputfile in
  9679. *.exe|*.EXE) ;;
  9680. *)
  9681. lt_outputfile=$lt_outputfile.exe
  9682. lt_tool_outputfile=$lt_tool_outputfile.exe
  9683. ;;
  9684. esac~
  9685. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9686. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9687. $RM "$lt_outputfile.manifest";
  9688. fi'
  9689. ;;
  9690. *)
  9691. # Assume MSVC wrapper
  9692. hardcode_libdir_flag_spec=' '
  9693. allow_undefined_flag=unsupported
  9694. # Tell ltmain to make .lib files, not .a files.
  9695. libext=lib
  9696. # Tell ltmain to make .dll files, not .so files.
  9697. shrext_cmds=.dll
  9698. # FIXME: Setting linknames here is a bad hack.
  9699. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9700. # The linker will automatically build a .lib file if we build a DLL.
  9701. old_archive_from_new_cmds='true'
  9702. # FIXME: Should let the user specify the lib program.
  9703. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9704. enable_shared_with_static_runtimes=yes
  9705. ;;
  9706. esac
  9707. ;;
  9708. darwin* | rhapsody*)
  9709. archive_cmds_need_lc=no
  9710. hardcode_direct=no
  9711. hardcode_automatic=yes
  9712. hardcode_shlibpath_var=unsupported
  9713. if test yes = "$lt_cv_ld_force_load"; then
  9714. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9715. else
  9716. whole_archive_flag_spec=''
  9717. fi
  9718. link_all_deplibs=yes
  9719. allow_undefined_flag=$_lt_dar_allow_undefined
  9720. case $cc_basename in
  9721. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9722. *) _lt_dar_can_shared=$GCC ;;
  9723. esac
  9724. if test yes = "$_lt_dar_can_shared"; then
  9725. output_verbose_link_cmd=func_echo_all
  9726. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9727. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9728. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9729. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9730. else
  9731. ld_shlibs=no
  9732. fi
  9733. ;;
  9734. dgux*)
  9735. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9736. hardcode_libdir_flag_spec='-L$libdir'
  9737. hardcode_shlibpath_var=no
  9738. ;;
  9739. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9740. # support. Future versions do this automatically, but an explicit c++rt0.o
  9741. # does not break anything, and helps significantly (at the cost of a little
  9742. # extra space).
  9743. freebsd2.2*)
  9744. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9745. hardcode_libdir_flag_spec='-R$libdir'
  9746. hardcode_direct=yes
  9747. hardcode_shlibpath_var=no
  9748. ;;
  9749. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9750. freebsd2.*)
  9751. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9752. hardcode_direct=yes
  9753. hardcode_minus_L=yes
  9754. hardcode_shlibpath_var=no
  9755. ;;
  9756. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9757. freebsd* | dragonfly*)
  9758. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9759. hardcode_libdir_flag_spec='-R$libdir'
  9760. hardcode_direct=yes
  9761. hardcode_shlibpath_var=no
  9762. ;;
  9763. hpux9*)
  9764. if test yes = "$GCC"; then
  9765. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9766. else
  9767. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9768. fi
  9769. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9770. hardcode_libdir_separator=:
  9771. hardcode_direct=yes
  9772. # hardcode_minus_L: Not really in the search PATH,
  9773. # but as the default location of the library.
  9774. hardcode_minus_L=yes
  9775. export_dynamic_flag_spec='$wl-E'
  9776. ;;
  9777. hpux10*)
  9778. if test yes,no = "$GCC,$with_gnu_ld"; then
  9779. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9780. else
  9781. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9782. fi
  9783. if test no = "$with_gnu_ld"; then
  9784. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9785. hardcode_libdir_separator=:
  9786. hardcode_direct=yes
  9787. hardcode_direct_absolute=yes
  9788. export_dynamic_flag_spec='$wl-E'
  9789. # hardcode_minus_L: Not really in the search PATH,
  9790. # but as the default location of the library.
  9791. hardcode_minus_L=yes
  9792. fi
  9793. ;;
  9794. hpux11*)
  9795. if test yes,no = "$GCC,$with_gnu_ld"; then
  9796. case $host_cpu in
  9797. hppa*64*)
  9798. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9799. ;;
  9800. ia64*)
  9801. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9802. ;;
  9803. *)
  9804. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9805. ;;
  9806. esac
  9807. else
  9808. case $host_cpu in
  9809. hppa*64*)
  9810. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9811. ;;
  9812. ia64*)
  9813. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9814. ;;
  9815. *)
  9816. # Older versions of the 11.00 compiler do not understand -b yet
  9817. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9819. $as_echo_n "checking if $CC understands -b... " >&6; }
  9820. if ${lt_cv_prog_compiler__b+:} false; then :
  9821. $as_echo_n "(cached) " >&6
  9822. else
  9823. lt_cv_prog_compiler__b=no
  9824. save_LDFLAGS=$LDFLAGS
  9825. LDFLAGS="$LDFLAGS -b"
  9826. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9827. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9828. # The linker can only warn and ignore the option if not recognized
  9829. # So say no if there are warnings
  9830. if test -s conftest.err; then
  9831. # Append any errors to the config.log.
  9832. cat conftest.err 1>&5
  9833. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9834. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9835. if diff conftest.exp conftest.er2 >/dev/null; then
  9836. lt_cv_prog_compiler__b=yes
  9837. fi
  9838. else
  9839. lt_cv_prog_compiler__b=yes
  9840. fi
  9841. fi
  9842. $RM -r conftest*
  9843. LDFLAGS=$save_LDFLAGS
  9844. fi
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9846. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9847. if test yes = "$lt_cv_prog_compiler__b"; then
  9848. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9849. else
  9850. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9851. fi
  9852. ;;
  9853. esac
  9854. fi
  9855. if test no = "$with_gnu_ld"; then
  9856. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9857. hardcode_libdir_separator=:
  9858. case $host_cpu in
  9859. hppa*64*|ia64*)
  9860. hardcode_direct=no
  9861. hardcode_shlibpath_var=no
  9862. ;;
  9863. *)
  9864. hardcode_direct=yes
  9865. hardcode_direct_absolute=yes
  9866. export_dynamic_flag_spec='$wl-E'
  9867. # hardcode_minus_L: Not really in the search PATH,
  9868. # but as the default location of the library.
  9869. hardcode_minus_L=yes
  9870. ;;
  9871. esac
  9872. fi
  9873. ;;
  9874. irix5* | irix6* | nonstopux*)
  9875. if test yes = "$GCC"; then
  9876. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9877. # Try to use the -exported_symbol ld option, if it does not
  9878. # work, assume that -exports_file does not work either and
  9879. # implicitly export all symbols.
  9880. # This should be the same for all languages, so no per-tag cache variable.
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9882. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9883. if ${lt_cv_irix_exported_symbol+:} false; then :
  9884. $as_echo_n "(cached) " >&6
  9885. else
  9886. save_LDFLAGS=$LDFLAGS
  9887. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9889. /* end confdefs.h. */
  9890. int foo (void) { return 0; }
  9891. _ACEOF
  9892. if ac_fn_c_try_link "$LINENO"; then :
  9893. lt_cv_irix_exported_symbol=yes
  9894. else
  9895. lt_cv_irix_exported_symbol=no
  9896. fi
  9897. rm -f core conftest.err conftest.$ac_objext \
  9898. conftest$ac_exeext conftest.$ac_ext
  9899. LDFLAGS=$save_LDFLAGS
  9900. fi
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9902. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9903. if test yes = "$lt_cv_irix_exported_symbol"; then
  9904. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9905. fi
  9906. else
  9907. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9908. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9909. fi
  9910. archive_cmds_need_lc='no'
  9911. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9912. hardcode_libdir_separator=:
  9913. inherit_rpath=yes
  9914. link_all_deplibs=yes
  9915. ;;
  9916. linux*)
  9917. case $cc_basename in
  9918. tcc*)
  9919. # Fabrice Bellard et al's Tiny C Compiler
  9920. ld_shlibs=yes
  9921. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9922. ;;
  9923. esac
  9924. ;;
  9925. netbsd*)
  9926. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9927. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9928. else
  9929. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9930. fi
  9931. hardcode_libdir_flag_spec='-R$libdir'
  9932. hardcode_direct=yes
  9933. hardcode_shlibpath_var=no
  9934. ;;
  9935. newsos6)
  9936. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9937. hardcode_direct=yes
  9938. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9939. hardcode_libdir_separator=:
  9940. hardcode_shlibpath_var=no
  9941. ;;
  9942. *nto* | *qnx*)
  9943. ;;
  9944. openbsd* | bitrig*)
  9945. if test -f /usr/libexec/ld.so; then
  9946. hardcode_direct=yes
  9947. hardcode_shlibpath_var=no
  9948. hardcode_direct_absolute=yes
  9949. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9950. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9951. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9952. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9953. export_dynamic_flag_spec='$wl-E'
  9954. else
  9955. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9956. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9957. fi
  9958. else
  9959. ld_shlibs=no
  9960. fi
  9961. ;;
  9962. os2*)
  9963. hardcode_libdir_flag_spec='-L$libdir'
  9964. hardcode_minus_L=yes
  9965. allow_undefined_flag=unsupported
  9966. shrext_cmds=.dll
  9967. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9968. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9969. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9970. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9971. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9972. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9973. emximp -o $lib $output_objdir/$libname.def'
  9974. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9975. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9976. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9977. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9978. prefix_cmds="$SED"~
  9979. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9980. prefix_cmds="$prefix_cmds -e 1d";
  9981. fi~
  9982. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9983. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9984. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9985. emximp -o $lib $output_objdir/$libname.def'
  9986. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9987. enable_shared_with_static_runtimes=yes
  9988. ;;
  9989. osf3*)
  9990. if test yes = "$GCC"; then
  9991. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9992. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9993. else
  9994. allow_undefined_flag=' -expect_unresolved \*'
  9995. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9996. fi
  9997. archive_cmds_need_lc='no'
  9998. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9999. hardcode_libdir_separator=:
  10000. ;;
  10001. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10002. if test yes = "$GCC"; then
  10003. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10004. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  10005. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10006. else
  10007. allow_undefined_flag=' -expect_unresolved \*'
  10008. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  10009. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  10010. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  10011. # Both c and cxx compiler support -rpath directly
  10012. hardcode_libdir_flag_spec='-rpath $libdir'
  10013. fi
  10014. archive_cmds_need_lc='no'
  10015. hardcode_libdir_separator=:
  10016. ;;
  10017. solaris*)
  10018. no_undefined_flag=' -z defs'
  10019. if test yes = "$GCC"; then
  10020. wlarc='$wl'
  10021. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10022. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10023. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10024. else
  10025. case `$CC -V 2>&1` in
  10026. *"Compilers 5.0"*)
  10027. wlarc=''
  10028. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10029. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10030. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10031. ;;
  10032. *)
  10033. wlarc='$wl'
  10034. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10035. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10036. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10037. ;;
  10038. esac
  10039. fi
  10040. hardcode_libdir_flag_spec='-R$libdir'
  10041. hardcode_shlibpath_var=no
  10042. case $host_os in
  10043. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10044. *)
  10045. # The compiler driver will combine and reorder linker options,
  10046. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10047. # but is careful enough not to reorder.
  10048. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10049. if test yes = "$GCC"; then
  10050. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10051. else
  10052. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10053. fi
  10054. ;;
  10055. esac
  10056. link_all_deplibs=yes
  10057. ;;
  10058. sunos4*)
  10059. if test sequent = "$host_vendor"; then
  10060. # Use $CC to link under sequent, because it throws in some extra .o
  10061. # files that make .init and .fini sections work.
  10062. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10063. else
  10064. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10065. fi
  10066. hardcode_libdir_flag_spec='-L$libdir'
  10067. hardcode_direct=yes
  10068. hardcode_minus_L=yes
  10069. hardcode_shlibpath_var=no
  10070. ;;
  10071. sysv4)
  10072. case $host_vendor in
  10073. sni)
  10074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10075. hardcode_direct=yes # is this really true???
  10076. ;;
  10077. siemens)
  10078. ## LD is ld it makes a PLAMLIB
  10079. ## CC just makes a GrossModule.
  10080. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10081. reload_cmds='$CC -r -o $output$reload_objs'
  10082. hardcode_direct=no
  10083. ;;
  10084. motorola)
  10085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10086. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10087. ;;
  10088. esac
  10089. runpath_var='LD_RUN_PATH'
  10090. hardcode_shlibpath_var=no
  10091. ;;
  10092. sysv4.3*)
  10093. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10094. hardcode_shlibpath_var=no
  10095. export_dynamic_flag_spec='-Bexport'
  10096. ;;
  10097. sysv4*MP*)
  10098. if test -d /usr/nec; then
  10099. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10100. hardcode_shlibpath_var=no
  10101. runpath_var=LD_RUN_PATH
  10102. hardcode_runpath_var=yes
  10103. ld_shlibs=yes
  10104. fi
  10105. ;;
  10106. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10107. no_undefined_flag='$wl-z,text'
  10108. archive_cmds_need_lc=no
  10109. hardcode_shlibpath_var=no
  10110. runpath_var='LD_RUN_PATH'
  10111. if test yes = "$GCC"; then
  10112. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10113. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10114. else
  10115. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10116. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10117. fi
  10118. ;;
  10119. sysv5* | sco3.2v5* | sco5v6*)
  10120. # Note: We CANNOT use -z defs as we might desire, because we do not
  10121. # link with -lc, and that would cause any symbols used from libc to
  10122. # always be unresolved, which means just about no library would
  10123. # ever link correctly. If we're not using GNU ld we use -z text
  10124. # though, which does catch some bad symbols but isn't as heavy-handed
  10125. # as -z defs.
  10126. no_undefined_flag='$wl-z,text'
  10127. allow_undefined_flag='$wl-z,nodefs'
  10128. archive_cmds_need_lc=no
  10129. hardcode_shlibpath_var=no
  10130. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10131. hardcode_libdir_separator=':'
  10132. link_all_deplibs=yes
  10133. export_dynamic_flag_spec='$wl-Bexport'
  10134. runpath_var='LD_RUN_PATH'
  10135. if test yes = "$GCC"; then
  10136. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10137. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10138. else
  10139. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10140. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10141. fi
  10142. ;;
  10143. uts4*)
  10144. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10145. hardcode_libdir_flag_spec='-L$libdir'
  10146. hardcode_shlibpath_var=no
  10147. ;;
  10148. *)
  10149. ld_shlibs=no
  10150. ;;
  10151. esac
  10152. if test sni = "$host_vendor"; then
  10153. case $host in
  10154. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10155. export_dynamic_flag_spec='$wl-Blargedynsym'
  10156. ;;
  10157. esac
  10158. fi
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10161. $as_echo "$ld_shlibs" >&6; }
  10162. test no = "$ld_shlibs" && can_build_shared=no
  10163. with_gnu_ld=$with_gnu_ld
  10164. #
  10165. # Do we need to explicitly link libc?
  10166. #
  10167. case "x$archive_cmds_need_lc" in
  10168. x|xyes)
  10169. # Assume -lc should be added
  10170. archive_cmds_need_lc=yes
  10171. if test yes,yes = "$GCC,$enable_shared"; then
  10172. case $archive_cmds in
  10173. *'~'*)
  10174. # FIXME: we may have to deal with multi-command sequences.
  10175. ;;
  10176. '$CC '*)
  10177. # Test whether the compiler implicitly links with -lc since on some
  10178. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10179. # to ld, don't add -lc before -lgcc.
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10181. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10182. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10183. $as_echo_n "(cached) " >&6
  10184. else
  10185. $RM conftest*
  10186. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10188. (eval $ac_compile) 2>&5
  10189. ac_status=$?
  10190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10191. test $ac_status = 0; } 2>conftest.err; then
  10192. soname=conftest
  10193. lib=conftest
  10194. libobjs=conftest.$ac_objext
  10195. deplibs=
  10196. wl=$lt_prog_compiler_wl
  10197. pic_flag=$lt_prog_compiler_pic
  10198. compiler_flags=-v
  10199. linker_flags=-v
  10200. verstring=
  10201. output_objdir=.
  10202. libname=conftest
  10203. lt_save_allow_undefined_flag=$allow_undefined_flag
  10204. allow_undefined_flag=
  10205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10206. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10207. ac_status=$?
  10208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10209. test $ac_status = 0; }
  10210. then
  10211. lt_cv_archive_cmds_need_lc=no
  10212. else
  10213. lt_cv_archive_cmds_need_lc=yes
  10214. fi
  10215. allow_undefined_flag=$lt_save_allow_undefined_flag
  10216. else
  10217. cat conftest.err 1>&5
  10218. fi
  10219. $RM conftest*
  10220. fi
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10222. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10223. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10224. ;;
  10225. esac
  10226. fi
  10227. ;;
  10228. esac
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10230. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10231. if test yes = "$GCC"; then
  10232. case $host_os in
  10233. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10234. *) lt_awk_arg='/^libraries:/' ;;
  10235. esac
  10236. case $host_os in
  10237. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10238. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10239. esac
  10240. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq -e "s/lib\/\.\.\/lib64xthead\/lp64d/lib64xthead\/lp64d/g" -e "s/lp64d\/\.\.\/lib64xthead\/lp64d/lp64d/g" -e "s/lib64xthead\/lib64xthead/lib64xthead/g"`
  10241. case $lt_search_path_spec in
  10242. *\;*)
  10243. # if the path contains ";" then we assume it to be the separator
  10244. # otherwise default to the standard path separator (i.e. ":") - it is
  10245. # assumed that no part of a normal pathname contains ";" but that should
  10246. # okay in the real world where ";" in dirpaths is itself problematic.
  10247. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10248. ;;
  10249. *)
  10250. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10251. ;;
  10252. esac
  10253. # Ok, now we have the path, separated by spaces, we can step through it
  10254. # and add multilib dir if necessary...
  10255. lt_tmp_lt_search_path_spec=
  10256. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10257. # ...but if some path component already ends with the multilib dir we assume
  10258. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10259. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10260. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10261. lt_multi_os_dir=
  10262. ;;
  10263. esac
  10264. for lt_sys_path in $lt_search_path_spec; do
  10265. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10266. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10267. elif test -n "$lt_multi_os_dir"; then
  10268. test -d "$lt_sys_path" && \
  10269. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10270. fi
  10271. done
  10272. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10273. BEGIN {RS = " "; FS = "/|\n";} {
  10274. lt_foo = "";
  10275. lt_count = 0;
  10276. for (lt_i = NF; lt_i > 0; lt_i--) {
  10277. if ($lt_i != "" && $lt_i != ".") {
  10278. if ($lt_i == "..") {
  10279. lt_count++;
  10280. } else {
  10281. if (lt_count == 0) {
  10282. lt_foo = "/" $lt_i lt_foo;
  10283. } else {
  10284. lt_count--;
  10285. }
  10286. }
  10287. }
  10288. }
  10289. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10290. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10291. }'`
  10292. # AWK program above erroneously prepends '/' to C:/dos/paths
  10293. # for these hosts.
  10294. case $host_os in
  10295. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10296. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10297. esac
  10298. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10299. else
  10300. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10301. fi
  10302. library_names_spec=
  10303. libname_spec='lib$name'
  10304. soname_spec=
  10305. shrext_cmds=.so
  10306. postinstall_cmds=
  10307. postuninstall_cmds=
  10308. finish_cmds=
  10309. finish_eval=
  10310. shlibpath_var=
  10311. shlibpath_overrides_runpath=unknown
  10312. version_type=none
  10313. dynamic_linker="$host_os ld.so"
  10314. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10315. need_lib_prefix=unknown
  10316. hardcode_into_libs=no
  10317. # when you set need_version to no, make sure it does not cause -set_version
  10318. # flags to be left without arguments
  10319. need_version=unknown
  10320. case $host_os in
  10321. aix3*)
  10322. version_type=linux # correct to gnu/linux during the next big refactor
  10323. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10324. shlibpath_var=LIBPATH
  10325. # AIX 3 has no versioning support, so we append a major version to the name.
  10326. soname_spec='$libname$release$shared_ext$major'
  10327. ;;
  10328. aix[4-9]*)
  10329. version_type=linux # correct to gnu/linux during the next big refactor
  10330. need_lib_prefix=no
  10331. need_version=no
  10332. hardcode_into_libs=yes
  10333. if test ia64 = "$host_cpu"; then
  10334. # AIX 5 supports IA64
  10335. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10336. shlibpath_var=LD_LIBRARY_PATH
  10337. else
  10338. # With GCC up to 2.95.x, collect2 would create an import file
  10339. # for dependence libraries. The import file would start with
  10340. # the line '#! .'. This would cause the generated library to
  10341. # depend on '.', always an invalid library. This was fixed in
  10342. # development snapshots of GCC prior to 3.0.
  10343. case $host_os in
  10344. aix4 | aix4.[01] | aix4.[01].*)
  10345. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10346. echo ' yes '
  10347. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10348. :
  10349. else
  10350. can_build_shared=no
  10351. fi
  10352. ;;
  10353. esac
  10354. # Using Import Files as archive members, it is possible to support
  10355. # filename-based versioning of shared library archives on AIX. While
  10356. # this would work for both with and without runtime linking, it will
  10357. # prevent static linking of such archives. So we do filename-based
  10358. # shared library versioning with .so extension only, which is used
  10359. # when both runtime linking and shared linking is enabled.
  10360. # Unfortunately, runtime linking may impact performance, so we do
  10361. # not want this to be the default eventually. Also, we use the
  10362. # versioned .so libs for executables only if there is the -brtl
  10363. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10364. # To allow for filename-based versioning support, we need to create
  10365. # libNAME.so.V as an archive file, containing:
  10366. # *) an Import File, referring to the versioned filename of the
  10367. # archive as well as the shared archive member, telling the
  10368. # bitwidth (32 or 64) of that shared object, and providing the
  10369. # list of exported symbols of that shared object, eventually
  10370. # decorated with the 'weak' keyword
  10371. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10372. # it being seen by the linker.
  10373. # At run time we better use the real file rather than another symlink,
  10374. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10375. case $with_aix_soname,$aix_use_runtimelinking in
  10376. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10377. # soname into executable. Probably we can add versioning support to
  10378. # collect2, so additional links can be useful in future.
  10379. aix,yes) # traditional libtool
  10380. dynamic_linker='AIX unversionable lib.so'
  10381. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10382. # instead of lib<name>.a to let people know that these are not
  10383. # typical AIX shared libraries.
  10384. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10385. ;;
  10386. aix,no) # traditional AIX only
  10387. dynamic_linker='AIX lib.a(lib.so.V)'
  10388. # We preserve .a as extension for shared libraries through AIX4.2
  10389. # and later when we are not doing run time linking.
  10390. library_names_spec='$libname$release.a $libname.a'
  10391. soname_spec='$libname$release$shared_ext$major'
  10392. ;;
  10393. svr4,*) # full svr4 only
  10394. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10395. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10396. # We do not specify a path in Import Files, so LIBPATH fires.
  10397. shlibpath_overrides_runpath=yes
  10398. ;;
  10399. *,yes) # both, prefer svr4
  10400. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10401. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10402. # unpreferred sharedlib libNAME.a needs extra handling
  10403. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10404. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10405. # We do not specify a path in Import Files, so LIBPATH fires.
  10406. shlibpath_overrides_runpath=yes
  10407. ;;
  10408. *,no) # both, prefer aix
  10409. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10410. library_names_spec='$libname$release.a $libname.a'
  10411. soname_spec='$libname$release$shared_ext$major'
  10412. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10413. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10414. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10415. ;;
  10416. esac
  10417. shlibpath_var=LIBPATH
  10418. fi
  10419. ;;
  10420. amigaos*)
  10421. case $host_cpu in
  10422. powerpc)
  10423. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10424. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10425. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10426. ;;
  10427. m68k)
  10428. library_names_spec='$libname.ixlibrary $libname.a'
  10429. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10430. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10431. ;;
  10432. esac
  10433. ;;
  10434. beos*)
  10435. library_names_spec='$libname$shared_ext'
  10436. dynamic_linker="$host_os ld.so"
  10437. shlibpath_var=LIBRARY_PATH
  10438. ;;
  10439. bsdi[45]*)
  10440. version_type=linux # correct to gnu/linux during the next big refactor
  10441. need_version=no
  10442. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10443. soname_spec='$libname$release$shared_ext$major'
  10444. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10445. shlibpath_var=LD_LIBRARY_PATH
  10446. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10447. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10448. # the default ld.so.conf also contains /usr/contrib/lib and
  10449. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10450. # libtool to hard-code these into programs
  10451. ;;
  10452. cygwin* | mingw* | pw32* | cegcc*)
  10453. version_type=windows
  10454. shrext_cmds=.dll
  10455. need_version=no
  10456. need_lib_prefix=no
  10457. case $GCC,$cc_basename in
  10458. yes,*)
  10459. # gcc
  10460. library_names_spec='$libname.dll.a'
  10461. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10462. postinstall_cmds='base_file=`basename \$file`~
  10463. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10464. dldir=$destdir/`dirname \$dlpath`~
  10465. test -d \$dldir || mkdir -p \$dldir~
  10466. $install_prog $dir/$dlname \$dldir/$dlname~
  10467. chmod a+x \$dldir/$dlname~
  10468. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10469. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10470. fi'
  10471. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10472. dlpath=$dir/\$dldll~
  10473. $RM \$dlpath'
  10474. shlibpath_overrides_runpath=yes
  10475. case $host_os in
  10476. cygwin*)
  10477. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10478. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10479. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10480. ;;
  10481. mingw* | cegcc*)
  10482. # MinGW DLLs use traditional 'lib' prefix
  10483. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10484. ;;
  10485. pw32*)
  10486. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10487. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10488. ;;
  10489. esac
  10490. dynamic_linker='Win32 ld.exe'
  10491. ;;
  10492. *,cl*)
  10493. # Native MSVC
  10494. libname_spec='$name'
  10495. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10496. library_names_spec='$libname.dll.lib'
  10497. case $build_os in
  10498. mingw*)
  10499. sys_lib_search_path_spec=
  10500. lt_save_ifs=$IFS
  10501. IFS=';'
  10502. for lt_path in $LIB
  10503. do
  10504. IFS=$lt_save_ifs
  10505. # Let DOS variable expansion print the short 8.3 style file name.
  10506. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10507. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10508. done
  10509. IFS=$lt_save_ifs
  10510. # Convert to MSYS style.
  10511. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10512. ;;
  10513. cygwin*)
  10514. # Convert to unix form, then to dos form, then back to unix form
  10515. # but this time dos style (no spaces!) so that the unix form looks
  10516. # like /cygdrive/c/PROGRA~1:/cygdr...
  10517. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10518. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10519. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10520. ;;
  10521. *)
  10522. sys_lib_search_path_spec=$LIB
  10523. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10524. # It is most probably a Windows format PATH.
  10525. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10526. else
  10527. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10528. fi
  10529. # FIXME: find the short name or the path components, as spaces are
  10530. # common. (e.g. "Program Files" -> "PROGRA~1")
  10531. ;;
  10532. esac
  10533. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10534. postinstall_cmds='base_file=`basename \$file`~
  10535. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10536. dldir=$destdir/`dirname \$dlpath`~
  10537. test -d \$dldir || mkdir -p \$dldir~
  10538. $install_prog $dir/$dlname \$dldir/$dlname'
  10539. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10540. dlpath=$dir/\$dldll~
  10541. $RM \$dlpath'
  10542. shlibpath_overrides_runpath=yes
  10543. dynamic_linker='Win32 link.exe'
  10544. ;;
  10545. *)
  10546. # Assume MSVC wrapper
  10547. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10548. dynamic_linker='Win32 ld.exe'
  10549. ;;
  10550. esac
  10551. # FIXME: first we should search . and the directory the executable is in
  10552. shlibpath_var=PATH
  10553. ;;
  10554. darwin* | rhapsody*)
  10555. dynamic_linker="$host_os dyld"
  10556. version_type=darwin
  10557. need_lib_prefix=no
  10558. need_version=no
  10559. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10560. soname_spec='$libname$release$major$shared_ext'
  10561. shlibpath_overrides_runpath=yes
  10562. shlibpath_var=DYLD_LIBRARY_PATH
  10563. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10564. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10565. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10566. ;;
  10567. dgux*)
  10568. version_type=linux # correct to gnu/linux during the next big refactor
  10569. need_lib_prefix=no
  10570. need_version=no
  10571. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10572. soname_spec='$libname$release$shared_ext$major'
  10573. shlibpath_var=LD_LIBRARY_PATH
  10574. ;;
  10575. freebsd* | dragonfly*)
  10576. # DragonFly does not have aout. When/if they implement a new
  10577. # versioning mechanism, adjust this.
  10578. if test -x /usr/bin/objformat; then
  10579. objformat=`/usr/bin/objformat`
  10580. else
  10581. case $host_os in
  10582. freebsd[23].*) objformat=aout ;;
  10583. *) objformat=elf ;;
  10584. esac
  10585. fi
  10586. version_type=freebsd-$objformat
  10587. case $version_type in
  10588. freebsd-elf*)
  10589. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10590. soname_spec='$libname$release$shared_ext$major'
  10591. need_version=no
  10592. need_lib_prefix=no
  10593. ;;
  10594. freebsd-*)
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10596. need_version=yes
  10597. ;;
  10598. esac
  10599. shlibpath_var=LD_LIBRARY_PATH
  10600. case $host_os in
  10601. freebsd2.*)
  10602. shlibpath_overrides_runpath=yes
  10603. ;;
  10604. freebsd3.[01]* | freebsdelf3.[01]*)
  10605. shlibpath_overrides_runpath=yes
  10606. hardcode_into_libs=yes
  10607. ;;
  10608. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10609. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10610. shlibpath_overrides_runpath=no
  10611. hardcode_into_libs=yes
  10612. ;;
  10613. *) # from 4.6 on, and DragonFly
  10614. shlibpath_overrides_runpath=yes
  10615. hardcode_into_libs=yes
  10616. ;;
  10617. esac
  10618. ;;
  10619. haiku*)
  10620. version_type=linux # correct to gnu/linux during the next big refactor
  10621. need_lib_prefix=no
  10622. need_version=no
  10623. dynamic_linker="$host_os runtime_loader"
  10624. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10625. soname_spec='$libname$release$shared_ext$major'
  10626. shlibpath_var=LIBRARY_PATH
  10627. shlibpath_overrides_runpath=no
  10628. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10629. hardcode_into_libs=yes
  10630. ;;
  10631. hpux9* | hpux10* | hpux11*)
  10632. # Give a soname corresponding to the major version so that dld.sl refuses to
  10633. # link against other versions.
  10634. version_type=sunos
  10635. need_lib_prefix=no
  10636. need_version=no
  10637. case $host_cpu in
  10638. ia64*)
  10639. shrext_cmds='.so'
  10640. hardcode_into_libs=yes
  10641. dynamic_linker="$host_os dld.so"
  10642. shlibpath_var=LD_LIBRARY_PATH
  10643. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10645. soname_spec='$libname$release$shared_ext$major'
  10646. if test 32 = "$HPUX_IA64_MODE"; then
  10647. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10648. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10649. else
  10650. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10651. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10652. fi
  10653. ;;
  10654. hppa*64*)
  10655. shrext_cmds='.sl'
  10656. hardcode_into_libs=yes
  10657. dynamic_linker="$host_os dld.sl"
  10658. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10659. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10660. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10661. soname_spec='$libname$release$shared_ext$major'
  10662. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10663. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10664. ;;
  10665. *)
  10666. shrext_cmds='.sl'
  10667. dynamic_linker="$host_os dld.sl"
  10668. shlibpath_var=SHLIB_PATH
  10669. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10670. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10671. soname_spec='$libname$release$shared_ext$major'
  10672. ;;
  10673. esac
  10674. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10675. postinstall_cmds='chmod 555 $lib'
  10676. # or fails outright, so override atomically:
  10677. install_override_mode=555
  10678. ;;
  10679. interix[3-9]*)
  10680. version_type=linux # correct to gnu/linux during the next big refactor
  10681. need_lib_prefix=no
  10682. need_version=no
  10683. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10684. soname_spec='$libname$release$shared_ext$major'
  10685. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10686. shlibpath_var=LD_LIBRARY_PATH
  10687. shlibpath_overrides_runpath=no
  10688. hardcode_into_libs=yes
  10689. ;;
  10690. irix5* | irix6* | nonstopux*)
  10691. case $host_os in
  10692. nonstopux*) version_type=nonstopux ;;
  10693. *)
  10694. if test yes = "$lt_cv_prog_gnu_ld"; then
  10695. version_type=linux # correct to gnu/linux during the next big refactor
  10696. else
  10697. version_type=irix
  10698. fi ;;
  10699. esac
  10700. need_lib_prefix=no
  10701. need_version=no
  10702. soname_spec='$libname$release$shared_ext$major'
  10703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10704. case $host_os in
  10705. irix5* | nonstopux*)
  10706. libsuff= shlibsuff=
  10707. ;;
  10708. *)
  10709. case $LD in # libtool.m4 will add one of these switches to LD
  10710. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10711. libsuff= shlibsuff= libmagic=32-bit;;
  10712. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10713. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10714. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10715. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10716. *) libsuff= shlibsuff= libmagic=never-match;;
  10717. esac
  10718. ;;
  10719. esac
  10720. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10721. shlibpath_overrides_runpath=no
  10722. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10723. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10724. hardcode_into_libs=yes
  10725. ;;
  10726. # No shared lib support for Linux oldld, aout, or coff.
  10727. linux*oldld* | linux*aout* | linux*coff*)
  10728. dynamic_linker=no
  10729. ;;
  10730. linux*android*)
  10731. version_type=none # Android doesn't support versioned libraries.
  10732. need_lib_prefix=no
  10733. need_version=no
  10734. library_names_spec='$libname$release$shared_ext'
  10735. soname_spec='$libname$release$shared_ext'
  10736. finish_cmds=
  10737. shlibpath_var=LD_LIBRARY_PATH
  10738. shlibpath_overrides_runpath=yes
  10739. # This implies no fast_install, which is unacceptable.
  10740. # Some rework will be needed to allow for fast_install
  10741. # before this can be enabled.
  10742. hardcode_into_libs=yes
  10743. dynamic_linker='Android linker'
  10744. # Don't embed -rpath directories since the linker doesn't support them.
  10745. hardcode_libdir_flag_spec='-L$libdir'
  10746. ;;
  10747. # This must be glibc/ELF.
  10748. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10749. version_type=linux # correct to gnu/linux during the next big refactor
  10750. need_lib_prefix=no
  10751. need_version=no
  10752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10753. soname_spec='$libname$release$shared_ext$major'
  10754. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10755. shlibpath_var=LD_LIBRARY_PATH
  10756. shlibpath_overrides_runpath=no
  10757. # Some binutils ld are patched to set DT_RUNPATH
  10758. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10759. $as_echo_n "(cached) " >&6
  10760. else
  10761. lt_cv_shlibpath_overrides_runpath=no
  10762. save_LDFLAGS=$LDFLAGS
  10763. save_libdir=$libdir
  10764. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10765. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10767. /* end confdefs.h. */
  10768. int
  10769. main ()
  10770. {
  10771. ;
  10772. return 0;
  10773. }
  10774. _ACEOF
  10775. if ac_fn_c_try_link "$LINENO"; then :
  10776. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10777. lt_cv_shlibpath_overrides_runpath=yes
  10778. fi
  10779. fi
  10780. rm -f core conftest.err conftest.$ac_objext \
  10781. conftest$ac_exeext conftest.$ac_ext
  10782. LDFLAGS=$save_LDFLAGS
  10783. libdir=$save_libdir
  10784. fi
  10785. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10786. # This implies no fast_install, which is unacceptable.
  10787. # Some rework will be needed to allow for fast_install
  10788. # before this can be enabled.
  10789. hardcode_into_libs=yes
  10790. # Ideally, we could use ldconfig to report *all* directores which are
  10791. # searched for libraries, however this is still not possible. Aside from not
  10792. # being certain /sbin/ldconfig is available, command
  10793. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10794. # even though it is searched at run-time. Try to do the best guess by
  10795. # appending ld.so.conf contents (and includes) to the search path.
  10796. if test -f /etc/ld.so.conf; then
  10797. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10798. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10799. fi
  10800. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10801. # powerpc, because MkLinux only supported shared libraries with the
  10802. # GNU dynamic linker. Since this was broken with cross compilers,
  10803. # most powerpc-linux boxes support dynamic linking these days and
  10804. # people can always --disable-shared, the test was removed, and we
  10805. # assume the GNU/Linux dynamic linker is in use.
  10806. dynamic_linker='GNU/Linux ld.so'
  10807. ;;
  10808. netbsd*)
  10809. version_type=sunos
  10810. need_lib_prefix=no
  10811. need_version=no
  10812. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10813. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10814. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10815. dynamic_linker='NetBSD (a.out) ld.so'
  10816. else
  10817. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10818. soname_spec='$libname$release$shared_ext$major'
  10819. dynamic_linker='NetBSD ld.elf_so'
  10820. fi
  10821. shlibpath_var=LD_LIBRARY_PATH
  10822. shlibpath_overrides_runpath=yes
  10823. hardcode_into_libs=yes
  10824. ;;
  10825. newsos6)
  10826. version_type=linux # correct to gnu/linux during the next big refactor
  10827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10828. shlibpath_var=LD_LIBRARY_PATH
  10829. shlibpath_overrides_runpath=yes
  10830. ;;
  10831. *nto* | *qnx*)
  10832. version_type=qnx
  10833. need_lib_prefix=no
  10834. need_version=no
  10835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10836. soname_spec='$libname$release$shared_ext$major'
  10837. shlibpath_var=LD_LIBRARY_PATH
  10838. shlibpath_overrides_runpath=no
  10839. hardcode_into_libs=yes
  10840. dynamic_linker='ldqnx.so'
  10841. ;;
  10842. openbsd* | bitrig*)
  10843. version_type=sunos
  10844. sys_lib_dlsearch_path_spec=/usr/lib
  10845. need_lib_prefix=no
  10846. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10847. need_version=no
  10848. else
  10849. need_version=yes
  10850. fi
  10851. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10852. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10853. shlibpath_var=LD_LIBRARY_PATH
  10854. shlibpath_overrides_runpath=yes
  10855. ;;
  10856. os2*)
  10857. libname_spec='$name'
  10858. version_type=windows
  10859. shrext_cmds=.dll
  10860. need_version=no
  10861. need_lib_prefix=no
  10862. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10863. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10864. v=$($ECHO $release$versuffix | tr -d .-);
  10865. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10866. $ECHO $n$v`$shared_ext'
  10867. library_names_spec='${libname}_dll.$libext'
  10868. dynamic_linker='OS/2 ld.exe'
  10869. shlibpath_var=BEGINLIBPATH
  10870. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10871. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10872. postinstall_cmds='base_file=`basename \$file`~
  10873. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10874. dldir=$destdir/`dirname \$dlpath`~
  10875. test -d \$dldir || mkdir -p \$dldir~
  10876. $install_prog $dir/$dlname \$dldir/$dlname~
  10877. chmod a+x \$dldir/$dlname~
  10878. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10879. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10880. fi'
  10881. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10882. dlpath=$dir/\$dldll~
  10883. $RM \$dlpath'
  10884. ;;
  10885. osf3* | osf4* | osf5*)
  10886. version_type=osf
  10887. need_lib_prefix=no
  10888. need_version=no
  10889. soname_spec='$libname$release$shared_ext$major'
  10890. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10891. shlibpath_var=LD_LIBRARY_PATH
  10892. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10893. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10894. ;;
  10895. rdos*)
  10896. dynamic_linker=no
  10897. ;;
  10898. solaris*)
  10899. version_type=linux # correct to gnu/linux during the next big refactor
  10900. need_lib_prefix=no
  10901. need_version=no
  10902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10903. soname_spec='$libname$release$shared_ext$major'
  10904. shlibpath_var=LD_LIBRARY_PATH
  10905. shlibpath_overrides_runpath=yes
  10906. hardcode_into_libs=yes
  10907. # ldd complains unless libraries are executable
  10908. postinstall_cmds='chmod +x $lib'
  10909. ;;
  10910. sunos4*)
  10911. version_type=sunos
  10912. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10913. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10914. shlibpath_var=LD_LIBRARY_PATH
  10915. shlibpath_overrides_runpath=yes
  10916. if test yes = "$with_gnu_ld"; then
  10917. need_lib_prefix=no
  10918. fi
  10919. need_version=yes
  10920. ;;
  10921. sysv4 | sysv4.3*)
  10922. version_type=linux # correct to gnu/linux during the next big refactor
  10923. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10924. soname_spec='$libname$release$shared_ext$major'
  10925. shlibpath_var=LD_LIBRARY_PATH
  10926. case $host_vendor in
  10927. sni)
  10928. shlibpath_overrides_runpath=no
  10929. need_lib_prefix=no
  10930. runpath_var=LD_RUN_PATH
  10931. ;;
  10932. siemens)
  10933. need_lib_prefix=no
  10934. ;;
  10935. motorola)
  10936. need_lib_prefix=no
  10937. need_version=no
  10938. shlibpath_overrides_runpath=no
  10939. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10940. ;;
  10941. esac
  10942. ;;
  10943. sysv4*MP*)
  10944. if test -d /usr/nec; then
  10945. version_type=linux # correct to gnu/linux during the next big refactor
  10946. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10947. soname_spec='$libname$shared_ext.$major'
  10948. shlibpath_var=LD_LIBRARY_PATH
  10949. fi
  10950. ;;
  10951. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10952. version_type=sco
  10953. need_lib_prefix=no
  10954. need_version=no
  10955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10956. soname_spec='$libname$release$shared_ext$major'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. shlibpath_overrides_runpath=yes
  10959. hardcode_into_libs=yes
  10960. if test yes = "$with_gnu_ld"; then
  10961. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10962. else
  10963. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10964. case $host_os in
  10965. sco3.2v5*)
  10966. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10967. ;;
  10968. esac
  10969. fi
  10970. sys_lib_dlsearch_path_spec='/usr/lib'
  10971. ;;
  10972. tpf*)
  10973. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10974. version_type=linux # correct to gnu/linux during the next big refactor
  10975. need_lib_prefix=no
  10976. need_version=no
  10977. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10978. shlibpath_var=LD_LIBRARY_PATH
  10979. shlibpath_overrides_runpath=no
  10980. hardcode_into_libs=yes
  10981. ;;
  10982. uts4*)
  10983. version_type=linux # correct to gnu/linux during the next big refactor
  10984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10985. soname_spec='$libname$release$shared_ext$major'
  10986. shlibpath_var=LD_LIBRARY_PATH
  10987. ;;
  10988. *)
  10989. dynamic_linker=no
  10990. ;;
  10991. esac
  10992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10993. $as_echo "$dynamic_linker" >&6; }
  10994. test no = "$dynamic_linker" && can_build_shared=no
  10995. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10996. if test yes = "$GCC"; then
  10997. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10998. fi
  10999. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11000. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11001. fi
  11002. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11003. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11004. fi
  11005. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11006. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11007. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11008. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11009. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11010. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11012. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11013. hardcode_action=
  11014. if test -n "$hardcode_libdir_flag_spec" ||
  11015. test -n "$runpath_var" ||
  11016. test yes = "$hardcode_automatic"; then
  11017. # We can hardcode non-existent directories.
  11018. if test no != "$hardcode_direct" &&
  11019. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11020. # have to relink, otherwise we might link with an installed library
  11021. # when we should be linking with a yet-to-be-installed one
  11022. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11023. test no != "$hardcode_minus_L"; then
  11024. # Linking always hardcodes the temporary library directory.
  11025. hardcode_action=relink
  11026. else
  11027. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11028. hardcode_action=immediate
  11029. fi
  11030. else
  11031. # We cannot hardcode anything, or else we can only hardcode existing
  11032. # directories.
  11033. hardcode_action=unsupported
  11034. fi
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11036. $as_echo "$hardcode_action" >&6; }
  11037. if test relink = "$hardcode_action" ||
  11038. test yes = "$inherit_rpath"; then
  11039. # Fast installation is not supported
  11040. enable_fast_install=no
  11041. elif test yes = "$shlibpath_overrides_runpath" ||
  11042. test no = "$enable_shared"; then
  11043. # Fast installation is not necessary
  11044. enable_fast_install=needless
  11045. fi
  11046. if test yes != "$enable_dlopen"; then
  11047. enable_dlopen=unknown
  11048. enable_dlopen_self=unknown
  11049. enable_dlopen_self_static=unknown
  11050. else
  11051. lt_cv_dlopen=no
  11052. lt_cv_dlopen_libs=
  11053. case $host_os in
  11054. beos*)
  11055. lt_cv_dlopen=load_add_on
  11056. lt_cv_dlopen_libs=
  11057. lt_cv_dlopen_self=yes
  11058. ;;
  11059. mingw* | pw32* | cegcc*)
  11060. lt_cv_dlopen=LoadLibrary
  11061. lt_cv_dlopen_libs=
  11062. ;;
  11063. cygwin*)
  11064. lt_cv_dlopen=dlopen
  11065. lt_cv_dlopen_libs=
  11066. ;;
  11067. darwin*)
  11068. # if libdl is installed we need to link against it
  11069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11070. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11071. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11072. $as_echo_n "(cached) " >&6
  11073. else
  11074. ac_check_lib_save_LIBS=$LIBS
  11075. LIBS="-ldl $LIBS"
  11076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11077. /* end confdefs.h. */
  11078. /* Override any GCC internal prototype to avoid an error.
  11079. Use char because int might match the return type of a GCC
  11080. builtin and then its argument prototype would still apply. */
  11081. #ifdef __cplusplus
  11082. extern "C"
  11083. #endif
  11084. char dlopen ();
  11085. int
  11086. main ()
  11087. {
  11088. return dlopen ();
  11089. ;
  11090. return 0;
  11091. }
  11092. _ACEOF
  11093. if ac_fn_c_try_link "$LINENO"; then :
  11094. ac_cv_lib_dl_dlopen=yes
  11095. else
  11096. ac_cv_lib_dl_dlopen=no
  11097. fi
  11098. rm -f core conftest.err conftest.$ac_objext \
  11099. conftest$ac_exeext conftest.$ac_ext
  11100. LIBS=$ac_check_lib_save_LIBS
  11101. fi
  11102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11103. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11104. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11105. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11106. else
  11107. lt_cv_dlopen=dyld
  11108. lt_cv_dlopen_libs=
  11109. lt_cv_dlopen_self=yes
  11110. fi
  11111. ;;
  11112. tpf*)
  11113. # Don't try to run any link tests for TPF. We know it's impossible
  11114. # because TPF is a cross-compiler, and we know how we open DSOs.
  11115. lt_cv_dlopen=dlopen
  11116. lt_cv_dlopen_libs=
  11117. lt_cv_dlopen_self=no
  11118. ;;
  11119. *)
  11120. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11121. if test "x$ac_cv_func_shl_load" = xyes; then :
  11122. lt_cv_dlopen=shl_load
  11123. else
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11125. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11126. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11127. $as_echo_n "(cached) " >&6
  11128. else
  11129. ac_check_lib_save_LIBS=$LIBS
  11130. LIBS="-ldld $LIBS"
  11131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11132. /* end confdefs.h. */
  11133. /* Override any GCC internal prototype to avoid an error.
  11134. Use char because int might match the return type of a GCC
  11135. builtin and then its argument prototype would still apply. */
  11136. #ifdef __cplusplus
  11137. extern "C"
  11138. #endif
  11139. char shl_load ();
  11140. int
  11141. main ()
  11142. {
  11143. return shl_load ();
  11144. ;
  11145. return 0;
  11146. }
  11147. _ACEOF
  11148. if ac_fn_c_try_link "$LINENO"; then :
  11149. ac_cv_lib_dld_shl_load=yes
  11150. else
  11151. ac_cv_lib_dld_shl_load=no
  11152. fi
  11153. rm -f core conftest.err conftest.$ac_objext \
  11154. conftest$ac_exeext conftest.$ac_ext
  11155. LIBS=$ac_check_lib_save_LIBS
  11156. fi
  11157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11158. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11159. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11160. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11161. else
  11162. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11163. if test "x$ac_cv_func_dlopen" = xyes; then :
  11164. lt_cv_dlopen=dlopen
  11165. else
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11167. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11168. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11169. $as_echo_n "(cached) " >&6
  11170. else
  11171. ac_check_lib_save_LIBS=$LIBS
  11172. LIBS="-ldl $LIBS"
  11173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11174. /* end confdefs.h. */
  11175. /* Override any GCC internal prototype to avoid an error.
  11176. Use char because int might match the return type of a GCC
  11177. builtin and then its argument prototype would still apply. */
  11178. #ifdef __cplusplus
  11179. extern "C"
  11180. #endif
  11181. char dlopen ();
  11182. int
  11183. main ()
  11184. {
  11185. return dlopen ();
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_c_try_link "$LINENO"; then :
  11191. ac_cv_lib_dl_dlopen=yes
  11192. else
  11193. ac_cv_lib_dl_dlopen=no
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext \
  11196. conftest$ac_exeext conftest.$ac_ext
  11197. LIBS=$ac_check_lib_save_LIBS
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11200. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11201. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11202. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11203. else
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11205. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11206. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11207. $as_echo_n "(cached) " >&6
  11208. else
  11209. ac_check_lib_save_LIBS=$LIBS
  11210. LIBS="-lsvld $LIBS"
  11211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11212. /* end confdefs.h. */
  11213. /* Override any GCC internal prototype to avoid an error.
  11214. Use char because int might match the return type of a GCC
  11215. builtin and then its argument prototype would still apply. */
  11216. #ifdef __cplusplus
  11217. extern "C"
  11218. #endif
  11219. char dlopen ();
  11220. int
  11221. main ()
  11222. {
  11223. return dlopen ();
  11224. ;
  11225. return 0;
  11226. }
  11227. _ACEOF
  11228. if ac_fn_c_try_link "$LINENO"; then :
  11229. ac_cv_lib_svld_dlopen=yes
  11230. else
  11231. ac_cv_lib_svld_dlopen=no
  11232. fi
  11233. rm -f core conftest.err conftest.$ac_objext \
  11234. conftest$ac_exeext conftest.$ac_ext
  11235. LIBS=$ac_check_lib_save_LIBS
  11236. fi
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11238. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11239. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11240. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11241. else
  11242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11243. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11244. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11245. $as_echo_n "(cached) " >&6
  11246. else
  11247. ac_check_lib_save_LIBS=$LIBS
  11248. LIBS="-ldld $LIBS"
  11249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11250. /* end confdefs.h. */
  11251. /* Override any GCC internal prototype to avoid an error.
  11252. Use char because int might match the return type of a GCC
  11253. builtin and then its argument prototype would still apply. */
  11254. #ifdef __cplusplus
  11255. extern "C"
  11256. #endif
  11257. char dld_link ();
  11258. int
  11259. main ()
  11260. {
  11261. return dld_link ();
  11262. ;
  11263. return 0;
  11264. }
  11265. _ACEOF
  11266. if ac_fn_c_try_link "$LINENO"; then :
  11267. ac_cv_lib_dld_dld_link=yes
  11268. else
  11269. ac_cv_lib_dld_dld_link=no
  11270. fi
  11271. rm -f core conftest.err conftest.$ac_objext \
  11272. conftest$ac_exeext conftest.$ac_ext
  11273. LIBS=$ac_check_lib_save_LIBS
  11274. fi
  11275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11276. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11277. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11278. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11279. fi
  11280. fi
  11281. fi
  11282. fi
  11283. fi
  11284. fi
  11285. ;;
  11286. esac
  11287. if test no = "$lt_cv_dlopen"; then
  11288. enable_dlopen=no
  11289. else
  11290. enable_dlopen=yes
  11291. fi
  11292. case $lt_cv_dlopen in
  11293. dlopen)
  11294. save_CPPFLAGS=$CPPFLAGS
  11295. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11296. save_LDFLAGS=$LDFLAGS
  11297. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11298. save_LIBS=$LIBS
  11299. LIBS="$lt_cv_dlopen_libs $LIBS"
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11301. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11302. if ${lt_cv_dlopen_self+:} false; then :
  11303. $as_echo_n "(cached) " >&6
  11304. else
  11305. if test yes = "$cross_compiling"; then :
  11306. lt_cv_dlopen_self=cross
  11307. else
  11308. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11309. lt_status=$lt_dlunknown
  11310. cat > conftest.$ac_ext <<_LT_EOF
  11311. #line $LINENO "configure"
  11312. #include "confdefs.h"
  11313. #if HAVE_DLFCN_H
  11314. #include <dlfcn.h>
  11315. #endif
  11316. #include <stdio.h>
  11317. #ifdef RTLD_GLOBAL
  11318. # define LT_DLGLOBAL RTLD_GLOBAL
  11319. #else
  11320. # ifdef DL_GLOBAL
  11321. # define LT_DLGLOBAL DL_GLOBAL
  11322. # else
  11323. # define LT_DLGLOBAL 0
  11324. # endif
  11325. #endif
  11326. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11327. find out it does not work in some platform. */
  11328. #ifndef LT_DLLAZY_OR_NOW
  11329. # ifdef RTLD_LAZY
  11330. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11331. # else
  11332. # ifdef DL_LAZY
  11333. # define LT_DLLAZY_OR_NOW DL_LAZY
  11334. # else
  11335. # ifdef RTLD_NOW
  11336. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11337. # else
  11338. # ifdef DL_NOW
  11339. # define LT_DLLAZY_OR_NOW DL_NOW
  11340. # else
  11341. # define LT_DLLAZY_OR_NOW 0
  11342. # endif
  11343. # endif
  11344. # endif
  11345. # endif
  11346. #endif
  11347. /* When -fvisibility=hidden is used, assume the code has been annotated
  11348. correspondingly for the symbols needed. */
  11349. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11350. int fnord () __attribute__((visibility("default")));
  11351. #endif
  11352. int fnord () { return 42; }
  11353. int main ()
  11354. {
  11355. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11356. int status = $lt_dlunknown;
  11357. if (self)
  11358. {
  11359. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11360. else
  11361. {
  11362. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11363. else puts (dlerror ());
  11364. }
  11365. /* dlclose (self); */
  11366. }
  11367. else
  11368. puts (dlerror ());
  11369. return status;
  11370. }
  11371. _LT_EOF
  11372. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11373. (eval $ac_link) 2>&5
  11374. ac_status=$?
  11375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11376. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11377. (./conftest; exit; ) >&5 2>/dev/null
  11378. lt_status=$?
  11379. case x$lt_status in
  11380. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11381. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11382. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11383. esac
  11384. else :
  11385. # compilation failed
  11386. lt_cv_dlopen_self=no
  11387. fi
  11388. fi
  11389. rm -fr conftest*
  11390. fi
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11392. $as_echo "$lt_cv_dlopen_self" >&6; }
  11393. if test yes = "$lt_cv_dlopen_self"; then
  11394. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11396. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11397. if ${lt_cv_dlopen_self_static+:} false; then :
  11398. $as_echo_n "(cached) " >&6
  11399. else
  11400. if test yes = "$cross_compiling"; then :
  11401. lt_cv_dlopen_self_static=cross
  11402. else
  11403. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11404. lt_status=$lt_dlunknown
  11405. cat > conftest.$ac_ext <<_LT_EOF
  11406. #line $LINENO "configure"
  11407. #include "confdefs.h"
  11408. #if HAVE_DLFCN_H
  11409. #include <dlfcn.h>
  11410. #endif
  11411. #include <stdio.h>
  11412. #ifdef RTLD_GLOBAL
  11413. # define LT_DLGLOBAL RTLD_GLOBAL
  11414. #else
  11415. # ifdef DL_GLOBAL
  11416. # define LT_DLGLOBAL DL_GLOBAL
  11417. # else
  11418. # define LT_DLGLOBAL 0
  11419. # endif
  11420. #endif
  11421. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11422. find out it does not work in some platform. */
  11423. #ifndef LT_DLLAZY_OR_NOW
  11424. # ifdef RTLD_LAZY
  11425. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11426. # else
  11427. # ifdef DL_LAZY
  11428. # define LT_DLLAZY_OR_NOW DL_LAZY
  11429. # else
  11430. # ifdef RTLD_NOW
  11431. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11432. # else
  11433. # ifdef DL_NOW
  11434. # define LT_DLLAZY_OR_NOW DL_NOW
  11435. # else
  11436. # define LT_DLLAZY_OR_NOW 0
  11437. # endif
  11438. # endif
  11439. # endif
  11440. # endif
  11441. #endif
  11442. /* When -fvisibility=hidden is used, assume the code has been annotated
  11443. correspondingly for the symbols needed. */
  11444. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11445. int fnord () __attribute__((visibility("default")));
  11446. #endif
  11447. int fnord () { return 42; }
  11448. int main ()
  11449. {
  11450. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11451. int status = $lt_dlunknown;
  11452. if (self)
  11453. {
  11454. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11455. else
  11456. {
  11457. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11458. else puts (dlerror ());
  11459. }
  11460. /* dlclose (self); */
  11461. }
  11462. else
  11463. puts (dlerror ());
  11464. return status;
  11465. }
  11466. _LT_EOF
  11467. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11468. (eval $ac_link) 2>&5
  11469. ac_status=$?
  11470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11471. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11472. (./conftest; exit; ) >&5 2>/dev/null
  11473. lt_status=$?
  11474. case x$lt_status in
  11475. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11476. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11477. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11478. esac
  11479. else :
  11480. # compilation failed
  11481. lt_cv_dlopen_self_static=no
  11482. fi
  11483. fi
  11484. rm -fr conftest*
  11485. fi
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11487. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11488. fi
  11489. CPPFLAGS=$save_CPPFLAGS
  11490. LDFLAGS=$save_LDFLAGS
  11491. LIBS=$save_LIBS
  11492. ;;
  11493. esac
  11494. case $lt_cv_dlopen_self in
  11495. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11496. *) enable_dlopen_self=unknown ;;
  11497. esac
  11498. case $lt_cv_dlopen_self_static in
  11499. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11500. *) enable_dlopen_self_static=unknown ;;
  11501. esac
  11502. fi
  11503. striplib=
  11504. old_striplib=
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11506. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11507. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11508. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11509. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11511. $as_echo "yes" >&6; }
  11512. else
  11513. # FIXME - insert some real tests, host_os isn't really good enough
  11514. case $host_os in
  11515. darwin*)
  11516. if test -n "$STRIP"; then
  11517. striplib="$STRIP -x"
  11518. old_striplib="$STRIP -S"
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11520. $as_echo "yes" >&6; }
  11521. else
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11523. $as_echo "no" >&6; }
  11524. fi
  11525. ;;
  11526. *)
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11528. $as_echo "no" >&6; }
  11529. ;;
  11530. esac
  11531. fi
  11532. # Report what library types will actually be built
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11534. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11536. $as_echo "$can_build_shared" >&6; }
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11538. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11539. test no = "$can_build_shared" && enable_shared=no
  11540. # On AIX, shared libraries and static libraries use the same namespace, and
  11541. # are all built from PIC.
  11542. case $host_os in
  11543. aix3*)
  11544. test yes = "$enable_shared" && enable_static=no
  11545. if test -n "$RANLIB"; then
  11546. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11547. postinstall_cmds='$RANLIB $lib'
  11548. fi
  11549. ;;
  11550. aix[4-9]*)
  11551. if test ia64 != "$host_cpu"; then
  11552. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11553. yes,aix,yes) ;; # shared object as lib.so file only
  11554. yes,svr4,*) ;; # shared object as lib.so archive member only
  11555. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11556. esac
  11557. fi
  11558. ;;
  11559. esac
  11560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11561. $as_echo "$enable_shared" >&6; }
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11563. $as_echo_n "checking whether to build static libraries... " >&6; }
  11564. # Make sure either enable_shared or enable_static is yes.
  11565. test yes = "$enable_shared" || enable_static=yes
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11567. $as_echo "$enable_static" >&6; }
  11568. fi
  11569. ac_ext=c
  11570. ac_cpp='$CPP $CPPFLAGS'
  11571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11574. CC=$lt_save_CC
  11575. ac_config_commands="$ac_config_commands libtool"
  11576. # Only expand once:
  11577. # Api documentation
  11578. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11579. if test -n "$ac_tool_prefix"; then
  11580. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11581. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11583. $as_echo_n "checking for $ac_word... " >&6; }
  11584. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11585. $as_echo_n "(cached) " >&6
  11586. else
  11587. case $PKG_CONFIG in
  11588. [\\/]* | ?:[\\/]*)
  11589. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11590. ;;
  11591. *)
  11592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11593. for as_dir in $PATH
  11594. do
  11595. IFS=$as_save_IFS
  11596. test -z "$as_dir" && as_dir=.
  11597. for ac_exec_ext in '' $ac_executable_extensions; do
  11598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11599. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11601. break 2
  11602. fi
  11603. done
  11604. done
  11605. IFS=$as_save_IFS
  11606. ;;
  11607. esac
  11608. fi
  11609. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11610. if test -n "$PKG_CONFIG"; then
  11611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11612. $as_echo "$PKG_CONFIG" >&6; }
  11613. else
  11614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11615. $as_echo "no" >&6; }
  11616. fi
  11617. fi
  11618. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11619. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11620. # Extract the first word of "pkg-config", so it can be a program name with args.
  11621. set dummy pkg-config; ac_word=$2
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11623. $as_echo_n "checking for $ac_word... " >&6; }
  11624. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11625. $as_echo_n "(cached) " >&6
  11626. else
  11627. case $ac_pt_PKG_CONFIG in
  11628. [\\/]* | ?:[\\/]*)
  11629. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11630. ;;
  11631. *)
  11632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11633. for as_dir in $PATH
  11634. do
  11635. IFS=$as_save_IFS
  11636. test -z "$as_dir" && as_dir=.
  11637. for ac_exec_ext in '' $ac_executable_extensions; do
  11638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11639. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11641. break 2
  11642. fi
  11643. done
  11644. done
  11645. IFS=$as_save_IFS
  11646. ;;
  11647. esac
  11648. fi
  11649. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11650. if test -n "$ac_pt_PKG_CONFIG"; then
  11651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11652. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11653. else
  11654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11655. $as_echo "no" >&6; }
  11656. fi
  11657. if test "x$ac_pt_PKG_CONFIG" = x; then
  11658. PKG_CONFIG=""
  11659. else
  11660. case $cross_compiling:$ac_tool_warned in
  11661. yes:)
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11664. ac_tool_warned=yes ;;
  11665. esac
  11666. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11667. fi
  11668. else
  11669. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11670. fi
  11671. fi
  11672. if test -n "$PKG_CONFIG"; then
  11673. _pkg_min_version=0.9.0
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11675. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11676. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11678. $as_echo "yes" >&6; }
  11679. else
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11681. $as_echo "no" >&6; }
  11682. PKG_CONFIG=""
  11683. fi
  11684. fi
  11685. gtkdoc_pkgconfig_save=$PKG_CONFIG
  11686. PKG_CONFIG=pkg-config-native
  11687. gtk_doc_requires="gtk-doc >= 1.15"
  11688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
  11689. $as_echo_n "checking for gtk-doc... " >&6; }
  11690. if test -n "$PKG_CONFIG" && \
  11691. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
  11692. ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
  11693. ac_status=$?
  11694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11695. test $ac_status = 0; }; then
  11696. have_gtk_doc=yes
  11697. else
  11698. have_gtk_doc=no
  11699. fi
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
  11701. $as_echo "$have_gtk_doc" >&6; }
  11702. PKG_CONFIG=$gtkdoc_pkgconfig_save
  11703. if test "$have_gtk_doc" = "no"; then
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  11705. You will not be able to create source packages with 'make dist'
  11706. because $gtk_doc_requires is not found." >&5
  11707. $as_echo "$as_me: WARNING:
  11708. You will not be able to create source packages with 'make dist'
  11709. because $gtk_doc_requires is not found." >&2;}
  11710. fi
  11711. # Extract the first word of "gtkdoc-check", so it can be a program name with args.
  11712. set dummy gtkdoc-check; ac_word=$2
  11713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11714. $as_echo_n "checking for $ac_word... " >&6; }
  11715. if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
  11716. $as_echo_n "(cached) " >&6
  11717. else
  11718. if test -n "$GTKDOC_CHECK"; then
  11719. ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
  11720. else
  11721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11722. for as_dir in $PATH
  11723. do
  11724. IFS=$as_save_IFS
  11725. test -z "$as_dir" && as_dir=.
  11726. for ac_exec_ext in '' $ac_executable_extensions; do
  11727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11728. ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
  11729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11730. break 2
  11731. fi
  11732. done
  11733. done
  11734. IFS=$as_save_IFS
  11735. fi
  11736. fi
  11737. GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
  11738. if test -n "$GTKDOC_CHECK"; then
  11739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
  11740. $as_echo "$GTKDOC_CHECK" >&6; }
  11741. else
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11743. $as_echo "no" >&6; }
  11744. fi
  11745. # Extract the first word of "gtkdoc-check", so it can be a program name with args.
  11746. set dummy gtkdoc-check; ac_word=$2
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11748. $as_echo_n "checking for $ac_word... " >&6; }
  11749. if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
  11750. $as_echo_n "(cached) " >&6
  11751. else
  11752. case $GTKDOC_CHECK_PATH in
  11753. [\\/]* | ?:[\\/]*)
  11754. ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
  11755. ;;
  11756. *)
  11757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11758. for as_dir in $PATH
  11759. do
  11760. IFS=$as_save_IFS
  11761. test -z "$as_dir" && as_dir=.
  11762. for ac_exec_ext in '' $ac_executable_extensions; do
  11763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11764. ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
  11765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11766. break 2
  11767. fi
  11768. done
  11769. done
  11770. IFS=$as_save_IFS
  11771. ;;
  11772. esac
  11773. fi
  11774. GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
  11775. if test -n "$GTKDOC_CHECK_PATH"; then
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
  11777. $as_echo "$GTKDOC_CHECK_PATH" >&6; }
  11778. else
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11780. $as_echo "no" >&6; }
  11781. fi
  11782. for ac_prog in gtkdoc-rebase
  11783. do
  11784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11785. set dummy $ac_prog; ac_word=$2
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11787. $as_echo_n "checking for $ac_word... " >&6; }
  11788. if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
  11789. $as_echo_n "(cached) " >&6
  11790. else
  11791. case $GTKDOC_REBASE in
  11792. [\\/]* | ?:[\\/]*)
  11793. ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
  11794. ;;
  11795. *)
  11796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11797. for as_dir in $PATH
  11798. do
  11799. IFS=$as_save_IFS
  11800. test -z "$as_dir" && as_dir=.
  11801. for ac_exec_ext in '' $ac_executable_extensions; do
  11802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11803. ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
  11804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11805. break 2
  11806. fi
  11807. done
  11808. done
  11809. IFS=$as_save_IFS
  11810. ;;
  11811. esac
  11812. fi
  11813. GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
  11814. if test -n "$GTKDOC_REBASE"; then
  11815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
  11816. $as_echo "$GTKDOC_REBASE" >&6; }
  11817. else
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11819. $as_echo "no" >&6; }
  11820. fi
  11821. test -n "$GTKDOC_REBASE" && break
  11822. done
  11823. test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
  11824. # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
  11825. set dummy gtkdoc-mkpdf; ac_word=$2
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11827. $as_echo_n "checking for $ac_word... " >&6; }
  11828. if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
  11829. $as_echo_n "(cached) " >&6
  11830. else
  11831. case $GTKDOC_MKPDF in
  11832. [\\/]* | ?:[\\/]*)
  11833. ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
  11834. ;;
  11835. *)
  11836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11837. for as_dir in $PATH
  11838. do
  11839. IFS=$as_save_IFS
  11840. test -z "$as_dir" && as_dir=.
  11841. for ac_exec_ext in '' $ac_executable_extensions; do
  11842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11843. ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
  11844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11845. break 2
  11846. fi
  11847. done
  11848. done
  11849. IFS=$as_save_IFS
  11850. ;;
  11851. esac
  11852. fi
  11853. GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
  11854. if test -n "$GTKDOC_MKPDF"; then
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
  11856. $as_echo "$GTKDOC_MKPDF" >&6; }
  11857. else
  11858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11859. $as_echo "no" >&6; }
  11860. fi
  11861. # Check whether --with-html-dir was given.
  11862. if test "${with_html_dir+set}" = set; then :
  11863. withval=$with_html_dir;
  11864. else
  11865. with_html_dir='${datadir}/gtk-doc/html'
  11866. fi
  11867. HTML_DIR="$with_html_dir"
  11868. # Check whether --enable-gtk-doc was given.
  11869. if test "${enable_gtk_doc+set}" = set; then :
  11870. enableval=$enable_gtk_doc;
  11871. else
  11872. enable_gtk_doc=no
  11873. fi
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
  11875. $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
  11877. $as_echo "$enable_gtk_doc" >&6; }
  11878. if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
  11879. as_fn_error $? "
  11880. You must have $gtk_doc_requires installed to build documentation for
  11881. $PACKAGE_NAME. Please install gtk-doc or disable building the
  11882. documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
  11883. fi
  11884. if test "x$PACKAGE_NAME" != "xglib"; then
  11885. pkg_failed=no
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
  11887. $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
  11888. if test -n "$GTKDOC_DEPS_CFLAGS"; then
  11889. pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
  11890. elif test -n "$PKG_CONFIG"; then
  11891. if test -n "$PKG_CONFIG" && \
  11892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
  11893. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
  11894. ac_status=$?
  11895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11896. test $ac_status = 0; }; then
  11897. pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
  11898. else
  11899. pkg_failed=yes
  11900. fi
  11901. else
  11902. pkg_failed=untried
  11903. fi
  11904. if test -n "$GTKDOC_DEPS_LIBS"; then
  11905. pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
  11906. elif test -n "$PKG_CONFIG"; then
  11907. if test -n "$PKG_CONFIG" && \
  11908. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
  11909. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
  11910. ac_status=$?
  11911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11912. test $ac_status = 0; }; then
  11913. pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
  11914. else
  11915. pkg_failed=yes
  11916. fi
  11917. else
  11918. pkg_failed=untried
  11919. fi
  11920. if test $pkg_failed = yes; then
  11921. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11922. _pkg_short_errors_supported=yes
  11923. else
  11924. _pkg_short_errors_supported=no
  11925. fi
  11926. if test $_pkg_short_errors_supported = yes; then
  11927. GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
  11928. else
  11929. GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
  11930. fi
  11931. # Put the nasty error message in config.log where it belongs
  11932. echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11934. $as_echo "no" >&6; }
  11935. :
  11936. elif test $pkg_failed = untried; then
  11937. :
  11938. else
  11939. GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
  11940. GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11942. $as_echo "yes" >&6; }
  11943. :
  11944. fi
  11945. fi
  11946. # Check whether --enable-gtk-doc-html was given.
  11947. if test "${enable_gtk_doc_html+set}" = set; then :
  11948. enableval=$enable_gtk_doc_html;
  11949. else
  11950. enable_gtk_doc_html=yes
  11951. fi
  11952. # Check whether --enable-gtk-doc-pdf was given.
  11953. if test "${enable_gtk_doc_pdf+set}" = set; then :
  11954. enableval=$enable_gtk_doc_pdf;
  11955. else
  11956. enable_gtk_doc_pdf=no
  11957. fi
  11958. if test -z "$GTKDOC_MKPDF"; then
  11959. enable_gtk_doc_pdf=no
  11960. fi
  11961. if test -z "$AM_DEFAULT_VERBOSITY"; then
  11962. AM_DEFAULT_VERBOSITY=1
  11963. fi
  11964. if test x$have_gtk_doc = xyes; then
  11965. HAVE_GTK_DOC_TRUE=
  11966. HAVE_GTK_DOC_FALSE='#'
  11967. else
  11968. HAVE_GTK_DOC_TRUE='#'
  11969. HAVE_GTK_DOC_FALSE=
  11970. fi
  11971. if test x$enable_gtk_doc = xyes; then
  11972. ENABLE_GTK_DOC_TRUE=
  11973. ENABLE_GTK_DOC_FALSE='#'
  11974. else
  11975. ENABLE_GTK_DOC_TRUE='#'
  11976. ENABLE_GTK_DOC_FALSE=
  11977. fi
  11978. if test x$enable_gtk_doc_html = xyes; then
  11979. GTK_DOC_BUILD_HTML_TRUE=
  11980. GTK_DOC_BUILD_HTML_FALSE='#'
  11981. else
  11982. GTK_DOC_BUILD_HTML_TRUE='#'
  11983. GTK_DOC_BUILD_HTML_FALSE=
  11984. fi
  11985. if test x$enable_gtk_doc_pdf = xyes; then
  11986. GTK_DOC_BUILD_PDF_TRUE=
  11987. GTK_DOC_BUILD_PDF_FALSE='#'
  11988. else
  11989. GTK_DOC_BUILD_PDF_TRUE='#'
  11990. GTK_DOC_BUILD_PDF_FALSE=
  11991. fi
  11992. if test -n "$LIBTOOL"; then
  11993. GTK_DOC_USE_LIBTOOL_TRUE=
  11994. GTK_DOC_USE_LIBTOOL_FALSE='#'
  11995. else
  11996. GTK_DOC_USE_LIBTOOL_TRUE='#'
  11997. GTK_DOC_USE_LIBTOOL_FALSE=
  11998. fi
  11999. if test -n "$GTKDOC_REBASE"; then
  12000. GTK_DOC_USE_REBASE_TRUE=
  12001. GTK_DOC_USE_REBASE_FALSE='#'
  12002. else
  12003. GTK_DOC_USE_REBASE_TRUE='#'
  12004. GTK_DOC_USE_REBASE_FALSE=
  12005. fi
  12006. # Check whether --enable-largefile was given.
  12007. if test "${enable_largefile+set}" = set; then :
  12008. enableval=$enable_largefile;
  12009. fi
  12010. if test "$enable_largefile" != no; then
  12011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12012. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12013. if ${ac_cv_sys_largefile_CC+:} false; then :
  12014. $as_echo_n "(cached) " >&6
  12015. else
  12016. ac_cv_sys_largefile_CC=no
  12017. if test "$GCC" != yes; then
  12018. ac_save_CC=$CC
  12019. while :; do
  12020. # IRIX 6.2 and later do not support large files by default,
  12021. # so use the C compiler's -n32 option if that helps.
  12022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12023. /* end confdefs.h. */
  12024. #include <sys/types.h>
  12025. /* Check that off_t can represent 2**63 - 1 correctly.
  12026. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12027. since some C++ compilers masquerading as C compilers
  12028. incorrectly reject 9223372036854775807. */
  12029. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12030. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12031. && LARGE_OFF_T % 2147483647 == 1)
  12032. ? 1 : -1];
  12033. int
  12034. main ()
  12035. {
  12036. ;
  12037. return 0;
  12038. }
  12039. _ACEOF
  12040. if ac_fn_c_try_compile "$LINENO"; then :
  12041. break
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext
  12044. CC="$CC -n32"
  12045. if ac_fn_c_try_compile "$LINENO"; then :
  12046. ac_cv_sys_largefile_CC=' -n32'; break
  12047. fi
  12048. rm -f core conftest.err conftest.$ac_objext
  12049. break
  12050. done
  12051. CC=$ac_save_CC
  12052. rm -f conftest.$ac_ext
  12053. fi
  12054. fi
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12056. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12057. if test "$ac_cv_sys_largefile_CC" != no; then
  12058. CC=$CC$ac_cv_sys_largefile_CC
  12059. fi
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12061. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12062. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12063. $as_echo_n "(cached) " >&6
  12064. else
  12065. while :; do
  12066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12067. /* end confdefs.h. */
  12068. #include <sys/types.h>
  12069. /* Check that off_t can represent 2**63 - 1 correctly.
  12070. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12071. since some C++ compilers masquerading as C compilers
  12072. incorrectly reject 9223372036854775807. */
  12073. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12074. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12075. && LARGE_OFF_T % 2147483647 == 1)
  12076. ? 1 : -1];
  12077. int
  12078. main ()
  12079. {
  12080. ;
  12081. return 0;
  12082. }
  12083. _ACEOF
  12084. if ac_fn_c_try_compile "$LINENO"; then :
  12085. ac_cv_sys_file_offset_bits=no; break
  12086. fi
  12087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12089. /* end confdefs.h. */
  12090. #define _FILE_OFFSET_BITS 64
  12091. #include <sys/types.h>
  12092. /* Check that off_t can represent 2**63 - 1 correctly.
  12093. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12094. since some C++ compilers masquerading as C compilers
  12095. incorrectly reject 9223372036854775807. */
  12096. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12097. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12098. && LARGE_OFF_T % 2147483647 == 1)
  12099. ? 1 : -1];
  12100. int
  12101. main ()
  12102. {
  12103. ;
  12104. return 0;
  12105. }
  12106. _ACEOF
  12107. if ac_fn_c_try_compile "$LINENO"; then :
  12108. ac_cv_sys_file_offset_bits=64; break
  12109. fi
  12110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12111. ac_cv_sys_file_offset_bits=unknown
  12112. break
  12113. done
  12114. fi
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12116. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12117. case $ac_cv_sys_file_offset_bits in #(
  12118. no | unknown) ;;
  12119. *)
  12120. cat >>confdefs.h <<_ACEOF
  12121. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12122. _ACEOF
  12123. ;;
  12124. esac
  12125. rm -rf conftest*
  12126. if test $ac_cv_sys_file_offset_bits = unknown; then
  12127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12128. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12129. if ${ac_cv_sys_large_files+:} false; then :
  12130. $as_echo_n "(cached) " >&6
  12131. else
  12132. while :; do
  12133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12134. /* end confdefs.h. */
  12135. #include <sys/types.h>
  12136. /* Check that off_t can represent 2**63 - 1 correctly.
  12137. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12138. since some C++ compilers masquerading as C compilers
  12139. incorrectly reject 9223372036854775807. */
  12140. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12141. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12142. && LARGE_OFF_T % 2147483647 == 1)
  12143. ? 1 : -1];
  12144. int
  12145. main ()
  12146. {
  12147. ;
  12148. return 0;
  12149. }
  12150. _ACEOF
  12151. if ac_fn_c_try_compile "$LINENO"; then :
  12152. ac_cv_sys_large_files=no; break
  12153. fi
  12154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12156. /* end confdefs.h. */
  12157. #define _LARGE_FILES 1
  12158. #include <sys/types.h>
  12159. /* Check that off_t can represent 2**63 - 1 correctly.
  12160. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12161. since some C++ compilers masquerading as C compilers
  12162. incorrectly reject 9223372036854775807. */
  12163. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  12164. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12165. && LARGE_OFF_T % 2147483647 == 1)
  12166. ? 1 : -1];
  12167. int
  12168. main ()
  12169. {
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_c_try_compile "$LINENO"; then :
  12175. ac_cv_sys_large_files=1; break
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12178. ac_cv_sys_large_files=unknown
  12179. break
  12180. done
  12181. fi
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  12183. $as_echo "$ac_cv_sys_large_files" >&6; }
  12184. case $ac_cv_sys_large_files in #(
  12185. no | unknown) ;;
  12186. *)
  12187. cat >>confdefs.h <<_ACEOF
  12188. #define _LARGE_FILES $ac_cv_sys_large_files
  12189. _ACEOF
  12190. ;;
  12191. esac
  12192. rm -rf conftest*
  12193. fi
  12194. fi
  12195. CAIRO_VERSION_MAJOR=1
  12196. CAIRO_VERSION_MINOR=16
  12197. CAIRO_VERSION_MICRO=0
  12198. CAIRO_VERSION_SONUM=2
  12199. CAIRO_RELEASE_STATUS=release
  12200. CAIRO_LIBTOOL_VERSION_INFO=11602:0:11600
  12201. # Extract the first word of "find", so it can be a program name with args.
  12202. set dummy find; ac_word=$2
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12204. $as_echo_n "checking for $ac_word... " >&6; }
  12205. if ${ac_cv_path_FIND+:} false; then :
  12206. $as_echo_n "(cached) " >&6
  12207. else
  12208. case $FIND in
  12209. [\\/]* | ?:[\\/]*)
  12210. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  12211. ;;
  12212. *)
  12213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12214. for as_dir in $PATH
  12215. do
  12216. IFS=$as_save_IFS
  12217. test -z "$as_dir" && as_dir=.
  12218. for ac_exec_ext in '' $ac_executable_extensions; do
  12219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12220. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  12221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12222. break 2
  12223. fi
  12224. done
  12225. done
  12226. IFS=$as_save_IFS
  12227. ;;
  12228. esac
  12229. fi
  12230. FIND=$ac_cv_path_FIND
  12231. if test -n "$FIND"; then
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  12233. $as_echo "$FIND" >&6; }
  12234. else
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12236. $as_echo "no" >&6; }
  12237. fi
  12238. # Extract the first word of "xargs", so it can be a program name with args.
  12239. set dummy xargs; ac_word=$2
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12241. $as_echo_n "checking for $ac_word... " >&6; }
  12242. if ${ac_cv_path_XARGS+:} false; then :
  12243. $as_echo_n "(cached) " >&6
  12244. else
  12245. case $XARGS in
  12246. [\\/]* | ?:[\\/]*)
  12247. ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
  12248. ;;
  12249. *)
  12250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12251. for as_dir in $PATH
  12252. do
  12253. IFS=$as_save_IFS
  12254. test -z "$as_dir" && as_dir=.
  12255. for ac_exec_ext in '' $ac_executable_extensions; do
  12256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12257. ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
  12258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12259. break 2
  12260. fi
  12261. done
  12262. done
  12263. IFS=$as_save_IFS
  12264. ;;
  12265. esac
  12266. fi
  12267. XARGS=$ac_cv_path_XARGS
  12268. if test -n "$XARGS"; then
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
  12270. $as_echo "$XARGS" >&6; }
  12271. else
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12273. $as_echo "no" >&6; }
  12274. fi
  12275. ac_ext=c
  12276. ac_cpp='$CPP $CPPFLAGS'
  12277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12280. if test -n "$ac_tool_prefix"; then
  12281. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  12282. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12284. $as_echo_n "checking for $ac_word... " >&6; }
  12285. if ${ac_cv_prog_CC+:} false; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. if test -n "$CC"; then
  12289. ac_cv_prog_CC="$CC" # Let the user override the test.
  12290. else
  12291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12292. for as_dir in $PATH
  12293. do
  12294. IFS=$as_save_IFS
  12295. test -z "$as_dir" && as_dir=.
  12296. for ac_exec_ext in '' $ac_executable_extensions; do
  12297. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12298. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  12299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12300. break 2
  12301. fi
  12302. done
  12303. done
  12304. IFS=$as_save_IFS
  12305. fi
  12306. fi
  12307. CC=$ac_cv_prog_CC
  12308. if test -n "$CC"; then
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12310. $as_echo "$CC" >&6; }
  12311. else
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12313. $as_echo "no" >&6; }
  12314. fi
  12315. fi
  12316. if test -z "$ac_cv_prog_CC"; then
  12317. ac_ct_CC=$CC
  12318. # Extract the first word of "gcc", so it can be a program name with args.
  12319. set dummy gcc; ac_word=$2
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12321. $as_echo_n "checking for $ac_word... " >&6; }
  12322. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12323. $as_echo_n "(cached) " >&6
  12324. else
  12325. if test -n "$ac_ct_CC"; then
  12326. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12327. else
  12328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12329. for as_dir in $PATH
  12330. do
  12331. IFS=$as_save_IFS
  12332. test -z "$as_dir" && as_dir=.
  12333. for ac_exec_ext in '' $ac_executable_extensions; do
  12334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12335. ac_cv_prog_ac_ct_CC="gcc"
  12336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12337. break 2
  12338. fi
  12339. done
  12340. done
  12341. IFS=$as_save_IFS
  12342. fi
  12343. fi
  12344. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12345. if test -n "$ac_ct_CC"; then
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12347. $as_echo "$ac_ct_CC" >&6; }
  12348. else
  12349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12350. $as_echo "no" >&6; }
  12351. fi
  12352. if test "x$ac_ct_CC" = x; then
  12353. CC=""
  12354. else
  12355. case $cross_compiling:$ac_tool_warned in
  12356. yes:)
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12358. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12359. ac_tool_warned=yes ;;
  12360. esac
  12361. CC=$ac_ct_CC
  12362. fi
  12363. else
  12364. CC="$ac_cv_prog_CC"
  12365. fi
  12366. if test -z "$CC"; then
  12367. if test -n "$ac_tool_prefix"; then
  12368. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  12369. set dummy ${ac_tool_prefix}cc; ac_word=$2
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12371. $as_echo_n "checking for $ac_word... " >&6; }
  12372. if ${ac_cv_prog_CC+:} false; then :
  12373. $as_echo_n "(cached) " >&6
  12374. else
  12375. if test -n "$CC"; then
  12376. ac_cv_prog_CC="$CC" # Let the user override the test.
  12377. else
  12378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12379. for as_dir in $PATH
  12380. do
  12381. IFS=$as_save_IFS
  12382. test -z "$as_dir" && as_dir=.
  12383. for ac_exec_ext in '' $ac_executable_extensions; do
  12384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12385. ac_cv_prog_CC="${ac_tool_prefix}cc"
  12386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12387. break 2
  12388. fi
  12389. done
  12390. done
  12391. IFS=$as_save_IFS
  12392. fi
  12393. fi
  12394. CC=$ac_cv_prog_CC
  12395. if test -n "$CC"; then
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12397. $as_echo "$CC" >&6; }
  12398. else
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12400. $as_echo "no" >&6; }
  12401. fi
  12402. fi
  12403. fi
  12404. if test -z "$CC"; then
  12405. # Extract the first word of "cc", so it can be a program name with args.
  12406. set dummy cc; ac_word=$2
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12408. $as_echo_n "checking for $ac_word... " >&6; }
  12409. if ${ac_cv_prog_CC+:} false; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. if test -n "$CC"; then
  12413. ac_cv_prog_CC="$CC" # Let the user override the test.
  12414. else
  12415. ac_prog_rejected=no
  12416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12417. for as_dir in $PATH
  12418. do
  12419. IFS=$as_save_IFS
  12420. test -z "$as_dir" && as_dir=.
  12421. for ac_exec_ext in '' $ac_executable_extensions; do
  12422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12423. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  12424. ac_prog_rejected=yes
  12425. continue
  12426. fi
  12427. ac_cv_prog_CC="cc"
  12428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12429. break 2
  12430. fi
  12431. done
  12432. done
  12433. IFS=$as_save_IFS
  12434. if test $ac_prog_rejected = yes; then
  12435. # We found a bogon in the path, so make sure we never use it.
  12436. set dummy $ac_cv_prog_CC
  12437. shift
  12438. if test $# != 0; then
  12439. # We chose a different compiler from the bogus one.
  12440. # However, it has the same basename, so the bogon will be chosen
  12441. # first if we set CC to just the basename; use the full file name.
  12442. shift
  12443. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  12444. fi
  12445. fi
  12446. fi
  12447. fi
  12448. CC=$ac_cv_prog_CC
  12449. if test -n "$CC"; then
  12450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12451. $as_echo "$CC" >&6; }
  12452. else
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12454. $as_echo "no" >&6; }
  12455. fi
  12456. fi
  12457. if test -z "$CC"; then
  12458. if test -n "$ac_tool_prefix"; then
  12459. for ac_prog in cl.exe
  12460. do
  12461. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12462. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12464. $as_echo_n "checking for $ac_word... " >&6; }
  12465. if ${ac_cv_prog_CC+:} false; then :
  12466. $as_echo_n "(cached) " >&6
  12467. else
  12468. if test -n "$CC"; then
  12469. ac_cv_prog_CC="$CC" # Let the user override the test.
  12470. else
  12471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12472. for as_dir in $PATH
  12473. do
  12474. IFS=$as_save_IFS
  12475. test -z "$as_dir" && as_dir=.
  12476. for ac_exec_ext in '' $ac_executable_extensions; do
  12477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12478. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  12479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12480. break 2
  12481. fi
  12482. done
  12483. done
  12484. IFS=$as_save_IFS
  12485. fi
  12486. fi
  12487. CC=$ac_cv_prog_CC
  12488. if test -n "$CC"; then
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  12490. $as_echo "$CC" >&6; }
  12491. else
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12493. $as_echo "no" >&6; }
  12494. fi
  12495. test -n "$CC" && break
  12496. done
  12497. fi
  12498. if test -z "$CC"; then
  12499. ac_ct_CC=$CC
  12500. for ac_prog in cl.exe
  12501. do
  12502. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12503. set dummy $ac_prog; ac_word=$2
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12505. $as_echo_n "checking for $ac_word... " >&6; }
  12506. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12507. $as_echo_n "(cached) " >&6
  12508. else
  12509. if test -n "$ac_ct_CC"; then
  12510. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12511. else
  12512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12513. for as_dir in $PATH
  12514. do
  12515. IFS=$as_save_IFS
  12516. test -z "$as_dir" && as_dir=.
  12517. for ac_exec_ext in '' $ac_executable_extensions; do
  12518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12519. ac_cv_prog_ac_ct_CC="$ac_prog"
  12520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12521. break 2
  12522. fi
  12523. done
  12524. done
  12525. IFS=$as_save_IFS
  12526. fi
  12527. fi
  12528. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12529. if test -n "$ac_ct_CC"; then
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12531. $as_echo "$ac_ct_CC" >&6; }
  12532. else
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12534. $as_echo "no" >&6; }
  12535. fi
  12536. test -n "$ac_ct_CC" && break
  12537. done
  12538. if test "x$ac_ct_CC" = x; then
  12539. CC=""
  12540. else
  12541. case $cross_compiling:$ac_tool_warned in
  12542. yes:)
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12545. ac_tool_warned=yes ;;
  12546. esac
  12547. CC=$ac_ct_CC
  12548. fi
  12549. fi
  12550. fi
  12551. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12552. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12553. as_fn_error $? "no acceptable C compiler found in \$PATH
  12554. See \`config.log' for more details" "$LINENO" 5; }
  12555. # Provide some information about the compiler.
  12556. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12557. set X $ac_compile
  12558. ac_compiler=$2
  12559. for ac_option in --version -v -V -qversion; do
  12560. { { ac_try="$ac_compiler $ac_option >&5"
  12561. case "(($ac_try" in
  12562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12563. *) ac_try_echo=$ac_try;;
  12564. esac
  12565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12566. $as_echo "$ac_try_echo"; } >&5
  12567. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12568. ac_status=$?
  12569. if test -s conftest.err; then
  12570. sed '10a\
  12571. ... rest of stderr output deleted ...
  12572. 10q' conftest.err >conftest.er1
  12573. cat conftest.er1 >&5
  12574. fi
  12575. rm -f conftest.er1 conftest.err
  12576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12577. test $ac_status = 0; }
  12578. done
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12580. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12581. if ${ac_cv_c_compiler_gnu+:} false; then :
  12582. $as_echo_n "(cached) " >&6
  12583. else
  12584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12585. /* end confdefs.h. */
  12586. int
  12587. main ()
  12588. {
  12589. #ifndef __GNUC__
  12590. choke me
  12591. #endif
  12592. ;
  12593. return 0;
  12594. }
  12595. _ACEOF
  12596. if ac_fn_c_try_compile "$LINENO"; then :
  12597. ac_compiler_gnu=yes
  12598. else
  12599. ac_compiler_gnu=no
  12600. fi
  12601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12602. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12603. fi
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12605. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12606. if test $ac_compiler_gnu = yes; then
  12607. GCC=yes
  12608. else
  12609. GCC=
  12610. fi
  12611. ac_test_CFLAGS=${CFLAGS+set}
  12612. ac_save_CFLAGS=$CFLAGS
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12614. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  12615. if ${ac_cv_prog_cc_g+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. ac_save_c_werror_flag=$ac_c_werror_flag
  12619. ac_c_werror_flag=yes
  12620. ac_cv_prog_cc_g=no
  12621. CFLAGS="-g"
  12622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12623. /* end confdefs.h. */
  12624. int
  12625. main ()
  12626. {
  12627. ;
  12628. return 0;
  12629. }
  12630. _ACEOF
  12631. if ac_fn_c_try_compile "$LINENO"; then :
  12632. ac_cv_prog_cc_g=yes
  12633. else
  12634. CFLAGS=""
  12635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12636. /* end confdefs.h. */
  12637. int
  12638. main ()
  12639. {
  12640. ;
  12641. return 0;
  12642. }
  12643. _ACEOF
  12644. if ac_fn_c_try_compile "$LINENO"; then :
  12645. else
  12646. ac_c_werror_flag=$ac_save_c_werror_flag
  12647. CFLAGS="-g"
  12648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12649. /* end confdefs.h. */
  12650. int
  12651. main ()
  12652. {
  12653. ;
  12654. return 0;
  12655. }
  12656. _ACEOF
  12657. if ac_fn_c_try_compile "$LINENO"; then :
  12658. ac_cv_prog_cc_g=yes
  12659. fi
  12660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12661. fi
  12662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12663. fi
  12664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12665. ac_c_werror_flag=$ac_save_c_werror_flag
  12666. fi
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12668. $as_echo "$ac_cv_prog_cc_g" >&6; }
  12669. if test "$ac_test_CFLAGS" = set; then
  12670. CFLAGS=$ac_save_CFLAGS
  12671. elif test $ac_cv_prog_cc_g = yes; then
  12672. if test "$GCC" = yes; then
  12673. CFLAGS="-g -O2"
  12674. else
  12675. CFLAGS="-g"
  12676. fi
  12677. else
  12678. if test "$GCC" = yes; then
  12679. CFLAGS="-O2"
  12680. else
  12681. CFLAGS=
  12682. fi
  12683. fi
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12685. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12686. if ${ac_cv_prog_cc_c89+:} false; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. ac_cv_prog_cc_c89=no
  12690. ac_save_CC=$CC
  12691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12692. /* end confdefs.h. */
  12693. #include <stdarg.h>
  12694. #include <stdio.h>
  12695. struct stat;
  12696. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  12697. struct buf { int x; };
  12698. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12699. static char *e (p, i)
  12700. char **p;
  12701. int i;
  12702. {
  12703. return p[i];
  12704. }
  12705. static char *f (char * (*g) (char **, int), char **p, ...)
  12706. {
  12707. char *s;
  12708. va_list v;
  12709. va_start (v,p);
  12710. s = g (p, va_arg (v,int));
  12711. va_end (v);
  12712. return s;
  12713. }
  12714. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  12715. function prototypes and stuff, but not '\xHH' hex character constants.
  12716. These don't provoke an error unfortunately, instead are silently treated
  12717. as 'x'. The following induces an error, until -std is added to get
  12718. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  12719. array size at least. It's necessary to write '\x00'==0 to get something
  12720. that's true only with -std. */
  12721. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12722. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12723. inside strings and character constants. */
  12724. #define FOO(x) 'x'
  12725. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12726. int test (int i, double x);
  12727. struct s1 {int (*f) (int a);};
  12728. struct s2 {int (*f) (double a);};
  12729. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12730. int argc;
  12731. char **argv;
  12732. int
  12733. main ()
  12734. {
  12735. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  12736. ;
  12737. return 0;
  12738. }
  12739. _ACEOF
  12740. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12741. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12742. do
  12743. CC="$ac_save_CC $ac_arg"
  12744. if ac_fn_c_try_compile "$LINENO"; then :
  12745. ac_cv_prog_cc_c89=$ac_arg
  12746. fi
  12747. rm -f core conftest.err conftest.$ac_objext
  12748. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12749. done
  12750. rm -f conftest.$ac_ext
  12751. CC=$ac_save_CC
  12752. fi
  12753. # AC_CACHE_VAL
  12754. case "x$ac_cv_prog_cc_c89" in
  12755. x)
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12757. $as_echo "none needed" >&6; } ;;
  12758. xno)
  12759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12760. $as_echo "unsupported" >&6; } ;;
  12761. *)
  12762. CC="$CC $ac_cv_prog_cc_c89"
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12764. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12765. esac
  12766. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12767. fi
  12768. ac_ext=c
  12769. ac_cpp='$CPP $CPPFLAGS'
  12770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12773. ac_ext=c
  12774. ac_cpp='$CPP $CPPFLAGS'
  12775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  12779. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  12780. if ${am_cv_prog_cc_c_o+:} false; then :
  12781. $as_echo_n "(cached) " >&6
  12782. else
  12783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12784. /* end confdefs.h. */
  12785. int
  12786. main ()
  12787. {
  12788. ;
  12789. return 0;
  12790. }
  12791. _ACEOF
  12792. # Make sure it works both with $CC and with simple cc.
  12793. # Following AC_PROG_CC_C_O, we do the test twice because some
  12794. # compilers refuse to overwrite an existing .o file with -o,
  12795. # though they will create one.
  12796. am_cv_prog_cc_c_o=yes
  12797. for am_i in 1 2; do
  12798. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  12799. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  12800. ac_status=$?
  12801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12802. (exit $ac_status); } \
  12803. && test -f conftest2.$ac_objext; then
  12804. : OK
  12805. else
  12806. am_cv_prog_cc_c_o=no
  12807. break
  12808. fi
  12809. done
  12810. rm -f core conftest*
  12811. unset am_i
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  12814. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  12815. if test "$am_cv_prog_cc_c_o" != yes; then
  12816. # Losing compiler, so override with the script.
  12817. # FIXME: It is wrong to rewrite CC.
  12818. # But if we don't then we get into trouble of one sort or another.
  12819. # A longer-term fix would be to have automake use am__CC in this case,
  12820. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12821. CC="$am_aux_dir/compile $CC"
  12822. fi
  12823. ac_ext=c
  12824. ac_cpp='$CPP $CPPFLAGS'
  12825. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12826. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12827. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12828. ac_ext=c
  12829. ac_cpp='$CPP $CPPFLAGS'
  12830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  12834. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  12835. # On Suns, sometimes $CPP names a directory.
  12836. if test -n "$CPP" && test -d "$CPP"; then
  12837. CPP=
  12838. fi
  12839. if test -z "$CPP"; then
  12840. if ${ac_cv_prog_CPP+:} false; then :
  12841. $as_echo_n "(cached) " >&6
  12842. else
  12843. # Double quotes because CPP needs to be expanded
  12844. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  12845. do
  12846. ac_preproc_ok=false
  12847. for ac_c_preproc_warn_flag in '' yes
  12848. do
  12849. # Use a header file that comes with gcc, so configuring glibc
  12850. # with a fresh cross-compiler works.
  12851. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12852. # <limits.h> exists even on freestanding compilers.
  12853. # On the NeXT, cc -E runs the code through the compiler's parser,
  12854. # not just through cpp. "Syntax error" is here to catch this case.
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. #ifdef __STDC__
  12858. # include <limits.h>
  12859. #else
  12860. # include <assert.h>
  12861. #endif
  12862. Syntax error
  12863. _ACEOF
  12864. if ac_fn_c_try_cpp "$LINENO"; then :
  12865. else
  12866. # Broken: fails on valid input.
  12867. continue
  12868. fi
  12869. rm -f conftest.err conftest.i conftest.$ac_ext
  12870. # OK, works on sane cases. Now check whether nonexistent headers
  12871. # can be detected and how.
  12872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12873. /* end confdefs.h. */
  12874. #include <ac_nonexistent.h>
  12875. _ACEOF
  12876. if ac_fn_c_try_cpp "$LINENO"; then :
  12877. # Broken: success on invalid input.
  12878. continue
  12879. else
  12880. # Passes both tests.
  12881. ac_preproc_ok=:
  12882. break
  12883. fi
  12884. rm -f conftest.err conftest.i conftest.$ac_ext
  12885. done
  12886. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12887. rm -f conftest.i conftest.err conftest.$ac_ext
  12888. if $ac_preproc_ok; then :
  12889. break
  12890. fi
  12891. done
  12892. ac_cv_prog_CPP=$CPP
  12893. fi
  12894. CPP=$ac_cv_prog_CPP
  12895. else
  12896. ac_cv_prog_CPP=$CPP
  12897. fi
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  12899. $as_echo "$CPP" >&6; }
  12900. ac_preproc_ok=false
  12901. for ac_c_preproc_warn_flag in '' yes
  12902. do
  12903. # Use a header file that comes with gcc, so configuring glibc
  12904. # with a fresh cross-compiler works.
  12905. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12906. # <limits.h> exists even on freestanding compilers.
  12907. # On the NeXT, cc -E runs the code through the compiler's parser,
  12908. # not just through cpp. "Syntax error" is here to catch this case.
  12909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12910. /* end confdefs.h. */
  12911. #ifdef __STDC__
  12912. # include <limits.h>
  12913. #else
  12914. # include <assert.h>
  12915. #endif
  12916. Syntax error
  12917. _ACEOF
  12918. if ac_fn_c_try_cpp "$LINENO"; then :
  12919. else
  12920. # Broken: fails on valid input.
  12921. continue
  12922. fi
  12923. rm -f conftest.err conftest.i conftest.$ac_ext
  12924. # OK, works on sane cases. Now check whether nonexistent headers
  12925. # can be detected and how.
  12926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12927. /* end confdefs.h. */
  12928. #include <ac_nonexistent.h>
  12929. _ACEOF
  12930. if ac_fn_c_try_cpp "$LINENO"; then :
  12931. # Broken: success on invalid input.
  12932. continue
  12933. else
  12934. # Passes both tests.
  12935. ac_preproc_ok=:
  12936. break
  12937. fi
  12938. rm -f conftest.err conftest.i conftest.$ac_ext
  12939. done
  12940. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12941. rm -f conftest.i conftest.err conftest.$ac_ext
  12942. if $ac_preproc_ok; then :
  12943. else
  12944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12946. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  12947. See \`config.log' for more details" "$LINENO" 5; }
  12948. fi
  12949. ac_ext=c
  12950. ac_cpp='$CPP $CPPFLAGS'
  12951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12954. ac_ext=cpp
  12955. ac_cpp='$CXXCPP $CPPFLAGS'
  12956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12959. if test -z "$CXX"; then
  12960. if test -n "$CCC"; then
  12961. CXX=$CCC
  12962. else
  12963. if test -n "$ac_tool_prefix"; then
  12964. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12965. do
  12966. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12967. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12969. $as_echo_n "checking for $ac_word... " >&6; }
  12970. if ${ac_cv_prog_CXX+:} false; then :
  12971. $as_echo_n "(cached) " >&6
  12972. else
  12973. if test -n "$CXX"; then
  12974. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12975. else
  12976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12977. for as_dir in $PATH
  12978. do
  12979. IFS=$as_save_IFS
  12980. test -z "$as_dir" && as_dir=.
  12981. for ac_exec_ext in '' $ac_executable_extensions; do
  12982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12983. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12985. break 2
  12986. fi
  12987. done
  12988. done
  12989. IFS=$as_save_IFS
  12990. fi
  12991. fi
  12992. CXX=$ac_cv_prog_CXX
  12993. if test -n "$CXX"; then
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12995. $as_echo "$CXX" >&6; }
  12996. else
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12998. $as_echo "no" >&6; }
  12999. fi
  13000. test -n "$CXX" && break
  13001. done
  13002. fi
  13003. if test -z "$CXX"; then
  13004. ac_ct_CXX=$CXX
  13005. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  13006. do
  13007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13008. set dummy $ac_prog; ac_word=$2
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13010. $as_echo_n "checking for $ac_word... " >&6; }
  13011. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  13012. $as_echo_n "(cached) " >&6
  13013. else
  13014. if test -n "$ac_ct_CXX"; then
  13015. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13016. else
  13017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13018. for as_dir in $PATH
  13019. do
  13020. IFS=$as_save_IFS
  13021. test -z "$as_dir" && as_dir=.
  13022. for ac_exec_ext in '' $ac_executable_extensions; do
  13023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13024. ac_cv_prog_ac_ct_CXX="$ac_prog"
  13025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13026. break 2
  13027. fi
  13028. done
  13029. done
  13030. IFS=$as_save_IFS
  13031. fi
  13032. fi
  13033. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13034. if test -n "$ac_ct_CXX"; then
  13035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13036. $as_echo "$ac_ct_CXX" >&6; }
  13037. else
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13039. $as_echo "no" >&6; }
  13040. fi
  13041. test -n "$ac_ct_CXX" && break
  13042. done
  13043. if test "x$ac_ct_CXX" = x; then
  13044. CXX="g++"
  13045. else
  13046. case $cross_compiling:$ac_tool_warned in
  13047. yes:)
  13048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13049. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13050. ac_tool_warned=yes ;;
  13051. esac
  13052. CXX=$ac_ct_CXX
  13053. fi
  13054. fi
  13055. fi
  13056. fi
  13057. # Provide some information about the compiler.
  13058. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13059. set X $ac_compile
  13060. ac_compiler=$2
  13061. for ac_option in --version -v -V -qversion; do
  13062. { { ac_try="$ac_compiler $ac_option >&5"
  13063. case "(($ac_try" in
  13064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13065. *) ac_try_echo=$ac_try;;
  13066. esac
  13067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13068. $as_echo "$ac_try_echo"; } >&5
  13069. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13070. ac_status=$?
  13071. if test -s conftest.err; then
  13072. sed '10a\
  13073. ... rest of stderr output deleted ...
  13074. 10q' conftest.err >conftest.er1
  13075. cat conftest.er1 >&5
  13076. fi
  13077. rm -f conftest.er1 conftest.err
  13078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13079. test $ac_status = 0; }
  13080. done
  13081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  13082. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  13083. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  13084. $as_echo_n "(cached) " >&6
  13085. else
  13086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13087. /* end confdefs.h. */
  13088. int
  13089. main ()
  13090. {
  13091. #ifndef __GNUC__
  13092. choke me
  13093. #endif
  13094. ;
  13095. return 0;
  13096. }
  13097. _ACEOF
  13098. if ac_fn_cxx_try_compile "$LINENO"; then :
  13099. ac_compiler_gnu=yes
  13100. else
  13101. ac_compiler_gnu=no
  13102. fi
  13103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13104. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13105. fi
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13107. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  13108. if test $ac_compiler_gnu = yes; then
  13109. GXX=yes
  13110. else
  13111. GXX=
  13112. fi
  13113. ac_test_CXXFLAGS=${CXXFLAGS+set}
  13114. ac_save_CXXFLAGS=$CXXFLAGS
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13116. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  13117. if ${ac_cv_prog_cxx_g+:} false; then :
  13118. $as_echo_n "(cached) " >&6
  13119. else
  13120. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13121. ac_cxx_werror_flag=yes
  13122. ac_cv_prog_cxx_g=no
  13123. CXXFLAGS="-g"
  13124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13125. /* end confdefs.h. */
  13126. int
  13127. main ()
  13128. {
  13129. ;
  13130. return 0;
  13131. }
  13132. _ACEOF
  13133. if ac_fn_cxx_try_compile "$LINENO"; then :
  13134. ac_cv_prog_cxx_g=yes
  13135. else
  13136. CXXFLAGS=""
  13137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13138. /* end confdefs.h. */
  13139. int
  13140. main ()
  13141. {
  13142. ;
  13143. return 0;
  13144. }
  13145. _ACEOF
  13146. if ac_fn_cxx_try_compile "$LINENO"; then :
  13147. else
  13148. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13149. CXXFLAGS="-g"
  13150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13151. /* end confdefs.h. */
  13152. int
  13153. main ()
  13154. {
  13155. ;
  13156. return 0;
  13157. }
  13158. _ACEOF
  13159. if ac_fn_cxx_try_compile "$LINENO"; then :
  13160. ac_cv_prog_cxx_g=yes
  13161. fi
  13162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13163. fi
  13164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13165. fi
  13166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13167. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13168. fi
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13170. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  13171. if test "$ac_test_CXXFLAGS" = set; then
  13172. CXXFLAGS=$ac_save_CXXFLAGS
  13173. elif test $ac_cv_prog_cxx_g = yes; then
  13174. if test "$GXX" = yes; then
  13175. CXXFLAGS="-g -O2"
  13176. else
  13177. CXXFLAGS="-g"
  13178. fi
  13179. else
  13180. if test "$GXX" = yes; then
  13181. CXXFLAGS="-O2"
  13182. else
  13183. CXXFLAGS=
  13184. fi
  13185. fi
  13186. ac_ext=c
  13187. ac_cpp='$CPP $CPPFLAGS'
  13188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13191. depcc="$CXX" am_compiler_list=
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13193. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13194. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13195. $as_echo_n "(cached) " >&6
  13196. else
  13197. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13198. # We make a subdir and do the tests there. Otherwise we can end up
  13199. # making bogus files that we don't know about and never remove. For
  13200. # instance it was reported that on HP-UX the gcc test will end up
  13201. # making a dummy file named 'D' -- because '-MD' means "put the output
  13202. # in D".
  13203. rm -rf conftest.dir
  13204. mkdir conftest.dir
  13205. # Copy depcomp to subdir because otherwise we won't find it if we're
  13206. # using a relative directory.
  13207. cp "$am_depcomp" conftest.dir
  13208. cd conftest.dir
  13209. # We will build objects and dependencies in a subdirectory because
  13210. # it helps to detect inapplicable dependency modes. For instance
  13211. # both Tru64's cc and ICC support -MD to output dependencies as a
  13212. # side effect of compilation, but ICC will put the dependencies in
  13213. # the current directory while Tru64 will put them in the object
  13214. # directory.
  13215. mkdir sub
  13216. am_cv_CXX_dependencies_compiler_type=none
  13217. if test "$am_compiler_list" = ""; then
  13218. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13219. fi
  13220. am__universal=false
  13221. case " $depcc " in #(
  13222. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13223. esac
  13224. for depmode in $am_compiler_list; do
  13225. # Setup a source with many dependencies, because some compilers
  13226. # like to wrap large dependency lists on column 80 (with \), and
  13227. # we should not choose a depcomp mode which is confused by this.
  13228. #
  13229. # We need to recreate these files for each test, as the compiler may
  13230. # overwrite some of them when testing with obscure command lines.
  13231. # This happens at least with the AIX C compiler.
  13232. : > sub/conftest.c
  13233. for i in 1 2 3 4 5 6; do
  13234. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13235. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13236. # Solaris 10 /bin/sh.
  13237. echo '/* dummy */' > sub/conftst$i.h
  13238. done
  13239. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13240. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13241. # mode. It turns out that the SunPro C++ compiler does not properly
  13242. # handle '-M -o', and we need to detect this. Also, some Intel
  13243. # versions had trouble with output in subdirs.
  13244. am__obj=sub/conftest.${OBJEXT-o}
  13245. am__minus_obj="-o $am__obj"
  13246. case $depmode in
  13247. gcc)
  13248. # This depmode causes a compiler race in universal mode.
  13249. test "$am__universal" = false || continue
  13250. ;;
  13251. nosideeffect)
  13252. # After this tag, mechanisms are not by side-effect, so they'll
  13253. # only be used when explicitly requested.
  13254. if test "x$enable_dependency_tracking" = xyes; then
  13255. continue
  13256. else
  13257. break
  13258. fi
  13259. ;;
  13260. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13261. # This compiler won't grok '-c -o', but also, the minuso test has
  13262. # not run yet. These depmodes are late enough in the game, and
  13263. # so weak that their functioning should not be impacted.
  13264. am__obj=conftest.${OBJEXT-o}
  13265. am__minus_obj=
  13266. ;;
  13267. none) break ;;
  13268. esac
  13269. if depmode=$depmode \
  13270. source=sub/conftest.c object=$am__obj \
  13271. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13272. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13273. >/dev/null 2>conftest.err &&
  13274. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13275. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13276. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13277. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13278. # icc doesn't choke on unknown options, it will just issue warnings
  13279. # or remarks (even with -Werror). So we grep stderr for any message
  13280. # that says an option was ignored or not supported.
  13281. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13282. # icc: Command line warning: ignoring option '-M'; no argument required
  13283. # The diagnosis changed in icc 8.0:
  13284. # icc: Command line remark: option '-MP' not supported
  13285. if (grep 'ignoring option' conftest.err ||
  13286. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13287. am_cv_CXX_dependencies_compiler_type=$depmode
  13288. break
  13289. fi
  13290. fi
  13291. done
  13292. cd ..
  13293. rm -rf conftest.dir
  13294. else
  13295. am_cv_CXX_dependencies_compiler_type=none
  13296. fi
  13297. fi
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13299. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13300. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13301. if
  13302. test "x$enable_dependency_tracking" != xno \
  13303. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13304. am__fastdepCXX_TRUE=
  13305. am__fastdepCXX_FALSE='#'
  13306. else
  13307. am__fastdepCXX_TRUE='#'
  13308. am__fastdepCXX_FALSE=
  13309. fi
  13310. func_stripname_cnf ()
  13311. {
  13312. case $2 in
  13313. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  13314. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  13315. esac
  13316. } # func_stripname_cnf
  13317. if test -n "$CXX" && ( test no != "$CXX" &&
  13318. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  13319. (test g++ != "$CXX"))); then
  13320. ac_ext=cpp
  13321. ac_cpp='$CXXCPP $CPPFLAGS'
  13322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13326. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  13327. if test -z "$CXXCPP"; then
  13328. if ${ac_cv_prog_CXXCPP+:} false; then :
  13329. $as_echo_n "(cached) " >&6
  13330. else
  13331. # Double quotes because CXXCPP needs to be expanded
  13332. for CXXCPP in "$CXX -E" "/lib/cpp"
  13333. do
  13334. ac_preproc_ok=false
  13335. for ac_cxx_preproc_warn_flag in '' yes
  13336. do
  13337. # Use a header file that comes with gcc, so configuring glibc
  13338. # with a fresh cross-compiler works.
  13339. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13340. # <limits.h> exists even on freestanding compilers.
  13341. # On the NeXT, cc -E runs the code through the compiler's parser,
  13342. # not just through cpp. "Syntax error" is here to catch this case.
  13343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13344. /* end confdefs.h. */
  13345. #ifdef __STDC__
  13346. # include <limits.h>
  13347. #else
  13348. # include <assert.h>
  13349. #endif
  13350. Syntax error
  13351. _ACEOF
  13352. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13353. else
  13354. # Broken: fails on valid input.
  13355. continue
  13356. fi
  13357. rm -f conftest.err conftest.i conftest.$ac_ext
  13358. # OK, works on sane cases. Now check whether nonexistent headers
  13359. # can be detected and how.
  13360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13361. /* end confdefs.h. */
  13362. #include <ac_nonexistent.h>
  13363. _ACEOF
  13364. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13365. # Broken: success on invalid input.
  13366. continue
  13367. else
  13368. # Passes both tests.
  13369. ac_preproc_ok=:
  13370. break
  13371. fi
  13372. rm -f conftest.err conftest.i conftest.$ac_ext
  13373. done
  13374. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13375. rm -f conftest.i conftest.err conftest.$ac_ext
  13376. if $ac_preproc_ok; then :
  13377. break
  13378. fi
  13379. done
  13380. ac_cv_prog_CXXCPP=$CXXCPP
  13381. fi
  13382. CXXCPP=$ac_cv_prog_CXXCPP
  13383. else
  13384. ac_cv_prog_CXXCPP=$CXXCPP
  13385. fi
  13386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13387. $as_echo "$CXXCPP" >&6; }
  13388. ac_preproc_ok=false
  13389. for ac_cxx_preproc_warn_flag in '' yes
  13390. do
  13391. # Use a header file that comes with gcc, so configuring glibc
  13392. # with a fresh cross-compiler works.
  13393. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13394. # <limits.h> exists even on freestanding compilers.
  13395. # On the NeXT, cc -E runs the code through the compiler's parser,
  13396. # not just through cpp. "Syntax error" is here to catch this case.
  13397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13398. /* end confdefs.h. */
  13399. #ifdef __STDC__
  13400. # include <limits.h>
  13401. #else
  13402. # include <assert.h>
  13403. #endif
  13404. Syntax error
  13405. _ACEOF
  13406. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13407. else
  13408. # Broken: fails on valid input.
  13409. continue
  13410. fi
  13411. rm -f conftest.err conftest.i conftest.$ac_ext
  13412. # OK, works on sane cases. Now check whether nonexistent headers
  13413. # can be detected and how.
  13414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13415. /* end confdefs.h. */
  13416. #include <ac_nonexistent.h>
  13417. _ACEOF
  13418. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13419. # Broken: success on invalid input.
  13420. continue
  13421. else
  13422. # Passes both tests.
  13423. ac_preproc_ok=:
  13424. break
  13425. fi
  13426. rm -f conftest.err conftest.i conftest.$ac_ext
  13427. done
  13428. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13429. rm -f conftest.i conftest.err conftest.$ac_ext
  13430. if $ac_preproc_ok; then :
  13431. else
  13432. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13433. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13434. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13435. See \`config.log' for more details" "$LINENO" 5; }
  13436. fi
  13437. ac_ext=c
  13438. ac_cpp='$CPP $CPPFLAGS'
  13439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13442. else
  13443. _lt_caught_CXX_error=yes
  13444. fi
  13445. ac_ext=cpp
  13446. ac_cpp='$CXXCPP $CPPFLAGS'
  13447. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13448. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13449. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13450. archive_cmds_need_lc_CXX=no
  13451. allow_undefined_flag_CXX=
  13452. always_export_symbols_CXX=no
  13453. archive_expsym_cmds_CXX=
  13454. compiler_needs_object_CXX=no
  13455. export_dynamic_flag_spec_CXX=
  13456. hardcode_direct_CXX=no
  13457. hardcode_direct_absolute_CXX=no
  13458. hardcode_libdir_flag_spec_CXX=
  13459. hardcode_libdir_separator_CXX=
  13460. hardcode_minus_L_CXX=no
  13461. hardcode_shlibpath_var_CXX=unsupported
  13462. hardcode_automatic_CXX=no
  13463. inherit_rpath_CXX=no
  13464. module_cmds_CXX=
  13465. module_expsym_cmds_CXX=
  13466. link_all_deplibs_CXX=unknown
  13467. old_archive_cmds_CXX=$old_archive_cmds
  13468. reload_flag_CXX=$reload_flag
  13469. reload_cmds_CXX=$reload_cmds
  13470. no_undefined_flag_CXX=
  13471. whole_archive_flag_spec_CXX=
  13472. enable_shared_with_static_runtimes_CXX=no
  13473. # Source file extension for C++ test sources.
  13474. ac_ext=cpp
  13475. # Object file extension for compiled C++ test sources.
  13476. objext=o
  13477. objext_CXX=$objext
  13478. # No sense in running all these tests if we already determined that
  13479. # the CXX compiler isn't working. Some variables (like enable_shared)
  13480. # are currently assumed to apply to all compilers on this platform,
  13481. # and will be corrupted by setting them based on a non-working compiler.
  13482. if test yes != "$_lt_caught_CXX_error"; then
  13483. # Code to be used in simple compile tests
  13484. lt_simple_compile_test_code="int some_variable = 0;"
  13485. # Code to be used in simple link tests
  13486. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13487. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13488. # If no C compiler was specified, use CC.
  13489. LTCC=${LTCC-"$CC"}
  13490. # If no C compiler flags were specified, use CFLAGS.
  13491. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13492. # Allow CC to be a program name with arguments.
  13493. compiler=$CC
  13494. # save warnings/boilerplate of simple test code
  13495. ac_outfile=conftest.$ac_objext
  13496. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13497. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13498. _lt_compiler_boilerplate=`cat conftest.err`
  13499. $RM conftest*
  13500. ac_outfile=conftest.$ac_objext
  13501. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13502. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13503. _lt_linker_boilerplate=`cat conftest.err`
  13504. $RM -r conftest*
  13505. # Allow CC to be a program name with arguments.
  13506. lt_save_CC=$CC
  13507. lt_save_CFLAGS=$CFLAGS
  13508. lt_save_LD=$LD
  13509. lt_save_GCC=$GCC
  13510. GCC=$GXX
  13511. lt_save_with_gnu_ld=$with_gnu_ld
  13512. lt_save_path_LD=$lt_cv_path_LD
  13513. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13514. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13515. else
  13516. $as_unset lt_cv_prog_gnu_ld
  13517. fi
  13518. if test -n "${lt_cv_path_LDCXX+set}"; then
  13519. lt_cv_path_LD=$lt_cv_path_LDCXX
  13520. else
  13521. $as_unset lt_cv_path_LD
  13522. fi
  13523. test -z "${LDCXX+set}" || LD=$LDCXX
  13524. CC=${CXX-"c++"}
  13525. CFLAGS=$CXXFLAGS
  13526. compiler=$CC
  13527. compiler_CXX=$CC
  13528. func_cc_basename $compiler
  13529. cc_basename=$func_cc_basename_result
  13530. if test -n "$compiler"; then
  13531. # We don't want -fno-exception when compiling C++ code, so set the
  13532. # no_builtin_flag separately
  13533. if test yes = "$GXX"; then
  13534. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13535. else
  13536. lt_prog_compiler_no_builtin_flag_CXX=
  13537. fi
  13538. if test yes = "$GXX"; then
  13539. # Set up default GNU C++ configuration
  13540. # Check whether --with-gnu-ld was given.
  13541. if test "${with_gnu_ld+set}" = set; then :
  13542. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  13543. else
  13544. with_gnu_ld=no
  13545. fi
  13546. ac_prog=ld
  13547. if test yes = "$GCC"; then
  13548. # Check if gcc -print-prog-name=ld gives a path.
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13550. $as_echo_n "checking for ld used by $CC... " >&6; }
  13551. case $host in
  13552. *-*-mingw*)
  13553. # gcc leaves a trailing carriage return, which upsets mingw
  13554. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13555. *)
  13556. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13557. esac
  13558. case $ac_prog in
  13559. # Accept absolute paths.
  13560. [\\/]* | ?:[\\/]*)
  13561. re_direlt='/[^/][^/]*/\.\./'
  13562. # Canonicalize the pathname of ld
  13563. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13564. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13565. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13566. done
  13567. test -z "$LD" && LD=$ac_prog
  13568. ;;
  13569. "")
  13570. # If it fails, then pretend we aren't using GCC.
  13571. ac_prog=ld
  13572. ;;
  13573. *)
  13574. # If it is relative, then search for the first ld in PATH.
  13575. with_gnu_ld=unknown
  13576. ;;
  13577. esac
  13578. elif test yes = "$with_gnu_ld"; then
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13580. $as_echo_n "checking for GNU ld... " >&6; }
  13581. else
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13583. $as_echo_n "checking for non-GNU ld... " >&6; }
  13584. fi
  13585. if ${lt_cv_path_LD+:} false; then :
  13586. $as_echo_n "(cached) " >&6
  13587. else
  13588. if test -z "$LD"; then
  13589. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  13590. for ac_dir in $PATH; do
  13591. IFS=$lt_save_ifs
  13592. test -z "$ac_dir" && ac_dir=.
  13593. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13594. lt_cv_path_LD=$ac_dir/$ac_prog
  13595. # Check to see if the program is GNU ld. I'd rather use --version,
  13596. # but apparently some variants of GNU ld only accept -v.
  13597. # Break only if it was the GNU/non-GNU ld that we prefer.
  13598. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13599. *GNU* | *'with BFD'*)
  13600. test no != "$with_gnu_ld" && break
  13601. ;;
  13602. *)
  13603. test yes != "$with_gnu_ld" && break
  13604. ;;
  13605. esac
  13606. fi
  13607. done
  13608. IFS=$lt_save_ifs
  13609. else
  13610. lt_cv_path_LD=$LD # Let the user override the test with a path.
  13611. fi
  13612. fi
  13613. LD=$lt_cv_path_LD
  13614. if test -n "$LD"; then
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13616. $as_echo "$LD" >&6; }
  13617. else
  13618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13619. $as_echo "no" >&6; }
  13620. fi
  13621. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13623. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13624. if ${lt_cv_prog_gnu_ld+:} false; then :
  13625. $as_echo_n "(cached) " >&6
  13626. else
  13627. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13628. case `$LD -v 2>&1 </dev/null` in
  13629. *GNU* | *'with BFD'*)
  13630. lt_cv_prog_gnu_ld=yes
  13631. ;;
  13632. *)
  13633. lt_cv_prog_gnu_ld=no
  13634. ;;
  13635. esac
  13636. fi
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13638. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13639. with_gnu_ld=$lt_cv_prog_gnu_ld
  13640. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13641. # archiving commands below assume that GNU ld is being used.
  13642. if test yes = "$with_gnu_ld"; then
  13643. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13644. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13645. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13646. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13647. # If archive_cmds runs LD, not CC, wlarc should be empty
  13648. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13649. # investigate it a little bit more. (MM)
  13650. wlarc='$wl'
  13651. # ancient GNU ld didn't support --whole-archive et. al.
  13652. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13653. $GREP 'no-whole-archive' > /dev/null; then
  13654. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13655. else
  13656. whole_archive_flag_spec_CXX=
  13657. fi
  13658. else
  13659. with_gnu_ld=no
  13660. wlarc=
  13661. # A generic and very simple default shared library creation
  13662. # command for GNU C++ for the case where it uses the native
  13663. # linker, instead of GNU ld. If possible, this setting should
  13664. # overridden to take advantage of the native linker features on
  13665. # the platform it is being used on.
  13666. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13667. fi
  13668. # Commands to make compiler produce verbose output that lists
  13669. # what "hidden" libraries, object files and flags are used when
  13670. # linking a shared library.
  13671. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13672. else
  13673. GXX=no
  13674. with_gnu_ld=no
  13675. wlarc=
  13676. fi
  13677. # PORTME: fill in a description of your system's C++ link characteristics
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13679. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13680. ld_shlibs_CXX=yes
  13681. case $host_os in
  13682. aix3*)
  13683. # FIXME: insert proper C++ library support
  13684. ld_shlibs_CXX=no
  13685. ;;
  13686. aix[4-9]*)
  13687. if test ia64 = "$host_cpu"; then
  13688. # On IA64, the linker does run time linking by default, so we don't
  13689. # have to do anything special.
  13690. aix_use_runtimelinking=no
  13691. exp_sym_flag='-Bexport'
  13692. no_entry_flag=
  13693. else
  13694. aix_use_runtimelinking=no
  13695. # Test if we are trying to use run time linking or normal
  13696. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13697. # have runtime linking enabled, and use it for executables.
  13698. # For shared libraries, we enable/disable runtime linking
  13699. # depending on the kind of the shared library created -
  13700. # when "with_aix_soname,aix_use_runtimelinking" is:
  13701. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13702. # "aix,yes" lib.so shared, rtl:yes, for executables
  13703. # lib.a static archive
  13704. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13705. # lib.a(lib.so.V) shared, rtl:no, for executables
  13706. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13707. # lib.a(lib.so.V) shared, rtl:no
  13708. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13709. # lib.a static archive
  13710. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13711. for ld_flag in $LDFLAGS; do
  13712. case $ld_flag in
  13713. *-brtl*)
  13714. aix_use_runtimelinking=yes
  13715. break
  13716. ;;
  13717. esac
  13718. done
  13719. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13720. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13721. # so we don't have lib.a shared libs to link our executables.
  13722. # We have to force runtime linking in this case.
  13723. aix_use_runtimelinking=yes
  13724. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13725. fi
  13726. ;;
  13727. esac
  13728. exp_sym_flag='-bexport'
  13729. no_entry_flag='-bnoentry'
  13730. fi
  13731. # When large executables or shared objects are built, AIX ld can
  13732. # have problems creating the table of contents. If linking a library
  13733. # or program results in "error TOC overflow" add -mminimal-toc to
  13734. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13735. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13736. archive_cmds_CXX=''
  13737. hardcode_direct_CXX=yes
  13738. hardcode_direct_absolute_CXX=yes
  13739. hardcode_libdir_separator_CXX=':'
  13740. link_all_deplibs_CXX=yes
  13741. file_list_spec_CXX='$wl-f,'
  13742. case $with_aix_soname,$aix_use_runtimelinking in
  13743. aix,*) ;; # no import file
  13744. svr4,* | *,yes) # use import file
  13745. # The Import File defines what to hardcode.
  13746. hardcode_direct_CXX=no
  13747. hardcode_direct_absolute_CXX=no
  13748. ;;
  13749. esac
  13750. if test yes = "$GXX"; then
  13751. case $host_os in aix4.[012]|aix4.[012].*)
  13752. # We only want to do this on AIX 4.2 and lower, the check
  13753. # below for broken collect2 doesn't work under 4.3+
  13754. collect2name=`$CC -print-prog-name=collect2`
  13755. if test -f "$collect2name" &&
  13756. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13757. then
  13758. # We have reworked collect2
  13759. :
  13760. else
  13761. # We have old collect2
  13762. hardcode_direct_CXX=unsupported
  13763. # It fails to find uninstalled libraries when the uninstalled
  13764. # path is not listed in the libpath. Setting hardcode_minus_L
  13765. # to unsupported forces relinking
  13766. hardcode_minus_L_CXX=yes
  13767. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13768. hardcode_libdir_separator_CXX=
  13769. fi
  13770. esac
  13771. shared_flag='-shared'
  13772. if test yes = "$aix_use_runtimelinking"; then
  13773. shared_flag=$shared_flag' $wl-G'
  13774. fi
  13775. # Need to ensure runtime linking is disabled for the traditional
  13776. # shared library, or the linker may eventually find shared libraries
  13777. # /with/ Import File - we do not want to mix them.
  13778. shared_flag_aix='-shared'
  13779. shared_flag_svr4='-shared $wl-G'
  13780. else
  13781. # not using gcc
  13782. if test ia64 = "$host_cpu"; then
  13783. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13784. # chokes on -Wl,-G. The following line is correct:
  13785. shared_flag='-G'
  13786. else
  13787. if test yes = "$aix_use_runtimelinking"; then
  13788. shared_flag='$wl-G'
  13789. else
  13790. shared_flag='$wl-bM:SRE'
  13791. fi
  13792. shared_flag_aix='$wl-bM:SRE'
  13793. shared_flag_svr4='$wl-G'
  13794. fi
  13795. fi
  13796. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13797. # It seems that -bexpall does not export symbols beginning with
  13798. # underscore (_), so it is better to generate a list of symbols to
  13799. # export.
  13800. always_export_symbols_CXX=yes
  13801. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13802. # Warning - without using the other runtime loading flags (-brtl),
  13803. # -berok will link without error, but may produce a broken library.
  13804. # The "-G" linker flag allows undefined symbols.
  13805. no_undefined_flag_CXX='-bernotok'
  13806. # Determine the default libpath from the value encoded in an empty
  13807. # executable.
  13808. if test set = "${lt_cv_aix_libpath+set}"; then
  13809. aix_libpath=$lt_cv_aix_libpath
  13810. else
  13811. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13812. $as_echo_n "(cached) " >&6
  13813. else
  13814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13815. /* end confdefs.h. */
  13816. int
  13817. main ()
  13818. {
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_cxx_try_link "$LINENO"; then :
  13824. lt_aix_libpath_sed='
  13825. /Import File Strings/,/^$/ {
  13826. /^0/ {
  13827. s/^0 *\([^ ]*\) *$/\1/
  13828. p
  13829. }
  13830. }'
  13831. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13832. # Check for a 64-bit object if we didn't find anything.
  13833. if test -z "$lt_cv_aix_libpath__CXX"; then
  13834. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13835. fi
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext \
  13838. conftest$ac_exeext conftest.$ac_ext
  13839. if test -z "$lt_cv_aix_libpath__CXX"; then
  13840. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13841. fi
  13842. fi
  13843. aix_libpath=$lt_cv_aix_libpath__CXX
  13844. fi
  13845. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13846. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  13847. else
  13848. if test ia64 = "$host_cpu"; then
  13849. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13850. allow_undefined_flag_CXX="-z nodefs"
  13851. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  13852. else
  13853. # Determine the default libpath from the value encoded in an
  13854. # empty executable.
  13855. if test set = "${lt_cv_aix_libpath+set}"; then
  13856. aix_libpath=$lt_cv_aix_libpath
  13857. else
  13858. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13859. $as_echo_n "(cached) " >&6
  13860. else
  13861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13862. /* end confdefs.h. */
  13863. int
  13864. main ()
  13865. {
  13866. ;
  13867. return 0;
  13868. }
  13869. _ACEOF
  13870. if ac_fn_cxx_try_link "$LINENO"; then :
  13871. lt_aix_libpath_sed='
  13872. /Import File Strings/,/^$/ {
  13873. /^0/ {
  13874. s/^0 *\([^ ]*\) *$/\1/
  13875. p
  13876. }
  13877. }'
  13878. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13879. # Check for a 64-bit object if we didn't find anything.
  13880. if test -z "$lt_cv_aix_libpath__CXX"; then
  13881. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13882. fi
  13883. fi
  13884. rm -f core conftest.err conftest.$ac_objext \
  13885. conftest$ac_exeext conftest.$ac_ext
  13886. if test -z "$lt_cv_aix_libpath__CXX"; then
  13887. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13888. fi
  13889. fi
  13890. aix_libpath=$lt_cv_aix_libpath__CXX
  13891. fi
  13892. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13893. # Warning - without using the other run time loading flags,
  13894. # -berok will link without error, but may produce a broken library.
  13895. no_undefined_flag_CXX=' $wl-bernotok'
  13896. allow_undefined_flag_CXX=' $wl-berok'
  13897. if test yes = "$with_gnu_ld"; then
  13898. # We only use this code for GNU lds that support --whole-archive.
  13899. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13900. else
  13901. # Exported symbols can be pulled into shared objects from archives
  13902. whole_archive_flag_spec_CXX='$convenience'
  13903. fi
  13904. archive_cmds_need_lc_CXX=yes
  13905. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13906. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13907. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13908. if test svr4 != "$with_aix_soname"; then
  13909. # This is similar to how AIX traditionally builds its shared
  13910. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13911. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  13912. fi
  13913. if test aix != "$with_aix_soname"; then
  13914. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  13915. else
  13916. # used by -dlpreopen to get the symbols
  13917. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13918. fi
  13919. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13920. fi
  13921. fi
  13922. ;;
  13923. beos*)
  13924. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13925. allow_undefined_flag_CXX=unsupported
  13926. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13927. # support --undefined. This deserves some investigation. FIXME
  13928. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13929. else
  13930. ld_shlibs_CXX=no
  13931. fi
  13932. ;;
  13933. chorus*)
  13934. case $cc_basename in
  13935. *)
  13936. # FIXME: insert proper C++ library support
  13937. ld_shlibs_CXX=no
  13938. ;;
  13939. esac
  13940. ;;
  13941. cygwin* | mingw* | pw32* | cegcc*)
  13942. case $GXX,$cc_basename in
  13943. ,cl* | no,cl*)
  13944. # Native MSVC
  13945. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13946. # no search path for DLLs.
  13947. hardcode_libdir_flag_spec_CXX=' '
  13948. allow_undefined_flag_CXX=unsupported
  13949. always_export_symbols_CXX=yes
  13950. file_list_spec_CXX='@'
  13951. # Tell ltmain to make .lib files, not .a files.
  13952. libext=lib
  13953. # Tell ltmain to make .dll files, not .so files.
  13954. shrext_cmds=.dll
  13955. # FIXME: Setting linknames here is a bad hack.
  13956. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13957. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13958. cp "$export_symbols" "$output_objdir/$soname.def";
  13959. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13960. else
  13961. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13962. fi~
  13963. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13964. linknames='
  13965. # The linker will not automatically build a static lib if we build a DLL.
  13966. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13967. enable_shared_with_static_runtimes_CXX=yes
  13968. # Don't use ranlib
  13969. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13970. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13971. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13972. case $lt_outputfile in
  13973. *.exe|*.EXE) ;;
  13974. *)
  13975. lt_outputfile=$lt_outputfile.exe
  13976. lt_tool_outputfile=$lt_tool_outputfile.exe
  13977. ;;
  13978. esac~
  13979. func_to_tool_file "$lt_outputfile"~
  13980. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13981. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13982. $RM "$lt_outputfile.manifest";
  13983. fi'
  13984. ;;
  13985. *)
  13986. # g++
  13987. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13988. # as there is no search path for DLLs.
  13989. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13990. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13991. allow_undefined_flag_CXX=unsupported
  13992. always_export_symbols_CXX=no
  13993. enable_shared_with_static_runtimes_CXX=yes
  13994. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13995. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13996. # If the export-symbols file already is a .def file, use it as
  13997. # is; otherwise, prepend EXPORTS...
  13998. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13999. cp $export_symbols $output_objdir/$soname.def;
  14000. else
  14001. echo EXPORTS > $output_objdir/$soname.def;
  14002. cat $export_symbols >> $output_objdir/$soname.def;
  14003. fi~
  14004. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14005. else
  14006. ld_shlibs_CXX=no
  14007. fi
  14008. ;;
  14009. esac
  14010. ;;
  14011. darwin* | rhapsody*)
  14012. archive_cmds_need_lc_CXX=no
  14013. hardcode_direct_CXX=no
  14014. hardcode_automatic_CXX=yes
  14015. hardcode_shlibpath_var_CXX=unsupported
  14016. if test yes = "$lt_cv_ld_force_load"; then
  14017. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  14018. else
  14019. whole_archive_flag_spec_CXX=''
  14020. fi
  14021. link_all_deplibs_CXX=yes
  14022. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  14023. case $cc_basename in
  14024. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  14025. *) _lt_dar_can_shared=$GCC ;;
  14026. esac
  14027. if test yes = "$_lt_dar_can_shared"; then
  14028. output_verbose_link_cmd=func_echo_all
  14029. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  14030. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  14031. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  14032. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  14033. if test yes != "$lt_cv_apple_cc_single_mod"; then
  14034. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  14035. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  14036. fi
  14037. else
  14038. ld_shlibs_CXX=no
  14039. fi
  14040. ;;
  14041. os2*)
  14042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14043. hardcode_minus_L_CXX=yes
  14044. allow_undefined_flag_CXX=unsupported
  14045. shrext_cmds=.dll
  14046. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14047. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14048. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14049. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14050. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  14051. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14052. emximp -o $lib $output_objdir/$libname.def'
  14053. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14054. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14055. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14056. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14057. prefix_cmds="$SED"~
  14058. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  14059. prefix_cmds="$prefix_cmds -e 1d";
  14060. fi~
  14061. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  14062. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  14063. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14064. emximp -o $lib $output_objdir/$libname.def'
  14065. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  14066. enable_shared_with_static_runtimes_CXX=yes
  14067. ;;
  14068. dgux*)
  14069. case $cc_basename in
  14070. ec++*)
  14071. # FIXME: insert proper C++ library support
  14072. ld_shlibs_CXX=no
  14073. ;;
  14074. ghcx*)
  14075. # Green Hills C++ Compiler
  14076. # FIXME: insert proper C++ library support
  14077. ld_shlibs_CXX=no
  14078. ;;
  14079. *)
  14080. # FIXME: insert proper C++ library support
  14081. ld_shlibs_CXX=no
  14082. ;;
  14083. esac
  14084. ;;
  14085. freebsd2.*)
  14086. # C++ shared libraries reported to be fairly broken before
  14087. # switch to ELF
  14088. ld_shlibs_CXX=no
  14089. ;;
  14090. freebsd-elf*)
  14091. archive_cmds_need_lc_CXX=no
  14092. ;;
  14093. freebsd* | dragonfly*)
  14094. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14095. # conventions
  14096. ld_shlibs_CXX=yes
  14097. ;;
  14098. haiku*)
  14099. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14100. link_all_deplibs_CXX=yes
  14101. ;;
  14102. hpux9*)
  14103. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14104. hardcode_libdir_separator_CXX=:
  14105. export_dynamic_flag_spec_CXX='$wl-E'
  14106. hardcode_direct_CXX=yes
  14107. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14108. # but as the default
  14109. # location of the library.
  14110. case $cc_basename in
  14111. CC*)
  14112. # FIXME: insert proper C++ library support
  14113. ld_shlibs_CXX=no
  14114. ;;
  14115. aCC*)
  14116. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  14117. # Commands to make compiler produce verbose output that lists
  14118. # what "hidden" libraries, object files and flags are used when
  14119. # linking a shared library.
  14120. #
  14121. # There doesn't appear to be a way to prevent this compiler from
  14122. # explicitly linking system object files so we need to strip them
  14123. # from the output so that they don't get included in the library
  14124. # dependencies.
  14125. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14126. ;;
  14127. *)
  14128. if test yes = "$GXX"; then
  14129. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  14130. else
  14131. # FIXME: insert proper C++ library support
  14132. ld_shlibs_CXX=no
  14133. fi
  14134. ;;
  14135. esac
  14136. ;;
  14137. hpux10*|hpux11*)
  14138. if test no = "$with_gnu_ld"; then
  14139. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14140. hardcode_libdir_separator_CXX=:
  14141. case $host_cpu in
  14142. hppa*64*|ia64*)
  14143. ;;
  14144. *)
  14145. export_dynamic_flag_spec_CXX='$wl-E'
  14146. ;;
  14147. esac
  14148. fi
  14149. case $host_cpu in
  14150. hppa*64*|ia64*)
  14151. hardcode_direct_CXX=no
  14152. hardcode_shlibpath_var_CXX=no
  14153. ;;
  14154. *)
  14155. hardcode_direct_CXX=yes
  14156. hardcode_direct_absolute_CXX=yes
  14157. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14158. # but as the default
  14159. # location of the library.
  14160. ;;
  14161. esac
  14162. case $cc_basename in
  14163. CC*)
  14164. # FIXME: insert proper C++ library support
  14165. ld_shlibs_CXX=no
  14166. ;;
  14167. aCC*)
  14168. case $host_cpu in
  14169. hppa*64*)
  14170. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14171. ;;
  14172. ia64*)
  14173. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14174. ;;
  14175. *)
  14176. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14177. ;;
  14178. esac
  14179. # Commands to make compiler produce verbose output that lists
  14180. # what "hidden" libraries, object files and flags are used when
  14181. # linking a shared library.
  14182. #
  14183. # There doesn't appear to be a way to prevent this compiler from
  14184. # explicitly linking system object files so we need to strip them
  14185. # from the output so that they don't get included in the library
  14186. # dependencies.
  14187. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14188. ;;
  14189. *)
  14190. if test yes = "$GXX"; then
  14191. if test no = "$with_gnu_ld"; then
  14192. case $host_cpu in
  14193. hppa*64*)
  14194. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14195. ;;
  14196. ia64*)
  14197. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14198. ;;
  14199. *)
  14200. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14201. ;;
  14202. esac
  14203. fi
  14204. else
  14205. # FIXME: insert proper C++ library support
  14206. ld_shlibs_CXX=no
  14207. fi
  14208. ;;
  14209. esac
  14210. ;;
  14211. interix[3-9]*)
  14212. hardcode_direct_CXX=no
  14213. hardcode_shlibpath_var_CXX=no
  14214. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14215. export_dynamic_flag_spec_CXX='$wl-E'
  14216. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14217. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14218. # default) and relocated if they conflict, which is a slow very memory
  14219. # consuming and fragmenting process. To avoid this, we pick a random,
  14220. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14221. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14222. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14223. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14224. ;;
  14225. irix5* | irix6*)
  14226. case $cc_basename in
  14227. CC*)
  14228. # SGI C++
  14229. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14230. # Archives containing C++ object files must be created using
  14231. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14232. # necessary to make sure instantiated templates are included
  14233. # in the archive.
  14234. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14235. ;;
  14236. *)
  14237. if test yes = "$GXX"; then
  14238. if test no = "$with_gnu_ld"; then
  14239. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14240. else
  14241. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  14242. fi
  14243. fi
  14244. link_all_deplibs_CXX=yes
  14245. ;;
  14246. esac
  14247. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14248. hardcode_libdir_separator_CXX=:
  14249. inherit_rpath_CXX=yes
  14250. ;;
  14251. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14252. case $cc_basename in
  14253. KCC*)
  14254. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14255. # KCC will only create a shared library if the output file
  14256. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14257. # to its proper name (with version) after linking.
  14258. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14259. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  14260. # Commands to make compiler produce verbose output that lists
  14261. # what "hidden" libraries, object files and flags are used when
  14262. # linking a shared library.
  14263. #
  14264. # There doesn't appear to be a way to prevent this compiler from
  14265. # explicitly linking system object files so we need to strip them
  14266. # from the output so that they don't get included in the library
  14267. # dependencies.
  14268. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14269. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14270. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14271. # Archives containing C++ object files must be created using
  14272. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14273. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14274. ;;
  14275. icpc* | ecpc* )
  14276. # Intel C++
  14277. with_gnu_ld=yes
  14278. # version 8.0 and above of icpc choke on multiply defined symbols
  14279. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14280. # earlier do not add the objects themselves.
  14281. case `$CC -V 2>&1` in
  14282. *"Version 7."*)
  14283. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14284. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14285. ;;
  14286. *) # Version 8.0 or newer
  14287. tmp_idyn=
  14288. case $host_cpu in
  14289. ia64*) tmp_idyn=' -i_dynamic';;
  14290. esac
  14291. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14292. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14293. ;;
  14294. esac
  14295. archive_cmds_need_lc_CXX=no
  14296. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14297. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14298. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  14299. ;;
  14300. pgCC* | pgcpp*)
  14301. # Portland Group C++ compiler
  14302. case `$CC -V` in
  14303. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14304. prelink_cmds_CXX='tpldir=Template.dir~
  14305. rm -rf $tpldir~
  14306. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14307. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14308. old_archive_cmds_CXX='tpldir=Template.dir~
  14309. rm -rf $tpldir~
  14310. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14311. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14312. $RANLIB $oldlib'
  14313. archive_cmds_CXX='tpldir=Template.dir~
  14314. rm -rf $tpldir~
  14315. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14316. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14317. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14318. rm -rf $tpldir~
  14319. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14320. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14321. ;;
  14322. *) # Version 6 and above use weak symbols
  14323. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14324. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14325. ;;
  14326. esac
  14327. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  14328. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14329. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  14330. ;;
  14331. cxx*)
  14332. # Compaq C++
  14333. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14334. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  14335. runpath_var=LD_RUN_PATH
  14336. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14337. hardcode_libdir_separator_CXX=:
  14338. # Commands to make compiler produce verbose output that lists
  14339. # what "hidden" libraries, object files and flags are used when
  14340. # linking a shared library.
  14341. #
  14342. # There doesn't appear to be a way to prevent this compiler from
  14343. # explicitly linking system object files so we need to strip them
  14344. # from the output so that they don't get included in the library
  14345. # dependencies.
  14346. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  14347. ;;
  14348. xl* | mpixl* | bgxl*)
  14349. # IBM XL 8.0 on PPC, with GNU ld
  14350. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14351. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14352. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14353. if test yes = "$supports_anon_versioning"; then
  14354. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14355. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14356. echo "local: *; };" >> $output_objdir/$libname.ver~
  14357. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  14358. fi
  14359. ;;
  14360. *)
  14361. case `$CC -V 2>&1 | sed 5q` in
  14362. *Sun\ C*)
  14363. # Sun C++ 5.9
  14364. no_undefined_flag_CXX=' -zdefs'
  14365. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14366. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  14367. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14368. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  14369. compiler_needs_object_CXX=yes
  14370. # Not sure whether something based on
  14371. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14372. # would be better.
  14373. output_verbose_link_cmd='func_echo_all'
  14374. # Archives containing C++ object files must be created using
  14375. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14376. # necessary to make sure instantiated templates are included
  14377. # in the archive.
  14378. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14379. ;;
  14380. esac
  14381. ;;
  14382. esac
  14383. ;;
  14384. lynxos*)
  14385. # FIXME: insert proper C++ library support
  14386. ld_shlibs_CXX=no
  14387. ;;
  14388. m88k*)
  14389. # FIXME: insert proper C++ library support
  14390. ld_shlibs_CXX=no
  14391. ;;
  14392. mvs*)
  14393. case $cc_basename in
  14394. cxx*)
  14395. # FIXME: insert proper C++ library support
  14396. ld_shlibs_CXX=no
  14397. ;;
  14398. *)
  14399. # FIXME: insert proper C++ library support
  14400. ld_shlibs_CXX=no
  14401. ;;
  14402. esac
  14403. ;;
  14404. netbsd*)
  14405. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14406. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14407. wlarc=
  14408. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14409. hardcode_direct_CXX=yes
  14410. hardcode_shlibpath_var_CXX=no
  14411. fi
  14412. # Workaround some broken pre-1.5 toolchains
  14413. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14414. ;;
  14415. *nto* | *qnx*)
  14416. ld_shlibs_CXX=yes
  14417. ;;
  14418. openbsd* | bitrig*)
  14419. if test -f /usr/libexec/ld.so; then
  14420. hardcode_direct_CXX=yes
  14421. hardcode_shlibpath_var_CXX=no
  14422. hardcode_direct_absolute_CXX=yes
  14423. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14424. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14425. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  14426. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  14427. export_dynamic_flag_spec_CXX='$wl-E'
  14428. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14429. fi
  14430. output_verbose_link_cmd=func_echo_all
  14431. else
  14432. ld_shlibs_CXX=no
  14433. fi
  14434. ;;
  14435. osf3* | osf4* | osf5*)
  14436. case $cc_basename in
  14437. KCC*)
  14438. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14439. # KCC will only create a shared library if the output file
  14440. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14441. # to its proper name (with version) after linking.
  14442. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14443. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14444. hardcode_libdir_separator_CXX=:
  14445. # Archives containing C++ object files must be created using
  14446. # the KAI C++ compiler.
  14447. case $host in
  14448. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14449. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14450. esac
  14451. ;;
  14452. RCC*)
  14453. # Rational C++ 2.4.1
  14454. # FIXME: insert proper C++ library support
  14455. ld_shlibs_CXX=no
  14456. ;;
  14457. cxx*)
  14458. case $host in
  14459. osf3*)
  14460. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14461. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14462. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14463. ;;
  14464. *)
  14465. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14466. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14467. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14468. echo "-hidden">> $lib.exp~
  14469. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  14470. $RM $lib.exp'
  14471. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14472. ;;
  14473. esac
  14474. hardcode_libdir_separator_CXX=:
  14475. # Commands to make compiler produce verbose output that lists
  14476. # what "hidden" libraries, object files and flags are used when
  14477. # linking a shared library.
  14478. #
  14479. # There doesn't appear to be a way to prevent this compiler from
  14480. # explicitly linking system object files so we need to strip them
  14481. # from the output so that they don't get included in the library
  14482. # dependencies.
  14483. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14484. ;;
  14485. *)
  14486. if test yes,no = "$GXX,$with_gnu_ld"; then
  14487. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14488. case $host in
  14489. osf3*)
  14490. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14491. ;;
  14492. *)
  14493. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14494. ;;
  14495. esac
  14496. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14497. hardcode_libdir_separator_CXX=:
  14498. # Commands to make compiler produce verbose output that lists
  14499. # what "hidden" libraries, object files and flags are used when
  14500. # linking a shared library.
  14501. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14502. else
  14503. # FIXME: insert proper C++ library support
  14504. ld_shlibs_CXX=no
  14505. fi
  14506. ;;
  14507. esac
  14508. ;;
  14509. psos*)
  14510. # FIXME: insert proper C++ library support
  14511. ld_shlibs_CXX=no
  14512. ;;
  14513. sunos4*)
  14514. case $cc_basename in
  14515. CC*)
  14516. # Sun C++ 4.x
  14517. # FIXME: insert proper C++ library support
  14518. ld_shlibs_CXX=no
  14519. ;;
  14520. lcc*)
  14521. # Lucid
  14522. # FIXME: insert proper C++ library support
  14523. ld_shlibs_CXX=no
  14524. ;;
  14525. *)
  14526. # FIXME: insert proper C++ library support
  14527. ld_shlibs_CXX=no
  14528. ;;
  14529. esac
  14530. ;;
  14531. solaris*)
  14532. case $cc_basename in
  14533. CC* | sunCC*)
  14534. # Sun C++ 4.2, 5.x and Centerline C++
  14535. archive_cmds_need_lc_CXX=yes
  14536. no_undefined_flag_CXX=' -zdefs'
  14537. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14538. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14539. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14540. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14541. hardcode_shlibpath_var_CXX=no
  14542. case $host_os in
  14543. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14544. *)
  14545. # The compiler driver will combine and reorder linker options,
  14546. # but understands '-z linker_flag'.
  14547. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14548. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14549. ;;
  14550. esac
  14551. link_all_deplibs_CXX=yes
  14552. output_verbose_link_cmd='func_echo_all'
  14553. # Archives containing C++ object files must be created using
  14554. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14555. # necessary to make sure instantiated templates are included
  14556. # in the archive.
  14557. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14558. ;;
  14559. gcx*)
  14560. # Green Hills C++ Compiler
  14561. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14562. # The C++ compiler must be used to create the archive.
  14563. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14564. ;;
  14565. *)
  14566. # GNU C++ compiler with Solaris linker
  14567. if test yes,no = "$GXX,$with_gnu_ld"; then
  14568. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  14569. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14570. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14571. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14572. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14573. # Commands to make compiler produce verbose output that lists
  14574. # what "hidden" libraries, object files and flags are used when
  14575. # linking a shared library.
  14576. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14577. else
  14578. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  14579. # platform.
  14580. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14581. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14582. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14583. # Commands to make compiler produce verbose output that lists
  14584. # what "hidden" libraries, object files and flags are used when
  14585. # linking a shared library.
  14586. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14587. fi
  14588. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  14589. case $host_os in
  14590. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14591. *)
  14592. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  14593. ;;
  14594. esac
  14595. fi
  14596. ;;
  14597. esac
  14598. ;;
  14599. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14600. no_undefined_flag_CXX='$wl-z,text'
  14601. archive_cmds_need_lc_CXX=no
  14602. hardcode_shlibpath_var_CXX=no
  14603. runpath_var='LD_RUN_PATH'
  14604. case $cc_basename in
  14605. CC*)
  14606. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14607. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14608. ;;
  14609. *)
  14610. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14611. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14612. ;;
  14613. esac
  14614. ;;
  14615. sysv5* | sco3.2v5* | sco5v6*)
  14616. # Note: We CANNOT use -z defs as we might desire, because we do not
  14617. # link with -lc, and that would cause any symbols used from libc to
  14618. # always be unresolved, which means just about no library would
  14619. # ever link correctly. If we're not using GNU ld we use -z text
  14620. # though, which does catch some bad symbols but isn't as heavy-handed
  14621. # as -z defs.
  14622. no_undefined_flag_CXX='$wl-z,text'
  14623. allow_undefined_flag_CXX='$wl-z,nodefs'
  14624. archive_cmds_need_lc_CXX=no
  14625. hardcode_shlibpath_var_CXX=no
  14626. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  14627. hardcode_libdir_separator_CXX=':'
  14628. link_all_deplibs_CXX=yes
  14629. export_dynamic_flag_spec_CXX='$wl-Bexport'
  14630. runpath_var='LD_RUN_PATH'
  14631. case $cc_basename in
  14632. CC*)
  14633. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14634. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14635. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14636. '"$old_archive_cmds_CXX"
  14637. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14638. '"$reload_cmds_CXX"
  14639. ;;
  14640. *)
  14641. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14642. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14643. ;;
  14644. esac
  14645. ;;
  14646. tandem*)
  14647. case $cc_basename in
  14648. NCC*)
  14649. # NonStop-UX NCC 3.20
  14650. # FIXME: insert proper C++ library support
  14651. ld_shlibs_CXX=no
  14652. ;;
  14653. *)
  14654. # FIXME: insert proper C++ library support
  14655. ld_shlibs_CXX=no
  14656. ;;
  14657. esac
  14658. ;;
  14659. vxworks*)
  14660. # FIXME: insert proper C++ library support
  14661. ld_shlibs_CXX=no
  14662. ;;
  14663. *)
  14664. # FIXME: insert proper C++ library support
  14665. ld_shlibs_CXX=no
  14666. ;;
  14667. esac
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14669. $as_echo "$ld_shlibs_CXX" >&6; }
  14670. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14671. GCC_CXX=$GXX
  14672. LD_CXX=$LD
  14673. ## CAVEAT EMPTOR:
  14674. ## There is no encapsulation within the following macros, do not change
  14675. ## the running order or otherwise move them around unless you know exactly
  14676. ## what you are doing...
  14677. # Dependencies to place before and after the object being linked:
  14678. predep_objects_CXX=
  14679. postdep_objects_CXX=
  14680. predeps_CXX=
  14681. postdeps_CXX=
  14682. compiler_lib_search_path_CXX=
  14683. cat > conftest.$ac_ext <<_LT_EOF
  14684. class Foo
  14685. {
  14686. public:
  14687. Foo (void) { a = 0; }
  14688. private:
  14689. int a;
  14690. };
  14691. _LT_EOF
  14692. _lt_libdeps_save_CFLAGS=$CFLAGS
  14693. case "$CC $CFLAGS " in #(
  14694. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14695. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14696. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14697. esac
  14698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14699. (eval $ac_compile) 2>&5
  14700. ac_status=$?
  14701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14702. test $ac_status = 0; }; then
  14703. # Parse the compiler output and extract the necessary
  14704. # objects, libraries and library flags.
  14705. # Sentinel used to keep track of whether or not we are before
  14706. # the conftest object file.
  14707. pre_test_object_deps_done=no
  14708. for p in `eval "$output_verbose_link_cmd"`; do
  14709. case $prev$p in
  14710. -L* | -R* | -l* | */libclang_rt.*.a)
  14711. # Some compilers place space between "-{L,R}" and the path.
  14712. # Remove the space.
  14713. if test x-L = "$p" ||
  14714. test x-R = "$p"; then
  14715. prev=$p
  14716. continue
  14717. fi
  14718. # Expand the sysroot to ease extracting the directories later.
  14719. if test -z "$prev"; then
  14720. case $p in
  14721. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14722. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14723. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14724. esac
  14725. fi
  14726. case $p in
  14727. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14728. esac
  14729. if test no = "$pre_test_object_deps_done"; then
  14730. case $prev in
  14731. -L | -R)
  14732. # Internal compiler library paths should come after those
  14733. # provided the user. The postdeps already come after the
  14734. # user supplied libs so there is no need to process them.
  14735. if test -z "$compiler_lib_search_path_CXX"; then
  14736. compiler_lib_search_path_CXX=$prev$p
  14737. else
  14738. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14739. fi
  14740. ;;
  14741. # The "-l" case would never come before the object being
  14742. # linked, so don't bother handling this case.
  14743. esac
  14744. else
  14745. if test -z "$postdeps_CXX"; then
  14746. postdeps_CXX=$prev$p
  14747. else
  14748. postdeps_CXX="${postdeps_CXX} $prev$p"
  14749. fi
  14750. fi
  14751. prev=
  14752. ;;
  14753. *.lto.$objext) ;; # Ignore GCC LTO objects
  14754. *.$objext)
  14755. # This assumes that the test object file only shows up
  14756. # once in the compiler output.
  14757. if test "$p" = "conftest.$objext"; then
  14758. pre_test_object_deps_done=yes
  14759. continue
  14760. fi
  14761. if test no = "$pre_test_object_deps_done"; then
  14762. if test -z "$predep_objects_CXX"; then
  14763. predep_objects_CXX=$p
  14764. else
  14765. predep_objects_CXX="$predep_objects_CXX $p"
  14766. fi
  14767. else
  14768. if test -z "$postdep_objects_CXX"; then
  14769. postdep_objects_CXX=$p
  14770. else
  14771. postdep_objects_CXX="$postdep_objects_CXX $p"
  14772. fi
  14773. fi
  14774. ;;
  14775. *) ;; # Ignore the rest.
  14776. esac
  14777. done
  14778. # Clean up.
  14779. rm -f a.out a.exe
  14780. else
  14781. echo "libtool.m4: error: problem compiling CXX test program"
  14782. fi
  14783. $RM -f confest.$objext
  14784. CFLAGS=$_lt_libdeps_save_CFLAGS
  14785. # PORTME: override above test on systems where it is broken
  14786. case $host_os in
  14787. interix[3-9]*)
  14788. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14789. # hack all around it, let's just trust "g++" to DTRT.
  14790. predep_objects_CXX=
  14791. postdep_objects_CXX=
  14792. postdeps_CXX=
  14793. ;;
  14794. esac
  14795. case " $postdeps_CXX " in
  14796. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14797. esac
  14798. compiler_lib_search_dirs_CXX=
  14799. if test -n "${compiler_lib_search_path_CXX}"; then
  14800. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14801. fi
  14802. lt_prog_compiler_wl_CXX=
  14803. lt_prog_compiler_pic_CXX=
  14804. lt_prog_compiler_static_CXX=
  14805. # C++ specific cases for pic, static, wl, etc.
  14806. if test yes = "$GXX"; then
  14807. lt_prog_compiler_wl_CXX='-Wl,'
  14808. lt_prog_compiler_static_CXX='-static'
  14809. case $host_os in
  14810. aix*)
  14811. # All AIX code is PIC.
  14812. if test ia64 = "$host_cpu"; then
  14813. # AIX 5 now supports IA64 processor
  14814. lt_prog_compiler_static_CXX='-Bstatic'
  14815. fi
  14816. lt_prog_compiler_pic_CXX='-fPIC'
  14817. ;;
  14818. amigaos*)
  14819. case $host_cpu in
  14820. powerpc)
  14821. # see comment about AmigaOS4 .so support
  14822. lt_prog_compiler_pic_CXX='-fPIC'
  14823. ;;
  14824. m68k)
  14825. # FIXME: we need at least 68020 code to build shared libraries, but
  14826. # adding the '-m68020' flag to GCC prevents building anything better,
  14827. # like '-m68040'.
  14828. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14829. ;;
  14830. esac
  14831. ;;
  14832. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14833. # PIC is the default for these OSes.
  14834. ;;
  14835. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14836. # This hack is so that the source file can tell whether it is being
  14837. # built for inclusion in a dll (and should export symbols for example).
  14838. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14839. # (--disable-auto-import) libraries
  14840. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14841. case $host_os in
  14842. os2*)
  14843. lt_prog_compiler_static_CXX='$wl-static'
  14844. ;;
  14845. esac
  14846. ;;
  14847. darwin* | rhapsody*)
  14848. # PIC is the default on this platform
  14849. # Common symbols not allowed in MH_DYLIB files
  14850. lt_prog_compiler_pic_CXX='-fno-common'
  14851. ;;
  14852. *djgpp*)
  14853. # DJGPP does not support shared libraries at all
  14854. lt_prog_compiler_pic_CXX=
  14855. ;;
  14856. haiku*)
  14857. # PIC is the default for Haiku.
  14858. # The "-static" flag exists, but is broken.
  14859. lt_prog_compiler_static_CXX=
  14860. ;;
  14861. interix[3-9]*)
  14862. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14863. # Instead, we relocate shared libraries at runtime.
  14864. ;;
  14865. sysv4*MP*)
  14866. if test -d /usr/nec; then
  14867. lt_prog_compiler_pic_CXX=-Kconform_pic
  14868. fi
  14869. ;;
  14870. hpux*)
  14871. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14872. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14873. # sets the default TLS model and affects inlining.
  14874. case $host_cpu in
  14875. hppa*64*)
  14876. ;;
  14877. *)
  14878. lt_prog_compiler_pic_CXX='-fPIC'
  14879. ;;
  14880. esac
  14881. ;;
  14882. *qnx* | *nto*)
  14883. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14884. # it will coredump.
  14885. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14886. ;;
  14887. *)
  14888. lt_prog_compiler_pic_CXX='-fPIC'
  14889. ;;
  14890. esac
  14891. else
  14892. case $host_os in
  14893. aix[4-9]*)
  14894. # All AIX code is PIC.
  14895. if test ia64 = "$host_cpu"; then
  14896. # AIX 5 now supports IA64 processor
  14897. lt_prog_compiler_static_CXX='-Bstatic'
  14898. else
  14899. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14900. fi
  14901. ;;
  14902. chorus*)
  14903. case $cc_basename in
  14904. cxch68*)
  14905. # Green Hills C++ Compiler
  14906. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14907. ;;
  14908. esac
  14909. ;;
  14910. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14911. # This hack is so that the source file can tell whether it is being
  14912. # built for inclusion in a dll (and should export symbols for example).
  14913. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14914. ;;
  14915. dgux*)
  14916. case $cc_basename in
  14917. ec++*)
  14918. lt_prog_compiler_pic_CXX='-KPIC'
  14919. ;;
  14920. ghcx*)
  14921. # Green Hills C++ Compiler
  14922. lt_prog_compiler_pic_CXX='-pic'
  14923. ;;
  14924. *)
  14925. ;;
  14926. esac
  14927. ;;
  14928. freebsd* | dragonfly*)
  14929. # FreeBSD uses GNU C++
  14930. ;;
  14931. hpux9* | hpux10* | hpux11*)
  14932. case $cc_basename in
  14933. CC*)
  14934. lt_prog_compiler_wl_CXX='-Wl,'
  14935. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14936. if test ia64 != "$host_cpu"; then
  14937. lt_prog_compiler_pic_CXX='+Z'
  14938. fi
  14939. ;;
  14940. aCC*)
  14941. lt_prog_compiler_wl_CXX='-Wl,'
  14942. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14943. case $host_cpu in
  14944. hppa*64*|ia64*)
  14945. # +Z the default
  14946. ;;
  14947. *)
  14948. lt_prog_compiler_pic_CXX='+Z'
  14949. ;;
  14950. esac
  14951. ;;
  14952. *)
  14953. ;;
  14954. esac
  14955. ;;
  14956. interix*)
  14957. # This is c89, which is MS Visual C++ (no shared libs)
  14958. # Anyone wants to do a port?
  14959. ;;
  14960. irix5* | irix6* | nonstopux*)
  14961. case $cc_basename in
  14962. CC*)
  14963. lt_prog_compiler_wl_CXX='-Wl,'
  14964. lt_prog_compiler_static_CXX='-non_shared'
  14965. # CC pic flag -KPIC is the default.
  14966. ;;
  14967. *)
  14968. ;;
  14969. esac
  14970. ;;
  14971. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14972. case $cc_basename in
  14973. KCC*)
  14974. # KAI C++ Compiler
  14975. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14976. lt_prog_compiler_pic_CXX='-fPIC'
  14977. ;;
  14978. ecpc* )
  14979. # old Intel C++ for x86_64, which still supported -KPIC.
  14980. lt_prog_compiler_wl_CXX='-Wl,'
  14981. lt_prog_compiler_pic_CXX='-KPIC'
  14982. lt_prog_compiler_static_CXX='-static'
  14983. ;;
  14984. icpc* )
  14985. # Intel C++, used to be incompatible with GCC.
  14986. # ICC 10 doesn't accept -KPIC any more.
  14987. lt_prog_compiler_wl_CXX='-Wl,'
  14988. lt_prog_compiler_pic_CXX='-fPIC'
  14989. lt_prog_compiler_static_CXX='-static'
  14990. ;;
  14991. pgCC* | pgcpp*)
  14992. # Portland Group C++ compiler
  14993. lt_prog_compiler_wl_CXX='-Wl,'
  14994. lt_prog_compiler_pic_CXX='-fpic'
  14995. lt_prog_compiler_static_CXX='-Bstatic'
  14996. ;;
  14997. cxx*)
  14998. # Compaq C++
  14999. # Make sure the PIC flag is empty. It appears that all Alpha
  15000. # Linux and Compaq Tru64 Unix objects are PIC.
  15001. lt_prog_compiler_pic_CXX=
  15002. lt_prog_compiler_static_CXX='-non_shared'
  15003. ;;
  15004. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  15005. # IBM XL 8.0, 9.0 on PPC and BlueGene
  15006. lt_prog_compiler_wl_CXX='-Wl,'
  15007. lt_prog_compiler_pic_CXX='-qpic'
  15008. lt_prog_compiler_static_CXX='-qstaticlink'
  15009. ;;
  15010. *)
  15011. case `$CC -V 2>&1 | sed 5q` in
  15012. *Sun\ C*)
  15013. # Sun C++ 5.9
  15014. lt_prog_compiler_pic_CXX='-KPIC'
  15015. lt_prog_compiler_static_CXX='-Bstatic'
  15016. lt_prog_compiler_wl_CXX='-Qoption ld '
  15017. ;;
  15018. esac
  15019. ;;
  15020. esac
  15021. ;;
  15022. lynxos*)
  15023. ;;
  15024. m88k*)
  15025. ;;
  15026. mvs*)
  15027. case $cc_basename in
  15028. cxx*)
  15029. lt_prog_compiler_pic_CXX='-W c,exportall'
  15030. ;;
  15031. *)
  15032. ;;
  15033. esac
  15034. ;;
  15035. netbsd*)
  15036. ;;
  15037. *qnx* | *nto*)
  15038. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15039. # it will coredump.
  15040. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15041. ;;
  15042. osf3* | osf4* | osf5*)
  15043. case $cc_basename in
  15044. KCC*)
  15045. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15046. ;;
  15047. RCC*)
  15048. # Rational C++ 2.4.1
  15049. lt_prog_compiler_pic_CXX='-pic'
  15050. ;;
  15051. cxx*)
  15052. # Digital/Compaq C++
  15053. lt_prog_compiler_wl_CXX='-Wl,'
  15054. # Make sure the PIC flag is empty. It appears that all Alpha
  15055. # Linux and Compaq Tru64 Unix objects are PIC.
  15056. lt_prog_compiler_pic_CXX=
  15057. lt_prog_compiler_static_CXX='-non_shared'
  15058. ;;
  15059. *)
  15060. ;;
  15061. esac
  15062. ;;
  15063. psos*)
  15064. ;;
  15065. solaris*)
  15066. case $cc_basename in
  15067. CC* | sunCC*)
  15068. # Sun C++ 4.2, 5.x and Centerline C++
  15069. lt_prog_compiler_pic_CXX='-KPIC'
  15070. lt_prog_compiler_static_CXX='-Bstatic'
  15071. lt_prog_compiler_wl_CXX='-Qoption ld '
  15072. ;;
  15073. gcx*)
  15074. # Green Hills C++ Compiler
  15075. lt_prog_compiler_pic_CXX='-PIC'
  15076. ;;
  15077. *)
  15078. ;;
  15079. esac
  15080. ;;
  15081. sunos4*)
  15082. case $cc_basename in
  15083. CC*)
  15084. # Sun C++ 4.x
  15085. lt_prog_compiler_pic_CXX='-pic'
  15086. lt_prog_compiler_static_CXX='-Bstatic'
  15087. ;;
  15088. lcc*)
  15089. # Lucid
  15090. lt_prog_compiler_pic_CXX='-pic'
  15091. ;;
  15092. *)
  15093. ;;
  15094. esac
  15095. ;;
  15096. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15097. case $cc_basename in
  15098. CC*)
  15099. lt_prog_compiler_wl_CXX='-Wl,'
  15100. lt_prog_compiler_pic_CXX='-KPIC'
  15101. lt_prog_compiler_static_CXX='-Bstatic'
  15102. ;;
  15103. esac
  15104. ;;
  15105. tandem*)
  15106. case $cc_basename in
  15107. NCC*)
  15108. # NonStop-UX NCC 3.20
  15109. lt_prog_compiler_pic_CXX='-KPIC'
  15110. ;;
  15111. *)
  15112. ;;
  15113. esac
  15114. ;;
  15115. vxworks*)
  15116. ;;
  15117. *)
  15118. lt_prog_compiler_can_build_shared_CXX=no
  15119. ;;
  15120. esac
  15121. fi
  15122. case $host_os in
  15123. # For platforms that do not support PIC, -DPIC is meaningless:
  15124. *djgpp*)
  15125. lt_prog_compiler_pic_CXX=
  15126. ;;
  15127. *)
  15128. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  15129. ;;
  15130. esac
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15132. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  15133. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  15134. $as_echo_n "(cached) " >&6
  15135. else
  15136. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  15137. fi
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  15139. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  15140. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  15141. #
  15142. # Check to make sure the PIC flag actually works.
  15143. #
  15144. if test -n "$lt_prog_compiler_pic_CXX"; then
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  15146. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  15147. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  15148. $as_echo_n "(cached) " >&6
  15149. else
  15150. lt_cv_prog_compiler_pic_works_CXX=no
  15151. ac_outfile=conftest.$ac_objext
  15152. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15153. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15154. # Insert the option either (1) after the last *FLAGS variable, or
  15155. # (2) before a word containing "conftest.", or (3) at the end.
  15156. # Note that $ac_compile itself does not contain backslashes and begins
  15157. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15158. # The option is referenced via a variable to avoid confusing sed.
  15159. lt_compile=`echo "$ac_compile" | $SED \
  15160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15162. -e 's:$: $lt_compiler_flag:'`
  15163. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15164. (eval "$lt_compile" 2>conftest.err)
  15165. ac_status=$?
  15166. cat conftest.err >&5
  15167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15168. if (exit $ac_status) && test -s "$ac_outfile"; then
  15169. # The compiler can only warn and ignore the option if not recognized
  15170. # So say no if there are warnings other than the usual output.
  15171. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15173. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15174. lt_cv_prog_compiler_pic_works_CXX=yes
  15175. fi
  15176. fi
  15177. $RM conftest*
  15178. fi
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  15180. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15181. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  15182. case $lt_prog_compiler_pic_CXX in
  15183. "" | " "*) ;;
  15184. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15185. esac
  15186. else
  15187. lt_prog_compiler_pic_CXX=
  15188. lt_prog_compiler_can_build_shared_CXX=no
  15189. fi
  15190. fi
  15191. #
  15192. # Check to make sure the static flag actually works.
  15193. #
  15194. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15196. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15197. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  15198. $as_echo_n "(cached) " >&6
  15199. else
  15200. lt_cv_prog_compiler_static_works_CXX=no
  15201. save_LDFLAGS=$LDFLAGS
  15202. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15203. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15204. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15205. # The linker can only warn and ignore the option if not recognized
  15206. # So say no if there are warnings
  15207. if test -s conftest.err; then
  15208. # Append any errors to the config.log.
  15209. cat conftest.err 1>&5
  15210. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15211. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15212. if diff conftest.exp conftest.er2 >/dev/null; then
  15213. lt_cv_prog_compiler_static_works_CXX=yes
  15214. fi
  15215. else
  15216. lt_cv_prog_compiler_static_works_CXX=yes
  15217. fi
  15218. fi
  15219. $RM -r conftest*
  15220. LDFLAGS=$save_LDFLAGS
  15221. fi
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15223. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15224. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  15225. :
  15226. else
  15227. lt_prog_compiler_static_CXX=
  15228. fi
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15230. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15231. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15232. $as_echo_n "(cached) " >&6
  15233. else
  15234. lt_cv_prog_compiler_c_o_CXX=no
  15235. $RM -r conftest 2>/dev/null
  15236. mkdir conftest
  15237. cd conftest
  15238. mkdir out
  15239. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15240. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15241. # Insert the option either (1) after the last *FLAGS variable, or
  15242. # (2) before a word containing "conftest.", or (3) at the end.
  15243. # Note that $ac_compile itself does not contain backslashes and begins
  15244. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15245. lt_compile=`echo "$ac_compile" | $SED \
  15246. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15247. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15248. -e 's:$: $lt_compiler_flag:'`
  15249. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15250. (eval "$lt_compile" 2>out/conftest.err)
  15251. ac_status=$?
  15252. cat out/conftest.err >&5
  15253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15254. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15255. then
  15256. # The compiler can only warn and ignore the option if not recognized
  15257. # So say no if there are warnings
  15258. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15259. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15260. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15261. lt_cv_prog_compiler_c_o_CXX=yes
  15262. fi
  15263. fi
  15264. chmod u+w . 2>&5
  15265. $RM conftest*
  15266. # SGI C++ compiler will create directory out/ii_files/ for
  15267. # template instantiation
  15268. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15269. $RM out/* && rmdir out
  15270. cd ..
  15271. $RM -r conftest
  15272. $RM conftest*
  15273. fi
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15275. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15277. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15278. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15279. $as_echo_n "(cached) " >&6
  15280. else
  15281. lt_cv_prog_compiler_c_o_CXX=no
  15282. $RM -r conftest 2>/dev/null
  15283. mkdir conftest
  15284. cd conftest
  15285. mkdir out
  15286. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15287. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15288. # Insert the option either (1) after the last *FLAGS variable, or
  15289. # (2) before a word containing "conftest.", or (3) at the end.
  15290. # Note that $ac_compile itself does not contain backslashes and begins
  15291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15292. lt_compile=`echo "$ac_compile" | $SED \
  15293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15295. -e 's:$: $lt_compiler_flag:'`
  15296. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15297. (eval "$lt_compile" 2>out/conftest.err)
  15298. ac_status=$?
  15299. cat out/conftest.err >&5
  15300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15301. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15302. then
  15303. # The compiler can only warn and ignore the option if not recognized
  15304. # So say no if there are warnings
  15305. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15306. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15307. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15308. lt_cv_prog_compiler_c_o_CXX=yes
  15309. fi
  15310. fi
  15311. chmod u+w . 2>&5
  15312. $RM conftest*
  15313. # SGI C++ compiler will create directory out/ii_files/ for
  15314. # template instantiation
  15315. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15316. $RM out/* && rmdir out
  15317. cd ..
  15318. $RM -r conftest
  15319. $RM conftest*
  15320. fi
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15322. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15323. hard_links=nottested
  15324. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  15325. # do not overwrite the value of need_locks provided by the user
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15327. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15328. hard_links=yes
  15329. $RM conftest*
  15330. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15331. touch conftest.a
  15332. ln conftest.a conftest.b 2>&5 || hard_links=no
  15333. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15335. $as_echo "$hard_links" >&6; }
  15336. if test no = "$hard_links"; then
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  15338. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  15339. need_locks=warn
  15340. fi
  15341. else
  15342. need_locks=no
  15343. fi
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15345. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15346. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15347. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15348. case $host_os in
  15349. aix[4-9]*)
  15350. # If we're using GNU nm, then we don't want the "-C" option.
  15351. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  15352. # Without the "-l" option, or with the "-B" option, AIX nm treats
  15353. # weak defined symbols like other global defined symbols, whereas
  15354. # GNU nm marks them as "W".
  15355. # While the 'weak' keyword is ignored in the Export File, we need
  15356. # it in the Import File for the 'aix-soname' feature, so we have
  15357. # to replace the "-B" option with "-P" for AIX nm.
  15358. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15359. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  15360. else
  15361. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  15362. fi
  15363. ;;
  15364. pw32*)
  15365. export_symbols_cmds_CXX=$ltdll_cmds
  15366. ;;
  15367. cygwin* | mingw* | cegcc*)
  15368. case $cc_basename in
  15369. cl*)
  15370. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15371. ;;
  15372. *)
  15373. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  15374. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15375. ;;
  15376. esac
  15377. ;;
  15378. *)
  15379. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15380. ;;
  15381. esac
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15383. $as_echo "$ld_shlibs_CXX" >&6; }
  15384. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15385. with_gnu_ld_CXX=$with_gnu_ld
  15386. #
  15387. # Do we need to explicitly link libc?
  15388. #
  15389. case "x$archive_cmds_need_lc_CXX" in
  15390. x|xyes)
  15391. # Assume -lc should be added
  15392. archive_cmds_need_lc_CXX=yes
  15393. if test yes,yes = "$GCC,$enable_shared"; then
  15394. case $archive_cmds_CXX in
  15395. *'~'*)
  15396. # FIXME: we may have to deal with multi-command sequences.
  15397. ;;
  15398. '$CC '*)
  15399. # Test whether the compiler implicitly links with -lc since on some
  15400. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15401. # to ld, don't add -lc before -lgcc.
  15402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15403. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  15404. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  15405. $as_echo_n "(cached) " >&6
  15406. else
  15407. $RM conftest*
  15408. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15410. (eval $ac_compile) 2>&5
  15411. ac_status=$?
  15412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15413. test $ac_status = 0; } 2>conftest.err; then
  15414. soname=conftest
  15415. lib=conftest
  15416. libobjs=conftest.$ac_objext
  15417. deplibs=
  15418. wl=$lt_prog_compiler_wl_CXX
  15419. pic_flag=$lt_prog_compiler_pic_CXX
  15420. compiler_flags=-v
  15421. linker_flags=-v
  15422. verstring=
  15423. output_objdir=.
  15424. libname=conftest
  15425. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15426. allow_undefined_flag_CXX=
  15427. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15428. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15429. ac_status=$?
  15430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15431. test $ac_status = 0; }
  15432. then
  15433. lt_cv_archive_cmds_need_lc_CXX=no
  15434. else
  15435. lt_cv_archive_cmds_need_lc_CXX=yes
  15436. fi
  15437. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15438. else
  15439. cat conftest.err 1>&5
  15440. fi
  15441. $RM conftest*
  15442. fi
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15444. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15445. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15446. ;;
  15447. esac
  15448. fi
  15449. ;;
  15450. esac
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15452. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  15453. library_names_spec=
  15454. libname_spec='lib$name'
  15455. soname_spec=
  15456. shrext_cmds=.so
  15457. postinstall_cmds=
  15458. postuninstall_cmds=
  15459. finish_cmds=
  15460. finish_eval=
  15461. shlibpath_var=
  15462. shlibpath_overrides_runpath=unknown
  15463. version_type=none
  15464. dynamic_linker="$host_os ld.so"
  15465. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15466. need_lib_prefix=unknown
  15467. hardcode_into_libs=no
  15468. # when you set need_version to no, make sure it does not cause -set_version
  15469. # flags to be left without arguments
  15470. need_version=unknown
  15471. case $host_os in
  15472. aix3*)
  15473. version_type=linux # correct to gnu/linux during the next big refactor
  15474. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  15475. shlibpath_var=LIBPATH
  15476. # AIX 3 has no versioning support, so we append a major version to the name.
  15477. soname_spec='$libname$release$shared_ext$major'
  15478. ;;
  15479. aix[4-9]*)
  15480. version_type=linux # correct to gnu/linux during the next big refactor
  15481. need_lib_prefix=no
  15482. need_version=no
  15483. hardcode_into_libs=yes
  15484. if test ia64 = "$host_cpu"; then
  15485. # AIX 5 supports IA64
  15486. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  15487. shlibpath_var=LD_LIBRARY_PATH
  15488. else
  15489. # With GCC up to 2.95.x, collect2 would create an import file
  15490. # for dependence libraries. The import file would start with
  15491. # the line '#! .'. This would cause the generated library to
  15492. # depend on '.', always an invalid library. This was fixed in
  15493. # development snapshots of GCC prior to 3.0.
  15494. case $host_os in
  15495. aix4 | aix4.[01] | aix4.[01].*)
  15496. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15497. echo ' yes '
  15498. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  15499. :
  15500. else
  15501. can_build_shared=no
  15502. fi
  15503. ;;
  15504. esac
  15505. # Using Import Files as archive members, it is possible to support
  15506. # filename-based versioning of shared library archives on AIX. While
  15507. # this would work for both with and without runtime linking, it will
  15508. # prevent static linking of such archives. So we do filename-based
  15509. # shared library versioning with .so extension only, which is used
  15510. # when both runtime linking and shared linking is enabled.
  15511. # Unfortunately, runtime linking may impact performance, so we do
  15512. # not want this to be the default eventually. Also, we use the
  15513. # versioned .so libs for executables only if there is the -brtl
  15514. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  15515. # To allow for filename-based versioning support, we need to create
  15516. # libNAME.so.V as an archive file, containing:
  15517. # *) an Import File, referring to the versioned filename of the
  15518. # archive as well as the shared archive member, telling the
  15519. # bitwidth (32 or 64) of that shared object, and providing the
  15520. # list of exported symbols of that shared object, eventually
  15521. # decorated with the 'weak' keyword
  15522. # *) the shared object with the F_LOADONLY flag set, to really avoid
  15523. # it being seen by the linker.
  15524. # At run time we better use the real file rather than another symlink,
  15525. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  15526. case $with_aix_soname,$aix_use_runtimelinking in
  15527. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  15528. # soname into executable. Probably we can add versioning support to
  15529. # collect2, so additional links can be useful in future.
  15530. aix,yes) # traditional libtool
  15531. dynamic_linker='AIX unversionable lib.so'
  15532. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15533. # instead of lib<name>.a to let people know that these are not
  15534. # typical AIX shared libraries.
  15535. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15536. ;;
  15537. aix,no) # traditional AIX only
  15538. dynamic_linker='AIX lib.a(lib.so.V)'
  15539. # We preserve .a as extension for shared libraries through AIX4.2
  15540. # and later when we are not doing run time linking.
  15541. library_names_spec='$libname$release.a $libname.a'
  15542. soname_spec='$libname$release$shared_ext$major'
  15543. ;;
  15544. svr4,*) # full svr4 only
  15545. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  15546. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15547. # We do not specify a path in Import Files, so LIBPATH fires.
  15548. shlibpath_overrides_runpath=yes
  15549. ;;
  15550. *,yes) # both, prefer svr4
  15551. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  15552. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15553. # unpreferred sharedlib libNAME.a needs extra handling
  15554. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  15555. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  15556. # We do not specify a path in Import Files, so LIBPATH fires.
  15557. shlibpath_overrides_runpath=yes
  15558. ;;
  15559. *,no) # both, prefer aix
  15560. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  15561. library_names_spec='$libname$release.a $libname.a'
  15562. soname_spec='$libname$release$shared_ext$major'
  15563. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  15564. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  15565. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  15566. ;;
  15567. esac
  15568. shlibpath_var=LIBPATH
  15569. fi
  15570. ;;
  15571. amigaos*)
  15572. case $host_cpu in
  15573. powerpc)
  15574. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15575. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15576. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15577. ;;
  15578. m68k)
  15579. library_names_spec='$libname.ixlibrary $libname.a'
  15580. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15581. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  15582. ;;
  15583. esac
  15584. ;;
  15585. beos*)
  15586. library_names_spec='$libname$shared_ext'
  15587. dynamic_linker="$host_os ld.so"
  15588. shlibpath_var=LIBRARY_PATH
  15589. ;;
  15590. bsdi[45]*)
  15591. version_type=linux # correct to gnu/linux during the next big refactor
  15592. need_version=no
  15593. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15594. soname_spec='$libname$release$shared_ext$major'
  15595. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15596. shlibpath_var=LD_LIBRARY_PATH
  15597. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15598. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15599. # the default ld.so.conf also contains /usr/contrib/lib and
  15600. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15601. # libtool to hard-code these into programs
  15602. ;;
  15603. cygwin* | mingw* | pw32* | cegcc*)
  15604. version_type=windows
  15605. shrext_cmds=.dll
  15606. need_version=no
  15607. need_lib_prefix=no
  15608. case $GCC,$cc_basename in
  15609. yes,*)
  15610. # gcc
  15611. library_names_spec='$libname.dll.a'
  15612. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15613. postinstall_cmds='base_file=`basename \$file`~
  15614. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15615. dldir=$destdir/`dirname \$dlpath`~
  15616. test -d \$dldir || mkdir -p \$dldir~
  15617. $install_prog $dir/$dlname \$dldir/$dlname~
  15618. chmod a+x \$dldir/$dlname~
  15619. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15620. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15621. fi'
  15622. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15623. dlpath=$dir/\$dldll~
  15624. $RM \$dlpath'
  15625. shlibpath_overrides_runpath=yes
  15626. case $host_os in
  15627. cygwin*)
  15628. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15629. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15630. ;;
  15631. mingw* | cegcc*)
  15632. # MinGW DLLs use traditional 'lib' prefix
  15633. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15634. ;;
  15635. pw32*)
  15636. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15637. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15638. ;;
  15639. esac
  15640. dynamic_linker='Win32 ld.exe'
  15641. ;;
  15642. *,cl*)
  15643. # Native MSVC
  15644. libname_spec='$name'
  15645. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15646. library_names_spec='$libname.dll.lib'
  15647. case $build_os in
  15648. mingw*)
  15649. sys_lib_search_path_spec=
  15650. lt_save_ifs=$IFS
  15651. IFS=';'
  15652. for lt_path in $LIB
  15653. do
  15654. IFS=$lt_save_ifs
  15655. # Let DOS variable expansion print the short 8.3 style file name.
  15656. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15657. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15658. done
  15659. IFS=$lt_save_ifs
  15660. # Convert to MSYS style.
  15661. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15662. ;;
  15663. cygwin*)
  15664. # Convert to unix form, then to dos form, then back to unix form
  15665. # but this time dos style (no spaces!) so that the unix form looks
  15666. # like /cygdrive/c/PROGRA~1:/cygdr...
  15667. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15668. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15669. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15670. ;;
  15671. *)
  15672. sys_lib_search_path_spec=$LIB
  15673. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15674. # It is most probably a Windows format PATH.
  15675. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15676. else
  15677. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15678. fi
  15679. # FIXME: find the short name or the path components, as spaces are
  15680. # common. (e.g. "Program Files" -> "PROGRA~1")
  15681. ;;
  15682. esac
  15683. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15684. postinstall_cmds='base_file=`basename \$file`~
  15685. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15686. dldir=$destdir/`dirname \$dlpath`~
  15687. test -d \$dldir || mkdir -p \$dldir~
  15688. $install_prog $dir/$dlname \$dldir/$dlname'
  15689. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15690. dlpath=$dir/\$dldll~
  15691. $RM \$dlpath'
  15692. shlibpath_overrides_runpath=yes
  15693. dynamic_linker='Win32 link.exe'
  15694. ;;
  15695. *)
  15696. # Assume MSVC wrapper
  15697. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15698. dynamic_linker='Win32 ld.exe'
  15699. ;;
  15700. esac
  15701. # FIXME: first we should search . and the directory the executable is in
  15702. shlibpath_var=PATH
  15703. ;;
  15704. darwin* | rhapsody*)
  15705. dynamic_linker="$host_os dyld"
  15706. version_type=darwin
  15707. need_lib_prefix=no
  15708. need_version=no
  15709. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  15710. soname_spec='$libname$release$major$shared_ext'
  15711. shlibpath_overrides_runpath=yes
  15712. shlibpath_var=DYLD_LIBRARY_PATH
  15713. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15714. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15715. ;;
  15716. dgux*)
  15717. version_type=linux # correct to gnu/linux during the next big refactor
  15718. need_lib_prefix=no
  15719. need_version=no
  15720. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15721. soname_spec='$libname$release$shared_ext$major'
  15722. shlibpath_var=LD_LIBRARY_PATH
  15723. ;;
  15724. freebsd* | dragonfly*)
  15725. # DragonFly does not have aout. When/if they implement a new
  15726. # versioning mechanism, adjust this.
  15727. if test -x /usr/bin/objformat; then
  15728. objformat=`/usr/bin/objformat`
  15729. else
  15730. case $host_os in
  15731. freebsd[23].*) objformat=aout ;;
  15732. *) objformat=elf ;;
  15733. esac
  15734. fi
  15735. version_type=freebsd-$objformat
  15736. case $version_type in
  15737. freebsd-elf*)
  15738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15739. soname_spec='$libname$release$shared_ext$major'
  15740. need_version=no
  15741. need_lib_prefix=no
  15742. ;;
  15743. freebsd-*)
  15744. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15745. need_version=yes
  15746. ;;
  15747. esac
  15748. shlibpath_var=LD_LIBRARY_PATH
  15749. case $host_os in
  15750. freebsd2.*)
  15751. shlibpath_overrides_runpath=yes
  15752. ;;
  15753. freebsd3.[01]* | freebsdelf3.[01]*)
  15754. shlibpath_overrides_runpath=yes
  15755. hardcode_into_libs=yes
  15756. ;;
  15757. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15758. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15759. shlibpath_overrides_runpath=no
  15760. hardcode_into_libs=yes
  15761. ;;
  15762. *) # from 4.6 on, and DragonFly
  15763. shlibpath_overrides_runpath=yes
  15764. hardcode_into_libs=yes
  15765. ;;
  15766. esac
  15767. ;;
  15768. haiku*)
  15769. version_type=linux # correct to gnu/linux during the next big refactor
  15770. need_lib_prefix=no
  15771. need_version=no
  15772. dynamic_linker="$host_os runtime_loader"
  15773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15774. soname_spec='$libname$release$shared_ext$major'
  15775. shlibpath_var=LIBRARY_PATH
  15776. shlibpath_overrides_runpath=no
  15777. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15778. hardcode_into_libs=yes
  15779. ;;
  15780. hpux9* | hpux10* | hpux11*)
  15781. # Give a soname corresponding to the major version so that dld.sl refuses to
  15782. # link against other versions.
  15783. version_type=sunos
  15784. need_lib_prefix=no
  15785. need_version=no
  15786. case $host_cpu in
  15787. ia64*)
  15788. shrext_cmds='.so'
  15789. hardcode_into_libs=yes
  15790. dynamic_linker="$host_os dld.so"
  15791. shlibpath_var=LD_LIBRARY_PATH
  15792. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15794. soname_spec='$libname$release$shared_ext$major'
  15795. if test 32 = "$HPUX_IA64_MODE"; then
  15796. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15797. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15798. else
  15799. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15800. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15801. fi
  15802. ;;
  15803. hppa*64*)
  15804. shrext_cmds='.sl'
  15805. hardcode_into_libs=yes
  15806. dynamic_linker="$host_os dld.sl"
  15807. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15808. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15810. soname_spec='$libname$release$shared_ext$major'
  15811. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15812. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15813. ;;
  15814. *)
  15815. shrext_cmds='.sl'
  15816. dynamic_linker="$host_os dld.sl"
  15817. shlibpath_var=SHLIB_PATH
  15818. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15819. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15820. soname_spec='$libname$release$shared_ext$major'
  15821. ;;
  15822. esac
  15823. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15824. postinstall_cmds='chmod 555 $lib'
  15825. # or fails outright, so override atomically:
  15826. install_override_mode=555
  15827. ;;
  15828. interix[3-9]*)
  15829. version_type=linux # correct to gnu/linux during the next big refactor
  15830. need_lib_prefix=no
  15831. need_version=no
  15832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15833. soname_spec='$libname$release$shared_ext$major'
  15834. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15835. shlibpath_var=LD_LIBRARY_PATH
  15836. shlibpath_overrides_runpath=no
  15837. hardcode_into_libs=yes
  15838. ;;
  15839. irix5* | irix6* | nonstopux*)
  15840. case $host_os in
  15841. nonstopux*) version_type=nonstopux ;;
  15842. *)
  15843. if test yes = "$lt_cv_prog_gnu_ld"; then
  15844. version_type=linux # correct to gnu/linux during the next big refactor
  15845. else
  15846. version_type=irix
  15847. fi ;;
  15848. esac
  15849. need_lib_prefix=no
  15850. need_version=no
  15851. soname_spec='$libname$release$shared_ext$major'
  15852. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15853. case $host_os in
  15854. irix5* | nonstopux*)
  15855. libsuff= shlibsuff=
  15856. ;;
  15857. *)
  15858. case $LD in # libtool.m4 will add one of these switches to LD
  15859. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15860. libsuff= shlibsuff= libmagic=32-bit;;
  15861. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15862. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15863. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15864. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15865. *) libsuff= shlibsuff= libmagic=never-match;;
  15866. esac
  15867. ;;
  15868. esac
  15869. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15870. shlibpath_overrides_runpath=no
  15871. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15872. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15873. hardcode_into_libs=yes
  15874. ;;
  15875. # No shared lib support for Linux oldld, aout, or coff.
  15876. linux*oldld* | linux*aout* | linux*coff*)
  15877. dynamic_linker=no
  15878. ;;
  15879. linux*android*)
  15880. version_type=none # Android doesn't support versioned libraries.
  15881. need_lib_prefix=no
  15882. need_version=no
  15883. library_names_spec='$libname$release$shared_ext'
  15884. soname_spec='$libname$release$shared_ext'
  15885. finish_cmds=
  15886. shlibpath_var=LD_LIBRARY_PATH
  15887. shlibpath_overrides_runpath=yes
  15888. # This implies no fast_install, which is unacceptable.
  15889. # Some rework will be needed to allow for fast_install
  15890. # before this can be enabled.
  15891. hardcode_into_libs=yes
  15892. dynamic_linker='Android linker'
  15893. # Don't embed -rpath directories since the linker doesn't support them.
  15894. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15895. ;;
  15896. # This must be glibc/ELF.
  15897. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15898. version_type=linux # correct to gnu/linux during the next big refactor
  15899. need_lib_prefix=no
  15900. need_version=no
  15901. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15902. soname_spec='$libname$release$shared_ext$major'
  15903. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15904. shlibpath_var=LD_LIBRARY_PATH
  15905. shlibpath_overrides_runpath=no
  15906. # Some binutils ld are patched to set DT_RUNPATH
  15907. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15908. $as_echo_n "(cached) " >&6
  15909. else
  15910. lt_cv_shlibpath_overrides_runpath=no
  15911. save_LDFLAGS=$LDFLAGS
  15912. save_libdir=$libdir
  15913. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15914. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15916. /* end confdefs.h. */
  15917. int
  15918. main ()
  15919. {
  15920. ;
  15921. return 0;
  15922. }
  15923. _ACEOF
  15924. if ac_fn_cxx_try_link "$LINENO"; then :
  15925. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15926. lt_cv_shlibpath_overrides_runpath=yes
  15927. fi
  15928. fi
  15929. rm -f core conftest.err conftest.$ac_objext \
  15930. conftest$ac_exeext conftest.$ac_ext
  15931. LDFLAGS=$save_LDFLAGS
  15932. libdir=$save_libdir
  15933. fi
  15934. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15935. # This implies no fast_install, which is unacceptable.
  15936. # Some rework will be needed to allow for fast_install
  15937. # before this can be enabled.
  15938. hardcode_into_libs=yes
  15939. # Ideally, we could use ldconfig to report *all* directores which are
  15940. # searched for libraries, however this is still not possible. Aside from not
  15941. # being certain /sbin/ldconfig is available, command
  15942. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15943. # even though it is searched at run-time. Try to do the best guess by
  15944. # appending ld.so.conf contents (and includes) to the search path.
  15945. if test -f /etc/ld.so.conf; then
  15946. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  15947. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15948. fi
  15949. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15950. # powerpc, because MkLinux only supported shared libraries with the
  15951. # GNU dynamic linker. Since this was broken with cross compilers,
  15952. # most powerpc-linux boxes support dynamic linking these days and
  15953. # people can always --disable-shared, the test was removed, and we
  15954. # assume the GNU/Linux dynamic linker is in use.
  15955. dynamic_linker='GNU/Linux ld.so'
  15956. ;;
  15957. netbsd*)
  15958. version_type=sunos
  15959. need_lib_prefix=no
  15960. need_version=no
  15961. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15962. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15963. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15964. dynamic_linker='NetBSD (a.out) ld.so'
  15965. else
  15966. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15967. soname_spec='$libname$release$shared_ext$major'
  15968. dynamic_linker='NetBSD ld.elf_so'
  15969. fi
  15970. shlibpath_var=LD_LIBRARY_PATH
  15971. shlibpath_overrides_runpath=yes
  15972. hardcode_into_libs=yes
  15973. ;;
  15974. newsos6)
  15975. version_type=linux # correct to gnu/linux during the next big refactor
  15976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15977. shlibpath_var=LD_LIBRARY_PATH
  15978. shlibpath_overrides_runpath=yes
  15979. ;;
  15980. *nto* | *qnx*)
  15981. version_type=qnx
  15982. need_lib_prefix=no
  15983. need_version=no
  15984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15985. soname_spec='$libname$release$shared_ext$major'
  15986. shlibpath_var=LD_LIBRARY_PATH
  15987. shlibpath_overrides_runpath=no
  15988. hardcode_into_libs=yes
  15989. dynamic_linker='ldqnx.so'
  15990. ;;
  15991. openbsd* | bitrig*)
  15992. version_type=sunos
  15993. sys_lib_dlsearch_path_spec=/usr/lib
  15994. need_lib_prefix=no
  15995. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15996. need_version=no
  15997. else
  15998. need_version=yes
  15999. fi
  16000. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16001. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16002. shlibpath_var=LD_LIBRARY_PATH
  16003. shlibpath_overrides_runpath=yes
  16004. ;;
  16005. os2*)
  16006. libname_spec='$name'
  16007. version_type=windows
  16008. shrext_cmds=.dll
  16009. need_version=no
  16010. need_lib_prefix=no
  16011. # OS/2 can only load a DLL with a base name of 8 characters or less.
  16012. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  16013. v=$($ECHO $release$versuffix | tr -d .-);
  16014. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  16015. $ECHO $n$v`$shared_ext'
  16016. library_names_spec='${libname}_dll.$libext'
  16017. dynamic_linker='OS/2 ld.exe'
  16018. shlibpath_var=BEGINLIBPATH
  16019. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16020. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16021. postinstall_cmds='base_file=`basename \$file`~
  16022. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  16023. dldir=$destdir/`dirname \$dlpath`~
  16024. test -d \$dldir || mkdir -p \$dldir~
  16025. $install_prog $dir/$dlname \$dldir/$dlname~
  16026. chmod a+x \$dldir/$dlname~
  16027. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16028. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16029. fi'
  16030. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  16031. dlpath=$dir/\$dldll~
  16032. $RM \$dlpath'
  16033. ;;
  16034. osf3* | osf4* | osf5*)
  16035. version_type=osf
  16036. need_lib_prefix=no
  16037. need_version=no
  16038. soname_spec='$libname$release$shared_ext$major'
  16039. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16040. shlibpath_var=LD_LIBRARY_PATH
  16041. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16042. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16043. ;;
  16044. rdos*)
  16045. dynamic_linker=no
  16046. ;;
  16047. solaris*)
  16048. version_type=linux # correct to gnu/linux during the next big refactor
  16049. need_lib_prefix=no
  16050. need_version=no
  16051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16052. soname_spec='$libname$release$shared_ext$major'
  16053. shlibpath_var=LD_LIBRARY_PATH
  16054. shlibpath_overrides_runpath=yes
  16055. hardcode_into_libs=yes
  16056. # ldd complains unless libraries are executable
  16057. postinstall_cmds='chmod +x $lib'
  16058. ;;
  16059. sunos4*)
  16060. version_type=sunos
  16061. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16062. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16063. shlibpath_var=LD_LIBRARY_PATH
  16064. shlibpath_overrides_runpath=yes
  16065. if test yes = "$with_gnu_ld"; then
  16066. need_lib_prefix=no
  16067. fi
  16068. need_version=yes
  16069. ;;
  16070. sysv4 | sysv4.3*)
  16071. version_type=linux # correct to gnu/linux during the next big refactor
  16072. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16073. soname_spec='$libname$release$shared_ext$major'
  16074. shlibpath_var=LD_LIBRARY_PATH
  16075. case $host_vendor in
  16076. sni)
  16077. shlibpath_overrides_runpath=no
  16078. need_lib_prefix=no
  16079. runpath_var=LD_RUN_PATH
  16080. ;;
  16081. siemens)
  16082. need_lib_prefix=no
  16083. ;;
  16084. motorola)
  16085. need_lib_prefix=no
  16086. need_version=no
  16087. shlibpath_overrides_runpath=no
  16088. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16089. ;;
  16090. esac
  16091. ;;
  16092. sysv4*MP*)
  16093. if test -d /usr/nec; then
  16094. version_type=linux # correct to gnu/linux during the next big refactor
  16095. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  16096. soname_spec='$libname$shared_ext.$major'
  16097. shlibpath_var=LD_LIBRARY_PATH
  16098. fi
  16099. ;;
  16100. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16101. version_type=sco
  16102. need_lib_prefix=no
  16103. need_version=no
  16104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  16105. soname_spec='$libname$release$shared_ext$major'
  16106. shlibpath_var=LD_LIBRARY_PATH
  16107. shlibpath_overrides_runpath=yes
  16108. hardcode_into_libs=yes
  16109. if test yes = "$with_gnu_ld"; then
  16110. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16111. else
  16112. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16113. case $host_os in
  16114. sco3.2v5*)
  16115. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16116. ;;
  16117. esac
  16118. fi
  16119. sys_lib_dlsearch_path_spec='/usr/lib'
  16120. ;;
  16121. tpf*)
  16122. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16123. version_type=linux # correct to gnu/linux during the next big refactor
  16124. need_lib_prefix=no
  16125. need_version=no
  16126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16127. shlibpath_var=LD_LIBRARY_PATH
  16128. shlibpath_overrides_runpath=no
  16129. hardcode_into_libs=yes
  16130. ;;
  16131. uts4*)
  16132. version_type=linux # correct to gnu/linux during the next big refactor
  16133. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16134. soname_spec='$libname$release$shared_ext$major'
  16135. shlibpath_var=LD_LIBRARY_PATH
  16136. ;;
  16137. *)
  16138. dynamic_linker=no
  16139. ;;
  16140. esac
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16142. $as_echo "$dynamic_linker" >&6; }
  16143. test no = "$dynamic_linker" && can_build_shared=no
  16144. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16145. if test yes = "$GCC"; then
  16146. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16147. fi
  16148. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  16149. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  16150. fi
  16151. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  16152. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  16153. fi
  16154. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  16155. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  16156. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  16157. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  16158. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  16159. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16161. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16162. hardcode_action_CXX=
  16163. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16164. test -n "$runpath_var_CXX" ||
  16165. test yes = "$hardcode_automatic_CXX"; then
  16166. # We can hardcode non-existent directories.
  16167. if test no != "$hardcode_direct_CXX" &&
  16168. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16169. # have to relink, otherwise we might link with an installed library
  16170. # when we should be linking with a yet-to-be-installed one
  16171. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  16172. test no != "$hardcode_minus_L_CXX"; then
  16173. # Linking always hardcodes the temporary library directory.
  16174. hardcode_action_CXX=relink
  16175. else
  16176. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16177. hardcode_action_CXX=immediate
  16178. fi
  16179. else
  16180. # We cannot hardcode anything, or else we can only hardcode existing
  16181. # directories.
  16182. hardcode_action_CXX=unsupported
  16183. fi
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16185. $as_echo "$hardcode_action_CXX" >&6; }
  16186. if test relink = "$hardcode_action_CXX" ||
  16187. test yes = "$inherit_rpath_CXX"; then
  16188. # Fast installation is not supported
  16189. enable_fast_install=no
  16190. elif test yes = "$shlibpath_overrides_runpath" ||
  16191. test no = "$enable_shared"; then
  16192. # Fast installation is not necessary
  16193. enable_fast_install=needless
  16194. fi
  16195. fi # test -n "$compiler"
  16196. CC=$lt_save_CC
  16197. CFLAGS=$lt_save_CFLAGS
  16198. LDCXX=$LD
  16199. LD=$lt_save_LD
  16200. GCC=$lt_save_GCC
  16201. with_gnu_ld=$lt_save_with_gnu_ld
  16202. lt_cv_path_LDCXX=$lt_cv_path_LD
  16203. lt_cv_path_LD=$lt_save_path_LD
  16204. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16205. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16206. fi # test yes != "$_lt_caught_CXX_error"
  16207. ac_ext=c
  16208. ac_cpp='$CPP $CPPFLAGS'
  16209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16213. $as_echo_n "checking for inline... " >&6; }
  16214. if ${ac_cv_c_inline+:} false; then :
  16215. $as_echo_n "(cached) " >&6
  16216. else
  16217. ac_cv_c_inline=no
  16218. for ac_kw in inline __inline__ __inline; do
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. #ifndef __cplusplus
  16222. typedef int foo_t;
  16223. static $ac_kw foo_t static_foo () {return 0; }
  16224. $ac_kw foo_t foo () {return 0; }
  16225. #endif
  16226. _ACEOF
  16227. if ac_fn_c_try_compile "$LINENO"; then :
  16228. ac_cv_c_inline=$ac_kw
  16229. fi
  16230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16231. test "$ac_cv_c_inline" != no && break
  16232. done
  16233. fi
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16235. $as_echo "$ac_cv_c_inline" >&6; }
  16236. case $ac_cv_c_inline in
  16237. inline | yes) ;;
  16238. *)
  16239. case $ac_cv_c_inline in
  16240. no) ac_val=;;
  16241. *) ac_val=$ac_cv_c_inline;;
  16242. esac
  16243. cat >>confdefs.h <<_ACEOF
  16244. #ifndef __cplusplus
  16245. #define inline $ac_val
  16246. #endif
  16247. _ACEOF
  16248. ;;
  16249. esac
  16250. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  16251. if test -n "$ac_tool_prefix"; then
  16252. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  16253. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16255. $as_echo_n "checking for $ac_word... " >&6; }
  16256. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16257. $as_echo_n "(cached) " >&6
  16258. else
  16259. case $PKG_CONFIG in
  16260. [\\/]* | ?:[\\/]*)
  16261. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16262. ;;
  16263. *)
  16264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16265. for as_dir in $PATH
  16266. do
  16267. IFS=$as_save_IFS
  16268. test -z "$as_dir" && as_dir=.
  16269. for ac_exec_ext in '' $ac_executable_extensions; do
  16270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16271. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16273. break 2
  16274. fi
  16275. done
  16276. done
  16277. IFS=$as_save_IFS
  16278. ;;
  16279. esac
  16280. fi
  16281. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16282. if test -n "$PKG_CONFIG"; then
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16284. $as_echo "$PKG_CONFIG" >&6; }
  16285. else
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16287. $as_echo "no" >&6; }
  16288. fi
  16289. fi
  16290. if test -z "$ac_cv_path_PKG_CONFIG"; then
  16291. ac_pt_PKG_CONFIG=$PKG_CONFIG
  16292. # Extract the first word of "pkg-config", so it can be a program name with args.
  16293. set dummy pkg-config; ac_word=$2
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16295. $as_echo_n "checking for $ac_word... " >&6; }
  16296. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  16297. $as_echo_n "(cached) " >&6
  16298. else
  16299. case $ac_pt_PKG_CONFIG in
  16300. [\\/]* | ?:[\\/]*)
  16301. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  16302. ;;
  16303. *)
  16304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16305. for as_dir in $PATH
  16306. do
  16307. IFS=$as_save_IFS
  16308. test -z "$as_dir" && as_dir=.
  16309. for ac_exec_ext in '' $ac_executable_extensions; do
  16310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16311. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16313. break 2
  16314. fi
  16315. done
  16316. done
  16317. IFS=$as_save_IFS
  16318. ;;
  16319. esac
  16320. fi
  16321. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  16322. if test -n "$ac_pt_PKG_CONFIG"; then
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  16324. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  16325. else
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16327. $as_echo "no" >&6; }
  16328. fi
  16329. if test "x$ac_pt_PKG_CONFIG" = x; then
  16330. PKG_CONFIG=""
  16331. else
  16332. case $cross_compiling:$ac_tool_warned in
  16333. yes:)
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16336. ac_tool_warned=yes ;;
  16337. esac
  16338. PKG_CONFIG=$ac_pt_PKG_CONFIG
  16339. fi
  16340. else
  16341. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  16342. fi
  16343. fi
  16344. if test -n "$PKG_CONFIG"; then
  16345. _pkg_min_version=0.9.0
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  16347. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  16348. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  16349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16350. $as_echo "yes" >&6; }
  16351. else
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16353. $as_echo "no" >&6; }
  16354. PKG_CONFIG=""
  16355. fi
  16356. fi
  16357. if test "x$PKG_CONFIG" = x; then
  16358. as_fn_error $? "pkg-config >= $PKGCONFIG_REQUIRED required but not found (https://pkgconfig.freedesktop.org/)" "$LINENO" 5
  16359. fi
  16360. case `$PKG_CONFIG --version` in
  16361. 0.?|0.?.?|0.1[0-7]|0.1[0-7].?) PKGCONFIG_REQUIRES="Requires"; ;;
  16362. *) PKGCONFIG_REQUIRES="Requires.private"; ;;
  16363. esac
  16364. CAIRO_MAKEFILE___WIN32='# Generated by configure. Modify to customize.
  16365. '
  16366. ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features"
  16367. CAIRO_MAKEFILE_cairo_AMAKE='# Generated by configure. Do not edit.
  16368. '
  16369. ac_config_commands="$ac_config_commands $srcdir/src/Makefile.am.features"
  16370. CAIRO_MAKEFILE_cairo_WIN32='# Generated by configure. Do not edit.
  16371. '
  16372. ac_config_commands="$ac_config_commands $srcdir/src/Makefile.win32.features"
  16373. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='# Generated by configure. Do not edit.
  16374. '
  16375. ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.am.features"
  16376. CAIRO_MAKEFILE_cairo_boilerplate_WIN32='# Generated by configure. Do not edit.
  16377. '
  16378. ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.win32.features"
  16379. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16380. "'include $(top_srcdir)/src/Makefile.sources
  16381. '
  16382. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16383. "'ifeq ($(top_srcdir),)
  16384. include Makefile.sources
  16385. else
  16386. include $(top_srcdir)/src/Makefile.sources
  16387. endif
  16388. '
  16389. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  16390. "'include $(top_srcdir)/boilerplate/Makefile.sources
  16391. '
  16392. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  16393. "'ifeq ($(top_srcdir),)
  16394. include Makefile.sources
  16395. else
  16396. include $(top_srcdir)/boilerplate/Makefile.sources
  16397. endif
  16398. '
  16399. cr_make_tmp='supported_cairo_headers = $(cairo_headers)'
  16400. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16401. ""$cr_make_tmp"
  16402. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16403. ""$cr_make_tmp"
  16404. cr_make_tmp='supported_cairo_boilerplate_headers = $(cairo_boilerplate_headers)'
  16405. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  16406. ""$cr_make_tmp"
  16407. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  16408. ""$cr_make_tmp"
  16409. cr_make_tmp='unsupported_cairo_headers ='
  16410. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16411. ""$cr_make_tmp"
  16412. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16413. ""$cr_make_tmp"
  16414. cr_make_tmp='unsupported_cairo_boilerplate_headers ='
  16415. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  16416. ""$cr_make_tmp"
  16417. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  16418. ""$cr_make_tmp"
  16419. cr_make_tmp='all_cairo_headers = $(cairo_headers)
  16420. all_cairo_private = $(cairo_private)
  16421. all_cairo_cxx_sources = $(cairo_cxx_sources)
  16422. all_cairo_sources = $(cairo_sources)
  16423. '
  16424. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16425. ""$cr_make_tmp"
  16426. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16427. ""$cr_make_tmp"
  16428. cr_make_tmp='all_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
  16429. all_cairo_boilerplate_private = $(cairo_boilerplate_private)
  16430. all_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
  16431. all_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
  16432. '
  16433. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  16434. ""$cr_make_tmp"
  16435. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  16436. ""$cr_make_tmp"
  16437. cr_make_tmp='enabled_cairo_headers = $(cairo_headers)
  16438. enabled_cairo_private = $(cairo_private)
  16439. enabled_cairo_cxx_sources = $(cairo_cxx_sources)
  16440. enabled_cairo_sources = $(cairo_sources)
  16441. '
  16442. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16443. ""$cr_make_tmp"
  16444. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16445. ""$cr_make_tmp"
  16446. cr_make_tmp='enabled_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
  16447. enabled_cairo_boilerplate_private = $(cairo_boilerplate_private)
  16448. enabled_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
  16449. enabled_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
  16450. '
  16451. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  16452. ""$cr_make_tmp"
  16453. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  16454. ""$cr_make_tmp"
  16455. ac_config_files="$ac_config_files src/cairo.pc"
  16456. ac_config_files="$ac_config_files cairo-uninstalled.pc:src/cairo-uninstalled.pc.in"
  16457. CAIRO_REQUIRES=""
  16458. CAIRO_CFLAGS=""
  16459. CAIRO_NONPKGCONFIG_CFLAGS=""
  16460. CAIRO_LIBS="$LIBS"
  16461. CAIRO_NONPKGCONFIG_LIBS="$LIBS"
  16462. cr_make_tmp='all_cairo_pkgconf = cairo.pc'
  16463. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16464. ""$cr_make_tmp"
  16465. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16466. ""$cr_make_tmp"
  16467. cr_make_tmp='enabled_cairo_pkgconf = cairo.pc'
  16468. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  16469. ""$cr_make_tmp"
  16470. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  16471. ""$cr_make_tmp"
  16472. CAIRO_FEATURES=''
  16473. CAIRO_SUPPORTED_FEATURES=''
  16474. CAIRO_NO_FEATURES=''
  16475. ac_config_commands="$ac_config_commands src/cairo-features.h"
  16476. ac_config_commands="$ac_config_commands src/cairo-supported-features.h"
  16477. CAIRO_MAKEFILE_win32_features_h_WIN32='# Generated by configure. Do not edit.
  16478. '
  16479. ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features-h"
  16480. cr_make_tmp='$(top_srcdir)/src/cairo-features.h: $(top_srcdir)/build/Makefile.win32.features
  16481. @echo "Generating src/cairo-features.h"
  16482. @echo "/* Generated by Makefile.win32.features-h. Do not edit. */" > $(top_srcdir)/src/cairo-features.h
  16483. @echo "#ifndef CAIRO_FEATURES_H" >> $(top_srcdir)/src/cairo-features.h
  16484. @echo "#define CAIRO_FEATURES_H 1" >> $(top_srcdir)/src/cairo-features.h'
  16485. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  16486. ""$cr_make_tmp"
  16487. CAIRO_WARNING_MESSAGE=''
  16488. CAIRO_NATIVE_SURFACE_BACKENDS=''
  16489. CAIRO_NATIVE_FONT_BACKENDS=''
  16490. # -Wcast-align generates lots of false positive reports we need to
  16491. # cast image data from uint8_t to uin32_t.
  16492. # -Wlogical-op causes too much noise from strcmp("literal", str)
  16493. MAYBE_WARN="-Wall -Wextra \
  16494. -Wmissing-declarations -Werror-implicit-function-declaration \
  16495. -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked \
  16496. -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var \
  16497. -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
  16498. -Wno-missing-field-initializers -Wno-unused-parameter \
  16499. -Wno-attributes -Wno-long-long -Winline"
  16500. MAYBE_C_SPECIFIC_WARN="-Wold-style-definition \
  16501. -Wdeclaration-after-statement -Wstrict-prototypes \
  16502. -Wmissing-prototypes -Wbad-function-cast -Wnested-externs"
  16503. # New -Wno options should be added here
  16504. # gcc-4.4 and later accept every -Wno- option but may complain later that this
  16505. # option is unknow each time another warning happen.
  16506. # -Wunused-but-set-variable is too noisy at present
  16507. NO_WARN="unused-but-set-variable"
  16508. MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
  16509. -erroff=E_ENUM_TYPE_MISMATCH_OP"
  16510. MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
  16511. MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
  16512. # invalidate cached value if MAYBE_WARN has changed
  16513. if test "x$cairo_cv_warn_maybe" != "x$MAYBE_WARN"; then
  16514. unset cairo_cv_warn_cflags
  16515. fi
  16516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
  16517. $as_echo_n "checking for supported warning flags... " >&6; }
  16518. if ${cairo_cv_warn_cflags+:} false; then :
  16519. $as_echo_n "(cached) " >&6
  16520. else
  16521. echo
  16522. WARN_CFLAGS=""
  16523. # Some warning options are not supported by all versions of
  16524. # gcc, so test all desired options against the current
  16525. # compiler.
  16526. #
  16527. # Note that there are some order dependencies
  16528. # here. Specifically, an option that disables a warning will
  16529. # have no net effect if a later option then enables that
  16530. # warnings, (perhaps implicitly). So we put some grouped
  16531. # options (-Wall and -Wextra) up front and the -Wno options
  16532. # last.
  16533. for W in $MAYBE_WARN; do
  16534. _test_WERROR=${WERROR+set}
  16535. if test "z$_test_WERROR" != zset; then
  16536. WERROR=""
  16537. for _werror in -Werror -errwarn; do
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
  16539. $as_echo_n "checking whether $CC supports $_werror... " >&6; }
  16540. # AC_LANG_PROGRAM() produces a main() w/o args,
  16541. # but -Wold-style-definition doesn't like that.
  16542. # We need _some_ program so that we don't get
  16543. # warnings about empty compilation units, so always
  16544. # append a reasonable main().
  16545. _compile_program=""'
  16546. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16547. _save_cflags="$CFLAGS"
  16548. _save_ldflags="$LDFLAGS"
  16549. _save_libs="$LIBS"
  16550. CFLAGS="$CFLAGS $_werror"
  16551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16552. /* end confdefs.h. */
  16553. $_compile_program
  16554. _ACEOF
  16555. if ac_fn_c_try_link "$LINENO"; then :
  16556. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16557. cairo_cc_flag=yes
  16558. else
  16559. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16560. cairo_cc_flag=no
  16561. fi
  16562. rm -f core conftest.err conftest.$ac_objext \
  16563. conftest$ac_exeext conftest.$ac_ext
  16564. if test "x$cairo_cc_stderr" != "x"; then
  16565. cairo_cc_flag=no
  16566. fi
  16567. if test "x$cairo_cc_flag" = "xyes"; then
  16568. WERROR="$WERROR $_werror"
  16569. else
  16570. :
  16571. fi
  16572. CFLAGS="$_save_cflags"
  16573. LDFLAGS="$_save_ldflags"
  16574. LIBS="$_save_libs"
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  16576. $as_echo "$cairo_cc_flag" >&6; }
  16577. done
  16578. fi
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
  16580. $as_echo_n "checking whether $CC supports $W... " >&6; }
  16581. # AC_LANG_PROGRAM() produces a main() w/o args,
  16582. # but -Wold-style-definition doesn't like that.
  16583. # We need _some_ program so that we don't get
  16584. # warnings about empty compilation units, so always
  16585. # append a reasonable main().
  16586. _compile_program=""'
  16587. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16588. _save_cflags="$CFLAGS"
  16589. _save_ldflags="$LDFLAGS"
  16590. _save_libs="$LIBS"
  16591. CFLAGS="$CFLAGS $WERROR $W"
  16592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16593. /* end confdefs.h. */
  16594. $_compile_program
  16595. _ACEOF
  16596. if ac_fn_c_try_link "$LINENO"; then :
  16597. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16598. cairo_cc_flag=yes
  16599. else
  16600. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16601. cairo_cc_flag=no
  16602. fi
  16603. rm -f core conftest.err conftest.$ac_objext \
  16604. conftest$ac_exeext conftest.$ac_ext
  16605. if test "x$cairo_cc_stderr" != "x"; then
  16606. cairo_cc_flag=no
  16607. fi
  16608. if test "x$cairo_cc_flag" = "xyes"; then
  16609. WARN_CFLAGS="$WARN_CFLAGS $W"
  16610. else
  16611. :
  16612. fi
  16613. CFLAGS="$_save_cflags"
  16614. LDFLAGS="$_save_ldflags"
  16615. LIBS="$_save_libs"
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  16617. $as_echo "$cairo_cc_flag" >&6; }
  16618. done
  16619. for W in $NO_WARN; do
  16620. _test_WERROR=${WERROR+set}
  16621. if test "z$_test_WERROR" != zset; then
  16622. WERROR=""
  16623. for _werror in -Werror -errwarn; do
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
  16625. $as_echo_n "checking whether $CC supports $_werror... " >&6; }
  16626. # AC_LANG_PROGRAM() produces a main() w/o args,
  16627. # but -Wold-style-definition doesn't like that.
  16628. # We need _some_ program so that we don't get
  16629. # warnings about empty compilation units, so always
  16630. # append a reasonable main().
  16631. _compile_program=""'
  16632. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16633. _save_cflags="$CFLAGS"
  16634. _save_ldflags="$LDFLAGS"
  16635. _save_libs="$LIBS"
  16636. CFLAGS="$CFLAGS $_werror"
  16637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h. */
  16639. $_compile_program
  16640. _ACEOF
  16641. if ac_fn_c_try_link "$LINENO"; then :
  16642. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16643. cairo_cc_flag=yes
  16644. else
  16645. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16646. cairo_cc_flag=no
  16647. fi
  16648. rm -f core conftest.err conftest.$ac_objext \
  16649. conftest$ac_exeext conftest.$ac_ext
  16650. if test "x$cairo_cc_stderr" != "x"; then
  16651. cairo_cc_flag=no
  16652. fi
  16653. if test "x$cairo_cc_flag" = "xyes"; then
  16654. WERROR="$WERROR $_werror"
  16655. else
  16656. :
  16657. fi
  16658. CFLAGS="$_save_cflags"
  16659. LDFLAGS="$_save_ldflags"
  16660. LIBS="$_save_libs"
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  16662. $as_echo "$cairo_cc_flag" >&6; }
  16663. done
  16664. fi
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W$W -Wno-$W" >&5
  16666. $as_echo_n "checking whether $CC supports -W$W -Wno-$W... " >&6; }
  16667. # AC_LANG_PROGRAM() produces a main() w/o args,
  16668. # but -Wold-style-definition doesn't like that.
  16669. # We need _some_ program so that we don't get
  16670. # warnings about empty compilation units, so always
  16671. # append a reasonable main().
  16672. _compile_program=""'
  16673. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16674. _save_cflags="$CFLAGS"
  16675. _save_ldflags="$LDFLAGS"
  16676. _save_libs="$LIBS"
  16677. CFLAGS="$CFLAGS $WERROR -W$W -Wno-$W"
  16678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16679. /* end confdefs.h. */
  16680. $_compile_program
  16681. _ACEOF
  16682. if ac_fn_c_try_link "$LINENO"; then :
  16683. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16684. cairo_cc_flag=yes
  16685. else
  16686. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16687. cairo_cc_flag=no
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext \
  16690. conftest$ac_exeext conftest.$ac_ext
  16691. if test "x$cairo_cc_stderr" != "x"; then
  16692. cairo_cc_flag=no
  16693. fi
  16694. if test "x$cairo_cc_flag" = "xyes"; then
  16695. WARN_CFLAGS="$WARN_CFLAGS -Wno-$W"
  16696. else
  16697. :
  16698. fi
  16699. CFLAGS="$_save_cflags"
  16700. LDFLAGS="$_save_ldflags"
  16701. LIBS="$_save_libs"
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  16703. $as_echo "$cairo_cc_flag" >&6; }
  16704. done
  16705. cairo_cv_warn_cflags=$WARN_CFLAGS
  16706. cairo_cv_warn_maybe="$MAYBE_WARN $MAYBE_C_SPECIFIC_WARN"
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
  16708. $as_echo_n "checking which warning flags were supported... " >&6; }
  16709. fi
  16710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_cflags" >&5
  16711. $as_echo "$cairo_cv_warn_cflags" >&6; }
  16712. WARN_CFLAGS="$cairo_cv_warn_cflags"
  16713. CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS"
  16714. # We only wish to enable attribute(warn_unused_result) if we can prevent
  16715. # gcc from generating thousands of warnings about the misapplication of the
  16716. # attribute to void functions and variables.
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to enable unused result warnings" >&5
  16718. $as_echo_n "checking how to enable unused result warnings... " >&6; }
  16719. if ${cairo_cv_warn_unused_result+:} false; then :
  16720. $as_echo_n "(cached) " >&6
  16721. else
  16722. cairo_cv_warn_unused_result=""
  16723. if echo $WARN_CFLAGS | $GREP -e '-Wno-attributes' >/dev/null; then
  16724. # AC_LANG_PROGRAM() produces a main() w/o args,
  16725. # but -Wold-style-definition doesn't like that.
  16726. # We need _some_ program so that we don't get
  16727. # warnings about empty compilation units, so always
  16728. # append a reasonable main().
  16729. _compile_program="__attribute__((__warn_unused_result__)) void f (void) {}
  16730. __attribute__((__warn_unused_result__)) int g;"'
  16731. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16732. _save_cflags="$CFLAGS"
  16733. _save_ldflags="$LDFLAGS"
  16734. _save_libs="$LIBS"
  16735. CFLAGS="$CFLAGS -Wno-attributes"
  16736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16737. /* end confdefs.h. */
  16738. $_compile_program
  16739. _ACEOF
  16740. if ac_fn_c_try_link "$LINENO"; then :
  16741. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16742. cairo_cc_flag=yes
  16743. else
  16744. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16745. cairo_cc_flag=no
  16746. fi
  16747. rm -f core conftest.err conftest.$ac_objext \
  16748. conftest$ac_exeext conftest.$ac_ext
  16749. if test "x$cairo_cc_stderr" != "x"; then
  16750. cairo_cc_flag=no
  16751. fi
  16752. if test "x$cairo_cc_flag" = "xyes"; then
  16753. cairo_cv_warn_unused_result="__attribute__((__warn_unused_result__))"
  16754. else
  16755. :
  16756. fi
  16757. CFLAGS="$_save_cflags"
  16758. LDFLAGS="$_save_ldflags"
  16759. LIBS="$_save_libs"
  16760. fi
  16761. fi
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_unused_result" >&5
  16763. $as_echo "$cairo_cv_warn_unused_result" >&6; }
  16764. cat >>confdefs.h <<_ACEOF
  16765. #define WARN_UNUSED_RESULT $cairo_cv_warn_unused_result
  16766. _ACEOF
  16767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allow undefined symbols in shared libraries used by test suite" >&5
  16768. $as_echo_n "checking how to allow undefined symbols in shared libraries used by test suite... " >&6; }
  16769. if ${cairo_cv_test_undefined_ldflags+:} false; then :
  16770. $as_echo_n "(cached) " >&6
  16771. else
  16772. # AC_LANG_PROGRAM() produces a main() w/o args,
  16773. # but -Wold-style-definition doesn't like that.
  16774. # We need _some_ program so that we don't get
  16775. # warnings about empty compilation units, so always
  16776. # append a reasonable main().
  16777. _compile_program=""'
  16778. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  16779. _save_cflags="$CFLAGS"
  16780. _save_ldflags="$LDFLAGS"
  16781. _save_libs="$LIBS"
  16782. CFLAGS="$CFLAGS -Wl,--allow-shlib-undefined"
  16783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16784. /* end confdefs.h. */
  16785. $_compile_program
  16786. _ACEOF
  16787. if ac_fn_c_try_link "$LINENO"; then :
  16788. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16789. cairo_cc_flag=yes
  16790. else
  16791. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  16792. cairo_cc_flag=no
  16793. fi
  16794. rm -f core conftest.err conftest.$ac_objext \
  16795. conftest$ac_exeext conftest.$ac_ext
  16796. if test "x$cairo_cc_stderr" != "x"; then
  16797. cairo_cc_flag=no
  16798. fi
  16799. if test "x$cairo_cc_flag" = "xyes"; then
  16800. cairo_cv_test_undefined_ldflags="-Wl,--allow-shlib-undefined"
  16801. else
  16802. :
  16803. fi
  16804. CFLAGS="$_save_cflags"
  16805. LDFLAGS="$_save_ldflags"
  16806. LIBS="$_save_libs"
  16807. fi
  16808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_test_undefined_ldflags" >&5
  16809. $as_echo "$cairo_cv_test_undefined_ldflags" >&6; }
  16810. CAIRO_TEST_UNDEFINED_LDFLAGS="$cairo_cv_test_undefined_ldflags"
  16811. if test "x$cross_compiling" = "xyes"; then
  16812. CROSS_COMPILING_TRUE=
  16813. CROSS_COMPILING_FALSE='#'
  16814. else
  16815. CROSS_COMPILING_TRUE='#'
  16816. CROSS_COMPILING_FALSE=
  16817. fi
  16818. case $host_os in
  16819. darwin*)
  16820. ;;
  16821. *)
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16823. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  16824. if ${ac_cv_c_bigendian+:} false; then :
  16825. $as_echo_n "(cached) " >&6
  16826. else
  16827. ac_cv_c_bigendian=unknown
  16828. # See if we're dealing with a universal compiler.
  16829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16830. /* end confdefs.h. */
  16831. #ifndef __APPLE_CC__
  16832. not a universal capable compiler
  16833. #endif
  16834. typedef int dummy;
  16835. _ACEOF
  16836. if ac_fn_c_try_compile "$LINENO"; then :
  16837. # Check for potential -arch flags. It is not universal unless
  16838. # there are at least two -arch flags with different values.
  16839. ac_arch=
  16840. ac_prev=
  16841. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16842. if test -n "$ac_prev"; then
  16843. case $ac_word in
  16844. i?86 | x86_64 | ppc | ppc64)
  16845. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16846. ac_arch=$ac_word
  16847. else
  16848. ac_cv_c_bigendian=universal
  16849. break
  16850. fi
  16851. ;;
  16852. esac
  16853. ac_prev=
  16854. elif test "x$ac_word" = "x-arch"; then
  16855. ac_prev=arch
  16856. fi
  16857. done
  16858. fi
  16859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16860. if test $ac_cv_c_bigendian = unknown; then
  16861. # See if sys/param.h defines the BYTE_ORDER macro.
  16862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16863. /* end confdefs.h. */
  16864. #include <sys/types.h>
  16865. #include <sys/param.h>
  16866. int
  16867. main ()
  16868. {
  16869. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16870. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16871. && LITTLE_ENDIAN)
  16872. bogus endian macros
  16873. #endif
  16874. ;
  16875. return 0;
  16876. }
  16877. _ACEOF
  16878. if ac_fn_c_try_compile "$LINENO"; then :
  16879. # It does; now see whether it defined to BIG_ENDIAN or not.
  16880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16881. /* end confdefs.h. */
  16882. #include <sys/types.h>
  16883. #include <sys/param.h>
  16884. int
  16885. main ()
  16886. {
  16887. #if BYTE_ORDER != BIG_ENDIAN
  16888. not big endian
  16889. #endif
  16890. ;
  16891. return 0;
  16892. }
  16893. _ACEOF
  16894. if ac_fn_c_try_compile "$LINENO"; then :
  16895. ac_cv_c_bigendian=yes
  16896. else
  16897. ac_cv_c_bigendian=no
  16898. fi
  16899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16900. fi
  16901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16902. fi
  16903. if test $ac_cv_c_bigendian = unknown; then
  16904. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16906. /* end confdefs.h. */
  16907. #include <limits.h>
  16908. int
  16909. main ()
  16910. {
  16911. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16912. bogus endian macros
  16913. #endif
  16914. ;
  16915. return 0;
  16916. }
  16917. _ACEOF
  16918. if ac_fn_c_try_compile "$LINENO"; then :
  16919. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. #include <limits.h>
  16923. int
  16924. main ()
  16925. {
  16926. #ifndef _BIG_ENDIAN
  16927. not big endian
  16928. #endif
  16929. ;
  16930. return 0;
  16931. }
  16932. _ACEOF
  16933. if ac_fn_c_try_compile "$LINENO"; then :
  16934. ac_cv_c_bigendian=yes
  16935. else
  16936. ac_cv_c_bigendian=no
  16937. fi
  16938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16941. fi
  16942. if test $ac_cv_c_bigendian = unknown; then
  16943. # Compile a test program.
  16944. if test "$cross_compiling" = yes; then :
  16945. # Try to guess by grepping values from an object file.
  16946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16947. /* end confdefs.h. */
  16948. short int ascii_mm[] =
  16949. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16950. short int ascii_ii[] =
  16951. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16952. int use_ascii (int i) {
  16953. return ascii_mm[i] + ascii_ii[i];
  16954. }
  16955. short int ebcdic_ii[] =
  16956. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16957. short int ebcdic_mm[] =
  16958. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16959. int use_ebcdic (int i) {
  16960. return ebcdic_mm[i] + ebcdic_ii[i];
  16961. }
  16962. extern int foo;
  16963. int
  16964. main ()
  16965. {
  16966. return use_ascii (foo) == use_ebcdic (foo);
  16967. ;
  16968. return 0;
  16969. }
  16970. _ACEOF
  16971. if ac_fn_c_try_compile "$LINENO"; then :
  16972. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16973. ac_cv_c_bigendian=yes
  16974. fi
  16975. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16976. if test "$ac_cv_c_bigendian" = unknown; then
  16977. ac_cv_c_bigendian=no
  16978. else
  16979. # finding both strings is unlikely to happen, but who knows?
  16980. ac_cv_c_bigendian=unknown
  16981. fi
  16982. fi
  16983. fi
  16984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16985. else
  16986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16987. /* end confdefs.h. */
  16988. $ac_includes_default
  16989. int
  16990. main ()
  16991. {
  16992. /* Are we little or big endian? From Harbison&Steele. */
  16993. union
  16994. {
  16995. long int l;
  16996. char c[sizeof (long int)];
  16997. } u;
  16998. u.l = 1;
  16999. return u.c[sizeof (long int) - 1] == 1;
  17000. ;
  17001. return 0;
  17002. }
  17003. _ACEOF
  17004. if ac_fn_c_try_run "$LINENO"; then :
  17005. ac_cv_c_bigendian=no
  17006. else
  17007. ac_cv_c_bigendian=yes
  17008. fi
  17009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17010. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17011. fi
  17012. fi
  17013. fi
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  17015. $as_echo "$ac_cv_c_bigendian" >&6; }
  17016. case $ac_cv_c_bigendian in #(
  17017. yes)
  17018. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  17019. ;; #(
  17020. no)
  17021. ;; #(
  17022. universal)
  17023. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  17024. ;; #(
  17025. *)
  17026. as_fn_error $? "unknown endianness
  17027. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  17028. esac
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
  17030. $as_echo_n "checking whether float word ordering is bigendian... " >&6; }
  17031. if ${ax_cv_c_float_words_bigendian+:} false; then :
  17032. $as_echo_n "(cached) " >&6
  17033. else
  17034. # The endianness is detected by first compiling C code that contains a special
  17035. # double float value, then grepping the resulting object file for certain
  17036. # strings of ascii values. The double is specially crafted to have a
  17037. # binary representation that corresponds with a simple string. In this
  17038. # implementation, the string "noonsees" was selected because the individual
  17039. # word values ("noon" and "sees") are palindromes, thus making this test
  17040. # byte-order agnostic. If grep finds the string "noonsees" in the object
  17041. # file, the target platform stores float words in big-endian order. If grep
  17042. # finds "seesnoon", float words are in little-endian order. If neither value
  17043. # is found, the user is instructed to specify the ordering.
  17044. ax_cv_c_float_words_bigendian=unknown
  17045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17046. /* end confdefs.h. */
  17047. double d __attribute__((used)) = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
  17048. int main() { return 0; }
  17049. _ACEOF
  17050. if ac_fn_c_try_link "$LINENO"; then :
  17051. if strings -a conftest$ac_exeext | grep noonsees >/dev/null ; then
  17052. ax_cv_c_float_words_bigendian=yes
  17053. fi
  17054. if strings -a conftest$ac_exeext | grep seesnoon >/dev/null ; then
  17055. if test "$ax_cv_c_float_words_bigendian" = unknown; then
  17056. ax_cv_c_float_words_bigendian=no
  17057. else
  17058. ax_cv_c_float_words_bigendian=unknown
  17059. fi
  17060. fi
  17061. fi
  17062. rm -f core conftest.err conftest.$ac_objext \
  17063. conftest$ac_exeext conftest.$ac_ext
  17064. fi
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
  17066. $as_echo "$ax_cv_c_float_words_bigendian" >&6; }
  17067. case $ax_cv_c_float_words_bigendian in
  17068. yes)
  17069. $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
  17070. ;;
  17071. no)
  17072. ;;
  17073. *)
  17074. as_fn_error $? "
  17075. Unknown float word ordering. You need to manually preset
  17076. ax_cv_c_float_words_bigendian=no (or yes) according to your system.
  17077. " "$LINENO" 5 ;;
  17078. esac
  17079. ;;
  17080. esac
  17081. # Check whether --enable-atomic was given.
  17082. if test "${enable_atomic+set}" = set; then :
  17083. enableval=$enable_atomic; use_atomic=$enableval
  17084. else
  17085. use_atomic=yes
  17086. fi
  17087. if test "x$use_atomic" = "xyes"; then :
  17088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
  17089. $as_echo_n "checking for native atomic primitives... " >&6; }
  17090. if ${cairo_cv_atomic_primitives+:} false; then :
  17091. $as_echo_n "(cached) " >&6
  17092. else
  17093. cairo_cv_atomic_primitives="none"
  17094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17095. /* end confdefs.h. */
  17096. int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
  17097. int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
  17098. int
  17099. main ()
  17100. {
  17101. ;
  17102. return 0;
  17103. }
  17104. _ACEOF
  17105. if ac_fn_c_try_link "$LINENO"; then :
  17106. cairo_cv_atomic_primitives="gcc-legacy"
  17107. fi
  17108. rm -f core conftest.err conftest.$ac_objext \
  17109. conftest$ac_exeext conftest.$ac_ext
  17110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17111. /* end confdefs.h. */
  17112. int atomic_add(int i) { return __atomic_fetch_add(&i, 1, __ATOMIC_SEQ_CST); }
  17113. int atomic_cmpxchg(int i, int j, int k) { return __atomic_compare_exchange_n(&i, &j, k, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); }
  17114. int
  17115. main ()
  17116. {
  17117. ;
  17118. return 0;
  17119. }
  17120. _ACEOF
  17121. if ac_fn_c_try_link "$LINENO"; then :
  17122. cairo_cv_atomic_primitives="cxx11"
  17123. fi
  17124. rm -f core conftest.err conftest.$ac_objext \
  17125. conftest$ac_exeext conftest.$ac_ext
  17126. if test "x$cairo_cv_atomic_primitives" = "xnone"; then
  17127. ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
  17128. if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
  17129. cairo_cv_atomic_primitives="libatomic-ops"
  17130. fi
  17131. fi
  17132. if test "x$cairo_cv_atomic_primitives" = "xnone"; then
  17133. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  17134. if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
  17135. cairo_cv_atomic_primitives="OSAtomic"
  17136. fi
  17137. fi
  17138. fi
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_primitives" >&5
  17140. $as_echo "$cairo_cv_atomic_primitives" >&6; }
  17141. if test "x$cairo_cv_atomic_primitives" = xcxx11; then
  17142. $as_echo "#define HAVE_CXX11_ATOMIC_PRIMITIVES 1" >>confdefs.h
  17143. fi
  17144. if test "x$cairo_cv_atomic_primitives" = xgcc-legacy; then
  17145. $as_echo "#define HAVE_GCC_LEGACY_ATOMICS 1" >>confdefs.h
  17146. fi
  17147. if test "x$cairo_cv_atomic_primitives" = "xlibatomic-ops"; then
  17148. $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
  17149. fi
  17150. if test "x$cairo_cv_atomic_primitives" = xOSAtomic; then
  17151. $as_echo "#define HAVE_OS_ATOMIC_OPS 1" >>confdefs.h
  17152. fi
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic ops require a memory barrier" >&5
  17154. $as_echo_n "checking whether atomic ops require a memory barrier... " >&6; }
  17155. if ${cairo_cv_atomic_op_needs_memory_barrier+:} false; then :
  17156. $as_echo_n "(cached) " >&6
  17157. else
  17158. case $host_cpu in
  17159. i?86) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
  17160. x86_64) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
  17161. arm*) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
  17162. *) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
  17163. esac
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_op_needs_memory_barrier" >&5
  17166. $as_echo "$cairo_cv_atomic_op_needs_memory_barrier" >&6; }
  17167. if test "x$cairo_cv_atomic_op_needs_memory_barrier" = "xyes"; then
  17168. cat >>confdefs.h <<_ACEOF
  17169. #define ATOMIC_OP_NEEDS_MEMORY_BARRIER 1
  17170. _ACEOF
  17171. fi
  17172. fi
  17173. # The cast to long int works around a bug in the HP C Compiler
  17174. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17175. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17176. # This bug is HP SR number 8606223364.
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  17178. $as_echo_n "checking size of void *... " >&6; }
  17179. if ${ac_cv_sizeof_void_p+:} false; then :
  17180. $as_echo_n "(cached) " >&6
  17181. else
  17182. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  17183. else
  17184. if test "$ac_cv_type_void_p" = yes; then
  17185. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17186. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17187. as_fn_error 77 "cannot compute sizeof (void *)
  17188. See \`config.log' for more details" "$LINENO" 5; }
  17189. else
  17190. ac_cv_sizeof_void_p=0
  17191. fi
  17192. fi
  17193. fi
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  17195. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  17196. cat >>confdefs.h <<_ACEOF
  17197. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  17198. _ACEOF
  17199. # The cast to long int works around a bug in the HP C Compiler
  17200. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17201. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17202. # This bug is HP SR number 8606223364.
  17203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  17204. $as_echo_n "checking size of int... " >&6; }
  17205. if ${ac_cv_sizeof_int+:} false; then :
  17206. $as_echo_n "(cached) " >&6
  17207. else
  17208. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  17209. else
  17210. if test "$ac_cv_type_int" = yes; then
  17211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17213. as_fn_error 77 "cannot compute sizeof (int)
  17214. See \`config.log' for more details" "$LINENO" 5; }
  17215. else
  17216. ac_cv_sizeof_int=0
  17217. fi
  17218. fi
  17219. fi
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  17221. $as_echo "$ac_cv_sizeof_int" >&6; }
  17222. cat >>confdefs.h <<_ACEOF
  17223. #define SIZEOF_INT $ac_cv_sizeof_int
  17224. _ACEOF
  17225. # The cast to long int works around a bug in the HP C Compiler
  17226. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17227. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17228. # This bug is HP SR number 8606223364.
  17229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  17230. $as_echo_n "checking size of long... " >&6; }
  17231. if ${ac_cv_sizeof_long+:} false; then :
  17232. $as_echo_n "(cached) " >&6
  17233. else
  17234. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  17235. else
  17236. if test "$ac_cv_type_long" = yes; then
  17237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17239. as_fn_error 77 "cannot compute sizeof (long)
  17240. See \`config.log' for more details" "$LINENO" 5; }
  17241. else
  17242. ac_cv_sizeof_long=0
  17243. fi
  17244. fi
  17245. fi
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  17247. $as_echo "$ac_cv_sizeof_long" >&6; }
  17248. cat >>confdefs.h <<_ACEOF
  17249. #define SIZEOF_LONG $ac_cv_sizeof_long
  17250. _ACEOF
  17251. # The cast to long int works around a bug in the HP C Compiler
  17252. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17253. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17254. # This bug is HP SR number 8606223364.
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  17256. $as_echo_n "checking size of long long... " >&6; }
  17257. if ${ac_cv_sizeof_long_long+:} false; then :
  17258. $as_echo_n "(cached) " >&6
  17259. else
  17260. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  17261. else
  17262. if test "$ac_cv_type_long_long" = yes; then
  17263. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17265. as_fn_error 77 "cannot compute sizeof (long long)
  17266. See \`config.log' for more details" "$LINENO" 5; }
  17267. else
  17268. ac_cv_sizeof_long_long=0
  17269. fi
  17270. fi
  17271. fi
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  17273. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  17274. cat >>confdefs.h <<_ACEOF
  17275. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  17276. _ACEOF
  17277. # The cast to long int works around a bug in the HP C Compiler
  17278. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17279. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17280. # This bug is HP SR number 8606223364.
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  17282. $as_echo_n "checking size of size_t... " >&6; }
  17283. if ${ac_cv_sizeof_size_t+:} false; then :
  17284. $as_echo_n "(cached) " >&6
  17285. else
  17286. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  17287. else
  17288. if test "$ac_cv_type_size_t" = yes; then
  17289. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17291. as_fn_error 77 "cannot compute sizeof (size_t)
  17292. See \`config.log' for more details" "$LINENO" 5; }
  17293. else
  17294. ac_cv_sizeof_size_t=0
  17295. fi
  17296. fi
  17297. fi
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  17299. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  17300. cat >>confdefs.h <<_ACEOF
  17301. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  17302. _ACEOF
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
  17304. $as_echo_n "checking for native Win32... " >&6; }
  17305. case "$host" in
  17306. *-*-mingw*)
  17307. cairo_os_win32=yes
  17308. ;;
  17309. *)
  17310. cairo_os_win32=no
  17311. ;;
  17312. esac
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_os_win32" >&5
  17314. $as_echo "$cairo_os_win32" >&6; }
  17315. if test "$cairo_os_win32" = "yes"; then
  17316. OS_WIN32_TRUE=
  17317. OS_WIN32_FALSE='#'
  17318. else
  17319. OS_WIN32_TRUE='#'
  17320. OS_WIN32_FALSE=
  17321. fi
  17322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun Solaris (non-POSIX ctime_r)" >&5
  17323. $as_echo_n "checking for Sun Solaris (non-POSIX ctime_r)... " >&6; }
  17324. case "$host" in
  17325. *-*-solaris*)
  17326. CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
  17327. solaris_posix_pthread=yes
  17328. ;;
  17329. *)
  17330. solaris_posix_pthread=no
  17331. ;;
  17332. esac
  17333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $solaris_posix_pthread" >&5
  17334. $as_echo "$solaris_posix_pthread" >&6; }
  17335. LIBM=
  17336. case $host in
  17337. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  17338. # These system don't have libm, or don't need it
  17339. ;;
  17340. *-ncr-sysv4.3*)
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  17342. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  17343. if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
  17344. $as_echo_n "(cached) " >&6
  17345. else
  17346. ac_check_lib_save_LIBS=$LIBS
  17347. LIBS="-lmw $LIBS"
  17348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17349. /* end confdefs.h. */
  17350. /* Override any GCC internal prototype to avoid an error.
  17351. Use char because int might match the return type of a GCC
  17352. builtin and then its argument prototype would still apply. */
  17353. #ifdef __cplusplus
  17354. extern "C"
  17355. #endif
  17356. char _mwvalidcheckl ();
  17357. int
  17358. main ()
  17359. {
  17360. return _mwvalidcheckl ();
  17361. ;
  17362. return 0;
  17363. }
  17364. _ACEOF
  17365. if ac_fn_c_try_link "$LINENO"; then :
  17366. ac_cv_lib_mw__mwvalidcheckl=yes
  17367. else
  17368. ac_cv_lib_mw__mwvalidcheckl=no
  17369. fi
  17370. rm -f core conftest.err conftest.$ac_objext \
  17371. conftest$ac_exeext conftest.$ac_ext
  17372. LIBS=$ac_check_lib_save_LIBS
  17373. fi
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  17375. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  17376. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
  17377. LIBM=-lmw
  17378. fi
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  17380. $as_echo_n "checking for cos in -lm... " >&6; }
  17381. if ${ac_cv_lib_m_cos+:} false; then :
  17382. $as_echo_n "(cached) " >&6
  17383. else
  17384. ac_check_lib_save_LIBS=$LIBS
  17385. LIBS="-lm $LIBS"
  17386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17387. /* end confdefs.h. */
  17388. /* Override any GCC internal prototype to avoid an error.
  17389. Use char because int might match the return type of a GCC
  17390. builtin and then its argument prototype would still apply. */
  17391. #ifdef __cplusplus
  17392. extern "C"
  17393. #endif
  17394. char cos ();
  17395. int
  17396. main ()
  17397. {
  17398. return cos ();
  17399. ;
  17400. return 0;
  17401. }
  17402. _ACEOF
  17403. if ac_fn_c_try_link "$LINENO"; then :
  17404. ac_cv_lib_m_cos=yes
  17405. else
  17406. ac_cv_lib_m_cos=no
  17407. fi
  17408. rm -f core conftest.err conftest.$ac_objext \
  17409. conftest$ac_exeext conftest.$ac_ext
  17410. LIBS=$ac_check_lib_save_LIBS
  17411. fi
  17412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  17413. $as_echo "$ac_cv_lib_m_cos" >&6; }
  17414. if test "x$ac_cv_lib_m_cos" = xyes; then :
  17415. LIBM="$LIBM -lm"
  17416. fi
  17417. ;;
  17418. *)
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  17420. $as_echo_n "checking for cos in -lm... " >&6; }
  17421. if ${ac_cv_lib_m_cos+:} false; then :
  17422. $as_echo_n "(cached) " >&6
  17423. else
  17424. ac_check_lib_save_LIBS=$LIBS
  17425. LIBS="-lm $LIBS"
  17426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17427. /* end confdefs.h. */
  17428. /* Override any GCC internal prototype to avoid an error.
  17429. Use char because int might match the return type of a GCC
  17430. builtin and then its argument prototype would still apply. */
  17431. #ifdef __cplusplus
  17432. extern "C"
  17433. #endif
  17434. char cos ();
  17435. int
  17436. main ()
  17437. {
  17438. return cos ();
  17439. ;
  17440. return 0;
  17441. }
  17442. _ACEOF
  17443. if ac_fn_c_try_link "$LINENO"; then :
  17444. ac_cv_lib_m_cos=yes
  17445. else
  17446. ac_cv_lib_m_cos=no
  17447. fi
  17448. rm -f core conftest.err conftest.$ac_objext \
  17449. conftest$ac_exeext conftest.$ac_ext
  17450. LIBS=$ac_check_lib_save_LIBS
  17451. fi
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  17453. $as_echo "$ac_cv_lib_m_cos" >&6; }
  17454. if test "x$ac_cv_lib_m_cos" = xyes; then :
  17455. LIBM=-lm
  17456. fi
  17457. ;;
  17458. esac
  17459. LIBS="$LIBS $LIBM"
  17460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
  17461. $as_echo_n "checking for sched_yield in -lrt... " >&6; }
  17462. if ${ac_cv_lib_rt_sched_yield+:} false; then :
  17463. $as_echo_n "(cached) " >&6
  17464. else
  17465. ac_check_lib_save_LIBS=$LIBS
  17466. LIBS="-lrt $LIBS"
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. /* Override any GCC internal prototype to avoid an error.
  17470. Use char because int might match the return type of a GCC
  17471. builtin and then its argument prototype would still apply. */
  17472. #ifdef __cplusplus
  17473. extern "C"
  17474. #endif
  17475. char sched_yield ();
  17476. int
  17477. main ()
  17478. {
  17479. return sched_yield ();
  17480. ;
  17481. return 0;
  17482. }
  17483. _ACEOF
  17484. if ac_fn_c_try_link "$LINENO"; then :
  17485. ac_cv_lib_rt_sched_yield=yes
  17486. else
  17487. ac_cv_lib_rt_sched_yield=no
  17488. fi
  17489. rm -f core conftest.err conftest.$ac_objext \
  17490. conftest$ac_exeext conftest.$ac_ext
  17491. LIBS=$ac_check_lib_save_LIBS
  17492. fi
  17493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
  17494. $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
  17495. if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
  17496. cat >>confdefs.h <<_ACEOF
  17497. #define HAVE_LIBRT 1
  17498. _ACEOF
  17499. LIBS="-lrt $LIBS"
  17500. fi
  17501. has_shm_open=
  17502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  17503. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  17504. if ${ac_cv_lib_rt_shm_open+:} false; then :
  17505. $as_echo_n "(cached) " >&6
  17506. else
  17507. ac_check_lib_save_LIBS=$LIBS
  17508. LIBS="-lrt $LIBS"
  17509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17510. /* end confdefs.h. */
  17511. /* Override any GCC internal prototype to avoid an error.
  17512. Use char because int might match the return type of a GCC
  17513. builtin and then its argument prototype would still apply. */
  17514. #ifdef __cplusplus
  17515. extern "C"
  17516. #endif
  17517. char shm_open ();
  17518. int
  17519. main ()
  17520. {
  17521. return shm_open ();
  17522. ;
  17523. return 0;
  17524. }
  17525. _ACEOF
  17526. if ac_fn_c_try_link "$LINENO"; then :
  17527. ac_cv_lib_rt_shm_open=yes
  17528. else
  17529. ac_cv_lib_rt_shm_open=no
  17530. fi
  17531. rm -f core conftest.err conftest.$ac_objext \
  17532. conftest$ac_exeext conftest.$ac_ext
  17533. LIBS=$ac_check_lib_save_LIBS
  17534. fi
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  17536. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  17537. if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
  17538. SHM_LIBS=-lrt
  17539. has_shm_open=yes
  17540. else
  17541. SHM_LIBS=
  17542. fi
  17543. if test "x$has_shm_open" = "xyes"; then
  17544. HAVE_SHM_TRUE=
  17545. HAVE_SHM_FALSE='#'
  17546. else
  17547. HAVE_SHM_TRUE='#'
  17548. HAVE_SHM_FALSE=
  17549. fi
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17551. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17552. if ${ac_cv_lib_socket_connect+:} false; then :
  17553. $as_echo_n "(cached) " >&6
  17554. else
  17555. ac_check_lib_save_LIBS=$LIBS
  17556. LIBS="-lsocket $LIBS"
  17557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17558. /* end confdefs.h. */
  17559. /* Override any GCC internal prototype to avoid an error.
  17560. Use char because int might match the return type of a GCC
  17561. builtin and then its argument prototype would still apply. */
  17562. #ifdef __cplusplus
  17563. extern "C"
  17564. #endif
  17565. char connect ();
  17566. int
  17567. main ()
  17568. {
  17569. return connect ();
  17570. ;
  17571. return 0;
  17572. }
  17573. _ACEOF
  17574. if ac_fn_c_try_link "$LINENO"; then :
  17575. ac_cv_lib_socket_connect=yes
  17576. else
  17577. ac_cv_lib_socket_connect=no
  17578. fi
  17579. rm -f core conftest.err conftest.$ac_objext \
  17580. conftest$ac_exeext conftest.$ac_ext
  17581. LIBS=$ac_check_lib_save_LIBS
  17582. fi
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17584. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17585. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17586. SOCKET_LIBS=-lsocket
  17587. else
  17588. SOCKET_LIBS=
  17589. fi
  17590. CAIROBOILERPLATE_LIBS=$SOCKET_LIBS
  17591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_return_address(0)" >&5
  17592. $as_echo_n "checking for __builtin_return_address(0)... " >&6; }
  17593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17594. /* end confdefs.h. */
  17595. int
  17596. main ()
  17597. {
  17598. __builtin_return_address(0);
  17599. ;
  17600. return 0;
  17601. }
  17602. _ACEOF
  17603. if ac_fn_c_try_compile "$LINENO"; then :
  17604. have_builtin_return_address=yes
  17605. else
  17606. have_builtin_return_address=no
  17607. fi
  17608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_return_address" >&5
  17610. $as_echo "$have_builtin_return_address" >&6; }
  17611. if test "x$have_builtin_return_address" = "xyes"; then
  17612. $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h
  17613. fi
  17614. for ac_header in stdint.h inttypes.h sys/int_types.h
  17615. do :
  17616. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17617. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17618. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17619. cat >>confdefs.h <<_ACEOF
  17620. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17621. _ACEOF
  17622. fi
  17623. done
  17624. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
  17625. if test "x$ac_cv_type_uint64_t" = xyes; then :
  17626. cat >>confdefs.h <<_ACEOF
  17627. #define HAVE_UINT64_T 1
  17628. _ACEOF
  17629. fi
  17630. ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default"
  17631. if test "x$ac_cv_type_uint128_t" = xyes; then :
  17632. cat >>confdefs.h <<_ACEOF
  17633. #define HAVE_UINT128_T 1
  17634. _ACEOF
  17635. fi
  17636. ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
  17637. if test "x$ac_cv_type___uint128_t" = xyes; then :
  17638. cat >>confdefs.h <<_ACEOF
  17639. #define HAVE___UINT128_T 1
  17640. _ACEOF
  17641. fi
  17642. for ac_header in fcntl.h unistd.h signal.h sys/stat.h sys/socket.h sys/poll.h sys/un.h
  17643. do :
  17644. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17645. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17646. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17647. cat >>confdefs.h <<_ACEOF
  17648. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17649. _ACEOF
  17650. fi
  17651. done
  17652. for ac_func in alarm
  17653. do :
  17654. ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
  17655. if test "x$ac_cv_func_alarm" = xyes; then :
  17656. cat >>confdefs.h <<_ACEOF
  17657. #define HAVE_ALARM 1
  17658. _ACEOF
  17659. fi
  17660. done
  17661. for ac_header in sched.h
  17662. do :
  17663. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  17664. if test "x$ac_cv_header_sched_h" = xyes; then :
  17665. cat >>confdefs.h <<_ACEOF
  17666. #define HAVE_SCHED_H 1
  17667. _ACEOF
  17668. for ac_func in sched_getaffinity
  17669. do :
  17670. ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity"
  17671. if test "x$ac_cv_func_sched_getaffinity" = xyes; then :
  17672. cat >>confdefs.h <<_ACEOF
  17673. #define HAVE_SCHED_GETAFFINITY 1
  17674. _ACEOF
  17675. fi
  17676. done
  17677. fi
  17678. done
  17679. for ac_header in sys/mman.h
  17680. do :
  17681. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  17682. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  17683. cat >>confdefs.h <<_ACEOF
  17684. #define HAVE_SYS_MMAN_H 1
  17685. _ACEOF
  17686. for ac_func in mmap
  17687. do :
  17688. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  17689. if test "x$ac_cv_func_mmap" = xyes; then :
  17690. cat >>confdefs.h <<_ACEOF
  17691. #define HAVE_MMAP 1
  17692. _ACEOF
  17693. fi
  17694. done
  17695. fi
  17696. done
  17697. for ac_header in time.h
  17698. do :
  17699. ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  17700. if test "x$ac_cv_header_time_h" = xyes; then :
  17701. cat >>confdefs.h <<_ACEOF
  17702. #define HAVE_TIME_H 1
  17703. _ACEOF
  17704. for ac_func in clock_gettime
  17705. do :
  17706. ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  17707. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  17708. cat >>confdefs.h <<_ACEOF
  17709. #define HAVE_CLOCK_GETTIME 1
  17710. _ACEOF
  17711. fi
  17712. done
  17713. fi
  17714. done
  17715. ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
  17716. if test "x$ac_cv_header_fenv_h" = xyes; then :
  17717. for ac_func in feenableexcept fedisableexcept feclearexcept
  17718. do :
  17719. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17720. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17721. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17722. cat >>confdefs.h <<_ACEOF
  17723. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17724. _ACEOF
  17725. fi
  17726. done
  17727. fi
  17728. for ac_header in libgen.h byteswap.h signal.h setjmp.h fenv.h sys/wait.h
  17729. do :
  17730. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17731. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17732. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17733. cat >>confdefs.h <<_ACEOF
  17734. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17735. _ACEOF
  17736. fi
  17737. done
  17738. for ac_func in ctime_r localtime_r gmtime_r drand48 flockfile funlockfile getline link strndup
  17739. do :
  17740. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17741. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17742. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17743. cat >>confdefs.h <<_ACEOF
  17744. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17745. _ACEOF
  17746. fi
  17747. done
  17748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17749. /* end confdefs.h. */
  17750. #ifdef _WIN32
  17751. choke me
  17752. #endif
  17753. _ACEOF
  17754. if ac_fn_c_try_compile "$LINENO"; then :
  17755. have_windows=no
  17756. else
  17757. have_windows=yes
  17758. fi
  17759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17760. for ac_header in sys/stat.h io.h
  17761. do :
  17762. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17763. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17765. cat >>confdefs.h <<_ACEOF
  17766. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17767. _ACEOF
  17768. fi
  17769. done
  17770. ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
  17771. if test "x$ac_cv_func_mkdir" = xyes; then :
  17772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking mkdir variant" >&5
  17773. $as_echo_n "checking mkdir variant... " >&6; }
  17774. mkdir_variant="unknown"
  17775. save_CFLAGS="$CFLAGS"
  17776. CFLAGS=$WARN_CFLAGS
  17777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17778. /* end confdefs.h. */
  17779. #ifdef HAVE_SYS_STAT_H
  17780. #include <sys/stat.h>
  17781. #endif
  17782. #ifdef HAVE_IO_H
  17783. #include <io.h>
  17784. #endif
  17785. int
  17786. main ()
  17787. {
  17788. mkdir ("hello.world", 0777)
  17789. ;
  17790. return 0;
  17791. }
  17792. _ACEOF
  17793. if ac_fn_c_try_compile "$LINENO"; then :
  17794. mkdir_variant="mkdir(path, mode)"
  17795. else
  17796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17797. /* end confdefs.h. */
  17798. #ifdef HAVE_SYS_STAT_H
  17799. #include <sys/stat.h>
  17800. #endif
  17801. #ifdef HAVE_IO_H
  17802. #include <io.h>
  17803. #endif
  17804. int
  17805. main ()
  17806. {
  17807. mkdir ("hello.world")
  17808. ;
  17809. return 0;
  17810. }
  17811. _ACEOF
  17812. if ac_fn_c_try_compile "$LINENO"; then :
  17813. mkdir_variant="mkdir(path)"
  17814. fi
  17815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17816. fi
  17817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkdir_variant" >&5
  17819. $as_echo "$mkdir_variant" >&6; }
  17820. CFLAGS="$save_CFLAGS"
  17821. if test "x$mkdir_variant" = "xmkdir(path, mode)"; then
  17822. $as_echo "#define HAVE_MKDIR 2" >>confdefs.h
  17823. else
  17824. $as_echo "#define HAVE_MKDIR 1" >>confdefs.h
  17825. fi
  17826. fi
  17827. for ac_func in fork waitpid raise
  17828. do :
  17829. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17830. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17831. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17832. cat >>confdefs.h <<_ACEOF
  17833. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17834. _ACEOF
  17835. fi
  17836. done
  17837. cairo_has_lcov=no
  17838. # Check whether --enable-gcov was given.
  17839. if test "${enable_gcov+set}" = set; then :
  17840. enableval=$enable_gcov; use_gcov=$enableval
  17841. else
  17842. use_gcov=no
  17843. fi
  17844. if test "x$use_gcov" = "xyes"; then
  17845. if test "$GCC" != "yes"; then
  17846. as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
  17847. fi
  17848. # Extract the first word of "shtool", so it can be a program name with args.
  17849. set dummy shtool; ac_word=$2
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17851. $as_echo_n "checking for $ac_word... " >&6; }
  17852. if ${ac_cv_prog_SHTOOL+:} false; then :
  17853. $as_echo_n "(cached) " >&6
  17854. else
  17855. if test -n "$SHTOOL"; then
  17856. ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
  17857. else
  17858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17859. for as_dir in $PATH
  17860. do
  17861. IFS=$as_save_IFS
  17862. test -z "$as_dir" && as_dir=.
  17863. for ac_exec_ext in '' $ac_executable_extensions; do
  17864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17865. ac_cv_prog_SHTOOL="shtool"
  17866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17867. break 2
  17868. fi
  17869. done
  17870. done
  17871. IFS=$as_save_IFS
  17872. fi
  17873. fi
  17874. SHTOOL=$ac_cv_prog_SHTOOL
  17875. if test -n "$SHTOOL"; then
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
  17877. $as_echo "$SHTOOL" >&6; }
  17878. else
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17880. $as_echo "no" >&6; }
  17881. fi
  17882. case `$SHTOOL path $CC` in
  17883. *ccache*) gcc_ccache=yes;;
  17884. *) gcc_ccache=no;;
  17885. esac
  17886. if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
  17887. as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
  17888. fi
  17889. ltp_version_list="1.7 1.6 1.5 1.4"
  17890. # Extract the first word of "lcov", so it can be a program name with args.
  17891. set dummy lcov; ac_word=$2
  17892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17893. $as_echo_n "checking for $ac_word... " >&6; }
  17894. if ${ac_cv_prog_LTP+:} false; then :
  17895. $as_echo_n "(cached) " >&6
  17896. else
  17897. if test -n "$LTP"; then
  17898. ac_cv_prog_LTP="$LTP" # Let the user override the test.
  17899. else
  17900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17901. for as_dir in $PATH
  17902. do
  17903. IFS=$as_save_IFS
  17904. test -z "$as_dir" && as_dir=.
  17905. for ac_exec_ext in '' $ac_executable_extensions; do
  17906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17907. ac_cv_prog_LTP="lcov"
  17908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17909. break 2
  17910. fi
  17911. done
  17912. done
  17913. IFS=$as_save_IFS
  17914. fi
  17915. fi
  17916. LTP=$ac_cv_prog_LTP
  17917. if test -n "$LTP"; then
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
  17919. $as_echo "$LTP" >&6; }
  17920. else
  17921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17922. $as_echo "no" >&6; }
  17923. fi
  17924. # Extract the first word of "genhtml", so it can be a program name with args.
  17925. set dummy genhtml; ac_word=$2
  17926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17927. $as_echo_n "checking for $ac_word... " >&6; }
  17928. if ${ac_cv_prog_LTP_GENHTML+:} false; then :
  17929. $as_echo_n "(cached) " >&6
  17930. else
  17931. if test -n "$LTP_GENHTML"; then
  17932. ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
  17933. else
  17934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17935. for as_dir in $PATH
  17936. do
  17937. IFS=$as_save_IFS
  17938. test -z "$as_dir" && as_dir=.
  17939. for ac_exec_ext in '' $ac_executable_extensions; do
  17940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17941. ac_cv_prog_LTP_GENHTML="genhtml"
  17942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17943. break 2
  17944. fi
  17945. done
  17946. done
  17947. IFS=$as_save_IFS
  17948. fi
  17949. fi
  17950. LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
  17951. if test -n "$LTP_GENHTML"; then
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
  17953. $as_echo "$LTP_GENHTML" >&6; }
  17954. else
  17955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17956. $as_echo "no" >&6; }
  17957. fi
  17958. if test "$LTP"; then
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
  17960. $as_echo_n "checking for ltp version... " >&6; }
  17961. if ${cairo_cv_ltp_version+:} false; then :
  17962. $as_echo_n "(cached) " >&6
  17963. else
  17964. cairo_cv_ltp_version=invalid
  17965. ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
  17966. for ltp_check_version in $ltp_version_list; do
  17967. if test "$ltp_version" = "$ltp_check_version"; then
  17968. cairo_cv_ltp_version="$ltp_check_version (ok)"
  17969. fi
  17970. done
  17971. fi
  17972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_ltp_version" >&5
  17973. $as_echo "$cairo_cv_ltp_version" >&6; }
  17974. fi
  17975. case $cairo_cv_ltp_version in
  17976. ""|invalid)
  17977. ;;
  17978. *)
  17979. cairo_has_lcov=yes
  17980. ;;
  17981. esac
  17982. if test "x$cairo_has_lcov" != "xyes"; then
  17983. as_fn_error $? "To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list.
  17984. Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
  17985. fi
  17986. if test -z "$LTP_GENHTML"; then
  17987. as_fn_error $? "Could not find genhtml from the LTP package.
  17988. Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
  17989. fi
  17990. $as_echo "#define HAVE_GCOV 1" >>confdefs.h
  17991. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
  17992. CAIRO_CFLAGS=`echo "$CAIRO_CFLAGS" | $SED -e 's/-O[0-9]*//g'`
  17993. _test_WERROR=${WERROR+set}
  17994. if test "z$_test_WERROR" != zset; then
  17995. WERROR=""
  17996. for _werror in -Werror -errwarn; do
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
  17998. $as_echo_n "checking whether $CC supports $_werror... " >&6; }
  17999. # AC_LANG_PROGRAM() produces a main() w/o args,
  18000. # but -Wold-style-definition doesn't like that.
  18001. # We need _some_ program so that we don't get
  18002. # warnings about empty compilation units, so always
  18003. # append a reasonable main().
  18004. _compile_program=""'
  18005. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  18006. _save_cflags="$CFLAGS"
  18007. _save_ldflags="$LDFLAGS"
  18008. _save_libs="$LIBS"
  18009. CFLAGS="$CFLAGS $_werror"
  18010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18011. /* end confdefs.h. */
  18012. $_compile_program
  18013. _ACEOF
  18014. if ac_fn_c_try_link "$LINENO"; then :
  18015. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  18016. cairo_cc_flag=yes
  18017. else
  18018. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  18019. cairo_cc_flag=no
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext \
  18022. conftest$ac_exeext conftest.$ac_ext
  18023. if test "x$cairo_cc_stderr" != "x"; then
  18024. cairo_cc_flag=no
  18025. fi
  18026. if test "x$cairo_cc_flag" = "xyes"; then
  18027. WERROR="$WERROR $_werror"
  18028. else
  18029. :
  18030. fi
  18031. CFLAGS="$_save_cflags"
  18032. LDFLAGS="$_save_ldflags"
  18033. LIBS="$_save_libs"
  18034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  18035. $as_echo "$cairo_cc_flag" >&6; }
  18036. done
  18037. fi
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports --coverage" >&5
  18039. $as_echo_n "checking whether $CC supports --coverage... " >&6; }
  18040. # AC_LANG_PROGRAM() produces a main() w/o args,
  18041. # but -Wold-style-definition doesn't like that.
  18042. # We need _some_ program so that we don't get
  18043. # warnings about empty compilation units, so always
  18044. # append a reasonable main().
  18045. _compile_program=""'
  18046. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  18047. _save_cflags="$CFLAGS"
  18048. _save_ldflags="$LDFLAGS"
  18049. _save_libs="$LIBS"
  18050. CFLAGS="$CFLAGS $WERROR --coverage"
  18051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18052. /* end confdefs.h. */
  18053. $_compile_program
  18054. _ACEOF
  18055. if ac_fn_c_try_link "$LINENO"; then :
  18056. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  18057. cairo_cc_flag=yes
  18058. else
  18059. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  18060. cairo_cc_flag=no
  18061. fi
  18062. rm -f core conftest.err conftest.$ac_objext \
  18063. conftest$ac_exeext conftest.$ac_ext
  18064. if test "x$cairo_cc_stderr" != "x"; then
  18065. cairo_cc_flag=no
  18066. fi
  18067. if test "x$cairo_cc_flag" = "xyes"; then
  18068. CAIRO_CFLAGS="$CAIRO_CFLAGS -O0 --coverage"
  18069. CAIRO_LDFLAGS="$CAIRO_LDFLAGS -O0 --coverage"
  18070. else
  18071. :
  18072. fi
  18073. CFLAGS="$_save_cflags"
  18074. LDFLAGS="$_save_ldflags"
  18075. LIBS="$_save_libs"
  18076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
  18077. $as_echo "$cairo_cc_flag" >&6; }
  18078. fi
  18079. if test "x$cairo_has_lcov" = "xyes"; then
  18080. CAIRO_HAS_LCOV_TRUE=
  18081. CAIRO_HAS_LCOV_FALSE='#'
  18082. else
  18083. CAIRO_HAS_LCOV_TRUE='#'
  18084. CAIRO_HAS_LCOV_FALSE=
  18085. fi
  18086. # Check whether --enable-valgrind was given.
  18087. if test "${enable_valgrind+set}" = set; then :
  18088. enableval=$enable_valgrind; use_valgrind=$enableval
  18089. else
  18090. use_valgrind=yes
  18091. fi
  18092. if test "x$use_valgrind" = "xyes"; then
  18093. pkg_failed=no
  18094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
  18095. $as_echo_n "checking for VALGRIND... " >&6; }
  18096. if test -n "$VALGRIND_CFLAGS"; then
  18097. pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
  18098. elif test -n "$PKG_CONFIG"; then
  18099. if test -n "$PKG_CONFIG" && \
  18100. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  18101. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  18102. ac_status=$?
  18103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18104. test $ac_status = 0; }; then
  18105. pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
  18106. else
  18107. pkg_failed=yes
  18108. fi
  18109. else
  18110. pkg_failed=untried
  18111. fi
  18112. if test -n "$VALGRIND_LIBS"; then
  18113. pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
  18114. elif test -n "$PKG_CONFIG"; then
  18115. if test -n "$PKG_CONFIG" && \
  18116. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  18117. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  18118. ac_status=$?
  18119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18120. test $ac_status = 0; }; then
  18121. pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
  18122. else
  18123. pkg_failed=yes
  18124. fi
  18125. else
  18126. pkg_failed=untried
  18127. fi
  18128. if test $pkg_failed = yes; then
  18129. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18130. _pkg_short_errors_supported=yes
  18131. else
  18132. _pkg_short_errors_supported=no
  18133. fi
  18134. if test $_pkg_short_errors_supported = yes; then
  18135. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind" 2>&1`
  18136. else
  18137. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind" 2>&1`
  18138. fi
  18139. # Put the nasty error message in config.log where it belongs
  18140. echo "$VALGRIND_PKG_ERRORS" >&5
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18142. $as_echo "no" >&6; }
  18143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18144. $as_echo "no" >&6; }
  18145. elif test $pkg_failed = untried; then
  18146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18147. $as_echo "no" >&6; }
  18148. else
  18149. VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
  18150. VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
  18151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18152. $as_echo "yes" >&6; }
  18153. _save_CFLAGS="$CFLAGS"
  18154. _save_CPPFLAGS="$CPPFLAGS"
  18155. CFLAGS="$CFLAGS $VALGRIND_CFLAGS"
  18156. CPPFLAGS="$CPPFLAGS $VALGRIND_CFLAGS"
  18157. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  18158. if test "x$ac_cv_header_valgrind_h" = xyes; then :
  18159. $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
  18160. fi
  18161. ac_fn_c_check_header_mongrel "$LINENO" "lockdep.h" "ac_cv_header_lockdep_h" "$ac_includes_default"
  18162. if test "x$ac_cv_header_lockdep_h" = xyes; then :
  18163. $as_echo "#define HAVE_LOCKDEP 1" >>confdefs.h
  18164. fi
  18165. ac_fn_c_check_header_mongrel "$LINENO" "memfault.h" "ac_cv_header_memfault_h" "$ac_includes_default"
  18166. if test "x$ac_cv_header_memfault_h" = xyes; then :
  18167. $as_echo "#define HAVE_MEMFAULT 1" >>confdefs.h
  18168. fi
  18169. CAIRO_CFLAGS="$VALGRIND_CFLAGS $CAIRO_CFLAGS"
  18170. CFLAGS="$_save_CFLAGS"
  18171. CPPFLAGS="$_save_CPPFLAGS"
  18172. fi
  18173. fi
  18174. echo '#undef PACKAGE_VERSION' >>confdefs.h
  18175. echo '#undef PACKAGE_STRING' >>confdefs.h
  18176. echo '#undef PACKAGE_NAME' >>confdefs.h
  18177. echo '#undef PACKAGE_TARNAME' >>confdefs.h
  18178. $as_echo "#define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
  18179. $as_echo "#define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
  18180. $as_echo "#define PACKAGE_NAME USE_cairo_INSTEAD" >>confdefs.h
  18181. $as_echo "#define PACKAGE_TARNAME USE_cairo_INSTEAD" >>confdefs.h
  18182. cat >confcache <<\_ACEOF
  18183. # This file is a shell script that caches the results of configure
  18184. # tests run on this system so they can be shared between configure
  18185. # scripts and configure runs, see configure's option --config-cache.
  18186. # It is not useful on other systems. If it contains results you don't
  18187. # want to keep, you may remove or edit it.
  18188. #
  18189. # config.status only pays attention to the cache file if you give it
  18190. # the --recheck option to rerun configure.
  18191. #
  18192. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18193. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18194. # following values.
  18195. _ACEOF
  18196. # The following way of writing the cache mishandles newlines in values,
  18197. # but we know of no workaround that is simple, portable, and efficient.
  18198. # So, we kill variables containing newlines.
  18199. # Ultrix sh set writes to stderr and can't be redirected directly,
  18200. # and sets the high bit in the cache file unless we assign to the vars.
  18201. (
  18202. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18203. eval ac_val=\$$ac_var
  18204. case $ac_val in #(
  18205. *${as_nl}*)
  18206. case $ac_var in #(
  18207. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18208. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18209. esac
  18210. case $ac_var in #(
  18211. _ | IFS | as_nl) ;; #(
  18212. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18213. *) { eval $ac_var=; unset $ac_var;} ;;
  18214. esac ;;
  18215. esac
  18216. done
  18217. (set) 2>&1 |
  18218. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18219. *${as_nl}ac_space=\ *)
  18220. # `set' does not quote correctly, so add quotes: double-quote
  18221. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18222. sed -n \
  18223. "s/'/'\\\\''/g;
  18224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18225. ;; #(
  18226. *)
  18227. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18228. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18229. ;;
  18230. esac |
  18231. sort
  18232. ) |
  18233. sed '
  18234. /^ac_cv_env_/b end
  18235. t clear
  18236. :clear
  18237. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18238. t end
  18239. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18240. :end' >>confcache
  18241. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18242. if test -w "$cache_file"; then
  18243. if test "x$cache_file" != "x/dev/null"; then
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18245. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18246. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18247. cat confcache >"$cache_file"
  18248. else
  18249. case $cache_file in #(
  18250. */* | ?:*)
  18251. mv -f confcache "$cache_file"$$ &&
  18252. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18253. *)
  18254. mv -f confcache "$cache_file" ;;
  18255. esac
  18256. fi
  18257. fi
  18258. else
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18260. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18261. fi
  18262. fi
  18263. rm -f confcache
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  18265. $as_echo_n "checking for compress in -lz... " >&6; }
  18266. if ${ac_cv_lib_z_compress+:} false; then :
  18267. $as_echo_n "(cached) " >&6
  18268. else
  18269. ac_check_lib_save_LIBS=$LIBS
  18270. LIBS="-lz $LIBS"
  18271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18272. /* end confdefs.h. */
  18273. /* Override any GCC internal prototype to avoid an error.
  18274. Use char because int might match the return type of a GCC
  18275. builtin and then its argument prototype would still apply. */
  18276. #ifdef __cplusplus
  18277. extern "C"
  18278. #endif
  18279. char compress ();
  18280. int
  18281. main ()
  18282. {
  18283. return compress ();
  18284. ;
  18285. return 0;
  18286. }
  18287. _ACEOF
  18288. if ac_fn_c_try_link "$LINENO"; then :
  18289. ac_cv_lib_z_compress=yes
  18290. else
  18291. ac_cv_lib_z_compress=no
  18292. fi
  18293. rm -f core conftest.err conftest.$ac_objext \
  18294. conftest$ac_exeext conftest.$ac_ext
  18295. LIBS=$ac_check_lib_save_LIBS
  18296. fi
  18297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  18298. $as_echo "$ac_cv_lib_z_compress" >&6; }
  18299. if test "x$ac_cv_lib_z_compress" = xyes; then :
  18300. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  18301. if test "x$ac_cv_header_zlib_h" = xyes; then :
  18302. have_libz=yes
  18303. $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
  18304. else
  18305. have_libz="no (requires zlib http://www.gzip.org/zlib/)"
  18306. fi
  18307. else
  18308. have_libz="no (requires zlib http://www.gzip.org/zlib/)"
  18309. fi
  18310. save_LIBS="$LIBS"
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo2a_decompress in -llzo2" >&5
  18312. $as_echo_n "checking for lzo2a_decompress in -llzo2... " >&6; }
  18313. if ${ac_cv_lib_lzo2_lzo2a_decompress+:} false; then :
  18314. $as_echo_n "(cached) " >&6
  18315. else
  18316. ac_check_lib_save_LIBS=$LIBS
  18317. LIBS="-llzo2 $LIBS"
  18318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18319. /* end confdefs.h. */
  18320. /* Override any GCC internal prototype to avoid an error.
  18321. Use char because int might match the return type of a GCC
  18322. builtin and then its argument prototype would still apply. */
  18323. #ifdef __cplusplus
  18324. extern "C"
  18325. #endif
  18326. char lzo2a_decompress ();
  18327. int
  18328. main ()
  18329. {
  18330. return lzo2a_decompress ();
  18331. ;
  18332. return 0;
  18333. }
  18334. _ACEOF
  18335. if ac_fn_c_try_link "$LINENO"; then :
  18336. ac_cv_lib_lzo2_lzo2a_decompress=yes
  18337. else
  18338. ac_cv_lib_lzo2_lzo2a_decompress=no
  18339. fi
  18340. rm -f core conftest.err conftest.$ac_objext \
  18341. conftest$ac_exeext conftest.$ac_ext
  18342. LIBS=$ac_check_lib_save_LIBS
  18343. fi
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo2a_decompress" >&5
  18345. $as_echo "$ac_cv_lib_lzo2_lzo2a_decompress" >&6; }
  18346. if test "x$ac_cv_lib_lzo2_lzo2a_decompress" = xyes; then :
  18347. ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo2a.h" "ac_cv_header_lzo_lzo2a_h" "$ac_includes_default"
  18348. if test "x$ac_cv_header_lzo_lzo2a_h" = xyes; then :
  18349. have_lzo=yes
  18350. $as_echo "#define HAVE_LZO 1" >>confdefs.h
  18351. lzo_LIBS="-llzo2"
  18352. else
  18353. have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"
  18354. fi
  18355. else
  18356. have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"
  18357. fi
  18358. LIBS="$save_LIBS"
  18359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  18360. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  18361. if ${ac_cv_lib_dl_dlsym+:} false; then :
  18362. $as_echo_n "(cached) " >&6
  18363. else
  18364. ac_check_lib_save_LIBS=$LIBS
  18365. LIBS="-ldl $LIBS"
  18366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18367. /* end confdefs.h. */
  18368. /* Override any GCC internal prototype to avoid an error.
  18369. Use char because int might match the return type of a GCC
  18370. builtin and then its argument prototype would still apply. */
  18371. #ifdef __cplusplus
  18372. extern "C"
  18373. #endif
  18374. char dlsym ();
  18375. int
  18376. main ()
  18377. {
  18378. return dlsym ();
  18379. ;
  18380. return 0;
  18381. }
  18382. _ACEOF
  18383. if ac_fn_c_try_link "$LINENO"; then :
  18384. ac_cv_lib_dl_dlsym=yes
  18385. else
  18386. ac_cv_lib_dl_dlsym=no
  18387. fi
  18388. rm -f core conftest.err conftest.$ac_objext \
  18389. conftest$ac_exeext conftest.$ac_ext
  18390. LIBS=$ac_check_lib_save_LIBS
  18391. fi
  18392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  18393. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  18394. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  18395. have_dlsym=yes; have_dl=yes
  18396. else
  18397. have_dlsym=no; have_dl=no
  18398. fi
  18399. if test "x$have_dlsym" = "xno"; then
  18400. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  18401. if test "x$ac_cv_func_dlsym" = xyes; then :
  18402. have_dlsym=yes
  18403. else
  18404. have_dlsym=no
  18405. fi
  18406. fi
  18407. for ac_header in dlfcn.h
  18408. do :
  18409. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  18410. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  18411. cat >>confdefs.h <<_ACEOF
  18412. #define HAVE_DLFCN_H 1
  18413. _ACEOF
  18414. have_dlsym=yes
  18415. else
  18416. have_dlsym=no
  18417. fi
  18418. done
  18419. if test "x$have_dl" = "xyes"; then
  18420. CAIRO_HAS_DL_TRUE=
  18421. CAIRO_HAS_DL_FALSE='#'
  18422. else
  18423. CAIRO_HAS_DL_TRUE='#'
  18424. CAIRO_HAS_DL_FALSE=
  18425. fi
  18426. if test "x$have_dlsym" = "xyes"; then
  18427. $as_echo "#define CAIRO_HAS_DLSYM 1" >>confdefs.h
  18428. fi
  18429. if test "x$have_dlsym" = "xyes"; then
  18430. CAIRO_HAS_DLSYM_TRUE=
  18431. CAIRO_HAS_DLSYM_FALSE='#'
  18432. else
  18433. CAIRO_HAS_DLSYM_TRUE='#'
  18434. CAIRO_HAS_DLSYM_FALSE=
  18435. fi
  18436. for ac_header in xlocale.h
  18437. do :
  18438. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  18439. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  18440. cat >>confdefs.h <<_ACEOF
  18441. #define HAVE_XLOCALE_H 1
  18442. _ACEOF
  18443. fi
  18444. done
  18445. for ac_func in newlocale strtod_l
  18446. do :
  18447. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18448. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18449. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18450. cat >>confdefs.h <<_ACEOF
  18451. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18452. _ACEOF
  18453. fi
  18454. done
  18455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18456. $as_echo_n "checking for X... " >&6; }
  18457. # Check whether --with-x was given.
  18458. if test "${with_x+set}" = set; then :
  18459. withval=$with_x;
  18460. fi
  18461. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18462. if test "x$with_x" = xno; then
  18463. # The user explicitly disabled X.
  18464. have_x=disabled
  18465. else
  18466. case $x_includes,$x_libraries in #(
  18467. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18468. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18469. $as_echo_n "(cached) " >&6
  18470. else
  18471. # One or both of the vars are not set, and there is no cached value.
  18472. ac_x_includes=no ac_x_libraries=no
  18473. # Standard set of common directories for X headers.
  18474. # Check X11 before X11Rn because it is often a symlink to the current release.
  18475. ac_x_header_dirs=''
  18476. if test "$ac_x_includes" = no; then
  18477. # Guess where to find include files, by looking for Xlib.h.
  18478. # First, try using that file with no special directory specified.
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. #include <X11/Xlib.h>
  18482. _ACEOF
  18483. if ac_fn_c_try_cpp "$LINENO"; then :
  18484. # We can compile using X headers with no special include directory.
  18485. ac_x_includes=
  18486. else
  18487. for ac_dir in $ac_x_header_dirs; do
  18488. if test -r "$ac_dir/X11/Xlib.h"; then
  18489. ac_x_includes=$ac_dir
  18490. break
  18491. fi
  18492. done
  18493. fi
  18494. rm -f conftest.err conftest.i conftest.$ac_ext
  18495. fi # $ac_x_includes = no
  18496. if test "$ac_x_libraries" = no; then
  18497. # Check for the libraries.
  18498. # See if we find them without any special options.
  18499. # Don't add to $LIBS permanently.
  18500. ac_save_LIBS=$LIBS
  18501. LIBS="-lX11 $LIBS"
  18502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18503. /* end confdefs.h. */
  18504. #include <X11/Xlib.h>
  18505. int
  18506. main ()
  18507. {
  18508. XrmInitialize ()
  18509. ;
  18510. return 0;
  18511. }
  18512. _ACEOF
  18513. if ac_fn_c_try_link "$LINENO"; then :
  18514. LIBS=$ac_save_LIBS
  18515. # We can link X programs with no special library path.
  18516. ac_x_libraries=
  18517. else
  18518. LIBS=$ac_save_LIBS
  18519. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18520. do
  18521. # Don't even attempt the hair of trying to link an X program!
  18522. for ac_extension in a so sl dylib la dll; do
  18523. if test -r "$ac_dir/libX11.$ac_extension"; then
  18524. ac_x_libraries=$ac_dir
  18525. break 2
  18526. fi
  18527. done
  18528. done
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext \
  18531. conftest$ac_exeext conftest.$ac_ext
  18532. fi # $ac_x_libraries = no
  18533. case $ac_x_includes,$ac_x_libraries in #(
  18534. no,* | *,no | *\'*)
  18535. # Didn't find X, or a directory has "'" in its name.
  18536. ac_cv_have_x="have_x=no";; #(
  18537. *)
  18538. # Record where we found X for the cache.
  18539. ac_cv_have_x="have_x=yes\
  18540. ac_x_includes='$ac_x_includes'\
  18541. ac_x_libraries='$ac_x_libraries'"
  18542. esac
  18543. fi
  18544. ;; #(
  18545. *) have_x=yes;;
  18546. esac
  18547. eval "$ac_cv_have_x"
  18548. fi # $with_x != no
  18549. if test "$have_x" != yes; then
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18551. $as_echo "$have_x" >&6; }
  18552. no_x=yes
  18553. else
  18554. # If each of the values was on the command line, it overrides each guess.
  18555. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18556. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18557. # Update the cache value to reflect the command line values.
  18558. ac_cv_have_x="have_x=yes\
  18559. ac_x_includes='$x_includes'\
  18560. ac_x_libraries='$x_libraries'"
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18562. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18563. fi
  18564. # Check whether --enable-xlib was given.
  18565. if test "${enable_xlib+set}" = set; then :
  18566. enableval=$enable_xlib; enable_xlib=$enableval
  18567. else
  18568. enable_xlib=auto
  18569. fi
  18570. case $enable_xlib in #(
  18571. no) :
  18572. use_xlib="no (disabled, use --enable-xlib to enable)"
  18573. ;; #(
  18574. yes|auto) :
  18575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib surface backend feature" >&5
  18576. $as_echo_n "checking for cairo's Xlib surface backend feature... " >&6; }
  18577. echo
  18578. use_xlib=yes
  18579. xlib_BASE="cairo"
  18580. xlib_REQUIRES="$ac_env_xlib_REQUIRES_value"
  18581. xlib_CFLAGS="$ac_env_xlib_CFLAGS_value"
  18582. xlib_NONPKGCONFIG_CFLAGS="$ac_env_xlib_NONPKGCONFIG_CFLAGS_value"
  18583. xlib_LIBS="$ac_env_xlib_LIBS_value"
  18584. xlib_NONPKGCONFIG_LIBS="$ac_env_xlib_NONPKGCONFIG_LIBS_value"
  18585. xlib_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_NONPKGCONFIG_EXTRA_LIBS_value"
  18586. xlib_REQUIRES="x11 xext"
  18587. pkg_failed=no
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib" >&5
  18589. $as_echo_n "checking for xlib... " >&6; }
  18590. if test -n "$xlib_CFLAGS"; then
  18591. pkg_cv_xlib_CFLAGS="$xlib_CFLAGS"
  18592. elif test -n "$PKG_CONFIG"; then
  18593. if test -n "$PKG_CONFIG" && \
  18594. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
  18595. ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
  18596. ac_status=$?
  18597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18598. test $ac_status = 0; }; then
  18599. pkg_cv_xlib_CFLAGS=`$PKG_CONFIG --cflags "$xlib_REQUIRES" 2>/dev/null`
  18600. else
  18601. pkg_failed=yes
  18602. fi
  18603. else
  18604. pkg_failed=untried
  18605. fi
  18606. if test -n "$xlib_LIBS"; then
  18607. pkg_cv_xlib_LIBS="$xlib_LIBS"
  18608. elif test -n "$PKG_CONFIG"; then
  18609. if test -n "$PKG_CONFIG" && \
  18610. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
  18611. ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
  18612. ac_status=$?
  18613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18614. test $ac_status = 0; }; then
  18615. pkg_cv_xlib_LIBS=`$PKG_CONFIG --libs "$xlib_REQUIRES" 2>/dev/null`
  18616. else
  18617. pkg_failed=yes
  18618. fi
  18619. else
  18620. pkg_failed=untried
  18621. fi
  18622. if test $pkg_failed = yes; then
  18623. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18624. _pkg_short_errors_supported=yes
  18625. else
  18626. _pkg_short_errors_supported=no
  18627. fi
  18628. if test $_pkg_short_errors_supported = yes; then
  18629. xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_REQUIRES" 2>&1`
  18630. else
  18631. xlib_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_REQUIRES" 2>&1`
  18632. fi
  18633. # Put the nasty error message in config.log where it belongs
  18634. echo "$xlib_PKG_ERRORS" >&5
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18636. $as_echo "no" >&6; }
  18637. xlib_REQUIRES=""
  18638. if test "$no_x" = yes; then
  18639. # Not all programs may use this symbol, but it does not hurt to define it.
  18640. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18641. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18642. else
  18643. if test -n "$x_includes"; then
  18644. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18645. fi
  18646. # It would also be nice to do this for all -L options, not just this one.
  18647. if test -n "$x_libraries"; then
  18648. X_LIBS="$X_LIBS -L$x_libraries"
  18649. # For Solaris; some versions of Sun CC require a space after -R and
  18650. # others require no space. Words are not sufficient . . . .
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18652. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18653. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18654. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18655. ac_c_werror_flag=yes
  18656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18657. /* end confdefs.h. */
  18658. int
  18659. main ()
  18660. {
  18661. ;
  18662. return 0;
  18663. }
  18664. _ACEOF
  18665. if ac_fn_c_try_link "$LINENO"; then :
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18667. $as_echo "no" >&6; }
  18668. X_LIBS="$X_LIBS -R$x_libraries"
  18669. else
  18670. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18672. /* end confdefs.h. */
  18673. int
  18674. main ()
  18675. {
  18676. ;
  18677. return 0;
  18678. }
  18679. _ACEOF
  18680. if ac_fn_c_try_link "$LINENO"; then :
  18681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18682. $as_echo "yes" >&6; }
  18683. X_LIBS="$X_LIBS -R $x_libraries"
  18684. else
  18685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18686. $as_echo "neither works" >&6; }
  18687. fi
  18688. rm -f core conftest.err conftest.$ac_objext \
  18689. conftest$ac_exeext conftest.$ac_ext
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18694. LIBS=$ac_xsave_LIBS
  18695. fi
  18696. # Check for system-dependent libraries X programs must link with.
  18697. # Do this before checking for the system-independent R6 libraries
  18698. # (-lICE), since we may need -lsocket or whatever for X linking.
  18699. if test "$ISC" = yes; then
  18700. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18701. else
  18702. # Martyn Johnson says this is needed for Ultrix, if the X
  18703. # libraries were built with DECnet support. And Karl Berry says
  18704. # the Alpha needs dnet_stub (dnet does not exist).
  18705. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18707. /* end confdefs.h. */
  18708. /* Override any GCC internal prototype to avoid an error.
  18709. Use char because int might match the return type of a GCC
  18710. builtin and then its argument prototype would still apply. */
  18711. #ifdef __cplusplus
  18712. extern "C"
  18713. #endif
  18714. char XOpenDisplay ();
  18715. int
  18716. main ()
  18717. {
  18718. return XOpenDisplay ();
  18719. ;
  18720. return 0;
  18721. }
  18722. _ACEOF
  18723. if ac_fn_c_try_link "$LINENO"; then :
  18724. else
  18725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18726. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18727. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18728. $as_echo_n "(cached) " >&6
  18729. else
  18730. ac_check_lib_save_LIBS=$LIBS
  18731. LIBS="-ldnet $LIBS"
  18732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18733. /* end confdefs.h. */
  18734. /* Override any GCC internal prototype to avoid an error.
  18735. Use char because int might match the return type of a GCC
  18736. builtin and then its argument prototype would still apply. */
  18737. #ifdef __cplusplus
  18738. extern "C"
  18739. #endif
  18740. char dnet_ntoa ();
  18741. int
  18742. main ()
  18743. {
  18744. return dnet_ntoa ();
  18745. ;
  18746. return 0;
  18747. }
  18748. _ACEOF
  18749. if ac_fn_c_try_link "$LINENO"; then :
  18750. ac_cv_lib_dnet_dnet_ntoa=yes
  18751. else
  18752. ac_cv_lib_dnet_dnet_ntoa=no
  18753. fi
  18754. rm -f core conftest.err conftest.$ac_objext \
  18755. conftest$ac_exeext conftest.$ac_ext
  18756. LIBS=$ac_check_lib_save_LIBS
  18757. fi
  18758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18759. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18760. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18761. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18762. fi
  18763. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18765. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18766. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18767. $as_echo_n "(cached) " >&6
  18768. else
  18769. ac_check_lib_save_LIBS=$LIBS
  18770. LIBS="-ldnet_stub $LIBS"
  18771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18772. /* end confdefs.h. */
  18773. /* Override any GCC internal prototype to avoid an error.
  18774. Use char because int might match the return type of a GCC
  18775. builtin and then its argument prototype would still apply. */
  18776. #ifdef __cplusplus
  18777. extern "C"
  18778. #endif
  18779. char dnet_ntoa ();
  18780. int
  18781. main ()
  18782. {
  18783. return dnet_ntoa ();
  18784. ;
  18785. return 0;
  18786. }
  18787. _ACEOF
  18788. if ac_fn_c_try_link "$LINENO"; then :
  18789. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18790. else
  18791. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18792. fi
  18793. rm -f core conftest.err conftest.$ac_objext \
  18794. conftest$ac_exeext conftest.$ac_ext
  18795. LIBS=$ac_check_lib_save_LIBS
  18796. fi
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18798. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18799. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18800. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18801. fi
  18802. fi
  18803. fi
  18804. rm -f core conftest.err conftest.$ac_objext \
  18805. conftest$ac_exeext conftest.$ac_ext
  18806. LIBS="$ac_xsave_LIBS"
  18807. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18808. # to get the SysV transport functions.
  18809. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18810. # needs -lnsl.
  18811. # The nsl library prevents programs from opening the X display
  18812. # on Irix 5.2, according to T.E. Dickey.
  18813. # The functions gethostbyname, getservbyname, and inet_addr are
  18814. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18815. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18816. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18817. fi
  18818. if test $ac_cv_func_gethostbyname = no; then
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18820. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18821. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18822. $as_echo_n "(cached) " >&6
  18823. else
  18824. ac_check_lib_save_LIBS=$LIBS
  18825. LIBS="-lnsl $LIBS"
  18826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18827. /* end confdefs.h. */
  18828. /* Override any GCC internal prototype to avoid an error.
  18829. Use char because int might match the return type of a GCC
  18830. builtin and then its argument prototype would still apply. */
  18831. #ifdef __cplusplus
  18832. extern "C"
  18833. #endif
  18834. char gethostbyname ();
  18835. int
  18836. main ()
  18837. {
  18838. return gethostbyname ();
  18839. ;
  18840. return 0;
  18841. }
  18842. _ACEOF
  18843. if ac_fn_c_try_link "$LINENO"; then :
  18844. ac_cv_lib_nsl_gethostbyname=yes
  18845. else
  18846. ac_cv_lib_nsl_gethostbyname=no
  18847. fi
  18848. rm -f core conftest.err conftest.$ac_objext \
  18849. conftest$ac_exeext conftest.$ac_ext
  18850. LIBS=$ac_check_lib_save_LIBS
  18851. fi
  18852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18853. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18854. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18855. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18856. fi
  18857. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18859. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18860. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18861. $as_echo_n "(cached) " >&6
  18862. else
  18863. ac_check_lib_save_LIBS=$LIBS
  18864. LIBS="-lbsd $LIBS"
  18865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18866. /* end confdefs.h. */
  18867. /* Override any GCC internal prototype to avoid an error.
  18868. Use char because int might match the return type of a GCC
  18869. builtin and then its argument prototype would still apply. */
  18870. #ifdef __cplusplus
  18871. extern "C"
  18872. #endif
  18873. char gethostbyname ();
  18874. int
  18875. main ()
  18876. {
  18877. return gethostbyname ();
  18878. ;
  18879. return 0;
  18880. }
  18881. _ACEOF
  18882. if ac_fn_c_try_link "$LINENO"; then :
  18883. ac_cv_lib_bsd_gethostbyname=yes
  18884. else
  18885. ac_cv_lib_bsd_gethostbyname=no
  18886. fi
  18887. rm -f core conftest.err conftest.$ac_objext \
  18888. conftest$ac_exeext conftest.$ac_ext
  18889. LIBS=$ac_check_lib_save_LIBS
  18890. fi
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18892. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18893. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18894. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18895. fi
  18896. fi
  18897. fi
  18898. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18899. # socket/setsockopt and other routines are undefined under SCO ODT
  18900. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18901. # on later versions), says Simon Leinen: it contains gethostby*
  18902. # variants that don't use the name server (or something). -lsocket
  18903. # must be given before -lnsl if both are needed. We assume that
  18904. # if connect needs -lnsl, so does gethostbyname.
  18905. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18906. if test "x$ac_cv_func_connect" = xyes; then :
  18907. fi
  18908. if test $ac_cv_func_connect = no; then
  18909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18910. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18911. if ${ac_cv_lib_socket_connect+:} false; then :
  18912. $as_echo_n "(cached) " >&6
  18913. else
  18914. ac_check_lib_save_LIBS=$LIBS
  18915. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18917. /* end confdefs.h. */
  18918. /* Override any GCC internal prototype to avoid an error.
  18919. Use char because int might match the return type of a GCC
  18920. builtin and then its argument prototype would still apply. */
  18921. #ifdef __cplusplus
  18922. extern "C"
  18923. #endif
  18924. char connect ();
  18925. int
  18926. main ()
  18927. {
  18928. return connect ();
  18929. ;
  18930. return 0;
  18931. }
  18932. _ACEOF
  18933. if ac_fn_c_try_link "$LINENO"; then :
  18934. ac_cv_lib_socket_connect=yes
  18935. else
  18936. ac_cv_lib_socket_connect=no
  18937. fi
  18938. rm -f core conftest.err conftest.$ac_objext \
  18939. conftest$ac_exeext conftest.$ac_ext
  18940. LIBS=$ac_check_lib_save_LIBS
  18941. fi
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18943. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18944. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18945. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18946. fi
  18947. fi
  18948. # Guillermo Gomez says -lposix is necessary on A/UX.
  18949. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18950. if test "x$ac_cv_func_remove" = xyes; then :
  18951. fi
  18952. if test $ac_cv_func_remove = no; then
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18954. $as_echo_n "checking for remove in -lposix... " >&6; }
  18955. if ${ac_cv_lib_posix_remove+:} false; then :
  18956. $as_echo_n "(cached) " >&6
  18957. else
  18958. ac_check_lib_save_LIBS=$LIBS
  18959. LIBS="-lposix $LIBS"
  18960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18961. /* end confdefs.h. */
  18962. /* Override any GCC internal prototype to avoid an error.
  18963. Use char because int might match the return type of a GCC
  18964. builtin and then its argument prototype would still apply. */
  18965. #ifdef __cplusplus
  18966. extern "C"
  18967. #endif
  18968. char remove ();
  18969. int
  18970. main ()
  18971. {
  18972. return remove ();
  18973. ;
  18974. return 0;
  18975. }
  18976. _ACEOF
  18977. if ac_fn_c_try_link "$LINENO"; then :
  18978. ac_cv_lib_posix_remove=yes
  18979. else
  18980. ac_cv_lib_posix_remove=no
  18981. fi
  18982. rm -f core conftest.err conftest.$ac_objext \
  18983. conftest$ac_exeext conftest.$ac_ext
  18984. LIBS=$ac_check_lib_save_LIBS
  18985. fi
  18986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18987. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18988. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18989. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18990. fi
  18991. fi
  18992. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18993. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18994. if test "x$ac_cv_func_shmat" = xyes; then :
  18995. fi
  18996. if test $ac_cv_func_shmat = no; then
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18998. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18999. if ${ac_cv_lib_ipc_shmat+:} false; then :
  19000. $as_echo_n "(cached) " >&6
  19001. else
  19002. ac_check_lib_save_LIBS=$LIBS
  19003. LIBS="-lipc $LIBS"
  19004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19005. /* end confdefs.h. */
  19006. /* Override any GCC internal prototype to avoid an error.
  19007. Use char because int might match the return type of a GCC
  19008. builtin and then its argument prototype would still apply. */
  19009. #ifdef __cplusplus
  19010. extern "C"
  19011. #endif
  19012. char shmat ();
  19013. int
  19014. main ()
  19015. {
  19016. return shmat ();
  19017. ;
  19018. return 0;
  19019. }
  19020. _ACEOF
  19021. if ac_fn_c_try_link "$LINENO"; then :
  19022. ac_cv_lib_ipc_shmat=yes
  19023. else
  19024. ac_cv_lib_ipc_shmat=no
  19025. fi
  19026. rm -f core conftest.err conftest.$ac_objext \
  19027. conftest$ac_exeext conftest.$ac_ext
  19028. LIBS=$ac_check_lib_save_LIBS
  19029. fi
  19030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  19031. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  19032. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  19033. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19034. fi
  19035. fi
  19036. fi
  19037. # Check for libraries that X11R6 Xt/Xaw programs need.
  19038. ac_save_LDFLAGS=$LDFLAGS
  19039. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19040. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19041. # check for ICE first), but we must link in the order -lSM -lICE or
  19042. # we get undefined symbols. So assume we have SM if we have ICE.
  19043. # These have to be linked with before -lX11, unlike the other
  19044. # libraries we check for below, so use a different variable.
  19045. # John Interrante, Karl Berry
  19046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  19047. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  19048. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  19049. $as_echo_n "(cached) " >&6
  19050. else
  19051. ac_check_lib_save_LIBS=$LIBS
  19052. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19054. /* end confdefs.h. */
  19055. /* Override any GCC internal prototype to avoid an error.
  19056. Use char because int might match the return type of a GCC
  19057. builtin and then its argument prototype would still apply. */
  19058. #ifdef __cplusplus
  19059. extern "C"
  19060. #endif
  19061. char IceConnectionNumber ();
  19062. int
  19063. main ()
  19064. {
  19065. return IceConnectionNumber ();
  19066. ;
  19067. return 0;
  19068. }
  19069. _ACEOF
  19070. if ac_fn_c_try_link "$LINENO"; then :
  19071. ac_cv_lib_ICE_IceConnectionNumber=yes
  19072. else
  19073. ac_cv_lib_ICE_IceConnectionNumber=no
  19074. fi
  19075. rm -f core conftest.err conftest.$ac_objext \
  19076. conftest$ac_exeext conftest.$ac_ext
  19077. LIBS=$ac_check_lib_save_LIBS
  19078. fi
  19079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19080. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19081. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  19082. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19083. fi
  19084. LDFLAGS=$ac_save_LDFLAGS
  19085. fi
  19086. if test "x$no_x" = xyes; then
  19087. use_xlib="no (requires X development libraries)"
  19088. else
  19089. xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
  19090. xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
  19091. fi
  19092. elif test $pkg_failed = untried; then
  19093. xlib_REQUIRES=""
  19094. if test "$no_x" = yes; then
  19095. # Not all programs may use this symbol, but it does not hurt to define it.
  19096. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19097. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19098. else
  19099. if test -n "$x_includes"; then
  19100. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19101. fi
  19102. # It would also be nice to do this for all -L options, not just this one.
  19103. if test -n "$x_libraries"; then
  19104. X_LIBS="$X_LIBS -L$x_libraries"
  19105. # For Solaris; some versions of Sun CC require a space after -R and
  19106. # others require no space. Words are not sufficient . . . .
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19108. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  19109. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19110. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19111. ac_c_werror_flag=yes
  19112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19113. /* end confdefs.h. */
  19114. int
  19115. main ()
  19116. {
  19117. ;
  19118. return 0;
  19119. }
  19120. _ACEOF
  19121. if ac_fn_c_try_link "$LINENO"; then :
  19122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19123. $as_echo "no" >&6; }
  19124. X_LIBS="$X_LIBS -R$x_libraries"
  19125. else
  19126. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19128. /* end confdefs.h. */
  19129. int
  19130. main ()
  19131. {
  19132. ;
  19133. return 0;
  19134. }
  19135. _ACEOF
  19136. if ac_fn_c_try_link "$LINENO"; then :
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19138. $as_echo "yes" >&6; }
  19139. X_LIBS="$X_LIBS -R $x_libraries"
  19140. else
  19141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19142. $as_echo "neither works" >&6; }
  19143. fi
  19144. rm -f core conftest.err conftest.$ac_objext \
  19145. conftest$ac_exeext conftest.$ac_ext
  19146. fi
  19147. rm -f core conftest.err conftest.$ac_objext \
  19148. conftest$ac_exeext conftest.$ac_ext
  19149. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19150. LIBS=$ac_xsave_LIBS
  19151. fi
  19152. # Check for system-dependent libraries X programs must link with.
  19153. # Do this before checking for the system-independent R6 libraries
  19154. # (-lICE), since we may need -lsocket or whatever for X linking.
  19155. if test "$ISC" = yes; then
  19156. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19157. else
  19158. # Martyn Johnson says this is needed for Ultrix, if the X
  19159. # libraries were built with DECnet support. And Karl Berry says
  19160. # the Alpha needs dnet_stub (dnet does not exist).
  19161. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19163. /* end confdefs.h. */
  19164. /* Override any GCC internal prototype to avoid an error.
  19165. Use char because int might match the return type of a GCC
  19166. builtin and then its argument prototype would still apply. */
  19167. #ifdef __cplusplus
  19168. extern "C"
  19169. #endif
  19170. char XOpenDisplay ();
  19171. int
  19172. main ()
  19173. {
  19174. return XOpenDisplay ();
  19175. ;
  19176. return 0;
  19177. }
  19178. _ACEOF
  19179. if ac_fn_c_try_link "$LINENO"; then :
  19180. else
  19181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19182. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  19183. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  19184. $as_echo_n "(cached) " >&6
  19185. else
  19186. ac_check_lib_save_LIBS=$LIBS
  19187. LIBS="-ldnet $LIBS"
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. /* Override any GCC internal prototype to avoid an error.
  19191. Use char because int might match the return type of a GCC
  19192. builtin and then its argument prototype would still apply. */
  19193. #ifdef __cplusplus
  19194. extern "C"
  19195. #endif
  19196. char dnet_ntoa ();
  19197. int
  19198. main ()
  19199. {
  19200. return dnet_ntoa ();
  19201. ;
  19202. return 0;
  19203. }
  19204. _ACEOF
  19205. if ac_fn_c_try_link "$LINENO"; then :
  19206. ac_cv_lib_dnet_dnet_ntoa=yes
  19207. else
  19208. ac_cv_lib_dnet_dnet_ntoa=no
  19209. fi
  19210. rm -f core conftest.err conftest.$ac_objext \
  19211. conftest$ac_exeext conftest.$ac_ext
  19212. LIBS=$ac_check_lib_save_LIBS
  19213. fi
  19214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19215. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19216. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  19217. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19218. fi
  19219. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19221. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19222. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  19223. $as_echo_n "(cached) " >&6
  19224. else
  19225. ac_check_lib_save_LIBS=$LIBS
  19226. LIBS="-ldnet_stub $LIBS"
  19227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19228. /* end confdefs.h. */
  19229. /* Override any GCC internal prototype to avoid an error.
  19230. Use char because int might match the return type of a GCC
  19231. builtin and then its argument prototype would still apply. */
  19232. #ifdef __cplusplus
  19233. extern "C"
  19234. #endif
  19235. char dnet_ntoa ();
  19236. int
  19237. main ()
  19238. {
  19239. return dnet_ntoa ();
  19240. ;
  19241. return 0;
  19242. }
  19243. _ACEOF
  19244. if ac_fn_c_try_link "$LINENO"; then :
  19245. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19246. else
  19247. ac_cv_lib_dnet_stub_dnet_ntoa=no
  19248. fi
  19249. rm -f core conftest.err conftest.$ac_objext \
  19250. conftest$ac_exeext conftest.$ac_ext
  19251. LIBS=$ac_check_lib_save_LIBS
  19252. fi
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19254. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19255. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  19256. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19257. fi
  19258. fi
  19259. fi
  19260. rm -f core conftest.err conftest.$ac_objext \
  19261. conftest$ac_exeext conftest.$ac_ext
  19262. LIBS="$ac_xsave_LIBS"
  19263. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19264. # to get the SysV transport functions.
  19265. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19266. # needs -lnsl.
  19267. # The nsl library prevents programs from opening the X display
  19268. # on Irix 5.2, according to T.E. Dickey.
  19269. # The functions gethostbyname, getservbyname, and inet_addr are
  19270. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19271. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19272. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  19273. fi
  19274. if test $ac_cv_func_gethostbyname = no; then
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19276. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  19277. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  19278. $as_echo_n "(cached) " >&6
  19279. else
  19280. ac_check_lib_save_LIBS=$LIBS
  19281. LIBS="-lnsl $LIBS"
  19282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19283. /* end confdefs.h. */
  19284. /* Override any GCC internal prototype to avoid an error.
  19285. Use char because int might match the return type of a GCC
  19286. builtin and then its argument prototype would still apply. */
  19287. #ifdef __cplusplus
  19288. extern "C"
  19289. #endif
  19290. char gethostbyname ();
  19291. int
  19292. main ()
  19293. {
  19294. return gethostbyname ();
  19295. ;
  19296. return 0;
  19297. }
  19298. _ACEOF
  19299. if ac_fn_c_try_link "$LINENO"; then :
  19300. ac_cv_lib_nsl_gethostbyname=yes
  19301. else
  19302. ac_cv_lib_nsl_gethostbyname=no
  19303. fi
  19304. rm -f core conftest.err conftest.$ac_objext \
  19305. conftest$ac_exeext conftest.$ac_ext
  19306. LIBS=$ac_check_lib_save_LIBS
  19307. fi
  19308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19309. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19310. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  19311. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19312. fi
  19313. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19315. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  19316. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  19317. $as_echo_n "(cached) " >&6
  19318. else
  19319. ac_check_lib_save_LIBS=$LIBS
  19320. LIBS="-lbsd $LIBS"
  19321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19322. /* end confdefs.h. */
  19323. /* Override any GCC internal prototype to avoid an error.
  19324. Use char because int might match the return type of a GCC
  19325. builtin and then its argument prototype would still apply. */
  19326. #ifdef __cplusplus
  19327. extern "C"
  19328. #endif
  19329. char gethostbyname ();
  19330. int
  19331. main ()
  19332. {
  19333. return gethostbyname ();
  19334. ;
  19335. return 0;
  19336. }
  19337. _ACEOF
  19338. if ac_fn_c_try_link "$LINENO"; then :
  19339. ac_cv_lib_bsd_gethostbyname=yes
  19340. else
  19341. ac_cv_lib_bsd_gethostbyname=no
  19342. fi
  19343. rm -f core conftest.err conftest.$ac_objext \
  19344. conftest$ac_exeext conftest.$ac_ext
  19345. LIBS=$ac_check_lib_save_LIBS
  19346. fi
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  19348. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19349. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  19350. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19351. fi
  19352. fi
  19353. fi
  19354. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19355. # socket/setsockopt and other routines are undefined under SCO ODT
  19356. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19357. # on later versions), says Simon Leinen: it contains gethostby*
  19358. # variants that don't use the name server (or something). -lsocket
  19359. # must be given before -lnsl if both are needed. We assume that
  19360. # if connect needs -lnsl, so does gethostbyname.
  19361. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19362. if test "x$ac_cv_func_connect" = xyes; then :
  19363. fi
  19364. if test $ac_cv_func_connect = no; then
  19365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19366. $as_echo_n "checking for connect in -lsocket... " >&6; }
  19367. if ${ac_cv_lib_socket_connect+:} false; then :
  19368. $as_echo_n "(cached) " >&6
  19369. else
  19370. ac_check_lib_save_LIBS=$LIBS
  19371. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19373. /* end confdefs.h. */
  19374. /* Override any GCC internal prototype to avoid an error.
  19375. Use char because int might match the return type of a GCC
  19376. builtin and then its argument prototype would still apply. */
  19377. #ifdef __cplusplus
  19378. extern "C"
  19379. #endif
  19380. char connect ();
  19381. int
  19382. main ()
  19383. {
  19384. return connect ();
  19385. ;
  19386. return 0;
  19387. }
  19388. _ACEOF
  19389. if ac_fn_c_try_link "$LINENO"; then :
  19390. ac_cv_lib_socket_connect=yes
  19391. else
  19392. ac_cv_lib_socket_connect=no
  19393. fi
  19394. rm -f core conftest.err conftest.$ac_objext \
  19395. conftest$ac_exeext conftest.$ac_ext
  19396. LIBS=$ac_check_lib_save_LIBS
  19397. fi
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19399. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  19400. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  19401. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19402. fi
  19403. fi
  19404. # Guillermo Gomez says -lposix is necessary on A/UX.
  19405. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  19406. if test "x$ac_cv_func_remove" = xyes; then :
  19407. fi
  19408. if test $ac_cv_func_remove = no; then
  19409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  19410. $as_echo_n "checking for remove in -lposix... " >&6; }
  19411. if ${ac_cv_lib_posix_remove+:} false; then :
  19412. $as_echo_n "(cached) " >&6
  19413. else
  19414. ac_check_lib_save_LIBS=$LIBS
  19415. LIBS="-lposix $LIBS"
  19416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19417. /* end confdefs.h. */
  19418. /* Override any GCC internal prototype to avoid an error.
  19419. Use char because int might match the return type of a GCC
  19420. builtin and then its argument prototype would still apply. */
  19421. #ifdef __cplusplus
  19422. extern "C"
  19423. #endif
  19424. char remove ();
  19425. int
  19426. main ()
  19427. {
  19428. return remove ();
  19429. ;
  19430. return 0;
  19431. }
  19432. _ACEOF
  19433. if ac_fn_c_try_link "$LINENO"; then :
  19434. ac_cv_lib_posix_remove=yes
  19435. else
  19436. ac_cv_lib_posix_remove=no
  19437. fi
  19438. rm -f core conftest.err conftest.$ac_objext \
  19439. conftest$ac_exeext conftest.$ac_ext
  19440. LIBS=$ac_check_lib_save_LIBS
  19441. fi
  19442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  19443. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  19444. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  19445. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19446. fi
  19447. fi
  19448. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19449. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  19450. if test "x$ac_cv_func_shmat" = xyes; then :
  19451. fi
  19452. if test $ac_cv_func_shmat = no; then
  19453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  19454. $as_echo_n "checking for shmat in -lipc... " >&6; }
  19455. if ${ac_cv_lib_ipc_shmat+:} false; then :
  19456. $as_echo_n "(cached) " >&6
  19457. else
  19458. ac_check_lib_save_LIBS=$LIBS
  19459. LIBS="-lipc $LIBS"
  19460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19461. /* end confdefs.h. */
  19462. /* Override any GCC internal prototype to avoid an error.
  19463. Use char because int might match the return type of a GCC
  19464. builtin and then its argument prototype would still apply. */
  19465. #ifdef __cplusplus
  19466. extern "C"
  19467. #endif
  19468. char shmat ();
  19469. int
  19470. main ()
  19471. {
  19472. return shmat ();
  19473. ;
  19474. return 0;
  19475. }
  19476. _ACEOF
  19477. if ac_fn_c_try_link "$LINENO"; then :
  19478. ac_cv_lib_ipc_shmat=yes
  19479. else
  19480. ac_cv_lib_ipc_shmat=no
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext \
  19483. conftest$ac_exeext conftest.$ac_ext
  19484. LIBS=$ac_check_lib_save_LIBS
  19485. fi
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  19487. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  19488. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  19489. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19490. fi
  19491. fi
  19492. fi
  19493. # Check for libraries that X11R6 Xt/Xaw programs need.
  19494. ac_save_LDFLAGS=$LDFLAGS
  19495. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19496. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19497. # check for ICE first), but we must link in the order -lSM -lICE or
  19498. # we get undefined symbols. So assume we have SM if we have ICE.
  19499. # These have to be linked with before -lX11, unlike the other
  19500. # libraries we check for below, so use a different variable.
  19501. # John Interrante, Karl Berry
  19502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  19503. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  19504. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  19505. $as_echo_n "(cached) " >&6
  19506. else
  19507. ac_check_lib_save_LIBS=$LIBS
  19508. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19510. /* end confdefs.h. */
  19511. /* Override any GCC internal prototype to avoid an error.
  19512. Use char because int might match the return type of a GCC
  19513. builtin and then its argument prototype would still apply. */
  19514. #ifdef __cplusplus
  19515. extern "C"
  19516. #endif
  19517. char IceConnectionNumber ();
  19518. int
  19519. main ()
  19520. {
  19521. return IceConnectionNumber ();
  19522. ;
  19523. return 0;
  19524. }
  19525. _ACEOF
  19526. if ac_fn_c_try_link "$LINENO"; then :
  19527. ac_cv_lib_ICE_IceConnectionNumber=yes
  19528. else
  19529. ac_cv_lib_ICE_IceConnectionNumber=no
  19530. fi
  19531. rm -f core conftest.err conftest.$ac_objext \
  19532. conftest$ac_exeext conftest.$ac_ext
  19533. LIBS=$ac_check_lib_save_LIBS
  19534. fi
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19536. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19537. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  19538. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19539. fi
  19540. LDFLAGS=$ac_save_LDFLAGS
  19541. fi
  19542. if test "x$no_x" = xyes; then
  19543. use_xlib="no (requires X development libraries)"
  19544. else
  19545. xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
  19546. xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
  19547. fi
  19548. else
  19549. xlib_CFLAGS=$pkg_cv_xlib_CFLAGS
  19550. xlib_LIBS=$pkg_cv_xlib_LIBS
  19551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19552. $as_echo "yes" >&6; }
  19553. :
  19554. fi
  19555. ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
  19556. if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
  19557. fi
  19558. ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
  19559. if test "x$ac_cv_header_sys_shm_h" = xyes; then :
  19560. fi
  19561. if test "$ac_cv_header_sys_ipc_h" = "yes" -a "$ac_cv_header_sys_shm_h" = "yes"; then
  19562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5
  19563. $as_echo_n "checking whether shmctl IPC_RMID allowes subsequent attaches... " >&6; }
  19564. if test "$cross_compiling" = yes; then :
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
  19566. $as_echo "assuming no" >&6; }
  19567. else
  19568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19569. /* end confdefs.h. */
  19570. #include <sys/types.h>
  19571. #include <sys/ipc.h>
  19572. #include <sys/shm.h>
  19573. int main()
  19574. {
  19575. char *shmaddr;
  19576. int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
  19577. if (id == -1) return 2;
  19578. shmaddr = shmat (id, 0, 0);
  19579. shmctl (id, IPC_RMID, 0);
  19580. if ((char*) shmat (id, 0, 0) == (char*) -1) {
  19581. shmdt (shmaddr);
  19582. return 1;
  19583. }
  19584. shmdt (shmaddr);
  19585. shmdt (shmaddr);
  19586. return 0;
  19587. }
  19588. _ACEOF
  19589. if ac_fn_c_try_run "$LINENO"; then :
  19590. $as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h
  19591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19592. $as_echo "yes" >&6; }
  19593. else
  19594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19595. $as_echo "no" >&6; }
  19596. fi
  19597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19599. fi
  19600. fi
  19601. for ac_header in X11/extensions/XShm.h X11/extensions/shmproto.h X11/extensions/shmstr.h
  19602. do :
  19603. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19604. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlibint.h>
  19605. #include <X11/Xproto.h>
  19606. "
  19607. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19608. cat >>confdefs.h <<_ACEOF
  19609. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19610. _ACEOF
  19611. fi
  19612. done
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib surface backend feature could be enabled" >&5
  19614. $as_echo_n "checking whether cairo's Xlib surface backend feature could be enabled... " >&6; }
  19615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib" >&5
  19616. $as_echo "$use_xlib" >&6; }
  19617. if test "x$enable_xlib" = "xyes" -a "x$use_xlib" != xyes; then :
  19618. as_fn_error $? " Xlib surface backend feature could not be enabled" "$LINENO" 5
  19619. fi ;; #(
  19620. *) :
  19621. as_fn_error $? "invalid argument passed to --enable-xlib: \`$use_xlib', should be one of [no/auto/yes]" "$LINENO" 5
  19622. ;;
  19623. esac
  19624. if test "x$use_xlib" = "xyes"; then :
  19625. CAIRO_REQUIRES="$xlib_REQUIRES"" ${CAIRO_REQUIRES}"
  19626. CAIRO_CFLAGS="$xlib_CFLAGS"" ${CAIRO_CFLAGS}"
  19627. CAIRO_NONPKGCONFIG_CFLAGS="$xlib_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  19628. CAIRO_LIBS="$xlib_LIBS"" ${CAIRO_LIBS}"
  19629. CAIRO_NONPKGCONFIG_LIBS="$xlib_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  19630. else
  19631. unset xlib_BASE
  19632. unset xlib_REQUIRES
  19633. unset xlib_CFLAGS
  19634. unset xlib_NONPKGCONFIG_CFLAGS
  19635. unset xlib_LIBS
  19636. unset xlib_NONPKGCONFIG_LIBS
  19637. unset xlib_NONPKGCONFIG_EXTRA_LIBS
  19638. fi
  19639. if test "x$use_xlib" = xyes; then
  19640. CAIRO_HAS_XLIB_SURFACE_TRUE=
  19641. CAIRO_HAS_XLIB_SURFACE_FALSE='#'
  19642. else
  19643. CAIRO_HAS_XLIB_SURFACE_TRUE='#'
  19644. CAIRO_HAS_XLIB_SURFACE_FALSE=
  19645. fi
  19646. cr_make_tmp='CAIRO_HAS_XLIB_SURFACE=0'
  19647. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  19648. ""$cr_make_tmp"
  19649. cr_make_tmp=''
  19650. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19651. ""$cr_make_tmp"
  19652. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19653. ""$cr_make_tmp"
  19654. cr_make_tmp=''
  19655. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19656. ""$cr_make_tmp"
  19657. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19658. ""$cr_make_tmp"
  19659. cr_make_tmp='supported_cairo_headers += $(cairo_xlib_headers)'
  19660. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19661. ""$cr_make_tmp"
  19662. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19663. ""$cr_make_tmp"
  19664. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)'
  19665. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19666. ""$cr_make_tmp"
  19667. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19668. ""$cr_make_tmp"
  19669. cr_make_tmp='all_cairo_headers += $(cairo_xlib_headers)
  19670. all_cairo_private += $(cairo_xlib_private)
  19671. all_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
  19672. all_cairo_sources += $(cairo_xlib_sources)'
  19673. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19674. ""$cr_make_tmp"
  19675. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19676. ""$cr_make_tmp"
  19677. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
  19678. all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
  19679. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
  19680. all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
  19681. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19682. ""$cr_make_tmp"
  19683. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19684. ""$cr_make_tmp"
  19685. cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_headers)
  19686. enabled_cairo_private += $(cairo_xlib_private)
  19687. enabled_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
  19688. enabled_cairo_sources += $(cairo_xlib_sources)'
  19689. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19690. "'if CAIRO_HAS_XLIB_SURFACE'
  19691. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19692. ""$cr_make_tmp"
  19693. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19694. "'endif'
  19695. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19696. "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
  19697. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19698. ""$cr_make_tmp"
  19699. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19700. "'endif'
  19701. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
  19702. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
  19703. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
  19704. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
  19705. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19706. "'if CAIRO_HAS_XLIB_SURFACE'
  19707. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19708. ""$cr_make_tmp"
  19709. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19710. "'endif'
  19711. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19712. "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
  19713. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19714. ""$cr_make_tmp"
  19715. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19716. "'endif'
  19717. if test "x$use_xlib" = xyes; then :
  19718. :
  19719. ac_config_files="$ac_config_files src/cairo-xlib.pc:src/cairo-features.pc.in"
  19720. fi
  19721. if test "x$use_xlib" = xyes; then :
  19722. :
  19723. ac_config_files="$ac_config_files cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  19724. fi
  19725. cr_make_tmp='all_cairo_pkgconf += cairo-xlib.pc'
  19726. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19727. ""$cr_make_tmp"
  19728. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19729. ""$cr_make_tmp"
  19730. cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib.pc'
  19731. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19732. "'if CAIRO_HAS_XLIB_SURFACE'
  19733. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19734. ""$cr_make_tmp"
  19735. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19736. "'endif'
  19737. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19738. "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
  19739. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19740. ""$cr_make_tmp"
  19741. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19742. "'endif'
  19743. if test "x$use_xlib" = xyes; then :
  19744. :
  19745. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
  19746. fi
  19747. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
  19748. if test "x$use_xlib" != xyes; then :
  19749. :
  19750. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
  19751. fi
  19752. cr_make_tmp=' @echo "#define CAIRO_HAS_XLIB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  19753. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  19754. "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
  19755. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  19756. ""$cr_make_tmp"
  19757. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  19758. "'endif'
  19759. if test "x$use_xlib" = xyes; then :
  19760. :
  19761. CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib'
  19762. fi
  19763. # Check whether --enable-xlib-xrender was given.
  19764. if test "${enable_xlib_xrender+set}" = set; then :
  19765. enableval=$enable_xlib_xrender; enable_xlib_xrender=$enableval
  19766. else
  19767. enable_xlib_xrender=auto
  19768. fi
  19769. case $enable_xlib_xrender in #(
  19770. no) :
  19771. use_xlib_xrender="no (disabled, use --enable-xlib-xrender to enable)"
  19772. ;; #(
  19773. yes|auto) :
  19774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib Xrender surface backend feature" >&5
  19775. $as_echo_n "checking for cairo's Xlib Xrender surface backend feature... " >&6; }
  19776. echo
  19777. use_xlib_xrender=yes
  19778. xlib_xrender_BASE="cairo"
  19779. xlib_xrender_REQUIRES="$ac_env_xlib_xrender_REQUIRES_value"
  19780. xlib_xrender_CFLAGS="$ac_env_xlib_xrender_CFLAGS_value"
  19781. xlib_xrender_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xrender_NONPKGCONFIG_CFLAGS_value"
  19782. xlib_xrender_LIBS="$ac_env_xlib_xrender_LIBS_value"
  19783. xlib_xrender_NONPKGCONFIG_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_LIBS_value"
  19784. xlib_xrender_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_EXTRA_LIBS_value"
  19785. if test "x$use_xlib" != "xyes"; then
  19786. use_xlib_xrender="no (requires --enable-xlib)"
  19787. else
  19788. xlib_xrender_BASE=cairo-xlib
  19789. xlib_xrender_REQUIRES="xrender >= 0.6"
  19790. pkg_failed=no
  19791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xrender" >&5
  19792. $as_echo_n "checking for xlib_xrender... " >&6; }
  19793. if test -n "$xlib_xrender_CFLAGS"; then
  19794. pkg_cv_xlib_xrender_CFLAGS="$xlib_xrender_CFLAGS"
  19795. elif test -n "$PKG_CONFIG"; then
  19796. if test -n "$PKG_CONFIG" && \
  19797. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
  19798. ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
  19799. ac_status=$?
  19800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19801. test $ac_status = 0; }; then
  19802. pkg_cv_xlib_xrender_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xrender_REQUIRES" 2>/dev/null`
  19803. else
  19804. pkg_failed=yes
  19805. fi
  19806. else
  19807. pkg_failed=untried
  19808. fi
  19809. if test -n "$xlib_xrender_LIBS"; then
  19810. pkg_cv_xlib_xrender_LIBS="$xlib_xrender_LIBS"
  19811. elif test -n "$PKG_CONFIG"; then
  19812. if test -n "$PKG_CONFIG" && \
  19813. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
  19814. ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
  19815. ac_status=$?
  19816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19817. test $ac_status = 0; }; then
  19818. pkg_cv_xlib_xrender_LIBS=`$PKG_CONFIG --libs "$xlib_xrender_REQUIRES" 2>/dev/null`
  19819. else
  19820. pkg_failed=yes
  19821. fi
  19822. else
  19823. pkg_failed=untried
  19824. fi
  19825. if test $pkg_failed = yes; then
  19826. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19827. _pkg_short_errors_supported=yes
  19828. else
  19829. _pkg_short_errors_supported=no
  19830. fi
  19831. if test $_pkg_short_errors_supported = yes; then
  19832. xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xrender_REQUIRES" 2>&1`
  19833. else
  19834. xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xrender_REQUIRES" 2>&1`
  19835. fi
  19836. # Put the nasty error message in config.log where it belongs
  19837. echo "$xlib_xrender_PKG_ERRORS" >&5
  19838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19839. $as_echo "no" >&6; }
  19840. xlib_xrender_REQUIRES=""
  19841. old_CPPFLAGS=$CPPFLAGS
  19842. CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
  19843. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/X.h>
  19844. "
  19845. if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
  19846. xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
  19847. else
  19848. use_xlib_xrender="no (requires $xlib_xrender_REQUIRES https://freedesktop.org/Software/xlibs)"
  19849. fi
  19850. CPPFLAGS=$old_CPPFLAGS
  19851. elif test $pkg_failed = untried; then
  19852. xlib_xrender_REQUIRES=""
  19853. old_CPPFLAGS=$CPPFLAGS
  19854. CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
  19855. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/X.h>
  19856. "
  19857. if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
  19858. xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
  19859. else
  19860. use_xlib_xrender="no (requires $xlib_xrender_REQUIRES https://freedesktop.org/Software/xlibs)"
  19861. fi
  19862. CPPFLAGS=$old_CPPFLAGS
  19863. else
  19864. xlib_xrender_CFLAGS=$pkg_cv_xlib_xrender_CFLAGS
  19865. xlib_xrender_LIBS=$pkg_cv_xlib_xrender_LIBS
  19866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19867. $as_echo "yes" >&6; }
  19868. :
  19869. fi
  19870. old_CFLAGS=$CFLAGS
  19871. old_LIBS=$LIBS
  19872. CFLAGS="$CFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS $xlib_xrender_CFLAGS $xlib_xrender_NONPKGCONFIG_CFLAGS"
  19873. LIBS="$LIBS $xlib_LIBS $xlib_NONPKGCONFIG_LIBS $xlib_xrender_LIBS $xlib_xrender_NONPKGCONFIG_LIBS"
  19874. for ac_func in XRenderCreateSolidFill XRenderCreateLinearGradient XRenderCreateRadialGradient XRenderCreateConicalGradient
  19875. do :
  19876. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19877. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19878. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19879. cat >>confdefs.h <<_ACEOF
  19880. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19881. _ACEOF
  19882. fi
  19883. done
  19884. CFLAGS=$old_CFLAGS
  19885. LIBS=$old_LIBS
  19886. fi
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib Xrender surface backend feature could be enabled" >&5
  19888. $as_echo_n "checking whether cairo's Xlib Xrender surface backend feature could be enabled... " >&6; }
  19889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xrender" >&5
  19890. $as_echo "$use_xlib_xrender" >&6; }
  19891. if test "x$enable_xlib_xrender" = "xyes" -a "x$use_xlib_xrender" != xyes; then :
  19892. as_fn_error $? " Xlib Xrender surface backend feature could not be enabled" "$LINENO" 5
  19893. fi ;; #(
  19894. *) :
  19895. as_fn_error $? "invalid argument passed to --enable-xlib-xrender: \`$use_xlib_xrender', should be one of [no/auto/yes]" "$LINENO" 5
  19896. ;;
  19897. esac
  19898. if test "x$use_xlib_xrender" = "xyes"; then :
  19899. CAIRO_REQUIRES="$xlib_xrender_REQUIRES"" ${CAIRO_REQUIRES}"
  19900. CAIRO_CFLAGS="$xlib_xrender_CFLAGS"" ${CAIRO_CFLAGS}"
  19901. CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xrender_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  19902. CAIRO_LIBS="$xlib_xrender_LIBS"" ${CAIRO_LIBS}"
  19903. CAIRO_NONPKGCONFIG_LIBS="$xlib_xrender_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  19904. else
  19905. unset xlib_xrender_BASE
  19906. unset xlib_xrender_REQUIRES
  19907. unset xlib_xrender_CFLAGS
  19908. unset xlib_xrender_NONPKGCONFIG_CFLAGS
  19909. unset xlib_xrender_LIBS
  19910. unset xlib_xrender_NONPKGCONFIG_LIBS
  19911. unset xlib_xrender_NONPKGCONFIG_EXTRA_LIBS
  19912. fi
  19913. if test "x$use_xlib_xrender" = xyes; then
  19914. CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE=
  19915. CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE='#'
  19916. else
  19917. CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE='#'
  19918. CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE=
  19919. fi
  19920. cr_make_tmp='CAIRO_HAS_XLIB_XRENDER_SURFACE=0'
  19921. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  19922. ""$cr_make_tmp"
  19923. cr_make_tmp=''
  19924. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19925. ""$cr_make_tmp"
  19926. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19927. ""$cr_make_tmp"
  19928. cr_make_tmp=''
  19929. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19930. ""$cr_make_tmp"
  19931. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19932. ""$cr_make_tmp"
  19933. cr_make_tmp='supported_cairo_headers += $(cairo_xlib_xrender_headers)'
  19934. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19935. ""$cr_make_tmp"
  19936. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19937. ""$cr_make_tmp"
  19938. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)'
  19939. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19940. ""$cr_make_tmp"
  19941. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19942. ""$cr_make_tmp"
  19943. cr_make_tmp='all_cairo_headers += $(cairo_xlib_xrender_headers)
  19944. all_cairo_private += $(cairo_xlib_xrender_private)
  19945. all_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
  19946. all_cairo_sources += $(cairo_xlib_xrender_sources)'
  19947. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19948. ""$cr_make_tmp"
  19949. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19950. ""$cr_make_tmp"
  19951. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
  19952. all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
  19953. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
  19954. all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
  19955. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19956. ""$cr_make_tmp"
  19957. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19958. ""$cr_make_tmp"
  19959. cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xrender_headers)
  19960. enabled_cairo_private += $(cairo_xlib_xrender_private)
  19961. enabled_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
  19962. enabled_cairo_sources += $(cairo_xlib_xrender_sources)'
  19963. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19964. "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
  19965. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19966. ""$cr_make_tmp"
  19967. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  19968. "'endif'
  19969. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19970. "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
  19971. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19972. ""$cr_make_tmp"
  19973. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  19974. "'endif'
  19975. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
  19976. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
  19977. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
  19978. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
  19979. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19980. "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
  19981. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19982. ""$cr_make_tmp"
  19983. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  19984. "'endif'
  19985. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19986. "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
  19987. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19988. ""$cr_make_tmp"
  19989. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  19990. "'endif'
  19991. if test "x$use_xlib_xrender" = xyes; then :
  19992. :
  19993. ac_config_files="$ac_config_files src/cairo-xlib-xrender.pc:src/cairo-features.pc.in"
  19994. fi
  19995. if test "x$use_xlib_xrender" = xyes; then :
  19996. :
  19997. ac_config_files="$ac_config_files cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  19998. fi
  19999. cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xrender.pc'
  20000. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20001. ""$cr_make_tmp"
  20002. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20003. ""$cr_make_tmp"
  20004. cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xrender.pc'
  20005. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20006. "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
  20007. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20008. ""$cr_make_tmp"
  20009. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20010. "'endif'
  20011. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20012. "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
  20013. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20014. ""$cr_make_tmp"
  20015. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20016. "'endif'
  20017. if test "x$use_xlib_xrender" = xyes; then :
  20018. :
  20019. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
  20020. fi
  20021. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
  20022. if test "x$use_xlib_xrender" != xyes; then :
  20023. :
  20024. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
  20025. fi
  20026. cr_make_tmp=' @echo "#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  20027. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20028. "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
  20029. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20030. ""$cr_make_tmp"
  20031. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20032. "'endif'
  20033. if test "x$use_xlib_xrender" = xyes; then :
  20034. :
  20035. CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib_xrender'
  20036. fi
  20037. # Check whether --enable-xcb was given.
  20038. if test "${enable_xcb+set}" = set; then :
  20039. enableval=$enable_xcb; enable_xcb=$enableval
  20040. else
  20041. enable_xcb=auto
  20042. fi
  20043. case $enable_xcb in #(
  20044. no) :
  20045. use_xcb="no (disabled, use --enable-xcb to enable)"
  20046. ;; #(
  20047. yes|auto) :
  20048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB surface backend feature" >&5
  20049. $as_echo_n "checking for cairo's XCB surface backend feature... " >&6; }
  20050. echo
  20051. use_xcb=yes
  20052. xcb_BASE="cairo"
  20053. xcb_REQUIRES="$ac_env_xcb_REQUIRES_value"
  20054. xcb_CFLAGS="$ac_env_xcb_CFLAGS_value"
  20055. xcb_NONPKGCONFIG_CFLAGS="$ac_env_xcb_NONPKGCONFIG_CFLAGS_value"
  20056. xcb_LIBS="$ac_env_xcb_LIBS_value"
  20057. xcb_NONPKGCONFIG_LIBS="$ac_env_xcb_NONPKGCONFIG_LIBS_value"
  20058. xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
  20059. xcb_REQUIRES="xcb >= 1.6 xcb-render >= 1.6"
  20060. pkg_failed=no
  20061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb" >&5
  20062. $as_echo_n "checking for xcb... " >&6; }
  20063. if test -n "$xcb_CFLAGS"; then
  20064. pkg_cv_xcb_CFLAGS="$xcb_CFLAGS"
  20065. elif test -n "$PKG_CONFIG"; then
  20066. if test -n "$PKG_CONFIG" && \
  20067. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
  20068. ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
  20069. ac_status=$?
  20070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20071. test $ac_status = 0; }; then
  20072. pkg_cv_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xcb_REQUIRES" 2>/dev/null`
  20073. else
  20074. pkg_failed=yes
  20075. fi
  20076. else
  20077. pkg_failed=untried
  20078. fi
  20079. if test -n "$xcb_LIBS"; then
  20080. pkg_cv_xcb_LIBS="$xcb_LIBS"
  20081. elif test -n "$PKG_CONFIG"; then
  20082. if test -n "$PKG_CONFIG" && \
  20083. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
  20084. ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
  20085. ac_status=$?
  20086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20087. test $ac_status = 0; }; then
  20088. pkg_cv_xcb_LIBS=`$PKG_CONFIG --libs "$xcb_REQUIRES" 2>/dev/null`
  20089. else
  20090. pkg_failed=yes
  20091. fi
  20092. else
  20093. pkg_failed=untried
  20094. fi
  20095. if test $pkg_failed = yes; then
  20096. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20097. _pkg_short_errors_supported=yes
  20098. else
  20099. _pkg_short_errors_supported=no
  20100. fi
  20101. if test $_pkg_short_errors_supported = yes; then
  20102. xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_REQUIRES" 2>&1`
  20103. else
  20104. xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_REQUIRES" 2>&1`
  20105. fi
  20106. # Put the nasty error message in config.log where it belongs
  20107. echo "$xcb_PKG_ERRORS" >&5
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20109. $as_echo "no" >&6; }
  20110. use_xcb="no (requires $xcb_REQUIRES https://xcb.freedesktop.org)"
  20111. elif test $pkg_failed = untried; then
  20112. use_xcb="no (requires $xcb_REQUIRES https://xcb.freedesktop.org)"
  20113. else
  20114. xcb_CFLAGS=$pkg_cv_xcb_CFLAGS
  20115. xcb_LIBS=$pkg_cv_xcb_LIBS
  20116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20117. $as_echo "yes" >&6; }
  20118. :
  20119. fi
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB surface backend feature could be enabled" >&5
  20121. $as_echo_n "checking whether cairo's XCB surface backend feature could be enabled... " >&6; }
  20122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb" >&5
  20123. $as_echo "$use_xcb" >&6; }
  20124. if test "x$enable_xcb" = "xyes" -a "x$use_xcb" != xyes; then :
  20125. as_fn_error $? " XCB surface backend feature could not be enabled" "$LINENO" 5
  20126. fi ;; #(
  20127. *) :
  20128. as_fn_error $? "invalid argument passed to --enable-xcb: \`$use_xcb', should be one of [no/auto/yes]" "$LINENO" 5
  20129. ;;
  20130. esac
  20131. if test "x$use_xcb" = "xyes"; then :
  20132. CAIRO_REQUIRES="$xcb_REQUIRES"" ${CAIRO_REQUIRES}"
  20133. CAIRO_CFLAGS="$xcb_CFLAGS"" ${CAIRO_CFLAGS}"
  20134. CAIRO_NONPKGCONFIG_CFLAGS="$xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  20135. CAIRO_LIBS="$xcb_LIBS"" ${CAIRO_LIBS}"
  20136. CAIRO_NONPKGCONFIG_LIBS="$xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  20137. else
  20138. unset xcb_BASE
  20139. unset xcb_REQUIRES
  20140. unset xcb_CFLAGS
  20141. unset xcb_NONPKGCONFIG_CFLAGS
  20142. unset xcb_LIBS
  20143. unset xcb_NONPKGCONFIG_LIBS
  20144. unset xcb_NONPKGCONFIG_EXTRA_LIBS
  20145. fi
  20146. if test "x$use_xcb" = xyes; then
  20147. CAIRO_HAS_XCB_SURFACE_TRUE=
  20148. CAIRO_HAS_XCB_SURFACE_FALSE='#'
  20149. else
  20150. CAIRO_HAS_XCB_SURFACE_TRUE='#'
  20151. CAIRO_HAS_XCB_SURFACE_FALSE=
  20152. fi
  20153. cr_make_tmp='CAIRO_HAS_XCB_SURFACE=0'
  20154. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  20155. ""$cr_make_tmp"
  20156. cr_make_tmp=''
  20157. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20158. ""$cr_make_tmp"
  20159. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20160. ""$cr_make_tmp"
  20161. cr_make_tmp=''
  20162. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20163. ""$cr_make_tmp"
  20164. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20165. ""$cr_make_tmp"
  20166. cr_make_tmp='supported_cairo_headers += $(cairo_xcb_headers)'
  20167. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20168. ""$cr_make_tmp"
  20169. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20170. ""$cr_make_tmp"
  20171. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)'
  20172. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20173. ""$cr_make_tmp"
  20174. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20175. ""$cr_make_tmp"
  20176. cr_make_tmp='all_cairo_headers += $(cairo_xcb_headers)
  20177. all_cairo_private += $(cairo_xcb_private)
  20178. all_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
  20179. all_cairo_sources += $(cairo_xcb_sources)'
  20180. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20181. ""$cr_make_tmp"
  20182. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20183. ""$cr_make_tmp"
  20184. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
  20185. all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
  20186. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
  20187. all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
  20188. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20189. ""$cr_make_tmp"
  20190. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20191. ""$cr_make_tmp"
  20192. cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_headers)
  20193. enabled_cairo_private += $(cairo_xcb_private)
  20194. enabled_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
  20195. enabled_cairo_sources += $(cairo_xcb_sources)'
  20196. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20197. "'if CAIRO_HAS_XCB_SURFACE'
  20198. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20199. ""$cr_make_tmp"
  20200. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20201. "'endif'
  20202. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20203. "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
  20204. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20205. ""$cr_make_tmp"
  20206. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20207. "'endif'
  20208. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
  20209. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
  20210. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
  20211. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
  20212. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20213. "'if CAIRO_HAS_XCB_SURFACE'
  20214. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20215. ""$cr_make_tmp"
  20216. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20217. "'endif'
  20218. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20219. "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
  20220. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20221. ""$cr_make_tmp"
  20222. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20223. "'endif'
  20224. if test "x$use_xcb" = xyes; then :
  20225. :
  20226. ac_config_files="$ac_config_files src/cairo-xcb.pc:src/cairo-features.pc.in"
  20227. fi
  20228. if test "x$use_xcb" = xyes; then :
  20229. :
  20230. ac_config_files="$ac_config_files cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  20231. fi
  20232. cr_make_tmp='all_cairo_pkgconf += cairo-xcb.pc'
  20233. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20234. ""$cr_make_tmp"
  20235. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20236. ""$cr_make_tmp"
  20237. cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb.pc'
  20238. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20239. "'if CAIRO_HAS_XCB_SURFACE'
  20240. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20241. ""$cr_make_tmp"
  20242. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20243. "'endif'
  20244. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20245. "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
  20246. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20247. ""$cr_make_tmp"
  20248. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20249. "'endif'
  20250. if test "x$use_xcb" = xyes; then :
  20251. :
  20252. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
  20253. fi
  20254. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
  20255. if test "x$use_xcb" != xyes; then :
  20256. :
  20257. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
  20258. fi
  20259. cr_make_tmp=' @echo "#define CAIRO_HAS_XCB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  20260. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20261. "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
  20262. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20263. ""$cr_make_tmp"
  20264. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20265. "'endif'
  20266. if test "x$use_xcb" = xyes; then :
  20267. :
  20268. CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xcb'
  20269. fi
  20270. # Check whether --enable-xlib-xcb was given.
  20271. if test "${enable_xlib_xcb+set}" = set; then :
  20272. enableval=$enable_xlib_xcb; enable_xlib_xcb=$enableval
  20273. else
  20274. enable_xlib_xcb=no
  20275. fi
  20276. case $enable_xlib_xcb in #(
  20277. no) :
  20278. use_xlib_xcb="no (disabled, use --enable-xlib-xcb to enable)"
  20279. ;; #(
  20280. yes|auto) :
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib/XCB functions feature" >&5
  20282. $as_echo_n "checking for cairo's Xlib/XCB functions feature... " >&6; }
  20283. echo
  20284. use_xlib_xcb=yes
  20285. xlib_xcb_BASE="cairo"
  20286. xlib_xcb_REQUIRES="$ac_env_xlib_xcb_REQUIRES_value"
  20287. xlib_xcb_CFLAGS="$ac_env_xlib_xcb_CFLAGS_value"
  20288. xlib_xcb_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xcb_NONPKGCONFIG_CFLAGS_value"
  20289. xlib_xcb_LIBS="$ac_env_xlib_xcb_LIBS_value"
  20290. xlib_xcb_NONPKGCONFIG_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_LIBS_value"
  20291. xlib_xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
  20292. if test "x$use_xcb" = "xyes" -a "x$use_xlib" = "xyes"; then
  20293. xlib_xcb_REQUIRES="x11-xcb"
  20294. pkg_failed=no
  20295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xcb" >&5
  20296. $as_echo_n "checking for xlib_xcb... " >&6; }
  20297. if test -n "$xlib_xcb_CFLAGS"; then
  20298. pkg_cv_xlib_xcb_CFLAGS="$xlib_xcb_CFLAGS"
  20299. elif test -n "$PKG_CONFIG"; then
  20300. if test -n "$PKG_CONFIG" && \
  20301. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
  20302. ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
  20303. ac_status=$?
  20304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20305. test $ac_status = 0; }; then
  20306. pkg_cv_xlib_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xcb_REQUIRES" 2>/dev/null`
  20307. else
  20308. pkg_failed=yes
  20309. fi
  20310. else
  20311. pkg_failed=untried
  20312. fi
  20313. if test -n "$xlib_xcb_LIBS"; then
  20314. pkg_cv_xlib_xcb_LIBS="$xlib_xcb_LIBS"
  20315. elif test -n "$PKG_CONFIG"; then
  20316. if test -n "$PKG_CONFIG" && \
  20317. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
  20318. ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
  20319. ac_status=$?
  20320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20321. test $ac_status = 0; }; then
  20322. pkg_cv_xlib_xcb_LIBS=`$PKG_CONFIG --libs "$xlib_xcb_REQUIRES" 2>/dev/null`
  20323. else
  20324. pkg_failed=yes
  20325. fi
  20326. else
  20327. pkg_failed=untried
  20328. fi
  20329. if test $pkg_failed = yes; then
  20330. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20331. _pkg_short_errors_supported=yes
  20332. else
  20333. _pkg_short_errors_supported=no
  20334. fi
  20335. if test $_pkg_short_errors_supported = yes; then
  20336. xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xcb_REQUIRES" 2>&1`
  20337. else
  20338. xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xcb_REQUIRES" 2>&1`
  20339. fi
  20340. # Put the nasty error message in config.log where it belongs
  20341. echo "$xlib_xcb_PKG_ERRORS" >&5
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20343. $as_echo "no" >&6; }
  20344. use_xlib_xcb="no (requires $xlib_xcb_REQUIRES https://xcb.freedesktop.org)"
  20345. elif test $pkg_failed = untried; then
  20346. use_xlib_xcb="no (requires $xlib_xcb_REQUIRES https://xcb.freedesktop.org)"
  20347. else
  20348. xlib_xcb_CFLAGS=$pkg_cv_xlib_xcb_CFLAGS
  20349. xlib_xcb_LIBS=$pkg_cv_xlib_xcb_LIBS
  20350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20351. $as_echo "yes" >&6; }
  20352. :
  20353. fi
  20354. else
  20355. use_xlib_xcb="no (requires both --enable-xlib and --enable-xcb)"
  20356. fi
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib/XCB functions feature could be enabled" >&5
  20358. $as_echo_n "checking whether cairo's Xlib/XCB functions feature could be enabled... " >&6; }
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xcb" >&5
  20360. $as_echo "$use_xlib_xcb" >&6; }
  20361. if test "x$enable_xlib_xcb" = "xyes" -a "x$use_xlib_xcb" != xyes; then :
  20362. as_fn_error $? " Xlib/XCB functions feature could not be enabled" "$LINENO" 5
  20363. fi ;; #(
  20364. *) :
  20365. as_fn_error $? "invalid argument passed to --enable-xlib-xcb: \`$use_xlib_xcb', should be one of [no/auto/yes]" "$LINENO" 5
  20366. ;;
  20367. esac
  20368. if test "x$use_xlib_xcb" = "xyes"; then :
  20369. CAIRO_REQUIRES="$xlib_xcb_REQUIRES"" ${CAIRO_REQUIRES}"
  20370. CAIRO_CFLAGS="$xlib_xcb_CFLAGS"" ${CAIRO_CFLAGS}"
  20371. CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  20372. CAIRO_LIBS="$xlib_xcb_LIBS"" ${CAIRO_LIBS}"
  20373. CAIRO_NONPKGCONFIG_LIBS="$xlib_xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  20374. else
  20375. unset xlib_xcb_BASE
  20376. unset xlib_xcb_REQUIRES
  20377. unset xlib_xcb_CFLAGS
  20378. unset xlib_xcb_NONPKGCONFIG_CFLAGS
  20379. unset xlib_xcb_LIBS
  20380. unset xlib_xcb_NONPKGCONFIG_LIBS
  20381. unset xlib_xcb_NONPKGCONFIG_EXTRA_LIBS
  20382. fi
  20383. if test "x$use_xlib_xcb" = xyes; then
  20384. CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE=
  20385. CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE='#'
  20386. else
  20387. CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE='#'
  20388. CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE=
  20389. fi
  20390. cr_make_tmp='CAIRO_HAS_XLIB_XCB_FUNCTIONS=0'
  20391. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  20392. ""$cr_make_tmp"
  20393. cr_make_tmp=''
  20394. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20395. ""$cr_make_tmp"
  20396. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20397. ""$cr_make_tmp"
  20398. cr_make_tmp=''
  20399. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20400. ""$cr_make_tmp"
  20401. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20402. ""$cr_make_tmp"
  20403. cr_make_tmp='unsupported_cairo_headers += $(cairo_xlib_xcb_headers)'
  20404. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20405. ""$cr_make_tmp"
  20406. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20407. ""$cr_make_tmp"
  20408. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)'
  20409. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20410. ""$cr_make_tmp"
  20411. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20412. ""$cr_make_tmp"
  20413. cr_make_tmp='all_cairo_headers += $(cairo_xlib_xcb_headers)
  20414. all_cairo_private += $(cairo_xlib_xcb_private)
  20415. all_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
  20416. all_cairo_sources += $(cairo_xlib_xcb_sources)'
  20417. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20418. ""$cr_make_tmp"
  20419. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20420. ""$cr_make_tmp"
  20421. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
  20422. all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
  20423. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
  20424. all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
  20425. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20426. ""$cr_make_tmp"
  20427. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20428. ""$cr_make_tmp"
  20429. cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xcb_headers)
  20430. enabled_cairo_private += $(cairo_xlib_xcb_private)
  20431. enabled_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
  20432. enabled_cairo_sources += $(cairo_xlib_xcb_sources)'
  20433. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20434. "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
  20435. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20436. ""$cr_make_tmp"
  20437. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20438. "'endif'
  20439. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20440. "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
  20441. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20442. ""$cr_make_tmp"
  20443. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20444. "'endif'
  20445. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
  20446. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
  20447. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
  20448. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
  20449. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20450. "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
  20451. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20452. ""$cr_make_tmp"
  20453. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20454. "'endif'
  20455. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20456. "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
  20457. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20458. ""$cr_make_tmp"
  20459. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20460. "'endif'
  20461. if test "x$use_xlib_xcb" = xyes; then :
  20462. :
  20463. ac_config_files="$ac_config_files src/cairo-xlib-xcb.pc:src/cairo-features.pc.in"
  20464. fi
  20465. if test "x$use_xlib_xcb" = xyes; then :
  20466. :
  20467. ac_config_files="$ac_config_files cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  20468. fi
  20469. cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xcb.pc'
  20470. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20471. ""$cr_make_tmp"
  20472. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20473. ""$cr_make_tmp"
  20474. cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xcb.pc'
  20475. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20476. "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
  20477. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20478. ""$cr_make_tmp"
  20479. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20480. "'endif'
  20481. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20482. "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
  20483. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20484. ""$cr_make_tmp"
  20485. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20486. "'endif'
  20487. if test "x$use_xlib_xcb" = xyes; then :
  20488. :
  20489. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XCB_FUNCTIONS'
  20490. fi
  20491. if test "x$use_xlib_xcb" != xyes; then :
  20492. :
  20493. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_XCB_FUNCTIONS'
  20494. fi
  20495. cr_make_tmp=' @echo "#define CAIRO_HAS_XLIB_XCB_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  20496. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20497. "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
  20498. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20499. ""$cr_make_tmp"
  20500. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20501. "'endif'
  20502. if test "x$use_xlib_xcb" = xyes; then :
  20503. :
  20504. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  20505. "'--- The Xlib/XCB functions feature is still under active development and is
  20506. --- included in this release only as a preview. It does NOT fully work yet
  20507. --- and incompatible changes may yet be made to Xlib/XCB functions specific
  20508. --- API.'
  20509. fi
  20510. # Check whether --enable-xcb-shm was given.
  20511. if test "${enable_xcb_shm+set}" = set; then :
  20512. enableval=$enable_xcb_shm; enable_xcb_shm=$enableval
  20513. else
  20514. enable_xcb_shm=auto
  20515. fi
  20516. case $enable_xcb_shm in #(
  20517. no) :
  20518. use_xcb_shm="no (disabled, use --enable-xcb-shm to enable)"
  20519. ;; #(
  20520. yes|auto) :
  20521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB/SHM functions feature" >&5
  20522. $as_echo_n "checking for cairo's XCB/SHM functions feature... " >&6; }
  20523. echo
  20524. use_xcb_shm=yes
  20525. xcb_shm_BASE="cairo"
  20526. xcb_shm_REQUIRES="$ac_env_xcb_shm_REQUIRES_value"
  20527. xcb_shm_CFLAGS="$ac_env_xcb_shm_CFLAGS_value"
  20528. xcb_shm_NONPKGCONFIG_CFLAGS="$ac_env_xcb_shm_NONPKGCONFIG_CFLAGS_value"
  20529. xcb_shm_LIBS="$ac_env_xcb_shm_LIBS_value"
  20530. xcb_shm_NONPKGCONFIG_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_LIBS_value"
  20531. xcb_shm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_EXTRA_LIBS_value"
  20532. if test "x$use_xcb" = "xyes"; then
  20533. xcb_shm_REQUIRES="xcb-shm"
  20534. pkg_failed=no
  20535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_shm" >&5
  20536. $as_echo_n "checking for xcb_shm... " >&6; }
  20537. if test -n "$xcb_shm_CFLAGS"; then
  20538. pkg_cv_xcb_shm_CFLAGS="$xcb_shm_CFLAGS"
  20539. elif test -n "$PKG_CONFIG"; then
  20540. if test -n "$PKG_CONFIG" && \
  20541. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
  20542. ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
  20543. ac_status=$?
  20544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20545. test $ac_status = 0; }; then
  20546. pkg_cv_xcb_shm_CFLAGS=`$PKG_CONFIG --cflags "$xcb_shm_REQUIRES" 2>/dev/null`
  20547. else
  20548. pkg_failed=yes
  20549. fi
  20550. else
  20551. pkg_failed=untried
  20552. fi
  20553. if test -n "$xcb_shm_LIBS"; then
  20554. pkg_cv_xcb_shm_LIBS="$xcb_shm_LIBS"
  20555. elif test -n "$PKG_CONFIG"; then
  20556. if test -n "$PKG_CONFIG" && \
  20557. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
  20558. ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
  20559. ac_status=$?
  20560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20561. test $ac_status = 0; }; then
  20562. pkg_cv_xcb_shm_LIBS=`$PKG_CONFIG --libs "$xcb_shm_REQUIRES" 2>/dev/null`
  20563. else
  20564. pkg_failed=yes
  20565. fi
  20566. else
  20567. pkg_failed=untried
  20568. fi
  20569. if test $pkg_failed = yes; then
  20570. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20571. _pkg_short_errors_supported=yes
  20572. else
  20573. _pkg_short_errors_supported=no
  20574. fi
  20575. if test $_pkg_short_errors_supported = yes; then
  20576. xcb_shm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_shm_REQUIRES" 2>&1`
  20577. else
  20578. xcb_shm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_shm_REQUIRES" 2>&1`
  20579. fi
  20580. # Put the nasty error message in config.log where it belongs
  20581. echo "$xcb_shm_PKG_ERRORS" >&5
  20582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20583. $as_echo "no" >&6; }
  20584. use_xcb_shm="no (requires $xcb_shm https://xcb.freedesktop.org)"
  20585. elif test $pkg_failed = untried; then
  20586. use_xcb_shm="no (requires $xcb_shm https://xcb.freedesktop.org)"
  20587. else
  20588. xcb_shm_CFLAGS=$pkg_cv_xcb_shm_CFLAGS
  20589. xcb_shm_LIBS=$pkg_cv_xcb_shm_LIBS
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20591. $as_echo "yes" >&6; }
  20592. :
  20593. fi
  20594. else
  20595. use_xcb_shm="no (requires --enable-xcb)"
  20596. fi
  20597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB/SHM functions feature could be enabled" >&5
  20598. $as_echo_n "checking whether cairo's XCB/SHM functions feature could be enabled... " >&6; }
  20599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb_shm" >&5
  20600. $as_echo "$use_xcb_shm" >&6; }
  20601. if test "x$enable_xcb_shm" = "xyes" -a "x$use_xcb_shm" != xyes; then :
  20602. as_fn_error $? " XCB/SHM functions feature could not be enabled" "$LINENO" 5
  20603. fi ;; #(
  20604. *) :
  20605. as_fn_error $? "invalid argument passed to --enable-xcb-shm: \`$use_xcb_shm', should be one of [no/auto/yes]" "$LINENO" 5
  20606. ;;
  20607. esac
  20608. if test "x$use_xcb_shm" = "xyes"; then :
  20609. CAIRO_REQUIRES="$xcb_shm_REQUIRES"" ${CAIRO_REQUIRES}"
  20610. CAIRO_CFLAGS="$xcb_shm_CFLAGS"" ${CAIRO_CFLAGS}"
  20611. CAIRO_NONPKGCONFIG_CFLAGS="$xcb_shm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  20612. CAIRO_LIBS="$xcb_shm_LIBS"" ${CAIRO_LIBS}"
  20613. CAIRO_NONPKGCONFIG_LIBS="$xcb_shm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  20614. else
  20615. unset xcb_shm_BASE
  20616. unset xcb_shm_REQUIRES
  20617. unset xcb_shm_CFLAGS
  20618. unset xcb_shm_NONPKGCONFIG_CFLAGS
  20619. unset xcb_shm_LIBS
  20620. unset xcb_shm_NONPKGCONFIG_LIBS
  20621. unset xcb_shm_NONPKGCONFIG_EXTRA_LIBS
  20622. fi
  20623. if test "x$use_xcb_shm" = xyes; then
  20624. CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE=
  20625. CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE='#'
  20626. else
  20627. CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE='#'
  20628. CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE=
  20629. fi
  20630. cr_make_tmp='CAIRO_HAS_XCB_SHM_FUNCTIONS=0'
  20631. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  20632. ""$cr_make_tmp"
  20633. cr_make_tmp=''
  20634. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20635. ""$cr_make_tmp"
  20636. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20637. ""$cr_make_tmp"
  20638. cr_make_tmp=''
  20639. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20640. ""$cr_make_tmp"
  20641. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20642. ""$cr_make_tmp"
  20643. cr_make_tmp='supported_cairo_headers += $(cairo_xcb_shm_headers)'
  20644. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20645. ""$cr_make_tmp"
  20646. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20647. ""$cr_make_tmp"
  20648. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)'
  20649. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20650. ""$cr_make_tmp"
  20651. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20652. ""$cr_make_tmp"
  20653. cr_make_tmp='all_cairo_headers += $(cairo_xcb_shm_headers)
  20654. all_cairo_private += $(cairo_xcb_shm_private)
  20655. all_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
  20656. all_cairo_sources += $(cairo_xcb_shm_sources)'
  20657. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20658. ""$cr_make_tmp"
  20659. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20660. ""$cr_make_tmp"
  20661. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
  20662. all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
  20663. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
  20664. all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
  20665. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20666. ""$cr_make_tmp"
  20667. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20668. ""$cr_make_tmp"
  20669. cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_shm_headers)
  20670. enabled_cairo_private += $(cairo_xcb_shm_private)
  20671. enabled_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
  20672. enabled_cairo_sources += $(cairo_xcb_shm_sources)'
  20673. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20674. "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20675. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20676. ""$cr_make_tmp"
  20677. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20678. "'endif'
  20679. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20680. "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
  20681. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20682. ""$cr_make_tmp"
  20683. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20684. "'endif'
  20685. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
  20686. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
  20687. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
  20688. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
  20689. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20690. "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20691. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20692. ""$cr_make_tmp"
  20693. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20694. "'endif'
  20695. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20696. "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
  20697. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20698. ""$cr_make_tmp"
  20699. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20700. "'endif'
  20701. if test "x$use_xcb_shm" = xyes; then :
  20702. :
  20703. ac_config_files="$ac_config_files src/cairo-xcb-shm.pc:src/cairo-features.pc.in"
  20704. fi
  20705. if test "x$use_xcb_shm" = xyes; then :
  20706. :
  20707. ac_config_files="$ac_config_files cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  20708. fi
  20709. cr_make_tmp='all_cairo_pkgconf += cairo-xcb-shm.pc'
  20710. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20711. ""$cr_make_tmp"
  20712. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20713. ""$cr_make_tmp"
  20714. cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb-shm.pc'
  20715. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20716. "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20717. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20718. ""$cr_make_tmp"
  20719. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20720. "'endif'
  20721. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20722. "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
  20723. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20724. ""$cr_make_tmp"
  20725. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20726. "'endif'
  20727. if test "x$use_xcb_shm" = xyes; then :
  20728. :
  20729. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20730. fi
  20731. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20732. if test "x$use_xcb_shm" != xyes; then :
  20733. :
  20734. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
  20735. fi
  20736. cr_make_tmp=' @echo "#define CAIRO_HAS_XCB_SHM_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  20737. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20738. "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
  20739. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20740. ""$cr_make_tmp"
  20741. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20742. "'endif'
  20743. # Check whether --enable-qt was given.
  20744. if test "${enable_qt+set}" = set; then :
  20745. enableval=$enable_qt; enable_qt=$enableval
  20746. else
  20747. enable_qt=no
  20748. fi
  20749. case $enable_qt in #(
  20750. no) :
  20751. use_qt="no (disabled, use --enable-qt to enable)"
  20752. ;; #(
  20753. yes|auto) :
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Qt surface backend feature" >&5
  20755. $as_echo_n "checking for cairo's Qt surface backend feature... " >&6; }
  20756. echo
  20757. use_qt=yes
  20758. qt_BASE="cairo"
  20759. qt_REQUIRES="$ac_env_qt_REQUIRES_value"
  20760. qt_CFLAGS="$ac_env_qt_CFLAGS_value"
  20761. qt_NONPKGCONFIG_CFLAGS="$ac_env_qt_NONPKGCONFIG_CFLAGS_value"
  20762. qt_LIBS="$ac_env_qt_LIBS_value"
  20763. qt_NONPKGCONFIG_LIBS="$ac_env_qt_NONPKGCONFIG_LIBS_value"
  20764. qt_NONPKGCONFIG_EXTRA_LIBS="$ac_env_qt_NONPKGCONFIG_EXTRA_LIBS_value"
  20765. qt_REQUIRES="QtGui >= 4.4.0"
  20766. pkg_failed=no
  20767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
  20768. $as_echo_n "checking for qt... " >&6; }
  20769. if test -n "$qt_CFLAGS"; then
  20770. pkg_cv_qt_CFLAGS="$qt_CFLAGS"
  20771. elif test -n "$PKG_CONFIG"; then
  20772. if test -n "$PKG_CONFIG" && \
  20773. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
  20774. ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
  20775. ac_status=$?
  20776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20777. test $ac_status = 0; }; then
  20778. pkg_cv_qt_CFLAGS=`$PKG_CONFIG --cflags "$qt_REQUIRES" 2>/dev/null`
  20779. else
  20780. pkg_failed=yes
  20781. fi
  20782. else
  20783. pkg_failed=untried
  20784. fi
  20785. if test -n "$qt_LIBS"; then
  20786. pkg_cv_qt_LIBS="$qt_LIBS"
  20787. elif test -n "$PKG_CONFIG"; then
  20788. if test -n "$PKG_CONFIG" && \
  20789. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
  20790. ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
  20791. ac_status=$?
  20792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20793. test $ac_status = 0; }; then
  20794. pkg_cv_qt_LIBS=`$PKG_CONFIG --libs "$qt_REQUIRES" 2>/dev/null`
  20795. else
  20796. pkg_failed=yes
  20797. fi
  20798. else
  20799. pkg_failed=untried
  20800. fi
  20801. if test $pkg_failed = yes; then
  20802. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20803. _pkg_short_errors_supported=yes
  20804. else
  20805. _pkg_short_errors_supported=no
  20806. fi
  20807. if test $_pkg_short_errors_supported = yes; then
  20808. qt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$qt_REQUIRES" 2>&1`
  20809. else
  20810. qt_PKG_ERRORS=`$PKG_CONFIG --print-errors "$qt_REQUIRES" 2>&1`
  20811. fi
  20812. # Put the nasty error message in config.log where it belongs
  20813. echo "$qt_PKG_ERRORS" >&5
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20815. $as_echo "no" >&6; }
  20816. qt_REQUIRES=""
  20817. use_qt="no (requires Qt4 development libraries)"
  20818. elif test $pkg_failed = untried; then
  20819. qt_REQUIRES=""
  20820. use_qt="no (requires Qt4 development libraries)"
  20821. else
  20822. qt_CFLAGS=$pkg_cv_qt_CFLAGS
  20823. qt_LIBS=$pkg_cv_qt_LIBS
  20824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20825. $as_echo "yes" >&6; }
  20826. :
  20827. fi
  20828. qt_NONPKGCONFIG_LIBS="-lstdc++"
  20829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Qt surface backend feature could be enabled" >&5
  20830. $as_echo_n "checking whether cairo's Qt surface backend feature could be enabled... " >&6; }
  20831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_qt" >&5
  20832. $as_echo "$use_qt" >&6; }
  20833. if test "x$enable_qt" = "xyes" -a "x$use_qt" != xyes; then :
  20834. as_fn_error $? " Qt surface backend feature could not be enabled" "$LINENO" 5
  20835. fi ;; #(
  20836. *) :
  20837. as_fn_error $? "invalid argument passed to --enable-qt: \`$use_qt', should be one of [no/auto/yes]" "$LINENO" 5
  20838. ;;
  20839. esac
  20840. if test "x$use_qt" = "xyes"; then :
  20841. CAIRO_REQUIRES="$qt_REQUIRES"" ${CAIRO_REQUIRES}"
  20842. CAIRO_CFLAGS="$qt_CFLAGS"" ${CAIRO_CFLAGS}"
  20843. CAIRO_NONPKGCONFIG_CFLAGS="$qt_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  20844. CAIRO_LIBS="$qt_LIBS"" ${CAIRO_LIBS}"
  20845. CAIRO_NONPKGCONFIG_LIBS="$qt_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  20846. else
  20847. unset qt_BASE
  20848. unset qt_REQUIRES
  20849. unset qt_CFLAGS
  20850. unset qt_NONPKGCONFIG_CFLAGS
  20851. unset qt_LIBS
  20852. unset qt_NONPKGCONFIG_LIBS
  20853. unset qt_NONPKGCONFIG_EXTRA_LIBS
  20854. fi
  20855. if test "x$use_qt" = xyes; then
  20856. CAIRO_HAS_QT_SURFACE_TRUE=
  20857. CAIRO_HAS_QT_SURFACE_FALSE='#'
  20858. else
  20859. CAIRO_HAS_QT_SURFACE_TRUE='#'
  20860. CAIRO_HAS_QT_SURFACE_FALSE=
  20861. fi
  20862. cr_make_tmp='CAIRO_HAS_QT_SURFACE=0'
  20863. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  20864. ""$cr_make_tmp"
  20865. cr_make_tmp=''
  20866. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20867. ""$cr_make_tmp"
  20868. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20869. ""$cr_make_tmp"
  20870. cr_make_tmp=''
  20871. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20872. ""$cr_make_tmp"
  20873. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20874. ""$cr_make_tmp"
  20875. cr_make_tmp='unsupported_cairo_headers += $(cairo_qt_headers)'
  20876. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20877. ""$cr_make_tmp"
  20878. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20879. ""$cr_make_tmp"
  20880. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)'
  20881. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20882. ""$cr_make_tmp"
  20883. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20884. ""$cr_make_tmp"
  20885. cr_make_tmp='all_cairo_headers += $(cairo_qt_headers)
  20886. all_cairo_private += $(cairo_qt_private)
  20887. all_cairo_cxx_sources += $(cairo_qt_cxx_sources)
  20888. all_cairo_sources += $(cairo_qt_sources)'
  20889. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20890. ""$cr_make_tmp"
  20891. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20892. ""$cr_make_tmp"
  20893. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
  20894. all_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
  20895. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
  20896. all_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
  20897. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20898. ""$cr_make_tmp"
  20899. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20900. ""$cr_make_tmp"
  20901. cr_make_tmp='enabled_cairo_headers += $(cairo_qt_headers)
  20902. enabled_cairo_private += $(cairo_qt_private)
  20903. enabled_cairo_cxx_sources += $(cairo_qt_cxx_sources)
  20904. enabled_cairo_sources += $(cairo_qt_sources)'
  20905. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20906. "'if CAIRO_HAS_QT_SURFACE'
  20907. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20908. ""$cr_make_tmp"
  20909. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20910. "'endif'
  20911. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20912. "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
  20913. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20914. ""$cr_make_tmp"
  20915. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20916. "'endif'
  20917. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
  20918. enabled_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
  20919. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
  20920. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
  20921. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20922. "'if CAIRO_HAS_QT_SURFACE'
  20923. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20924. ""$cr_make_tmp"
  20925. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  20926. "'endif'
  20927. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20928. "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
  20929. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20930. ""$cr_make_tmp"
  20931. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  20932. "'endif'
  20933. if test "x$use_qt" = xyes; then :
  20934. :
  20935. ac_config_files="$ac_config_files src/cairo-qt.pc:src/cairo-features.pc.in"
  20936. fi
  20937. if test "x$use_qt" = xyes; then :
  20938. :
  20939. ac_config_files="$ac_config_files cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  20940. fi
  20941. cr_make_tmp='all_cairo_pkgconf += cairo-qt.pc'
  20942. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20943. ""$cr_make_tmp"
  20944. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20945. ""$cr_make_tmp"
  20946. cr_make_tmp='enabled_cairo_pkgconf += cairo-qt.pc'
  20947. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20948. "'if CAIRO_HAS_QT_SURFACE'
  20949. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20950. ""$cr_make_tmp"
  20951. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  20952. "'endif'
  20953. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20954. "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
  20955. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20956. ""$cr_make_tmp"
  20957. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  20958. "'endif'
  20959. if test "x$use_qt" = xyes; then :
  20960. :
  20961. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QT_SURFACE'
  20962. fi
  20963. if test "x$use_qt" != xyes; then :
  20964. :
  20965. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QT_SURFACE'
  20966. fi
  20967. cr_make_tmp=' @echo "#define CAIRO_HAS_QT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  20968. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20969. "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
  20970. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20971. ""$cr_make_tmp"
  20972. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  20973. "'endif'
  20974. if test "x$use_qt" = xyes; then :
  20975. :
  20976. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  20977. "'--- The Qt surface backend feature is still under active development and is
  20978. --- included in this release only as a preview. It does NOT fully work yet
  20979. --- and incompatible changes may yet be made to Qt surface backend specific
  20980. --- API.'
  20981. fi
  20982. # Check whether --enable-quartz was given.
  20983. if test "${enable_quartz+set}" = set; then :
  20984. enableval=$enable_quartz; enable_quartz=$enableval
  20985. else
  20986. enable_quartz=auto
  20987. fi
  20988. case $enable_quartz in #(
  20989. no) :
  20990. use_quartz="no (disabled, use --enable-quartz to enable)"
  20991. ;; #(
  20992. yes|auto) :
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz surface backend feature" >&5
  20994. $as_echo_n "checking for cairo's Quartz surface backend feature... " >&6; }
  20995. echo
  20996. use_quartz=yes
  20997. quartz_BASE="cairo"
  20998. quartz_REQUIRES="$ac_env_quartz_REQUIRES_value"
  20999. quartz_CFLAGS="$ac_env_quartz_CFLAGS_value"
  21000. quartz_NONPKGCONFIG_CFLAGS="$ac_env_quartz_NONPKGCONFIG_CFLAGS_value"
  21001. quartz_LIBS="$ac_env_quartz_LIBS_value"
  21002. quartz_NONPKGCONFIG_LIBS="$ac_env_quartz_NONPKGCONFIG_LIBS_value"
  21003. quartz_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_NONPKGCONFIG_EXTRA_LIBS_value"
  21004. ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
  21005. if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
  21006. else
  21007. use_quartz="no (requires ApplicationServices framework)"
  21008. fi
  21009. if test "x$use_quartz" != "xyes" ; then
  21010. ac_fn_c_check_header_mongrel "$LINENO" "CoreGraphics/CoreGraphics.h" "ac_cv_header_CoreGraphics_CoreGraphics_h" "$ac_includes_default"
  21011. if test "x$ac_cv_header_CoreGraphics_CoreGraphics_h" = xyes; then :
  21012. else
  21013. use_quartz="no (requires CoreGraphics framework)"
  21014. fi
  21015. quartz_LIBS="-Xlinker -framework -Xlinker CoreGraphics"
  21016. else
  21017. quartz_LIBS="-Xlinker -framework -Xlinker ApplicationServices"
  21018. fi
  21019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz surface backend feature could be enabled" >&5
  21020. $as_echo_n "checking whether cairo's Quartz surface backend feature could be enabled... " >&6; }
  21021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz" >&5
  21022. $as_echo "$use_quartz" >&6; }
  21023. if test "x$enable_quartz" = "xyes" -a "x$use_quartz" != xyes; then :
  21024. as_fn_error $? " Quartz surface backend feature could not be enabled" "$LINENO" 5
  21025. fi ;; #(
  21026. *) :
  21027. as_fn_error $? "invalid argument passed to --enable-quartz: \`$use_quartz', should be one of [no/auto/yes]" "$LINENO" 5
  21028. ;;
  21029. esac
  21030. if test "x$use_quartz" = "xyes"; then :
  21031. CAIRO_REQUIRES="$quartz_REQUIRES"" ${CAIRO_REQUIRES}"
  21032. CAIRO_CFLAGS="$quartz_CFLAGS"" ${CAIRO_CFLAGS}"
  21033. CAIRO_NONPKGCONFIG_CFLAGS="$quartz_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21034. CAIRO_LIBS="$quartz_LIBS"" ${CAIRO_LIBS}"
  21035. CAIRO_NONPKGCONFIG_LIBS="$quartz_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21036. else
  21037. unset quartz_BASE
  21038. unset quartz_REQUIRES
  21039. unset quartz_CFLAGS
  21040. unset quartz_NONPKGCONFIG_CFLAGS
  21041. unset quartz_LIBS
  21042. unset quartz_NONPKGCONFIG_LIBS
  21043. unset quartz_NONPKGCONFIG_EXTRA_LIBS
  21044. fi
  21045. if test "x$use_quartz" = xyes; then
  21046. CAIRO_HAS_QUARTZ_SURFACE_TRUE=
  21047. CAIRO_HAS_QUARTZ_SURFACE_FALSE='#'
  21048. else
  21049. CAIRO_HAS_QUARTZ_SURFACE_TRUE='#'
  21050. CAIRO_HAS_QUARTZ_SURFACE_FALSE=
  21051. fi
  21052. cr_make_tmp='CAIRO_HAS_QUARTZ_SURFACE=0'
  21053. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21054. ""$cr_make_tmp"
  21055. cr_make_tmp=''
  21056. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21057. ""$cr_make_tmp"
  21058. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21059. ""$cr_make_tmp"
  21060. cr_make_tmp=''
  21061. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21062. ""$cr_make_tmp"
  21063. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21064. ""$cr_make_tmp"
  21065. cr_make_tmp='supported_cairo_headers += $(cairo_quartz_headers)'
  21066. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21067. ""$cr_make_tmp"
  21068. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21069. ""$cr_make_tmp"
  21070. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)'
  21071. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21072. ""$cr_make_tmp"
  21073. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21074. ""$cr_make_tmp"
  21075. cr_make_tmp='all_cairo_headers += $(cairo_quartz_headers)
  21076. all_cairo_private += $(cairo_quartz_private)
  21077. all_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
  21078. all_cairo_sources += $(cairo_quartz_sources)'
  21079. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21080. ""$cr_make_tmp"
  21081. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21082. ""$cr_make_tmp"
  21083. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
  21084. all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
  21085. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
  21086. all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
  21087. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21088. ""$cr_make_tmp"
  21089. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21090. ""$cr_make_tmp"
  21091. cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_headers)
  21092. enabled_cairo_private += $(cairo_quartz_private)
  21093. enabled_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
  21094. enabled_cairo_sources += $(cairo_quartz_sources)'
  21095. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21096. "'if CAIRO_HAS_QUARTZ_SURFACE'
  21097. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21098. ""$cr_make_tmp"
  21099. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21100. "'endif'
  21101. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21102. "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
  21103. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21104. ""$cr_make_tmp"
  21105. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21106. "'endif'
  21107. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
  21108. enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
  21109. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
  21110. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
  21111. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21112. "'if CAIRO_HAS_QUARTZ_SURFACE'
  21113. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21114. ""$cr_make_tmp"
  21115. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21116. "'endif'
  21117. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21118. "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
  21119. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21120. ""$cr_make_tmp"
  21121. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21122. "'endif'
  21123. if test "x$use_quartz" = xyes; then :
  21124. :
  21125. ac_config_files="$ac_config_files src/cairo-quartz.pc:src/cairo-features.pc.in"
  21126. fi
  21127. if test "x$use_quartz" = xyes; then :
  21128. :
  21129. ac_config_files="$ac_config_files cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  21130. fi
  21131. cr_make_tmp='all_cairo_pkgconf += cairo-quartz.pc'
  21132. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21133. ""$cr_make_tmp"
  21134. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21135. ""$cr_make_tmp"
  21136. cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz.pc'
  21137. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21138. "'if CAIRO_HAS_QUARTZ_SURFACE'
  21139. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21140. ""$cr_make_tmp"
  21141. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21142. "'endif'
  21143. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21144. "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
  21145. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21146. ""$cr_make_tmp"
  21147. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21148. "'endif'
  21149. if test "x$use_quartz" = xyes; then :
  21150. :
  21151. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
  21152. fi
  21153. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
  21154. if test "x$use_quartz" != xyes; then :
  21155. :
  21156. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
  21157. fi
  21158. cr_make_tmp=' @echo "#define CAIRO_HAS_QUARTZ_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  21159. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21160. "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
  21161. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21162. ""$cr_make_tmp"
  21163. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21164. "'endif'
  21165. if test "x$use_quartz" = xyes; then :
  21166. :
  21167. CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'quartz'
  21168. fi
  21169. # Check whether --enable-quartz-font was given.
  21170. if test "${enable_quartz_font+set}" = set; then :
  21171. enableval=$enable_quartz_font; enable_quartz_font=$enableval
  21172. else
  21173. enable_quartz_font=auto
  21174. fi
  21175. case $enable_quartz_font in #(
  21176. no) :
  21177. use_quartz_font="no (disabled, use --enable-quartz-font to enable)"
  21178. ;; #(
  21179. yes|auto) :
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz font backend feature" >&5
  21181. $as_echo_n "checking for cairo's Quartz font backend feature... " >&6; }
  21182. echo
  21183. use_quartz_font=yes
  21184. quartz_font_BASE="cairo"
  21185. quartz_font_REQUIRES="$ac_env_quartz_font_REQUIRES_value"
  21186. quartz_font_CFLAGS="$ac_env_quartz_font_CFLAGS_value"
  21187. quartz_font_NONPKGCONFIG_CFLAGS="$ac_env_quartz_font_NONPKGCONFIG_CFLAGS_value"
  21188. quartz_font_LIBS="$ac_env_quartz_font_LIBS_value"
  21189. quartz_font_NONPKGCONFIG_LIBS="$ac_env_quartz_font_NONPKGCONFIG_LIBS_value"
  21190. quartz_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_font_NONPKGCONFIG_EXTRA_LIBS_value"
  21191. use_quartz_font=$use_quartz
  21192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz font backend feature could be enabled" >&5
  21193. $as_echo_n "checking whether cairo's Quartz font backend feature could be enabled... " >&6; }
  21194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_font" >&5
  21195. $as_echo "$use_quartz_font" >&6; }
  21196. if test "x$enable_quartz_font" = "xyes" -a "x$use_quartz_font" != xyes; then :
  21197. as_fn_error $? " Quartz font backend feature could not be enabled" "$LINENO" 5
  21198. fi ;; #(
  21199. *) :
  21200. as_fn_error $? "invalid argument passed to --enable-quartz-font: \`$use_quartz_font', should be one of [no/auto/yes]" "$LINENO" 5
  21201. ;;
  21202. esac
  21203. if test "x$use_quartz_font" = "xyes"; then :
  21204. CAIRO_REQUIRES="$quartz_font_REQUIRES"" ${CAIRO_REQUIRES}"
  21205. CAIRO_CFLAGS="$quartz_font_CFLAGS"" ${CAIRO_CFLAGS}"
  21206. CAIRO_NONPKGCONFIG_CFLAGS="$quartz_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21207. CAIRO_LIBS="$quartz_font_LIBS"" ${CAIRO_LIBS}"
  21208. CAIRO_NONPKGCONFIG_LIBS="$quartz_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21209. else
  21210. unset quartz_font_BASE
  21211. unset quartz_font_REQUIRES
  21212. unset quartz_font_CFLAGS
  21213. unset quartz_font_NONPKGCONFIG_CFLAGS
  21214. unset quartz_font_LIBS
  21215. unset quartz_font_NONPKGCONFIG_LIBS
  21216. unset quartz_font_NONPKGCONFIG_EXTRA_LIBS
  21217. fi
  21218. if test "x$use_quartz_font" = xyes; then
  21219. CAIRO_HAS_QUARTZ_FONT_TRUE=
  21220. CAIRO_HAS_QUARTZ_FONT_FALSE='#'
  21221. else
  21222. CAIRO_HAS_QUARTZ_FONT_TRUE='#'
  21223. CAIRO_HAS_QUARTZ_FONT_FALSE=
  21224. fi
  21225. cr_make_tmp='CAIRO_HAS_QUARTZ_FONT=0'
  21226. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21227. ""$cr_make_tmp"
  21228. cr_make_tmp=''
  21229. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21230. ""$cr_make_tmp"
  21231. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21232. ""$cr_make_tmp"
  21233. cr_make_tmp=''
  21234. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21235. ""$cr_make_tmp"
  21236. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21237. ""$cr_make_tmp"
  21238. cr_make_tmp='supported_cairo_headers += $(cairo_quartz_font_headers)'
  21239. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21240. ""$cr_make_tmp"
  21241. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21242. ""$cr_make_tmp"
  21243. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)'
  21244. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21245. ""$cr_make_tmp"
  21246. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21247. ""$cr_make_tmp"
  21248. cr_make_tmp='all_cairo_headers += $(cairo_quartz_font_headers)
  21249. all_cairo_private += $(cairo_quartz_font_private)
  21250. all_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
  21251. all_cairo_sources += $(cairo_quartz_font_sources)'
  21252. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21253. ""$cr_make_tmp"
  21254. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21255. ""$cr_make_tmp"
  21256. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
  21257. all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
  21258. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
  21259. all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
  21260. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21261. ""$cr_make_tmp"
  21262. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21263. ""$cr_make_tmp"
  21264. cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_font_headers)
  21265. enabled_cairo_private += $(cairo_quartz_font_private)
  21266. enabled_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
  21267. enabled_cairo_sources += $(cairo_quartz_font_sources)'
  21268. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21269. "'if CAIRO_HAS_QUARTZ_FONT'
  21270. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21271. ""$cr_make_tmp"
  21272. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21273. "'endif'
  21274. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21275. "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
  21276. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21277. ""$cr_make_tmp"
  21278. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21279. "'endif'
  21280. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
  21281. enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
  21282. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
  21283. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
  21284. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21285. "'if CAIRO_HAS_QUARTZ_FONT'
  21286. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21287. ""$cr_make_tmp"
  21288. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21289. "'endif'
  21290. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21291. "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
  21292. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21293. ""$cr_make_tmp"
  21294. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21295. "'endif'
  21296. if test "x$use_quartz_font" = xyes; then :
  21297. :
  21298. ac_config_files="$ac_config_files src/cairo-quartz-font.pc:src/cairo-features.pc.in"
  21299. fi
  21300. if test "x$use_quartz_font" = xyes; then :
  21301. :
  21302. ac_config_files="$ac_config_files cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  21303. fi
  21304. cr_make_tmp='all_cairo_pkgconf += cairo-quartz-font.pc'
  21305. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21306. ""$cr_make_tmp"
  21307. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21308. ""$cr_make_tmp"
  21309. cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-font.pc'
  21310. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21311. "'if CAIRO_HAS_QUARTZ_FONT'
  21312. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21313. ""$cr_make_tmp"
  21314. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21315. "'endif'
  21316. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21317. "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
  21318. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21319. ""$cr_make_tmp"
  21320. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21321. "'endif'
  21322. if test "x$use_quartz_font" = xyes; then :
  21323. :
  21324. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
  21325. fi
  21326. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
  21327. if test "x$use_quartz_font" != xyes; then :
  21328. :
  21329. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
  21330. fi
  21331. cr_make_tmp=' @echo "#define CAIRO_HAS_QUARTZ_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
  21332. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21333. "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
  21334. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21335. ""$cr_make_tmp"
  21336. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21337. "'endif'
  21338. if test "x$use_quartz_font" = xyes; then :
  21339. :
  21340. CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'quartz_font'
  21341. fi
  21342. # Check whether --enable-quartz-image was given.
  21343. if test "${enable_quartz_image+set}" = set; then :
  21344. enableval=$enable_quartz_image; enable_quartz_image=$enableval
  21345. else
  21346. enable_quartz_image=no
  21347. fi
  21348. case $enable_quartz_image in #(
  21349. no) :
  21350. use_quartz_image="no (disabled, use --enable-quartz-image to enable)"
  21351. ;; #(
  21352. yes|auto) :
  21353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz Image surface backend feature" >&5
  21354. $as_echo_n "checking for cairo's Quartz Image surface backend feature... " >&6; }
  21355. echo
  21356. use_quartz_image=yes
  21357. quartz_image_BASE="cairo"
  21358. quartz_image_REQUIRES="$ac_env_quartz_image_REQUIRES_value"
  21359. quartz_image_CFLAGS="$ac_env_quartz_image_CFLAGS_value"
  21360. quartz_image_NONPKGCONFIG_CFLAGS="$ac_env_quartz_image_NONPKGCONFIG_CFLAGS_value"
  21361. quartz_image_LIBS="$ac_env_quartz_image_LIBS_value"
  21362. quartz_image_NONPKGCONFIG_LIBS="$ac_env_quartz_image_NONPKGCONFIG_LIBS_value"
  21363. quartz_image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_image_NONPKGCONFIG_EXTRA_LIBS_value"
  21364. use_quartz_image=$use_quartz
  21365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz Image surface backend feature could be enabled" >&5
  21366. $as_echo_n "checking whether cairo's Quartz Image surface backend feature could be enabled... " >&6; }
  21367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_image" >&5
  21368. $as_echo "$use_quartz_image" >&6; }
  21369. if test "x$enable_quartz_image" = "xyes" -a "x$use_quartz_image" != xyes; then :
  21370. as_fn_error $? " Quartz Image surface backend feature could not be enabled" "$LINENO" 5
  21371. fi ;; #(
  21372. *) :
  21373. as_fn_error $? "invalid argument passed to --enable-quartz-image: \`$use_quartz_image', should be one of [no/auto/yes]" "$LINENO" 5
  21374. ;;
  21375. esac
  21376. if test "x$use_quartz_image" = "xyes"; then :
  21377. CAIRO_REQUIRES="$quartz_image_REQUIRES"" ${CAIRO_REQUIRES}"
  21378. CAIRO_CFLAGS="$quartz_image_CFLAGS"" ${CAIRO_CFLAGS}"
  21379. CAIRO_NONPKGCONFIG_CFLAGS="$quartz_image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21380. CAIRO_LIBS="$quartz_image_LIBS"" ${CAIRO_LIBS}"
  21381. CAIRO_NONPKGCONFIG_LIBS="$quartz_image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21382. else
  21383. unset quartz_image_BASE
  21384. unset quartz_image_REQUIRES
  21385. unset quartz_image_CFLAGS
  21386. unset quartz_image_NONPKGCONFIG_CFLAGS
  21387. unset quartz_image_LIBS
  21388. unset quartz_image_NONPKGCONFIG_LIBS
  21389. unset quartz_image_NONPKGCONFIG_EXTRA_LIBS
  21390. fi
  21391. if test "x$use_quartz_image" = xyes; then
  21392. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE=
  21393. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE='#'
  21394. else
  21395. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE='#'
  21396. CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE=
  21397. fi
  21398. cr_make_tmp='CAIRO_HAS_QUARTZ_IMAGE_SURFACE=0'
  21399. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21400. ""$cr_make_tmp"
  21401. cr_make_tmp=''
  21402. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21403. ""$cr_make_tmp"
  21404. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21405. ""$cr_make_tmp"
  21406. cr_make_tmp=''
  21407. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21408. ""$cr_make_tmp"
  21409. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21410. ""$cr_make_tmp"
  21411. cr_make_tmp='unsupported_cairo_headers += $(cairo_quartz_image_headers)'
  21412. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21413. ""$cr_make_tmp"
  21414. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21415. ""$cr_make_tmp"
  21416. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)'
  21417. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21418. ""$cr_make_tmp"
  21419. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21420. ""$cr_make_tmp"
  21421. cr_make_tmp='all_cairo_headers += $(cairo_quartz_image_headers)
  21422. all_cairo_private += $(cairo_quartz_image_private)
  21423. all_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
  21424. all_cairo_sources += $(cairo_quartz_image_sources)'
  21425. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21426. ""$cr_make_tmp"
  21427. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21428. ""$cr_make_tmp"
  21429. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
  21430. all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
  21431. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
  21432. all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
  21433. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21434. ""$cr_make_tmp"
  21435. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21436. ""$cr_make_tmp"
  21437. cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_image_headers)
  21438. enabled_cairo_private += $(cairo_quartz_image_private)
  21439. enabled_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
  21440. enabled_cairo_sources += $(cairo_quartz_image_sources)'
  21441. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21442. "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
  21443. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21444. ""$cr_make_tmp"
  21445. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21446. "'endif'
  21447. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21448. "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
  21449. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21450. ""$cr_make_tmp"
  21451. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21452. "'endif'
  21453. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
  21454. enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
  21455. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
  21456. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
  21457. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21458. "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
  21459. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21460. ""$cr_make_tmp"
  21461. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21462. "'endif'
  21463. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21464. "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
  21465. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21466. ""$cr_make_tmp"
  21467. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21468. "'endif'
  21469. if test "x$use_quartz_image" = xyes; then :
  21470. :
  21471. ac_config_files="$ac_config_files src/cairo-quartz-image.pc:src/cairo-features.pc.in"
  21472. fi
  21473. if test "x$use_quartz_image" = xyes; then :
  21474. :
  21475. ac_config_files="$ac_config_files cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  21476. fi
  21477. cr_make_tmp='all_cairo_pkgconf += cairo-quartz-image.pc'
  21478. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21479. ""$cr_make_tmp"
  21480. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21481. ""$cr_make_tmp"
  21482. cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-image.pc'
  21483. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21484. "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
  21485. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21486. ""$cr_make_tmp"
  21487. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21488. "'endif'
  21489. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21490. "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
  21491. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21492. ""$cr_make_tmp"
  21493. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21494. "'endif'
  21495. if test "x$use_quartz_image" = xyes; then :
  21496. :
  21497. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
  21498. fi
  21499. if test "x$use_quartz_image" != xyes; then :
  21500. :
  21501. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
  21502. fi
  21503. cr_make_tmp=' @echo "#define CAIRO_HAS_QUARTZ_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  21504. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21505. "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
  21506. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21507. ""$cr_make_tmp"
  21508. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21509. "'endif'
  21510. if test "x$use_quartz_image" = xyes; then :
  21511. :
  21512. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  21513. "'--- The Quartz Image surface backend feature is still under active
  21514. --- development and is included in this release only as a preview. It does
  21515. --- NOT fully work yet and incompatible changes may yet be made to Quartz
  21516. --- Image surface backend specific API.'
  21517. fi
  21518. # Check whether --enable-win32 was given.
  21519. if test "${enable_win32+set}" = set; then :
  21520. enableval=$enable_win32; enable_win32=$enableval
  21521. else
  21522. enable_win32=auto
  21523. fi
  21524. case $enable_win32 in #(
  21525. no) :
  21526. use_win32="no (disabled, use --enable-win32 to enable)"
  21527. ;; #(
  21528. yes|auto) :
  21529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows surface backend feature" >&5
  21530. $as_echo_n "checking for cairo's Microsoft Windows surface backend feature... " >&6; }
  21531. echo
  21532. use_win32=yes
  21533. win32_BASE="cairo"
  21534. win32_REQUIRES="$ac_env_win32_REQUIRES_value"
  21535. win32_CFLAGS="$ac_env_win32_CFLAGS_value"
  21536. win32_NONPKGCONFIG_CFLAGS="$ac_env_win32_NONPKGCONFIG_CFLAGS_value"
  21537. win32_LIBS="$ac_env_win32_LIBS_value"
  21538. win32_NONPKGCONFIG_LIBS="$ac_env_win32_NONPKGCONFIG_LIBS_value"
  21539. win32_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_NONPKGCONFIG_EXTRA_LIBS_value"
  21540. if test "x$have_windows" != xyes; then
  21541. use_win32="no (requires a Win32 platform)"
  21542. fi
  21543. win32_LIBS="-lgdi32 -lmsimg32"
  21544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows surface backend feature could be enabled" >&5
  21545. $as_echo_n "checking whether cairo's Microsoft Windows surface backend feature could be enabled... " >&6; }
  21546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32" >&5
  21547. $as_echo "$use_win32" >&6; }
  21548. if test "x$enable_win32" = "xyes" -a "x$use_win32" != xyes; then :
  21549. as_fn_error $? " Microsoft Windows surface backend feature could not be enabled" "$LINENO" 5
  21550. fi ;; #(
  21551. *) :
  21552. as_fn_error $? "invalid argument passed to --enable-win32: \`$use_win32', should be one of [no/auto/yes]" "$LINENO" 5
  21553. ;;
  21554. esac
  21555. if test "x$use_win32" = "xyes"; then :
  21556. CAIRO_REQUIRES="$win32_REQUIRES"" ${CAIRO_REQUIRES}"
  21557. CAIRO_CFLAGS="$win32_CFLAGS"" ${CAIRO_CFLAGS}"
  21558. CAIRO_NONPKGCONFIG_CFLAGS="$win32_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21559. CAIRO_LIBS="$win32_LIBS"" ${CAIRO_LIBS}"
  21560. CAIRO_NONPKGCONFIG_LIBS="$win32_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21561. else
  21562. unset win32_BASE
  21563. unset win32_REQUIRES
  21564. unset win32_CFLAGS
  21565. unset win32_NONPKGCONFIG_CFLAGS
  21566. unset win32_LIBS
  21567. unset win32_NONPKGCONFIG_LIBS
  21568. unset win32_NONPKGCONFIG_EXTRA_LIBS
  21569. fi
  21570. if test "x$use_win32" = xyes; then
  21571. CAIRO_HAS_WIN32_SURFACE_TRUE=
  21572. CAIRO_HAS_WIN32_SURFACE_FALSE='#'
  21573. else
  21574. CAIRO_HAS_WIN32_SURFACE_TRUE='#'
  21575. CAIRO_HAS_WIN32_SURFACE_FALSE=
  21576. fi
  21577. cr_make_tmp='CAIRO_HAS_WIN32_SURFACE=1'
  21578. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21579. ""$cr_make_tmp"
  21580. cr_make_tmp=''
  21581. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21582. ""$cr_make_tmp"
  21583. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21584. ""$cr_make_tmp"
  21585. cr_make_tmp=''
  21586. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21587. ""$cr_make_tmp"
  21588. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21589. ""$cr_make_tmp"
  21590. cr_make_tmp='supported_cairo_headers += $(cairo_win32_headers)'
  21591. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21592. ""$cr_make_tmp"
  21593. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21594. ""$cr_make_tmp"
  21595. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)'
  21596. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21597. ""$cr_make_tmp"
  21598. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21599. ""$cr_make_tmp"
  21600. cr_make_tmp='all_cairo_headers += $(cairo_win32_headers)
  21601. all_cairo_private += $(cairo_win32_private)
  21602. all_cairo_cxx_sources += $(cairo_win32_cxx_sources)
  21603. all_cairo_sources += $(cairo_win32_sources)'
  21604. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21605. ""$cr_make_tmp"
  21606. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21607. ""$cr_make_tmp"
  21608. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
  21609. all_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
  21610. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
  21611. all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
  21612. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21613. ""$cr_make_tmp"
  21614. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21615. ""$cr_make_tmp"
  21616. cr_make_tmp='enabled_cairo_headers += $(cairo_win32_headers)
  21617. enabled_cairo_private += $(cairo_win32_private)
  21618. enabled_cairo_cxx_sources += $(cairo_win32_cxx_sources)
  21619. enabled_cairo_sources += $(cairo_win32_sources)'
  21620. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21621. "'if CAIRO_HAS_WIN32_SURFACE'
  21622. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21623. ""$cr_make_tmp"
  21624. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21625. "'endif'
  21626. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21627. "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
  21628. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21629. ""$cr_make_tmp"
  21630. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21631. "'endif'
  21632. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
  21633. enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
  21634. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
  21635. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
  21636. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21637. "'if CAIRO_HAS_WIN32_SURFACE'
  21638. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21639. ""$cr_make_tmp"
  21640. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21641. "'endif'
  21642. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21643. "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
  21644. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21645. ""$cr_make_tmp"
  21646. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21647. "'endif'
  21648. if test "x$use_win32" = xyes; then :
  21649. :
  21650. ac_config_files="$ac_config_files src/cairo-win32.pc:src/cairo-features.pc.in"
  21651. fi
  21652. if test "x$use_win32" = xyes; then :
  21653. :
  21654. ac_config_files="$ac_config_files cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  21655. fi
  21656. cr_make_tmp='all_cairo_pkgconf += cairo-win32.pc'
  21657. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21658. ""$cr_make_tmp"
  21659. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21660. ""$cr_make_tmp"
  21661. cr_make_tmp='enabled_cairo_pkgconf += cairo-win32.pc'
  21662. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21663. "'if CAIRO_HAS_WIN32_SURFACE'
  21664. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21665. ""$cr_make_tmp"
  21666. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21667. "'endif'
  21668. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21669. "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
  21670. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21671. ""$cr_make_tmp"
  21672. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21673. "'endif'
  21674. if test "x$use_win32" = xyes; then :
  21675. :
  21676. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
  21677. fi
  21678. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
  21679. if test "x$use_win32" != xyes; then :
  21680. :
  21681. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
  21682. fi
  21683. cr_make_tmp=' @echo "#define CAIRO_HAS_WIN32_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  21684. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21685. "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
  21686. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21687. ""$cr_make_tmp"
  21688. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21689. "'endif'
  21690. if test "x$use_win32" = xyes; then :
  21691. :
  21692. CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'win32'
  21693. fi
  21694. # Check whether --enable-win32-font was given.
  21695. if test "${enable_win32_font+set}" = set; then :
  21696. enableval=$enable_win32_font; enable_win32_font=$enableval
  21697. else
  21698. enable_win32_font=auto
  21699. fi
  21700. case $enable_win32_font in #(
  21701. no) :
  21702. use_win32_font="no (disabled, use --enable-win32-font to enable)"
  21703. ;; #(
  21704. yes|auto) :
  21705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows font backend feature" >&5
  21706. $as_echo_n "checking for cairo's Microsoft Windows font backend feature... " >&6; }
  21707. echo
  21708. use_win32_font=yes
  21709. win32_font_BASE="cairo"
  21710. win32_font_REQUIRES="$ac_env_win32_font_REQUIRES_value"
  21711. win32_font_CFLAGS="$ac_env_win32_font_CFLAGS_value"
  21712. win32_font_NONPKGCONFIG_CFLAGS="$ac_env_win32_font_NONPKGCONFIG_CFLAGS_value"
  21713. win32_font_LIBS="$ac_env_win32_font_LIBS_value"
  21714. win32_font_NONPKGCONFIG_LIBS="$ac_env_win32_font_NONPKGCONFIG_LIBS_value"
  21715. win32_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_font_NONPKGCONFIG_EXTRA_LIBS_value"
  21716. use_win32_font=$use_win32
  21717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows font backend feature could be enabled" >&5
  21718. $as_echo_n "checking whether cairo's Microsoft Windows font backend feature could be enabled... " >&6; }
  21719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32_font" >&5
  21720. $as_echo "$use_win32_font" >&6; }
  21721. if test "x$enable_win32_font" = "xyes" -a "x$use_win32_font" != xyes; then :
  21722. as_fn_error $? " Microsoft Windows font backend feature could not be enabled" "$LINENO" 5
  21723. fi ;; #(
  21724. *) :
  21725. as_fn_error $? "invalid argument passed to --enable-win32-font: \`$use_win32_font', should be one of [no/auto/yes]" "$LINENO" 5
  21726. ;;
  21727. esac
  21728. if test "x$use_win32_font" = "xyes"; then :
  21729. CAIRO_REQUIRES="$win32_font_REQUIRES"" ${CAIRO_REQUIRES}"
  21730. CAIRO_CFLAGS="$win32_font_CFLAGS"" ${CAIRO_CFLAGS}"
  21731. CAIRO_NONPKGCONFIG_CFLAGS="$win32_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21732. CAIRO_LIBS="$win32_font_LIBS"" ${CAIRO_LIBS}"
  21733. CAIRO_NONPKGCONFIG_LIBS="$win32_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21734. else
  21735. unset win32_font_BASE
  21736. unset win32_font_REQUIRES
  21737. unset win32_font_CFLAGS
  21738. unset win32_font_NONPKGCONFIG_CFLAGS
  21739. unset win32_font_LIBS
  21740. unset win32_font_NONPKGCONFIG_LIBS
  21741. unset win32_font_NONPKGCONFIG_EXTRA_LIBS
  21742. fi
  21743. if test "x$use_win32_font" = xyes; then
  21744. CAIRO_HAS_WIN32_FONT_TRUE=
  21745. CAIRO_HAS_WIN32_FONT_FALSE='#'
  21746. else
  21747. CAIRO_HAS_WIN32_FONT_TRUE='#'
  21748. CAIRO_HAS_WIN32_FONT_FALSE=
  21749. fi
  21750. cr_make_tmp='CAIRO_HAS_WIN32_FONT=1'
  21751. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21752. ""$cr_make_tmp"
  21753. cr_make_tmp=''
  21754. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21755. ""$cr_make_tmp"
  21756. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21757. ""$cr_make_tmp"
  21758. cr_make_tmp=''
  21759. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21760. ""$cr_make_tmp"
  21761. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21762. ""$cr_make_tmp"
  21763. cr_make_tmp='supported_cairo_headers += $(cairo_win32_font_headers)'
  21764. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21765. ""$cr_make_tmp"
  21766. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21767. ""$cr_make_tmp"
  21768. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)'
  21769. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21770. ""$cr_make_tmp"
  21771. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21772. ""$cr_make_tmp"
  21773. cr_make_tmp='all_cairo_headers += $(cairo_win32_font_headers)
  21774. all_cairo_private += $(cairo_win32_font_private)
  21775. all_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
  21776. all_cairo_sources += $(cairo_win32_font_sources)'
  21777. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21778. ""$cr_make_tmp"
  21779. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21780. ""$cr_make_tmp"
  21781. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
  21782. all_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
  21783. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
  21784. all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
  21785. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21786. ""$cr_make_tmp"
  21787. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21788. ""$cr_make_tmp"
  21789. cr_make_tmp='enabled_cairo_headers += $(cairo_win32_font_headers)
  21790. enabled_cairo_private += $(cairo_win32_font_private)
  21791. enabled_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
  21792. enabled_cairo_sources += $(cairo_win32_font_sources)'
  21793. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21794. "'if CAIRO_HAS_WIN32_FONT'
  21795. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21796. ""$cr_make_tmp"
  21797. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21798. "'endif'
  21799. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21800. "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
  21801. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21802. ""$cr_make_tmp"
  21803. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21804. "'endif'
  21805. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
  21806. enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
  21807. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
  21808. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
  21809. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21810. "'if CAIRO_HAS_WIN32_FONT'
  21811. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21812. ""$cr_make_tmp"
  21813. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21814. "'endif'
  21815. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21816. "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
  21817. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21818. ""$cr_make_tmp"
  21819. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21820. "'endif'
  21821. if test "x$use_win32_font" = xyes; then :
  21822. :
  21823. ac_config_files="$ac_config_files src/cairo-win32-font.pc:src/cairo-features.pc.in"
  21824. fi
  21825. if test "x$use_win32_font" = xyes; then :
  21826. :
  21827. ac_config_files="$ac_config_files cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  21828. fi
  21829. cr_make_tmp='all_cairo_pkgconf += cairo-win32-font.pc'
  21830. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21831. ""$cr_make_tmp"
  21832. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21833. ""$cr_make_tmp"
  21834. cr_make_tmp='enabled_cairo_pkgconf += cairo-win32-font.pc'
  21835. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21836. "'if CAIRO_HAS_WIN32_FONT'
  21837. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21838. ""$cr_make_tmp"
  21839. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21840. "'endif'
  21841. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21842. "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
  21843. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21844. ""$cr_make_tmp"
  21845. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21846. "'endif'
  21847. if test "x$use_win32_font" = xyes; then :
  21848. :
  21849. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
  21850. fi
  21851. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_FONT'
  21852. if test "x$use_win32_font" != xyes; then :
  21853. :
  21854. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
  21855. fi
  21856. cr_make_tmp=' @echo "#define CAIRO_HAS_WIN32_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
  21857. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21858. "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
  21859. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21860. ""$cr_make_tmp"
  21861. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  21862. "'endif'
  21863. if test "x$use_win32_font" = xyes; then :
  21864. :
  21865. CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'win32_font'
  21866. fi
  21867. test_win32_printing=no
  21868. if test "x$use_win32" = "xyes"; then
  21869. # Extract the first word of "gs", so it can be a program name with args.
  21870. set dummy gs; ac_word=$2
  21871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21872. $as_echo_n "checking for $ac_word... " >&6; }
  21873. if ${ac_cv_prog_GS+:} false; then :
  21874. $as_echo_n "(cached) " >&6
  21875. else
  21876. if test -n "$GS"; then
  21877. ac_cv_prog_GS="$GS" # Let the user override the test.
  21878. else
  21879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21880. for as_dir in $PATH
  21881. do
  21882. IFS=$as_save_IFS
  21883. test -z "$as_dir" && as_dir=.
  21884. for ac_exec_ext in '' $ac_executable_extensions; do
  21885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21886. ac_cv_prog_GS="gs"
  21887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21888. break 2
  21889. fi
  21890. done
  21891. done
  21892. IFS=$as_save_IFS
  21893. fi
  21894. fi
  21895. GS=$ac_cv_prog_GS
  21896. if test -n "$GS"; then
  21897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
  21898. $as_echo "$GS" >&6; }
  21899. else
  21900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21901. $as_echo "no" >&6; }
  21902. fi
  21903. if test "$GS"; then
  21904. $as_echo "#define CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE 1" >>confdefs.h
  21905. test_win32_printing="yes"
  21906. else
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&5
  21908. $as_echo "$as_me: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&2;}
  21909. test_win32_printing="no (requires ghostscript)"
  21910. fi
  21911. fi
  21912. if test "x$test_win32_printing" = "xyes"; then
  21913. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE=
  21914. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE='#'
  21915. else
  21916. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE='#'
  21917. CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE=
  21918. fi
  21919. # Check whether --enable-os2 was given.
  21920. if test "${enable_os2+set}" = set; then :
  21921. enableval=$enable_os2; enable_os2=$enableval
  21922. else
  21923. enable_os2=no
  21924. fi
  21925. case $enable_os2 in #(
  21926. no) :
  21927. use_os2="no (disabled, use --enable-os2 to enable)"
  21928. ;; #(
  21929. yes|auto) :
  21930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OS/2 surface backend feature" >&5
  21931. $as_echo_n "checking for cairo's OS/2 surface backend feature... " >&6; }
  21932. echo
  21933. use_os2=yes
  21934. os2_BASE="cairo"
  21935. os2_REQUIRES="$ac_env_os2_REQUIRES_value"
  21936. os2_CFLAGS="$ac_env_os2_CFLAGS_value"
  21937. os2_NONPKGCONFIG_CFLAGS="$ac_env_os2_NONPKGCONFIG_CFLAGS_value"
  21938. os2_LIBS="$ac_env_os2_LIBS_value"
  21939. os2_NONPKGCONFIG_LIBS="$ac_env_os2_NONPKGCONFIG_LIBS_value"
  21940. os2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_os2_NONPKGCONFIG_EXTRA_LIBS_value"
  21941. case "$host" in
  21942. *-*-os2*)
  21943. :
  21944. ;;
  21945. *)
  21946. use_os2="no (requires an OS/2 platform)"
  21947. ;;
  21948. esac
  21949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OS/2 surface backend feature could be enabled" >&5
  21950. $as_echo_n "checking whether cairo's OS/2 surface backend feature could be enabled... " >&6; }
  21951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_os2" >&5
  21952. $as_echo "$use_os2" >&6; }
  21953. if test "x$enable_os2" = "xyes" -a "x$use_os2" != xyes; then :
  21954. as_fn_error $? " OS/2 surface backend feature could not be enabled" "$LINENO" 5
  21955. fi ;; #(
  21956. *) :
  21957. as_fn_error $? "invalid argument passed to --enable-os2: \`$use_os2', should be one of [no/auto/yes]" "$LINENO" 5
  21958. ;;
  21959. esac
  21960. if test "x$use_os2" = "xyes"; then :
  21961. CAIRO_REQUIRES="$os2_REQUIRES"" ${CAIRO_REQUIRES}"
  21962. CAIRO_CFLAGS="$os2_CFLAGS"" ${CAIRO_CFLAGS}"
  21963. CAIRO_NONPKGCONFIG_CFLAGS="$os2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  21964. CAIRO_LIBS="$os2_LIBS"" ${CAIRO_LIBS}"
  21965. CAIRO_NONPKGCONFIG_LIBS="$os2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  21966. else
  21967. unset os2_BASE
  21968. unset os2_REQUIRES
  21969. unset os2_CFLAGS
  21970. unset os2_NONPKGCONFIG_CFLAGS
  21971. unset os2_LIBS
  21972. unset os2_NONPKGCONFIG_LIBS
  21973. unset os2_NONPKGCONFIG_EXTRA_LIBS
  21974. fi
  21975. if test "x$use_os2" = xyes; then
  21976. CAIRO_HAS_OS2_SURFACE_TRUE=
  21977. CAIRO_HAS_OS2_SURFACE_FALSE='#'
  21978. else
  21979. CAIRO_HAS_OS2_SURFACE_TRUE='#'
  21980. CAIRO_HAS_OS2_SURFACE_FALSE=
  21981. fi
  21982. cr_make_tmp='CAIRO_HAS_OS2_SURFACE=0'
  21983. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  21984. ""$cr_make_tmp"
  21985. cr_make_tmp=''
  21986. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21987. ""$cr_make_tmp"
  21988. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21989. ""$cr_make_tmp"
  21990. cr_make_tmp=''
  21991. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  21992. ""$cr_make_tmp"
  21993. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  21994. ""$cr_make_tmp"
  21995. cr_make_tmp='unsupported_cairo_headers += $(cairo_os2_headers)'
  21996. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  21997. ""$cr_make_tmp"
  21998. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  21999. ""$cr_make_tmp"
  22000. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)'
  22001. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22002. ""$cr_make_tmp"
  22003. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22004. ""$cr_make_tmp"
  22005. cr_make_tmp='all_cairo_headers += $(cairo_os2_headers)
  22006. all_cairo_private += $(cairo_os2_private)
  22007. all_cairo_cxx_sources += $(cairo_os2_cxx_sources)
  22008. all_cairo_sources += $(cairo_os2_sources)'
  22009. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22010. ""$cr_make_tmp"
  22011. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22012. ""$cr_make_tmp"
  22013. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
  22014. all_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
  22015. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
  22016. all_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
  22017. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22018. ""$cr_make_tmp"
  22019. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22020. ""$cr_make_tmp"
  22021. cr_make_tmp='enabled_cairo_headers += $(cairo_os2_headers)
  22022. enabled_cairo_private += $(cairo_os2_private)
  22023. enabled_cairo_cxx_sources += $(cairo_os2_cxx_sources)
  22024. enabled_cairo_sources += $(cairo_os2_sources)'
  22025. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22026. "'if CAIRO_HAS_OS2_SURFACE'
  22027. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22028. ""$cr_make_tmp"
  22029. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22030. "'endif'
  22031. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22032. "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
  22033. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22034. ""$cr_make_tmp"
  22035. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22036. "'endif'
  22037. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
  22038. enabled_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
  22039. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
  22040. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
  22041. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22042. "'if CAIRO_HAS_OS2_SURFACE'
  22043. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22044. ""$cr_make_tmp"
  22045. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22046. "'endif'
  22047. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22048. "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
  22049. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22050. ""$cr_make_tmp"
  22051. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22052. "'endif'
  22053. if test "x$use_os2" = xyes; then :
  22054. :
  22055. ac_config_files="$ac_config_files src/cairo-os2.pc:src/cairo-features.pc.in"
  22056. fi
  22057. if test "x$use_os2" = xyes; then :
  22058. :
  22059. ac_config_files="$ac_config_files cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  22060. fi
  22061. cr_make_tmp='all_cairo_pkgconf += cairo-os2.pc'
  22062. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22063. ""$cr_make_tmp"
  22064. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22065. ""$cr_make_tmp"
  22066. cr_make_tmp='enabled_cairo_pkgconf += cairo-os2.pc'
  22067. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22068. "'if CAIRO_HAS_OS2_SURFACE'
  22069. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22070. ""$cr_make_tmp"
  22071. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22072. "'endif'
  22073. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22074. "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
  22075. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22076. ""$cr_make_tmp"
  22077. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22078. "'endif'
  22079. if test "x$use_os2" = xyes; then :
  22080. :
  22081. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OS2_SURFACE'
  22082. fi
  22083. if test "x$use_os2" != xyes; then :
  22084. :
  22085. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_OS2_SURFACE'
  22086. fi
  22087. cr_make_tmp=' @echo "#define CAIRO_HAS_OS2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  22088. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22089. "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
  22090. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22091. ""$cr_make_tmp"
  22092. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22093. "'endif'
  22094. if test "x$use_os2" = xyes; then :
  22095. :
  22096. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  22097. "'--- The OS/2 surface backend feature is still under active development and is
  22098. --- included in this release only as a preview. It does NOT fully work yet
  22099. --- and incompatible changes may yet be made to OS/2 surface backend specific
  22100. --- API.'
  22101. fi
  22102. # Check whether --enable-beos was given.
  22103. if test "${enable_beos+set}" = set; then :
  22104. enableval=$enable_beos; enable_beos=$enableval
  22105. else
  22106. enable_beos=no
  22107. fi
  22108. case $enable_beos in #(
  22109. no) :
  22110. use_beos="no (disabled, use --enable-beos to enable)"
  22111. ;; #(
  22112. yes|auto) :
  22113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's BeOS/Zeta surface backend feature" >&5
  22114. $as_echo_n "checking for cairo's BeOS/Zeta surface backend feature... " >&6; }
  22115. echo
  22116. use_beos=yes
  22117. beos_BASE="cairo"
  22118. beos_REQUIRES="$ac_env_beos_REQUIRES_value"
  22119. beos_CFLAGS="$ac_env_beos_CFLAGS_value"
  22120. beos_NONPKGCONFIG_CFLAGS="$ac_env_beos_NONPKGCONFIG_CFLAGS_value"
  22121. beos_LIBS="$ac_env_beos_LIBS_value"
  22122. beos_NONPKGCONFIG_LIBS="$ac_env_beos_NONPKGCONFIG_LIBS_value"
  22123. beos_NONPKGCONFIG_EXTRA_LIBS="$ac_env_beos_NONPKGCONFIG_EXTRA_LIBS_value"
  22124. case "$host" in
  22125. *-*-beos)
  22126. beos_LIBS=""
  22127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbe" >&5
  22128. $as_echo_n "checking for main in -lbe... " >&6; }
  22129. if ${ac_cv_lib_be_main+:} false; then :
  22130. $as_echo_n "(cached) " >&6
  22131. else
  22132. ac_check_lib_save_LIBS=$LIBS
  22133. LIBS="-lbe $LIBS"
  22134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22135. /* end confdefs.h. */
  22136. int
  22137. main ()
  22138. {
  22139. return main ();
  22140. ;
  22141. return 0;
  22142. }
  22143. _ACEOF
  22144. if ac_fn_c_try_link "$LINENO"; then :
  22145. ac_cv_lib_be_main=yes
  22146. else
  22147. ac_cv_lib_be_main=no
  22148. fi
  22149. rm -f core conftest.err conftest.$ac_objext \
  22150. conftest$ac_exeext conftest.$ac_ext
  22151. LIBS=$ac_check_lib_save_LIBS
  22152. fi
  22153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_main" >&5
  22154. $as_echo "$ac_cv_lib_be_main" >&6; }
  22155. if test "x$ac_cv_lib_be_main" = xyes; then :
  22156. beos_LIBS="$beos_LIBS -lbe"
  22157. fi
  22158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzeta" >&5
  22159. $as_echo_n "checking for main in -lzeta... " >&6; }
  22160. if ${ac_cv_lib_zeta_main+:} false; then :
  22161. $as_echo_n "(cached) " >&6
  22162. else
  22163. ac_check_lib_save_LIBS=$LIBS
  22164. LIBS="-lzeta $LIBS"
  22165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22166. /* end confdefs.h. */
  22167. int
  22168. main ()
  22169. {
  22170. return main ();
  22171. ;
  22172. return 0;
  22173. }
  22174. _ACEOF
  22175. if ac_fn_c_try_link "$LINENO"; then :
  22176. ac_cv_lib_zeta_main=yes
  22177. else
  22178. ac_cv_lib_zeta_main=no
  22179. fi
  22180. rm -f core conftest.err conftest.$ac_objext \
  22181. conftest$ac_exeext conftest.$ac_ext
  22182. LIBS=$ac_check_lib_save_LIBS
  22183. fi
  22184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zeta_main" >&5
  22185. $as_echo "$ac_cv_lib_zeta_main" >&6; }
  22186. if test "x$ac_cv_lib_zeta_main" = xyes; then :
  22187. beos_LIBS="$beos_LIBS -lzeta"
  22188. fi
  22189. ;;
  22190. *)
  22191. use_beos="no (requires a BeOS platform)"
  22192. ;;
  22193. esac
  22194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's BeOS/Zeta surface backend feature could be enabled" >&5
  22195. $as_echo_n "checking whether cairo's BeOS/Zeta surface backend feature could be enabled... " >&6; }
  22196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_beos" >&5
  22197. $as_echo "$use_beos" >&6; }
  22198. if test "x$enable_beos" = "xyes" -a "x$use_beos" != xyes; then :
  22199. as_fn_error $? " BeOS/Zeta surface backend feature could not be enabled" "$LINENO" 5
  22200. fi ;; #(
  22201. *) :
  22202. as_fn_error $? "invalid argument passed to --enable-beos: \`$use_beos', should be one of [no/auto/yes]" "$LINENO" 5
  22203. ;;
  22204. esac
  22205. if test "x$use_beos" = "xyes"; then :
  22206. CAIRO_REQUIRES="$beos_REQUIRES"" ${CAIRO_REQUIRES}"
  22207. CAIRO_CFLAGS="$beos_CFLAGS"" ${CAIRO_CFLAGS}"
  22208. CAIRO_NONPKGCONFIG_CFLAGS="$beos_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  22209. CAIRO_LIBS="$beos_LIBS"" ${CAIRO_LIBS}"
  22210. CAIRO_NONPKGCONFIG_LIBS="$beos_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  22211. else
  22212. unset beos_BASE
  22213. unset beos_REQUIRES
  22214. unset beos_CFLAGS
  22215. unset beos_NONPKGCONFIG_CFLAGS
  22216. unset beos_LIBS
  22217. unset beos_NONPKGCONFIG_LIBS
  22218. unset beos_NONPKGCONFIG_EXTRA_LIBS
  22219. fi
  22220. if test "x$use_beos" = xyes; then
  22221. CAIRO_HAS_BEOS_SURFACE_TRUE=
  22222. CAIRO_HAS_BEOS_SURFACE_FALSE='#'
  22223. else
  22224. CAIRO_HAS_BEOS_SURFACE_TRUE='#'
  22225. CAIRO_HAS_BEOS_SURFACE_FALSE=
  22226. fi
  22227. cr_make_tmp='CAIRO_HAS_BEOS_SURFACE=0'
  22228. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  22229. ""$cr_make_tmp"
  22230. cr_make_tmp=''
  22231. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22232. ""$cr_make_tmp"
  22233. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22234. ""$cr_make_tmp"
  22235. cr_make_tmp=''
  22236. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22237. ""$cr_make_tmp"
  22238. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22239. ""$cr_make_tmp"
  22240. cr_make_tmp='unsupported_cairo_headers += $(cairo_beos_headers)'
  22241. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22242. ""$cr_make_tmp"
  22243. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22244. ""$cr_make_tmp"
  22245. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)'
  22246. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22247. ""$cr_make_tmp"
  22248. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22249. ""$cr_make_tmp"
  22250. cr_make_tmp='all_cairo_headers += $(cairo_beos_headers)
  22251. all_cairo_private += $(cairo_beos_private)
  22252. all_cairo_cxx_sources += $(cairo_beos_cxx_sources)
  22253. all_cairo_sources += $(cairo_beos_sources)'
  22254. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22255. ""$cr_make_tmp"
  22256. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22257. ""$cr_make_tmp"
  22258. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
  22259. all_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
  22260. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
  22261. all_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
  22262. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22263. ""$cr_make_tmp"
  22264. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22265. ""$cr_make_tmp"
  22266. cr_make_tmp='enabled_cairo_headers += $(cairo_beos_headers)
  22267. enabled_cairo_private += $(cairo_beos_private)
  22268. enabled_cairo_cxx_sources += $(cairo_beos_cxx_sources)
  22269. enabled_cairo_sources += $(cairo_beos_sources)'
  22270. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22271. "'if CAIRO_HAS_BEOS_SURFACE'
  22272. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22273. ""$cr_make_tmp"
  22274. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22275. "'endif'
  22276. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22277. "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
  22278. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22279. ""$cr_make_tmp"
  22280. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22281. "'endif'
  22282. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
  22283. enabled_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
  22284. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
  22285. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
  22286. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22287. "'if CAIRO_HAS_BEOS_SURFACE'
  22288. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22289. ""$cr_make_tmp"
  22290. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22291. "'endif'
  22292. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22293. "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
  22294. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22295. ""$cr_make_tmp"
  22296. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22297. "'endif'
  22298. if test "x$use_beos" = xyes; then :
  22299. :
  22300. ac_config_files="$ac_config_files src/cairo-beos.pc:src/cairo-features.pc.in"
  22301. fi
  22302. if test "x$use_beos" = xyes; then :
  22303. :
  22304. ac_config_files="$ac_config_files cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  22305. fi
  22306. cr_make_tmp='all_cairo_pkgconf += cairo-beos.pc'
  22307. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22308. ""$cr_make_tmp"
  22309. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22310. ""$cr_make_tmp"
  22311. cr_make_tmp='enabled_cairo_pkgconf += cairo-beos.pc'
  22312. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22313. "'if CAIRO_HAS_BEOS_SURFACE'
  22314. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22315. ""$cr_make_tmp"
  22316. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22317. "'endif'
  22318. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22319. "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
  22320. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22321. ""$cr_make_tmp"
  22322. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22323. "'endif'
  22324. if test "x$use_beos" = xyes; then :
  22325. :
  22326. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_BEOS_SURFACE'
  22327. fi
  22328. if test "x$use_beos" != xyes; then :
  22329. :
  22330. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_BEOS_SURFACE'
  22331. fi
  22332. cr_make_tmp=' @echo "#define CAIRO_HAS_BEOS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  22333. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22334. "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
  22335. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22336. ""$cr_make_tmp"
  22337. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22338. "'endif'
  22339. if test "x$use_beos" = xyes; then :
  22340. :
  22341. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  22342. "'--- The BeOS/Zeta surface backend feature is still under active development
  22343. --- and is included in this release only as a preview. It does NOT fully work
  22344. --- yet and incompatible changes may yet be made to BeOS/Zeta surface backend
  22345. --- specific API.'
  22346. fi
  22347. # Check whether --enable-drm was given.
  22348. if test "${enable_drm+set}" = set; then :
  22349. enableval=$enable_drm; enable_drm=$enableval
  22350. else
  22351. enable_drm=no
  22352. fi
  22353. case $enable_drm in #(
  22354. no) :
  22355. use_drm="no (disabled, use --enable-drm to enable)"
  22356. ;; #(
  22357. yes|auto) :
  22358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's DRM surface backend feature" >&5
  22359. $as_echo_n "checking for cairo's DRM surface backend feature... " >&6; }
  22360. echo
  22361. use_drm=yes
  22362. drm_BASE="cairo"
  22363. drm_REQUIRES="$ac_env_drm_REQUIRES_value"
  22364. drm_CFLAGS="$ac_env_drm_CFLAGS_value"
  22365. drm_NONPKGCONFIG_CFLAGS="$ac_env_drm_NONPKGCONFIG_CFLAGS_value"
  22366. drm_LIBS="$ac_env_drm_LIBS_value"
  22367. drm_NONPKGCONFIG_LIBS="$ac_env_drm_NONPKGCONFIG_LIBS_value"
  22368. drm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_drm_NONPKGCONFIG_EXTRA_LIBS_value"
  22369. drm_REQUIRES="libudev >= 136, libdrm >= 2.4"
  22370. pkg_failed=no
  22371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for drm" >&5
  22372. $as_echo_n "checking for drm... " >&6; }
  22373. if test -n "$drm_CFLAGS"; then
  22374. pkg_cv_drm_CFLAGS="$drm_CFLAGS"
  22375. elif test -n "$PKG_CONFIG"; then
  22376. if test -n "$PKG_CONFIG" && \
  22377. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
  22378. ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
  22379. ac_status=$?
  22380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22381. test $ac_status = 0; }; then
  22382. pkg_cv_drm_CFLAGS=`$PKG_CONFIG --cflags "$drm_REQUIRES" 2>/dev/null`
  22383. else
  22384. pkg_failed=yes
  22385. fi
  22386. else
  22387. pkg_failed=untried
  22388. fi
  22389. if test -n "$drm_LIBS"; then
  22390. pkg_cv_drm_LIBS="$drm_LIBS"
  22391. elif test -n "$PKG_CONFIG"; then
  22392. if test -n "$PKG_CONFIG" && \
  22393. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
  22394. ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
  22395. ac_status=$?
  22396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22397. test $ac_status = 0; }; then
  22398. pkg_cv_drm_LIBS=`$PKG_CONFIG --libs "$drm_REQUIRES" 2>/dev/null`
  22399. else
  22400. pkg_failed=yes
  22401. fi
  22402. else
  22403. pkg_failed=untried
  22404. fi
  22405. if test $pkg_failed = yes; then
  22406. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22407. _pkg_short_errors_supported=yes
  22408. else
  22409. _pkg_short_errors_supported=no
  22410. fi
  22411. if test $_pkg_short_errors_supported = yes; then
  22412. drm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$drm_REQUIRES" 2>&1`
  22413. else
  22414. drm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$drm_REQUIRES" 2>&1`
  22415. fi
  22416. # Put the nasty error message in config.log where it belongs
  22417. echo "$drm_PKG_ERRORS" >&5
  22418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22419. $as_echo "no" >&6; }
  22420. use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
  22421. elif test $pkg_failed = untried; then
  22422. use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
  22423. else
  22424. drm_CFLAGS=$pkg_cv_drm_CFLAGS
  22425. drm_LIBS=$pkg_cv_drm_LIBS
  22426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22427. $as_echo "yes" >&6; }
  22428. :
  22429. fi
  22430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's DRM surface backend feature could be enabled" >&5
  22431. $as_echo_n "checking whether cairo's DRM surface backend feature could be enabled... " >&6; }
  22432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_drm" >&5
  22433. $as_echo "$use_drm" >&6; }
  22434. if test "x$enable_drm" = "xyes" -a "x$use_drm" != xyes; then :
  22435. as_fn_error $? " DRM surface backend feature could not be enabled" "$LINENO" 5
  22436. fi ;; #(
  22437. *) :
  22438. as_fn_error $? "invalid argument passed to --enable-drm: \`$use_drm', should be one of [no/auto/yes]" "$LINENO" 5
  22439. ;;
  22440. esac
  22441. if test "x$use_drm" = "xyes"; then :
  22442. CAIRO_REQUIRES="$drm_REQUIRES"" ${CAIRO_REQUIRES}"
  22443. CAIRO_CFLAGS="$drm_CFLAGS"" ${CAIRO_CFLAGS}"
  22444. CAIRO_NONPKGCONFIG_CFLAGS="$drm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  22445. CAIRO_LIBS="$drm_LIBS"" ${CAIRO_LIBS}"
  22446. CAIRO_NONPKGCONFIG_LIBS="$drm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  22447. else
  22448. unset drm_BASE
  22449. unset drm_REQUIRES
  22450. unset drm_CFLAGS
  22451. unset drm_NONPKGCONFIG_CFLAGS
  22452. unset drm_LIBS
  22453. unset drm_NONPKGCONFIG_LIBS
  22454. unset drm_NONPKGCONFIG_EXTRA_LIBS
  22455. fi
  22456. if test "x$use_drm" = xyes; then
  22457. CAIRO_HAS_DRM_SURFACE_TRUE=
  22458. CAIRO_HAS_DRM_SURFACE_FALSE='#'
  22459. else
  22460. CAIRO_HAS_DRM_SURFACE_TRUE='#'
  22461. CAIRO_HAS_DRM_SURFACE_FALSE=
  22462. fi
  22463. cr_make_tmp='CAIRO_HAS_DRM_SURFACE=0'
  22464. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  22465. ""$cr_make_tmp"
  22466. cr_make_tmp=''
  22467. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22468. ""$cr_make_tmp"
  22469. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22470. ""$cr_make_tmp"
  22471. cr_make_tmp=''
  22472. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22473. ""$cr_make_tmp"
  22474. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22475. ""$cr_make_tmp"
  22476. cr_make_tmp='unsupported_cairo_headers += $(cairo_drm_headers)'
  22477. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22478. ""$cr_make_tmp"
  22479. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22480. ""$cr_make_tmp"
  22481. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)'
  22482. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22483. ""$cr_make_tmp"
  22484. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22485. ""$cr_make_tmp"
  22486. cr_make_tmp='all_cairo_headers += $(cairo_drm_headers)
  22487. all_cairo_private += $(cairo_drm_private)
  22488. all_cairo_cxx_sources += $(cairo_drm_cxx_sources)
  22489. all_cairo_sources += $(cairo_drm_sources)'
  22490. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22491. ""$cr_make_tmp"
  22492. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22493. ""$cr_make_tmp"
  22494. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
  22495. all_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
  22496. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
  22497. all_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
  22498. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22499. ""$cr_make_tmp"
  22500. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22501. ""$cr_make_tmp"
  22502. cr_make_tmp='enabled_cairo_headers += $(cairo_drm_headers)
  22503. enabled_cairo_private += $(cairo_drm_private)
  22504. enabled_cairo_cxx_sources += $(cairo_drm_cxx_sources)
  22505. enabled_cairo_sources += $(cairo_drm_sources)'
  22506. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22507. "'if CAIRO_HAS_DRM_SURFACE'
  22508. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22509. ""$cr_make_tmp"
  22510. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22511. "'endif'
  22512. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22513. "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
  22514. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22515. ""$cr_make_tmp"
  22516. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22517. "'endif'
  22518. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
  22519. enabled_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
  22520. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
  22521. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
  22522. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22523. "'if CAIRO_HAS_DRM_SURFACE'
  22524. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22525. ""$cr_make_tmp"
  22526. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22527. "'endif'
  22528. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22529. "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
  22530. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22531. ""$cr_make_tmp"
  22532. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22533. "'endif'
  22534. if test "x$use_drm" = xyes; then :
  22535. :
  22536. ac_config_files="$ac_config_files src/cairo-drm.pc:src/cairo-features.pc.in"
  22537. fi
  22538. if test "x$use_drm" = xyes; then :
  22539. :
  22540. ac_config_files="$ac_config_files cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  22541. fi
  22542. cr_make_tmp='all_cairo_pkgconf += cairo-drm.pc'
  22543. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22544. ""$cr_make_tmp"
  22545. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22546. ""$cr_make_tmp"
  22547. cr_make_tmp='enabled_cairo_pkgconf += cairo-drm.pc'
  22548. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22549. "'if CAIRO_HAS_DRM_SURFACE'
  22550. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22551. ""$cr_make_tmp"
  22552. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22553. "'endif'
  22554. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22555. "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
  22556. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22557. ""$cr_make_tmp"
  22558. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22559. "'endif'
  22560. if test "x$use_drm" = xyes; then :
  22561. :
  22562. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DRM_SURFACE'
  22563. fi
  22564. if test "x$use_drm" != xyes; then :
  22565. :
  22566. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_DRM_SURFACE'
  22567. fi
  22568. cr_make_tmp=' @echo "#define CAIRO_HAS_DRM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  22569. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22570. "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
  22571. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22572. ""$cr_make_tmp"
  22573. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22574. "'endif'
  22575. if test "x$use_drm" = xyes; then :
  22576. :
  22577. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  22578. "'--- The DRM surface backend feature is still under active development and is
  22579. --- included in this release only as a preview. It does NOT fully work yet
  22580. --- and incompatible changes may yet be made to DRM surface backend specific
  22581. --- API.'
  22582. fi
  22583. # Check whether --enable-gallium was given.
  22584. if test "${enable_gallium+set}" = set; then :
  22585. enableval=$enable_gallium; enable_gallium=$enableval
  22586. else
  22587. enable_gallium=no
  22588. fi
  22589. case $enable_gallium in #(
  22590. no) :
  22591. use_gallium="no (disabled, use --enable-gallium to enable)"
  22592. ;; #(
  22593. yes|auto) :
  22594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Gallium3D surface backend feature" >&5
  22595. $as_echo_n "checking for cairo's Gallium3D surface backend feature... " >&6; }
  22596. echo
  22597. use_gallium=yes
  22598. gallium_BASE="cairo"
  22599. gallium_REQUIRES="$ac_env_gallium_REQUIRES_value"
  22600. gallium_CFLAGS="$ac_env_gallium_CFLAGS_value"
  22601. gallium_NONPKGCONFIG_CFLAGS="$ac_env_gallium_NONPKGCONFIG_CFLAGS_value"
  22602. gallium_LIBS="$ac_env_gallium_LIBS_value"
  22603. gallium_NONPKGCONFIG_LIBS="$ac_env_gallium_NONPKGCONFIG_LIBS_value"
  22604. gallium_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gallium_NONPKGCONFIG_EXTRA_LIBS_value"
  22605. if test "x$use_drm" = "xyes"; then
  22606. # Check whether --with-gallium was given.
  22607. if test "${with_gallium+set}" = set; then :
  22608. withval=$with_gallium; mesa_DIR="$withval"
  22609. else
  22610. mesa_DIR="`pwd`/../mesa"
  22611. fi
  22612. gallium_DIR="$mesa_DIR/src/gallium"
  22613. gallium_NONPKGCONFIG_CFLAGS="-I$mesa_DIR/include -I$mesa_DIR/src/mesa -I$gallium_DIR/include -I$gallium_DIR/auxiliary"
  22614. gallium_NONPKGCONFIG_LIBS="-lGL"
  22615. else
  22616. use_gallium="no (requires --enable-drm)"
  22617. fi
  22618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Gallium3D surface backend feature could be enabled" >&5
  22619. $as_echo_n "checking whether cairo's Gallium3D surface backend feature could be enabled... " >&6; }
  22620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gallium" >&5
  22621. $as_echo "$use_gallium" >&6; }
  22622. if test "x$enable_gallium" = "xyes" -a "x$use_gallium" != xyes; then :
  22623. as_fn_error $? " Gallium3D surface backend feature could not be enabled" "$LINENO" 5
  22624. fi ;; #(
  22625. *) :
  22626. as_fn_error $? "invalid argument passed to --enable-gallium: \`$use_gallium', should be one of [no/auto/yes]" "$LINENO" 5
  22627. ;;
  22628. esac
  22629. if test "x$use_gallium" = "xyes"; then :
  22630. CAIRO_REQUIRES="$gallium_REQUIRES"" ${CAIRO_REQUIRES}"
  22631. CAIRO_CFLAGS="$gallium_CFLAGS"" ${CAIRO_CFLAGS}"
  22632. CAIRO_NONPKGCONFIG_CFLAGS="$gallium_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  22633. CAIRO_LIBS="$gallium_LIBS"" ${CAIRO_LIBS}"
  22634. CAIRO_NONPKGCONFIG_LIBS="$gallium_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  22635. else
  22636. unset gallium_BASE
  22637. unset gallium_REQUIRES
  22638. unset gallium_CFLAGS
  22639. unset gallium_NONPKGCONFIG_CFLAGS
  22640. unset gallium_LIBS
  22641. unset gallium_NONPKGCONFIG_LIBS
  22642. unset gallium_NONPKGCONFIG_EXTRA_LIBS
  22643. fi
  22644. if test "x$use_gallium" = xyes; then
  22645. CAIRO_HAS_GALLIUM_SURFACE_TRUE=
  22646. CAIRO_HAS_GALLIUM_SURFACE_FALSE='#'
  22647. else
  22648. CAIRO_HAS_GALLIUM_SURFACE_TRUE='#'
  22649. CAIRO_HAS_GALLIUM_SURFACE_FALSE=
  22650. fi
  22651. cr_make_tmp='CAIRO_HAS_GALLIUM_SURFACE=0'
  22652. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  22653. ""$cr_make_tmp"
  22654. cr_make_tmp=''
  22655. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22656. ""$cr_make_tmp"
  22657. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22658. ""$cr_make_tmp"
  22659. cr_make_tmp=''
  22660. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22661. ""$cr_make_tmp"
  22662. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22663. ""$cr_make_tmp"
  22664. cr_make_tmp='unsupported_cairo_headers += $(cairo_gallium_headers)'
  22665. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22666. ""$cr_make_tmp"
  22667. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22668. ""$cr_make_tmp"
  22669. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)'
  22670. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22671. ""$cr_make_tmp"
  22672. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22673. ""$cr_make_tmp"
  22674. cr_make_tmp='all_cairo_headers += $(cairo_gallium_headers)
  22675. all_cairo_private += $(cairo_gallium_private)
  22676. all_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
  22677. all_cairo_sources += $(cairo_gallium_sources)'
  22678. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22679. ""$cr_make_tmp"
  22680. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22681. ""$cr_make_tmp"
  22682. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
  22683. all_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
  22684. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
  22685. all_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
  22686. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22687. ""$cr_make_tmp"
  22688. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22689. ""$cr_make_tmp"
  22690. cr_make_tmp='enabled_cairo_headers += $(cairo_gallium_headers)
  22691. enabled_cairo_private += $(cairo_gallium_private)
  22692. enabled_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
  22693. enabled_cairo_sources += $(cairo_gallium_sources)'
  22694. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22695. "'if CAIRO_HAS_GALLIUM_SURFACE'
  22696. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22697. ""$cr_make_tmp"
  22698. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22699. "'endif'
  22700. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22701. "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
  22702. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22703. ""$cr_make_tmp"
  22704. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22705. "'endif'
  22706. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
  22707. enabled_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
  22708. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
  22709. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
  22710. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22711. "'if CAIRO_HAS_GALLIUM_SURFACE'
  22712. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22713. ""$cr_make_tmp"
  22714. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22715. "'endif'
  22716. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22717. "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
  22718. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22719. ""$cr_make_tmp"
  22720. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22721. "'endif'
  22722. if test "x$use_gallium" = xyes; then :
  22723. :
  22724. ac_config_files="$ac_config_files src/cairo-gallium.pc:src/cairo-features.pc.in"
  22725. fi
  22726. if test "x$use_gallium" = xyes; then :
  22727. :
  22728. ac_config_files="$ac_config_files cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  22729. fi
  22730. cr_make_tmp='all_cairo_pkgconf += cairo-gallium.pc'
  22731. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22732. ""$cr_make_tmp"
  22733. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22734. ""$cr_make_tmp"
  22735. cr_make_tmp='enabled_cairo_pkgconf += cairo-gallium.pc'
  22736. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22737. "'if CAIRO_HAS_GALLIUM_SURFACE'
  22738. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22739. ""$cr_make_tmp"
  22740. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22741. "'endif'
  22742. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22743. "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
  22744. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22745. ""$cr_make_tmp"
  22746. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22747. "'endif'
  22748. if test "x$use_gallium" = xyes; then :
  22749. :
  22750. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GALLIUM_SURFACE'
  22751. fi
  22752. if test "x$use_gallium" != xyes; then :
  22753. :
  22754. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GALLIUM_SURFACE'
  22755. fi
  22756. cr_make_tmp=' @echo "#define CAIRO_HAS_GALLIUM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  22757. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22758. "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
  22759. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22760. ""$cr_make_tmp"
  22761. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  22762. "'endif'
  22763. if test "x$use_gallium" = xyes; then :
  22764. :
  22765. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  22766. "'--- The Gallium3D surface backend feature is still under active development
  22767. --- and is included in this release only as a preview. It does NOT fully work
  22768. --- yet and incompatible changes may yet be made to Gallium3D surface backend
  22769. --- specific API.'
  22770. fi
  22771. # Check whether --enable-png was given.
  22772. if test "${enable_png+set}" = set; then :
  22773. enableval=$enable_png; enable_png=$enableval
  22774. else
  22775. enable_png=yes
  22776. fi
  22777. case $enable_png in #(
  22778. no) :
  22779. use_png="no (disabled, use --enable-png to enable)"
  22780. ;; #(
  22781. yes|auto) :
  22782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PNG functions feature" >&5
  22783. $as_echo_n "checking for cairo's PNG functions feature... " >&6; }
  22784. echo
  22785. use_png=yes
  22786. png_BASE="cairo"
  22787. png_REQUIRES="$ac_env_png_REQUIRES_value"
  22788. png_CFLAGS="$ac_env_png_CFLAGS_value"
  22789. png_NONPKGCONFIG_CFLAGS="$ac_env_png_NONPKGCONFIG_CFLAGS_value"
  22790. png_LIBS="$ac_env_png_LIBS_value"
  22791. png_NONPKGCONFIG_LIBS="$ac_env_png_NONPKGCONFIG_LIBS_value"
  22792. png_NONPKGCONFIG_EXTRA_LIBS="$ac_env_png_NONPKGCONFIG_EXTRA_LIBS_value"
  22793. use_png=no
  22794. if test "x$png_REQUIRES" = x; then
  22795. # libpng13 is GnuWin32's libpng-1.2.8 :-(
  22796. for l in libpng libpng14 libpng12 libpng13 libpng10; do
  22797. if $PKG_CONFIG --exists $l ; then
  22798. png_REQUIRES=$l
  22799. use_png=yes
  22800. break
  22801. fi
  22802. done
  22803. else
  22804. use_png=yes
  22805. fi
  22806. if test "x$use_png" = "xyes" ; then
  22807. pkg_failed=no
  22808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
  22809. $as_echo_n "checking for png... " >&6; }
  22810. if test -n "$png_CFLAGS"; then
  22811. pkg_cv_png_CFLAGS="$png_CFLAGS"
  22812. elif test -n "$PKG_CONFIG"; then
  22813. if test -n "$PKG_CONFIG" && \
  22814. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
  22815. ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
  22816. ac_status=$?
  22817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22818. test $ac_status = 0; }; then
  22819. pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags "$png_REQUIRES" 2>/dev/null`
  22820. else
  22821. pkg_failed=yes
  22822. fi
  22823. else
  22824. pkg_failed=untried
  22825. fi
  22826. if test -n "$png_LIBS"; then
  22827. pkg_cv_png_LIBS="$png_LIBS"
  22828. elif test -n "$PKG_CONFIG"; then
  22829. if test -n "$PKG_CONFIG" && \
  22830. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
  22831. ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
  22832. ac_status=$?
  22833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22834. test $ac_status = 0; }; then
  22835. pkg_cv_png_LIBS=`$PKG_CONFIG --libs "$png_REQUIRES" 2>/dev/null`
  22836. else
  22837. pkg_failed=yes
  22838. fi
  22839. else
  22840. pkg_failed=untried
  22841. fi
  22842. if test $pkg_failed = yes; then
  22843. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22844. _pkg_short_errors_supported=yes
  22845. else
  22846. _pkg_short_errors_supported=no
  22847. fi
  22848. if test $_pkg_short_errors_supported = yes; then
  22849. png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$png_REQUIRES" 2>&1`
  22850. else
  22851. png_PKG_ERRORS=`$PKG_CONFIG --print-errors "$png_REQUIRES" 2>&1`
  22852. fi
  22853. # Put the nasty error message in config.log where it belongs
  22854. echo "$png_PKG_ERRORS" >&5
  22855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22856. $as_echo "no" >&6; }
  22857. :
  22858. elif test $pkg_failed = untried; then
  22859. :
  22860. else
  22861. png_CFLAGS=$pkg_cv_png_CFLAGS
  22862. png_LIBS=$pkg_cv_png_LIBS
  22863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22864. $as_echo "yes" >&6; }
  22865. :
  22866. fi
  22867. else
  22868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libpng in the pkg-config search path" >&5
  22869. $as_echo "$as_me: WARNING: Could not find libpng in the pkg-config search path" >&2;}
  22870. fi
  22871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PNG functions feature could be enabled" >&5
  22872. $as_echo_n "checking whether cairo's PNG functions feature could be enabled... " >&6; }
  22873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_png" >&5
  22874. $as_echo "$use_png" >&6; }
  22875. if test "x$enable_png" = "xyes" -a "x$use_png" != xyes; then :
  22876. as_fn_error $? "recommended PNG functions feature could not be enabled" "$LINENO" 5
  22877. fi ;; #(
  22878. *) :
  22879. as_fn_error $? "invalid argument passed to --enable-png: \`$use_png', should be one of [no/auto/yes]" "$LINENO" 5
  22880. ;;
  22881. esac
  22882. if test "x$use_png" = "xyes"; then :
  22883. CAIRO_REQUIRES="$png_REQUIRES"" ${CAIRO_REQUIRES}"
  22884. CAIRO_CFLAGS="$png_CFLAGS"" ${CAIRO_CFLAGS}"
  22885. CAIRO_NONPKGCONFIG_CFLAGS="$png_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  22886. CAIRO_LIBS="$png_LIBS"" ${CAIRO_LIBS}"
  22887. CAIRO_NONPKGCONFIG_LIBS="$png_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  22888. else
  22889. unset png_BASE
  22890. unset png_REQUIRES
  22891. unset png_CFLAGS
  22892. unset png_NONPKGCONFIG_CFLAGS
  22893. unset png_LIBS
  22894. unset png_NONPKGCONFIG_LIBS
  22895. unset png_NONPKGCONFIG_EXTRA_LIBS
  22896. fi
  22897. if test "x$use_png" = xyes; then
  22898. CAIRO_HAS_PNG_FUNCTIONS_TRUE=
  22899. CAIRO_HAS_PNG_FUNCTIONS_FALSE='#'
  22900. else
  22901. CAIRO_HAS_PNG_FUNCTIONS_TRUE='#'
  22902. CAIRO_HAS_PNG_FUNCTIONS_FALSE=
  22903. fi
  22904. cr_make_tmp='CAIRO_HAS_PNG_FUNCTIONS=1'
  22905. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  22906. ""$cr_make_tmp"
  22907. cr_make_tmp=''
  22908. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22909. ""$cr_make_tmp"
  22910. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22911. ""$cr_make_tmp"
  22912. cr_make_tmp=''
  22913. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22914. ""$cr_make_tmp"
  22915. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22916. ""$cr_make_tmp"
  22917. cr_make_tmp='supported_cairo_headers += $(cairo_png_headers)'
  22918. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22919. ""$cr_make_tmp"
  22920. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22921. ""$cr_make_tmp"
  22922. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)'
  22923. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22924. ""$cr_make_tmp"
  22925. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22926. ""$cr_make_tmp"
  22927. cr_make_tmp='all_cairo_headers += $(cairo_png_headers)
  22928. all_cairo_private += $(cairo_png_private)
  22929. all_cairo_cxx_sources += $(cairo_png_cxx_sources)
  22930. all_cairo_sources += $(cairo_png_sources)'
  22931. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22932. ""$cr_make_tmp"
  22933. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22934. ""$cr_make_tmp"
  22935. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
  22936. all_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
  22937. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
  22938. all_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
  22939. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22940. ""$cr_make_tmp"
  22941. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22942. ""$cr_make_tmp"
  22943. cr_make_tmp='enabled_cairo_headers += $(cairo_png_headers)
  22944. enabled_cairo_private += $(cairo_png_private)
  22945. enabled_cairo_cxx_sources += $(cairo_png_cxx_sources)
  22946. enabled_cairo_sources += $(cairo_png_sources)'
  22947. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22948. "'if CAIRO_HAS_PNG_FUNCTIONS'
  22949. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22950. ""$cr_make_tmp"
  22951. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22952. "'endif'
  22953. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22954. "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
  22955. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22956. ""$cr_make_tmp"
  22957. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22958. "'endif'
  22959. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
  22960. enabled_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
  22961. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
  22962. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
  22963. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22964. "'if CAIRO_HAS_PNG_FUNCTIONS'
  22965. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22966. ""$cr_make_tmp"
  22967. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  22968. "'endif'
  22969. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22970. "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
  22971. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22972. ""$cr_make_tmp"
  22973. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  22974. "'endif'
  22975. if test "x$use_png" = xyes; then :
  22976. :
  22977. ac_config_files="$ac_config_files src/cairo-png.pc:src/cairo-features.pc.in"
  22978. fi
  22979. if test "x$use_png" = xyes; then :
  22980. :
  22981. ac_config_files="$ac_config_files cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  22982. fi
  22983. cr_make_tmp='all_cairo_pkgconf += cairo-png.pc'
  22984. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22985. ""$cr_make_tmp"
  22986. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22987. ""$cr_make_tmp"
  22988. cr_make_tmp='enabled_cairo_pkgconf += cairo-png.pc'
  22989. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22990. "'if CAIRO_HAS_PNG_FUNCTIONS'
  22991. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22992. ""$cr_make_tmp"
  22993. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  22994. "'endif'
  22995. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22996. "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
  22997. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  22998. ""$cr_make_tmp"
  22999. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23000. "'endif'
  23001. if test "x$use_png" = xyes; then :
  23002. :
  23003. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
  23004. fi
  23005. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
  23006. if test "x$use_png" != xyes; then :
  23007. :
  23008. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
  23009. fi
  23010. cr_make_tmp=' @echo "#define CAIRO_HAS_PNG_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  23011. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23012. "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
  23013. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23014. ""$cr_make_tmp"
  23015. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23016. "'endif'
  23017. if test "x$use_png" != xyes; then :
  23018. :
  23019. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  23020. "'+++ It is strongly recommended that you do NOT disable the PNG functions
  23021. +++ feature.'
  23022. fi
  23023. # Check whether --enable-gl was given.
  23024. if test "${enable_gl+set}" = set; then :
  23025. enableval=$enable_gl; enable_gl=$enableval
  23026. else
  23027. enable_gl=no
  23028. fi
  23029. case $enable_gl in #(
  23030. no) :
  23031. use_gl="no (disabled, use --enable-gl to enable)"
  23032. ;; #(
  23033. yes|auto) :
  23034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGL surface backend feature" >&5
  23035. $as_echo_n "checking for cairo's OpenGL surface backend feature... " >&6; }
  23036. echo
  23037. use_gl=yes
  23038. gl_BASE="cairo"
  23039. gl_REQUIRES="$ac_env_gl_REQUIRES_value"
  23040. gl_CFLAGS="$ac_env_gl_CFLAGS_value"
  23041. gl_NONPKGCONFIG_CFLAGS="$ac_env_gl_NONPKGCONFIG_CFLAGS_value"
  23042. gl_LIBS="$ac_env_gl_LIBS_value"
  23043. gl_NONPKGCONFIG_LIBS="$ac_env_gl_NONPKGCONFIG_LIBS_value"
  23044. gl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gl_NONPKGCONFIG_EXTRA_LIBS_value"
  23045. gl_REQUIRES="gl"
  23046. pkg_failed=no
  23047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl" >&5
  23048. $as_echo_n "checking for gl... " >&6; }
  23049. if test -n "$gl_CFLAGS"; then
  23050. pkg_cv_gl_CFLAGS="$gl_CFLAGS"
  23051. elif test -n "$PKG_CONFIG"; then
  23052. if test -n "$PKG_CONFIG" && \
  23053. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
  23054. ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
  23055. ac_status=$?
  23056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23057. test $ac_status = 0; }; then
  23058. pkg_cv_gl_CFLAGS=`$PKG_CONFIG --cflags "$gl_REQUIRES" 2>/dev/null`
  23059. else
  23060. pkg_failed=yes
  23061. fi
  23062. else
  23063. pkg_failed=untried
  23064. fi
  23065. if test -n "$gl_LIBS"; then
  23066. pkg_cv_gl_LIBS="$gl_LIBS"
  23067. elif test -n "$PKG_CONFIG"; then
  23068. if test -n "$PKG_CONFIG" && \
  23069. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
  23070. ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
  23071. ac_status=$?
  23072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23073. test $ac_status = 0; }; then
  23074. pkg_cv_gl_LIBS=`$PKG_CONFIG --libs "$gl_REQUIRES" 2>/dev/null`
  23075. else
  23076. pkg_failed=yes
  23077. fi
  23078. else
  23079. pkg_failed=untried
  23080. fi
  23081. if test $pkg_failed = yes; then
  23082. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23083. _pkg_short_errors_supported=yes
  23084. else
  23085. _pkg_short_errors_supported=no
  23086. fi
  23087. if test $_pkg_short_errors_supported = yes; then
  23088. gl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gl_REQUIRES" 2>&1`
  23089. else
  23090. gl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gl_REQUIRES" 2>&1`
  23091. fi
  23092. # Put the nasty error message in config.log where it belongs
  23093. echo "$gl_PKG_ERRORS" >&5
  23094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23095. $as_echo "no" >&6; }
  23096. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  23097. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  23098. else
  23099. use_gl="no (gl.pc nor OpenGL headers not found)"
  23100. fi
  23101. if test "x$use_gl" = "xyes"; then
  23102. gl_NONPKGCONFIG_CFLAGS=
  23103. gl_NONPKGCONFIG_LIBS="-lGL"
  23104. fi
  23105. elif test $pkg_failed = untried; then
  23106. ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
  23107. if test "x$ac_cv_header_GL_gl_h" = xyes; then :
  23108. else
  23109. use_gl="no (gl.pc nor OpenGL headers not found)"
  23110. fi
  23111. if test "x$use_gl" = "xyes"; then
  23112. gl_NONPKGCONFIG_CFLAGS=
  23113. gl_NONPKGCONFIG_LIBS="-lGL"
  23114. fi
  23115. else
  23116. gl_CFLAGS=$pkg_cv_gl_CFLAGS
  23117. gl_LIBS=$pkg_cv_gl_LIBS
  23118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23119. $as_echo "yes" >&6; }
  23120. :
  23121. fi
  23122. if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
  23123. gl_LIBS="$gl_LIBS -ldl"
  23124. fi
  23125. need_glx_functions=yes
  23126. need_wgl_functions=yes
  23127. need_egl_functions=yes
  23128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGL surface backend feature could be enabled" >&5
  23129. $as_echo_n "checking whether cairo's OpenGL surface backend feature could be enabled... " >&6; }
  23130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gl" >&5
  23131. $as_echo "$use_gl" >&6; }
  23132. if test "x$enable_gl" = "xyes" -a "x$use_gl" != xyes; then :
  23133. as_fn_error $? " OpenGL surface backend feature could not be enabled" "$LINENO" 5
  23134. fi ;; #(
  23135. *) :
  23136. as_fn_error $? "invalid argument passed to --enable-gl: \`$use_gl', should be one of [no/auto/yes]" "$LINENO" 5
  23137. ;;
  23138. esac
  23139. if test "x$use_gl" = "xyes"; then :
  23140. CAIRO_REQUIRES="$gl_REQUIRES"" ${CAIRO_REQUIRES}"
  23141. CAIRO_CFLAGS="$gl_CFLAGS"" ${CAIRO_CFLAGS}"
  23142. CAIRO_NONPKGCONFIG_CFLAGS="$gl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  23143. CAIRO_LIBS="$gl_LIBS"" ${CAIRO_LIBS}"
  23144. CAIRO_NONPKGCONFIG_LIBS="$gl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  23145. else
  23146. unset gl_BASE
  23147. unset gl_REQUIRES
  23148. unset gl_CFLAGS
  23149. unset gl_NONPKGCONFIG_CFLAGS
  23150. unset gl_LIBS
  23151. unset gl_NONPKGCONFIG_LIBS
  23152. unset gl_NONPKGCONFIG_EXTRA_LIBS
  23153. fi
  23154. if test "x$use_gl" = xyes; then
  23155. CAIRO_HAS_GL_SURFACE_TRUE=
  23156. CAIRO_HAS_GL_SURFACE_FALSE='#'
  23157. else
  23158. CAIRO_HAS_GL_SURFACE_TRUE='#'
  23159. CAIRO_HAS_GL_SURFACE_FALSE=
  23160. fi
  23161. cr_make_tmp='CAIRO_HAS_GL_SURFACE=0'
  23162. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  23163. ""$cr_make_tmp"
  23164. cr_make_tmp=''
  23165. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23166. ""$cr_make_tmp"
  23167. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23168. ""$cr_make_tmp"
  23169. cr_make_tmp=''
  23170. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23171. ""$cr_make_tmp"
  23172. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23173. ""$cr_make_tmp"
  23174. cr_make_tmp='unsupported_cairo_headers += $(cairo_gl_headers)'
  23175. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23176. ""$cr_make_tmp"
  23177. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23178. ""$cr_make_tmp"
  23179. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)'
  23180. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23181. ""$cr_make_tmp"
  23182. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23183. ""$cr_make_tmp"
  23184. cr_make_tmp='all_cairo_headers += $(cairo_gl_headers)
  23185. all_cairo_private += $(cairo_gl_private)
  23186. all_cairo_cxx_sources += $(cairo_gl_cxx_sources)
  23187. all_cairo_sources += $(cairo_gl_sources)'
  23188. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23189. ""$cr_make_tmp"
  23190. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23191. ""$cr_make_tmp"
  23192. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
  23193. all_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
  23194. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
  23195. all_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
  23196. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23197. ""$cr_make_tmp"
  23198. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23199. ""$cr_make_tmp"
  23200. cr_make_tmp='enabled_cairo_headers += $(cairo_gl_headers)
  23201. enabled_cairo_private += $(cairo_gl_private)
  23202. enabled_cairo_cxx_sources += $(cairo_gl_cxx_sources)
  23203. enabled_cairo_sources += $(cairo_gl_sources)'
  23204. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23205. "'if CAIRO_HAS_GL_SURFACE'
  23206. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23207. ""$cr_make_tmp"
  23208. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23209. "'endif'
  23210. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23211. "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
  23212. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23213. ""$cr_make_tmp"
  23214. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23215. "'endif'
  23216. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
  23217. enabled_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
  23218. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
  23219. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
  23220. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23221. "'if CAIRO_HAS_GL_SURFACE'
  23222. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23223. ""$cr_make_tmp"
  23224. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23225. "'endif'
  23226. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23227. "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
  23228. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23229. ""$cr_make_tmp"
  23230. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23231. "'endif'
  23232. if test "x$use_gl" = xyes; then :
  23233. :
  23234. ac_config_files="$ac_config_files src/cairo-gl.pc:src/cairo-features.pc.in"
  23235. fi
  23236. if test "x$use_gl" = xyes; then :
  23237. :
  23238. ac_config_files="$ac_config_files cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  23239. fi
  23240. cr_make_tmp='all_cairo_pkgconf += cairo-gl.pc'
  23241. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23242. ""$cr_make_tmp"
  23243. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23244. ""$cr_make_tmp"
  23245. cr_make_tmp='enabled_cairo_pkgconf += cairo-gl.pc'
  23246. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23247. "'if CAIRO_HAS_GL_SURFACE'
  23248. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23249. ""$cr_make_tmp"
  23250. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23251. "'endif'
  23252. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23253. "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
  23254. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23255. ""$cr_make_tmp"
  23256. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23257. "'endif'
  23258. if test "x$use_gl" = xyes; then :
  23259. :
  23260. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GL_SURFACE'
  23261. fi
  23262. if test "x$use_gl" != xyes; then :
  23263. :
  23264. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GL_SURFACE'
  23265. fi
  23266. cr_make_tmp=' @echo "#define CAIRO_HAS_GL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  23267. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23268. "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
  23269. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23270. ""$cr_make_tmp"
  23271. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23272. "'endif'
  23273. if test "x$use_gl" = xyes; then :
  23274. :
  23275. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  23276. "'--- The OpenGL surface backend feature is still under active development and
  23277. --- is included in this release only as a preview. It does NOT fully work yet
  23278. --- and incompatible changes may yet be made to OpenGL surface backend
  23279. --- specific API.'
  23280. fi
  23281. # Check whether --enable-glesv2 was given.
  23282. if test "${enable_glesv2+set}" = set; then :
  23283. enableval=$enable_glesv2; enable_glesv2=$enableval
  23284. else
  23285. enable_glesv2=no
  23286. fi
  23287. case $enable_glesv2 in #(
  23288. no) :
  23289. use_glesv2="no (disabled, use --enable-glesv2 to enable)"
  23290. ;; #(
  23291. yes|auto) :
  23292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGLESv2 surface backend feature" >&5
  23293. $as_echo_n "checking for cairo's OpenGLESv2 surface backend feature... " >&6; }
  23294. echo
  23295. use_glesv2=yes
  23296. glesv2_BASE="cairo"
  23297. glesv2_REQUIRES="$ac_env_glesv2_REQUIRES_value"
  23298. glesv2_CFLAGS="$ac_env_glesv2_CFLAGS_value"
  23299. glesv2_NONPKGCONFIG_CFLAGS="$ac_env_glesv2_NONPKGCONFIG_CFLAGS_value"
  23300. glesv2_LIBS="$ac_env_glesv2_LIBS_value"
  23301. glesv2_NONPKGCONFIG_LIBS="$ac_env_glesv2_NONPKGCONFIG_LIBS_value"
  23302. glesv2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glesv2_NONPKGCONFIG_EXTRA_LIBS_value"
  23303. glesv2_REQUIRES="glesv2"
  23304. pkg_failed=no
  23305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glesv2" >&5
  23306. $as_echo_n "checking for glesv2... " >&6; }
  23307. if test -n "$glesv2_CFLAGS"; then
  23308. pkg_cv_glesv2_CFLAGS="$glesv2_CFLAGS"
  23309. elif test -n "$PKG_CONFIG"; then
  23310. if test -n "$PKG_CONFIG" && \
  23311. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
  23312. ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
  23313. ac_status=$?
  23314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23315. test $ac_status = 0; }; then
  23316. pkg_cv_glesv2_CFLAGS=`$PKG_CONFIG --cflags "$glesv2_REQUIRES" 2>/dev/null`
  23317. else
  23318. pkg_failed=yes
  23319. fi
  23320. else
  23321. pkg_failed=untried
  23322. fi
  23323. if test -n "$glesv2_LIBS"; then
  23324. pkg_cv_glesv2_LIBS="$glesv2_LIBS"
  23325. elif test -n "$PKG_CONFIG"; then
  23326. if test -n "$PKG_CONFIG" && \
  23327. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
  23328. ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
  23329. ac_status=$?
  23330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23331. test $ac_status = 0; }; then
  23332. pkg_cv_glesv2_LIBS=`$PKG_CONFIG --libs "$glesv2_REQUIRES" 2>/dev/null`
  23333. else
  23334. pkg_failed=yes
  23335. fi
  23336. else
  23337. pkg_failed=untried
  23338. fi
  23339. if test $pkg_failed = yes; then
  23340. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23341. _pkg_short_errors_supported=yes
  23342. else
  23343. _pkg_short_errors_supported=no
  23344. fi
  23345. if test $_pkg_short_errors_supported = yes; then
  23346. glesv2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$glesv2_REQUIRES" 2>&1`
  23347. else
  23348. glesv2_PKG_ERRORS=`$PKG_CONFIG --print-errors "$glesv2_REQUIRES" 2>&1`
  23349. fi
  23350. # Put the nasty error message in config.log where it belongs
  23351. echo "$glesv2_PKG_ERRORS" >&5
  23352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23353. $as_echo "no" >&6; }
  23354. ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
  23355. if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
  23356. else
  23357. use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
  23358. fi
  23359. if test "x$use_glesv2" = "xyes"; then
  23360. glesv2_NONPKGCONFIG_CFLAGS=
  23361. glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
  23362. fi
  23363. elif test $pkg_failed = untried; then
  23364. ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
  23365. if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
  23366. else
  23367. use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
  23368. fi
  23369. if test "x$use_glesv2" = "xyes"; then
  23370. glesv2_NONPKGCONFIG_CFLAGS=
  23371. glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
  23372. fi
  23373. else
  23374. glesv2_CFLAGS=$pkg_cv_glesv2_CFLAGS
  23375. glesv2_LIBS=$pkg_cv_glesv2_LIBS
  23376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23377. $as_echo "yes" >&6; }
  23378. :
  23379. fi
  23380. if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
  23381. glesv2_LIBS="$glesv2_LIBS -ldl"
  23382. fi
  23383. if test "x$use_glesv2" = "xyes" -a "x$use_gl" = "xyes"; then
  23384. as_fn_error $? "use either --enable-gl=yes or --enable-glesv2=yes. Not both at the same time." "$LINENO" 5
  23385. fi
  23386. need_egl_functions=yes
  23387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGLESv2 surface backend feature could be enabled" >&5
  23388. $as_echo_n "checking whether cairo's OpenGLESv2 surface backend feature could be enabled... " >&6; }
  23389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glesv2" >&5
  23390. $as_echo "$use_glesv2" >&6; }
  23391. if test "x$enable_glesv2" = "xyes" -a "x$use_glesv2" != xyes; then :
  23392. as_fn_error $? " OpenGLESv2 surface backend feature could not be enabled" "$LINENO" 5
  23393. fi ;; #(
  23394. *) :
  23395. as_fn_error $? "invalid argument passed to --enable-glesv2: \`$use_glesv2', should be one of [no/auto/yes]" "$LINENO" 5
  23396. ;;
  23397. esac
  23398. if test "x$use_glesv2" = "xyes"; then :
  23399. CAIRO_REQUIRES="$glesv2_REQUIRES"" ${CAIRO_REQUIRES}"
  23400. CAIRO_CFLAGS="$glesv2_CFLAGS"" ${CAIRO_CFLAGS}"
  23401. CAIRO_NONPKGCONFIG_CFLAGS="$glesv2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  23402. CAIRO_LIBS="$glesv2_LIBS"" ${CAIRO_LIBS}"
  23403. CAIRO_NONPKGCONFIG_LIBS="$glesv2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  23404. else
  23405. unset glesv2_BASE
  23406. unset glesv2_REQUIRES
  23407. unset glesv2_CFLAGS
  23408. unset glesv2_NONPKGCONFIG_CFLAGS
  23409. unset glesv2_LIBS
  23410. unset glesv2_NONPKGCONFIG_LIBS
  23411. unset glesv2_NONPKGCONFIG_EXTRA_LIBS
  23412. fi
  23413. if test "x$use_glesv2" = xyes; then
  23414. CAIRO_HAS_GLESV2_SURFACE_TRUE=
  23415. CAIRO_HAS_GLESV2_SURFACE_FALSE='#'
  23416. else
  23417. CAIRO_HAS_GLESV2_SURFACE_TRUE='#'
  23418. CAIRO_HAS_GLESV2_SURFACE_FALSE=
  23419. fi
  23420. cr_make_tmp='CAIRO_HAS_GLESV2_SURFACE=0'
  23421. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  23422. ""$cr_make_tmp"
  23423. cr_make_tmp=''
  23424. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23425. ""$cr_make_tmp"
  23426. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23427. ""$cr_make_tmp"
  23428. cr_make_tmp=''
  23429. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23430. ""$cr_make_tmp"
  23431. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23432. ""$cr_make_tmp"
  23433. cr_make_tmp='unsupported_cairo_headers += $(cairo_glesv2_headers)'
  23434. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23435. ""$cr_make_tmp"
  23436. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23437. ""$cr_make_tmp"
  23438. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)'
  23439. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23440. ""$cr_make_tmp"
  23441. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23442. ""$cr_make_tmp"
  23443. cr_make_tmp='all_cairo_headers += $(cairo_glesv2_headers)
  23444. all_cairo_private += $(cairo_glesv2_private)
  23445. all_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
  23446. all_cairo_sources += $(cairo_glesv2_sources)'
  23447. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23448. ""$cr_make_tmp"
  23449. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23450. ""$cr_make_tmp"
  23451. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
  23452. all_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
  23453. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
  23454. all_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
  23455. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23456. ""$cr_make_tmp"
  23457. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23458. ""$cr_make_tmp"
  23459. cr_make_tmp='enabled_cairo_headers += $(cairo_glesv2_headers)
  23460. enabled_cairo_private += $(cairo_glesv2_private)
  23461. enabled_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
  23462. enabled_cairo_sources += $(cairo_glesv2_sources)'
  23463. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23464. "'if CAIRO_HAS_GLESV2_SURFACE'
  23465. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23466. ""$cr_make_tmp"
  23467. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23468. "'endif'
  23469. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23470. "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
  23471. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23472. ""$cr_make_tmp"
  23473. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23474. "'endif'
  23475. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
  23476. enabled_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
  23477. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
  23478. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
  23479. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23480. "'if CAIRO_HAS_GLESV2_SURFACE'
  23481. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23482. ""$cr_make_tmp"
  23483. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23484. "'endif'
  23485. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23486. "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
  23487. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23488. ""$cr_make_tmp"
  23489. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23490. "'endif'
  23491. if test "x$use_glesv2" = xyes; then :
  23492. :
  23493. ac_config_files="$ac_config_files src/cairo-glesv2.pc:src/cairo-features.pc.in"
  23494. fi
  23495. if test "x$use_glesv2" = xyes; then :
  23496. :
  23497. ac_config_files="$ac_config_files cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  23498. fi
  23499. cr_make_tmp='all_cairo_pkgconf += cairo-glesv2.pc'
  23500. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23501. ""$cr_make_tmp"
  23502. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23503. ""$cr_make_tmp"
  23504. cr_make_tmp='enabled_cairo_pkgconf += cairo-glesv2.pc'
  23505. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23506. "'if CAIRO_HAS_GLESV2_SURFACE'
  23507. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23508. ""$cr_make_tmp"
  23509. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23510. "'endif'
  23511. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23512. "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
  23513. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23514. ""$cr_make_tmp"
  23515. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23516. "'endif'
  23517. if test "x$use_glesv2" = xyes; then :
  23518. :
  23519. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLESV2_SURFACE'
  23520. fi
  23521. if test "x$use_glesv2" != xyes; then :
  23522. :
  23523. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GLESV2_SURFACE'
  23524. fi
  23525. cr_make_tmp=' @echo "#define CAIRO_HAS_GLESV2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  23526. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23527. "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
  23528. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23529. ""$cr_make_tmp"
  23530. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23531. "'endif'
  23532. if test "x$use_glesv2" = xyes; then :
  23533. :
  23534. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  23535. "'--- The OpenGLESv2 surface backend feature is still under active development
  23536. --- and is included in this release only as a preview. It does NOT fully work
  23537. --- yet and incompatible changes may yet be made to OpenGLESv2 surface
  23538. --- backend specific API.'
  23539. fi
  23540. # Check whether --enable-glesv3 was given.
  23541. if test "${enable_glesv3+set}" = set; then :
  23542. enableval=$enable_glesv3; enable_glesv3=$enableval
  23543. else
  23544. enable_glesv3=no
  23545. fi
  23546. case $enable_glesv3 in #(
  23547. no) :
  23548. use_glesv3="no (disabled, use --enable-glesv3 to enable)"
  23549. ;; #(
  23550. yes|auto) :
  23551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGLESv3 surface backend feature" >&5
  23552. $as_echo_n "checking for cairo's OpenGLESv3 surface backend feature... " >&6; }
  23553. echo
  23554. use_glesv3=yes
  23555. glesv3_BASE="cairo"
  23556. glesv3_REQUIRES="$ac_env_glesv3_REQUIRES_value"
  23557. glesv3_CFLAGS="$ac_env_glesv3_CFLAGS_value"
  23558. glesv3_NONPKGCONFIG_CFLAGS="$ac_env_glesv3_NONPKGCONFIG_CFLAGS_value"
  23559. glesv3_LIBS="$ac_env_glesv3_LIBS_value"
  23560. glesv3_NONPKGCONFIG_LIBS="$ac_env_glesv3_NONPKGCONFIG_LIBS_value"
  23561. glesv3_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glesv3_NONPKGCONFIG_EXTRA_LIBS_value"
  23562. glesv3_REQUIRES="glesv2"
  23563. pkg_failed=no
  23564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glesv3" >&5
  23565. $as_echo_n "checking for glesv3... " >&6; }
  23566. if test -n "$glesv3_CFLAGS"; then
  23567. pkg_cv_glesv3_CFLAGS="$glesv3_CFLAGS"
  23568. elif test -n "$PKG_CONFIG"; then
  23569. if test -n "$PKG_CONFIG" && \
  23570. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv3_REQUIRES\""; } >&5
  23571. ($PKG_CONFIG --exists --print-errors "$glesv3_REQUIRES") 2>&5
  23572. ac_status=$?
  23573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23574. test $ac_status = 0; }; then
  23575. pkg_cv_glesv3_CFLAGS=`$PKG_CONFIG --cflags "$glesv3_REQUIRES" 2>/dev/null`
  23576. else
  23577. pkg_failed=yes
  23578. fi
  23579. else
  23580. pkg_failed=untried
  23581. fi
  23582. if test -n "$glesv3_LIBS"; then
  23583. pkg_cv_glesv3_LIBS="$glesv3_LIBS"
  23584. elif test -n "$PKG_CONFIG"; then
  23585. if test -n "$PKG_CONFIG" && \
  23586. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv3_REQUIRES\""; } >&5
  23587. ($PKG_CONFIG --exists --print-errors "$glesv3_REQUIRES") 2>&5
  23588. ac_status=$?
  23589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23590. test $ac_status = 0; }; then
  23591. pkg_cv_glesv3_LIBS=`$PKG_CONFIG --libs "$glesv3_REQUIRES" 2>/dev/null`
  23592. else
  23593. pkg_failed=yes
  23594. fi
  23595. else
  23596. pkg_failed=untried
  23597. fi
  23598. if test $pkg_failed = yes; then
  23599. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23600. _pkg_short_errors_supported=yes
  23601. else
  23602. _pkg_short_errors_supported=no
  23603. fi
  23604. if test $_pkg_short_errors_supported = yes; then
  23605. glesv3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$glesv3_REQUIRES" 2>&1`
  23606. else
  23607. glesv3_PKG_ERRORS=`$PKG_CONFIG --print-errors "$glesv3_REQUIRES" 2>&1`
  23608. fi
  23609. # Put the nasty error message in config.log where it belongs
  23610. echo "$glesv3_PKG_ERRORS" >&5
  23611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23612. $as_echo "no" >&6; }
  23613. use_glesv3="no (glesv2.pc not found, required for glesv3)"
  23614. elif test $pkg_failed = untried; then
  23615. use_glesv3="no (glesv2.pc not found, required for glesv3)"
  23616. else
  23617. glesv3_CFLAGS=$pkg_cv_glesv3_CFLAGS
  23618. glesv3_LIBS=$pkg_cv_glesv3_LIBS
  23619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23620. $as_echo "yes" >&6; }
  23621. :
  23622. fi
  23623. ac_fn_c_check_header_mongrel "$LINENO" "GLES3/gl3.h" "ac_cv_header_GLES3_gl3_h" "$ac_includes_default"
  23624. if test "x$ac_cv_header_GLES3_gl3_h" = xyes; then :
  23625. else
  23626. use_glesv3="no (OpenGL ES 3.0 headers not found)"
  23627. fi
  23628. if test "x$use_glesv3" = "xyes"; then
  23629. glesv3_NONPKGCONFIG_CFLAGS=
  23630. glesv3_NONPKGCONFIG_LIBS="-lGLESv2"
  23631. fi
  23632. if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
  23633. glesv3_LIBS="$glesv3_LIBS -ldl"
  23634. fi
  23635. if test "x$use_glesv3" = "xyes" -a "x$use_gl" = "xyes"; then
  23636. as_fn_error $? "use either --enable-gl=yes or --enable-glesv3=yes. Not both at the same time." "$LINENO" 5
  23637. fi
  23638. need_egl_functions=yes
  23639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGLESv3 surface backend feature could be enabled" >&5
  23640. $as_echo_n "checking whether cairo's OpenGLESv3 surface backend feature could be enabled... " >&6; }
  23641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glesv3" >&5
  23642. $as_echo "$use_glesv3" >&6; }
  23643. if test "x$enable_glesv3" = "xyes" -a "x$use_glesv3" != xyes; then :
  23644. as_fn_error $? " OpenGLESv3 surface backend feature could not be enabled" "$LINENO" 5
  23645. fi ;; #(
  23646. *) :
  23647. as_fn_error $? "invalid argument passed to --enable-glesv3: \`$use_glesv3', should be one of [no/auto/yes]" "$LINENO" 5
  23648. ;;
  23649. esac
  23650. if test "x$use_glesv3" = "xyes"; then :
  23651. CAIRO_REQUIRES="$glesv3_REQUIRES"" ${CAIRO_REQUIRES}"
  23652. CAIRO_CFLAGS="$glesv3_CFLAGS"" ${CAIRO_CFLAGS}"
  23653. CAIRO_NONPKGCONFIG_CFLAGS="$glesv3_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  23654. CAIRO_LIBS="$glesv3_LIBS"" ${CAIRO_LIBS}"
  23655. CAIRO_NONPKGCONFIG_LIBS="$glesv3_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  23656. else
  23657. unset glesv3_BASE
  23658. unset glesv3_REQUIRES
  23659. unset glesv3_CFLAGS
  23660. unset glesv3_NONPKGCONFIG_CFLAGS
  23661. unset glesv3_LIBS
  23662. unset glesv3_NONPKGCONFIG_LIBS
  23663. unset glesv3_NONPKGCONFIG_EXTRA_LIBS
  23664. fi
  23665. if test "x$use_glesv3" = xyes; then
  23666. CAIRO_HAS_GLESV3_SURFACE_TRUE=
  23667. CAIRO_HAS_GLESV3_SURFACE_FALSE='#'
  23668. else
  23669. CAIRO_HAS_GLESV3_SURFACE_TRUE='#'
  23670. CAIRO_HAS_GLESV3_SURFACE_FALSE=
  23671. fi
  23672. cr_make_tmp='CAIRO_HAS_GLESV3_SURFACE=0'
  23673. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  23674. ""$cr_make_tmp"
  23675. cr_make_tmp=''
  23676. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23677. ""$cr_make_tmp"
  23678. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23679. ""$cr_make_tmp"
  23680. cr_make_tmp=''
  23681. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23682. ""$cr_make_tmp"
  23683. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23684. ""$cr_make_tmp"
  23685. cr_make_tmp='unsupported_cairo_headers += $(cairo_glesv3_headers)'
  23686. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23687. ""$cr_make_tmp"
  23688. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23689. ""$cr_make_tmp"
  23690. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_glesv3_headers)'
  23691. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23692. ""$cr_make_tmp"
  23693. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23694. ""$cr_make_tmp"
  23695. cr_make_tmp='all_cairo_headers += $(cairo_glesv3_headers)
  23696. all_cairo_private += $(cairo_glesv3_private)
  23697. all_cairo_cxx_sources += $(cairo_glesv3_cxx_sources)
  23698. all_cairo_sources += $(cairo_glesv3_sources)'
  23699. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23700. ""$cr_make_tmp"
  23701. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23702. ""$cr_make_tmp"
  23703. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glesv3_headers)
  23704. all_cairo_boilerplate_private += $(cairo_boilerplate_glesv3_private)
  23705. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv3_cxx_sources)
  23706. all_cairo_boilerplate_sources += $(cairo_boilerplate_glesv3_sources)'
  23707. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23708. ""$cr_make_tmp"
  23709. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23710. ""$cr_make_tmp"
  23711. cr_make_tmp='enabled_cairo_headers += $(cairo_glesv3_headers)
  23712. enabled_cairo_private += $(cairo_glesv3_private)
  23713. enabled_cairo_cxx_sources += $(cairo_glesv3_cxx_sources)
  23714. enabled_cairo_sources += $(cairo_glesv3_sources)'
  23715. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23716. "'if CAIRO_HAS_GLESV3_SURFACE'
  23717. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23718. ""$cr_make_tmp"
  23719. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23720. "'endif'
  23721. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23722. "'ifeq ($(CAIRO_HAS_GLESV3_SURFACE),1)'
  23723. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23724. ""$cr_make_tmp"
  23725. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23726. "'endif'
  23727. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glesv3_headers)
  23728. enabled_cairo_boilerplate_private += $(cairo_boilerplate_glesv3_private)
  23729. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv3_cxx_sources)
  23730. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glesv3_sources)'
  23731. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23732. "'if CAIRO_HAS_GLESV3_SURFACE'
  23733. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23734. ""$cr_make_tmp"
  23735. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23736. "'endif'
  23737. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23738. "'ifeq ($(CAIRO_HAS_GLESV3_SURFACE),1)'
  23739. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23740. ""$cr_make_tmp"
  23741. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23742. "'endif'
  23743. if test "x$use_glesv3" = xyes; then :
  23744. :
  23745. ac_config_files="$ac_config_files src/cairo-glesv3.pc:src/cairo-features.pc.in"
  23746. fi
  23747. if test "x$use_glesv3" = xyes; then :
  23748. :
  23749. ac_config_files="$ac_config_files cairo-glesv3-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  23750. fi
  23751. cr_make_tmp='all_cairo_pkgconf += cairo-glesv3.pc'
  23752. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23753. ""$cr_make_tmp"
  23754. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23755. ""$cr_make_tmp"
  23756. cr_make_tmp='enabled_cairo_pkgconf += cairo-glesv3.pc'
  23757. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23758. "'if CAIRO_HAS_GLESV3_SURFACE'
  23759. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23760. ""$cr_make_tmp"
  23761. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23762. "'endif'
  23763. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23764. "'ifeq ($(CAIRO_HAS_GLESV3_SURFACE),1)'
  23765. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23766. ""$cr_make_tmp"
  23767. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23768. "'endif'
  23769. if test "x$use_glesv3" = xyes; then :
  23770. :
  23771. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLESV3_SURFACE'
  23772. fi
  23773. if test "x$use_glesv3" != xyes; then :
  23774. :
  23775. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GLESV3_SURFACE'
  23776. fi
  23777. cr_make_tmp=' @echo "#define CAIRO_HAS_GLESV3_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  23778. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23779. "'ifeq ($(CAIRO_HAS_GLESV3_SURFACE),1)'
  23780. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23781. ""$cr_make_tmp"
  23782. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  23783. "'endif'
  23784. if test "x$use_glesv3" = xyes; then :
  23785. :
  23786. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  23787. "'--- The OpenGLESv3 surface backend feature is still under active development
  23788. --- and is included in this release only as a preview. It does NOT fully work
  23789. --- yet and incompatible changes may yet be made to OpenGLESv3 surface
  23790. --- backend specific API.'
  23791. fi
  23792. # Check whether --enable-cogl was given.
  23793. if test "${enable_cogl+set}" = set; then :
  23794. enableval=$enable_cogl; enable_cogl=$enableval
  23795. else
  23796. enable_cogl=no
  23797. fi
  23798. case $enable_cogl in #(
  23799. no) :
  23800. use_cogl="no (disabled, use --enable-cogl to enable)"
  23801. ;; #(
  23802. yes|auto) :
  23803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Cogl surface backend feature" >&5
  23804. $as_echo_n "checking for cairo's Cogl surface backend feature... " >&6; }
  23805. echo
  23806. use_cogl=yes
  23807. cogl_BASE="cairo"
  23808. cogl_REQUIRES="$ac_env_cogl_REQUIRES_value"
  23809. cogl_CFLAGS="$ac_env_cogl_CFLAGS_value"
  23810. cogl_NONPKGCONFIG_CFLAGS="$ac_env_cogl_NONPKGCONFIG_CFLAGS_value"
  23811. cogl_LIBS="$ac_env_cogl_LIBS_value"
  23812. cogl_NONPKGCONFIG_LIBS="$ac_env_cogl_NONPKGCONFIG_LIBS_value"
  23813. cogl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_cogl_NONPKGCONFIG_EXTRA_LIBS_value"
  23814. cogl_REQUIRES="cogl-2.0-experimental"
  23815. pkg_failed=no
  23816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cogl" >&5
  23817. $as_echo_n "checking for cogl... " >&6; }
  23818. if test -n "$cogl_CFLAGS"; then
  23819. pkg_cv_cogl_CFLAGS="$cogl_CFLAGS"
  23820. elif test -n "$PKG_CONFIG"; then
  23821. if test -n "$PKG_CONFIG" && \
  23822. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
  23823. ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
  23824. ac_status=$?
  23825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23826. test $ac_status = 0; }; then
  23827. pkg_cv_cogl_CFLAGS=`$PKG_CONFIG --cflags "$cogl_REQUIRES" 2>/dev/null`
  23828. else
  23829. pkg_failed=yes
  23830. fi
  23831. else
  23832. pkg_failed=untried
  23833. fi
  23834. if test -n "$cogl_LIBS"; then
  23835. pkg_cv_cogl_LIBS="$cogl_LIBS"
  23836. elif test -n "$PKG_CONFIG"; then
  23837. if test -n "$PKG_CONFIG" && \
  23838. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
  23839. ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
  23840. ac_status=$?
  23841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23842. test $ac_status = 0; }; then
  23843. pkg_cv_cogl_LIBS=`$PKG_CONFIG --libs "$cogl_REQUIRES" 2>/dev/null`
  23844. else
  23845. pkg_failed=yes
  23846. fi
  23847. else
  23848. pkg_failed=untried
  23849. fi
  23850. if test $pkg_failed = yes; then
  23851. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23852. _pkg_short_errors_supported=yes
  23853. else
  23854. _pkg_short_errors_supported=no
  23855. fi
  23856. if test $_pkg_short_errors_supported = yes; then
  23857. cogl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cogl_REQUIRES" 2>&1`
  23858. else
  23859. cogl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cogl_REQUIRES" 2>&1`
  23860. fi
  23861. # Put the nasty error message in config.log where it belongs
  23862. echo "$cogl_PKG_ERRORS" >&5
  23863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23864. $as_echo "no" >&6; }
  23865. use_cogl="no"
  23866. elif test $pkg_failed = untried; then
  23867. use_cogl="no"
  23868. else
  23869. cogl_CFLAGS=$pkg_cv_cogl_CFLAGS
  23870. cogl_LIBS=$pkg_cv_cogl_LIBS
  23871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23872. $as_echo "yes" >&6; }
  23873. :
  23874. fi
  23875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Cogl surface backend feature could be enabled" >&5
  23876. $as_echo_n "checking whether cairo's Cogl surface backend feature could be enabled... " >&6; }
  23877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_cogl" >&5
  23878. $as_echo "$use_cogl" >&6; }
  23879. if test "x$enable_cogl" = "xyes" -a "x$use_cogl" != xyes; then :
  23880. as_fn_error $? " Cogl surface backend feature could not be enabled" "$LINENO" 5
  23881. fi ;; #(
  23882. *) :
  23883. as_fn_error $? "invalid argument passed to --enable-cogl: \`$use_cogl', should be one of [no/auto/yes]" "$LINENO" 5
  23884. ;;
  23885. esac
  23886. if test "x$use_cogl" = "xyes"; then :
  23887. CAIRO_REQUIRES="$cogl_REQUIRES"" ${CAIRO_REQUIRES}"
  23888. CAIRO_CFLAGS="$cogl_CFLAGS"" ${CAIRO_CFLAGS}"
  23889. CAIRO_NONPKGCONFIG_CFLAGS="$cogl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  23890. CAIRO_LIBS="$cogl_LIBS"" ${CAIRO_LIBS}"
  23891. CAIRO_NONPKGCONFIG_LIBS="$cogl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  23892. else
  23893. unset cogl_BASE
  23894. unset cogl_REQUIRES
  23895. unset cogl_CFLAGS
  23896. unset cogl_NONPKGCONFIG_CFLAGS
  23897. unset cogl_LIBS
  23898. unset cogl_NONPKGCONFIG_LIBS
  23899. unset cogl_NONPKGCONFIG_EXTRA_LIBS
  23900. fi
  23901. if test "x$use_cogl" = xyes; then
  23902. CAIRO_HAS_COGL_SURFACE_TRUE=
  23903. CAIRO_HAS_COGL_SURFACE_FALSE='#'
  23904. else
  23905. CAIRO_HAS_COGL_SURFACE_TRUE='#'
  23906. CAIRO_HAS_COGL_SURFACE_FALSE=
  23907. fi
  23908. cr_make_tmp='CAIRO_HAS_COGL_SURFACE=0'
  23909. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  23910. ""$cr_make_tmp"
  23911. cr_make_tmp=''
  23912. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23913. ""$cr_make_tmp"
  23914. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23915. ""$cr_make_tmp"
  23916. cr_make_tmp=''
  23917. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23918. ""$cr_make_tmp"
  23919. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23920. ""$cr_make_tmp"
  23921. cr_make_tmp='unsupported_cairo_headers += $(cairo_cogl_headers)'
  23922. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23923. ""$cr_make_tmp"
  23924. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23925. ""$cr_make_tmp"
  23926. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)'
  23927. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23928. ""$cr_make_tmp"
  23929. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23930. ""$cr_make_tmp"
  23931. cr_make_tmp='all_cairo_headers += $(cairo_cogl_headers)
  23932. all_cairo_private += $(cairo_cogl_private)
  23933. all_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
  23934. all_cairo_sources += $(cairo_cogl_sources)'
  23935. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23936. ""$cr_make_tmp"
  23937. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23938. ""$cr_make_tmp"
  23939. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
  23940. all_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
  23941. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
  23942. all_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
  23943. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23944. ""$cr_make_tmp"
  23945. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23946. ""$cr_make_tmp"
  23947. cr_make_tmp='enabled_cairo_headers += $(cairo_cogl_headers)
  23948. enabled_cairo_private += $(cairo_cogl_private)
  23949. enabled_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
  23950. enabled_cairo_sources += $(cairo_cogl_sources)'
  23951. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23952. "'if CAIRO_HAS_COGL_SURFACE'
  23953. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23954. ""$cr_make_tmp"
  23955. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23956. "'endif'
  23957. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23958. "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
  23959. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23960. ""$cr_make_tmp"
  23961. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23962. "'endif'
  23963. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
  23964. enabled_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
  23965. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
  23966. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
  23967. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23968. "'if CAIRO_HAS_COGL_SURFACE'
  23969. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23970. ""$cr_make_tmp"
  23971. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  23972. "'endif'
  23973. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23974. "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
  23975. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23976. ""$cr_make_tmp"
  23977. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  23978. "'endif'
  23979. if test "x$use_cogl" = xyes; then :
  23980. :
  23981. ac_config_files="$ac_config_files src/cairo-cogl.pc:src/cairo-features.pc.in"
  23982. fi
  23983. if test "x$use_cogl" = xyes; then :
  23984. :
  23985. ac_config_files="$ac_config_files cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  23986. fi
  23987. cr_make_tmp='all_cairo_pkgconf += cairo-cogl.pc'
  23988. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23989. ""$cr_make_tmp"
  23990. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  23991. ""$cr_make_tmp"
  23992. cr_make_tmp='enabled_cairo_pkgconf += cairo-cogl.pc'
  23993. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23994. "'if CAIRO_HAS_COGL_SURFACE'
  23995. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23996. ""$cr_make_tmp"
  23997. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  23998. "'endif'
  23999. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24000. "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
  24001. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24002. ""$cr_make_tmp"
  24003. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24004. "'endif'
  24005. if test "x$use_cogl" = xyes; then :
  24006. :
  24007. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_COGL_SURFACE'
  24008. fi
  24009. if test "x$use_cogl" != xyes; then :
  24010. :
  24011. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_COGL_SURFACE'
  24012. fi
  24013. cr_make_tmp=' @echo "#define CAIRO_HAS_COGL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  24014. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24015. "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
  24016. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24017. ""$cr_make_tmp"
  24018. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24019. "'endif'
  24020. if test "x$use_cogl" = xyes; then :
  24021. :
  24022. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  24023. "'--- The Cogl surface backend feature is still under active development and is
  24024. --- included in this release only as a preview. It does NOT fully work yet
  24025. --- and incompatible changes may yet be made to Cogl surface backend specific
  24026. --- API.'
  24027. fi
  24028. # Check whether --enable-directfb was given.
  24029. if test "${enable_directfb+set}" = set; then :
  24030. enableval=$enable_directfb; enable_directfb=$enableval
  24031. else
  24032. enable_directfb=no
  24033. fi
  24034. case $enable_directfb in #(
  24035. no) :
  24036. use_directfb="no (disabled, use --enable-directfb to enable)"
  24037. ;; #(
  24038. yes|auto) :
  24039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's directfb surface backend feature" >&5
  24040. $as_echo_n "checking for cairo's directfb surface backend feature... " >&6; }
  24041. echo
  24042. use_directfb=yes
  24043. directfb_BASE="cairo"
  24044. directfb_REQUIRES="$ac_env_directfb_REQUIRES_value"
  24045. directfb_CFLAGS="$ac_env_directfb_CFLAGS_value"
  24046. directfb_NONPKGCONFIG_CFLAGS="$ac_env_directfb_NONPKGCONFIG_CFLAGS_value"
  24047. directfb_LIBS="$ac_env_directfb_LIBS_value"
  24048. directfb_NONPKGCONFIG_LIBS="$ac_env_directfb_NONPKGCONFIG_LIBS_value"
  24049. directfb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_directfb_NONPKGCONFIG_EXTRA_LIBS_value"
  24050. directfb_REQUIRES=directfb
  24051. pkg_failed=no
  24052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb" >&5
  24053. $as_echo_n "checking for directfb... " >&6; }
  24054. if test -n "$directfb_CFLAGS"; then
  24055. pkg_cv_directfb_CFLAGS="$directfb_CFLAGS"
  24056. elif test -n "$PKG_CONFIG"; then
  24057. if test -n "$PKG_CONFIG" && \
  24058. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
  24059. ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
  24060. ac_status=$?
  24061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24062. test $ac_status = 0; }; then
  24063. pkg_cv_directfb_CFLAGS=`$PKG_CONFIG --cflags "$directfb_REQUIRES" 2>/dev/null`
  24064. else
  24065. pkg_failed=yes
  24066. fi
  24067. else
  24068. pkg_failed=untried
  24069. fi
  24070. if test -n "$directfb_LIBS"; then
  24071. pkg_cv_directfb_LIBS="$directfb_LIBS"
  24072. elif test -n "$PKG_CONFIG"; then
  24073. if test -n "$PKG_CONFIG" && \
  24074. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
  24075. ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
  24076. ac_status=$?
  24077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24078. test $ac_status = 0; }; then
  24079. pkg_cv_directfb_LIBS=`$PKG_CONFIG --libs "$directfb_REQUIRES" 2>/dev/null`
  24080. else
  24081. pkg_failed=yes
  24082. fi
  24083. else
  24084. pkg_failed=untried
  24085. fi
  24086. if test $pkg_failed = yes; then
  24087. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24088. _pkg_short_errors_supported=yes
  24089. else
  24090. _pkg_short_errors_supported=no
  24091. fi
  24092. if test $_pkg_short_errors_supported = yes; then
  24093. directfb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$directfb_REQUIRES" 2>&1`
  24094. else
  24095. directfb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$directfb_REQUIRES" 2>&1`
  24096. fi
  24097. # Put the nasty error message in config.log where it belongs
  24098. echo "$directfb_PKG_ERRORS" >&5
  24099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24100. $as_echo "no" >&6; }
  24101. use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
  24102. elif test $pkg_failed = untried; then
  24103. use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
  24104. else
  24105. directfb_CFLAGS=$pkg_cv_directfb_CFLAGS
  24106. directfb_LIBS=$pkg_cv_directfb_LIBS
  24107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24108. $as_echo "yes" >&6; }
  24109. :
  24110. fi
  24111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's directfb surface backend feature could be enabled" >&5
  24112. $as_echo_n "checking whether cairo's directfb surface backend feature could be enabled... " >&6; }
  24113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_directfb" >&5
  24114. $as_echo "$use_directfb" >&6; }
  24115. if test "x$enable_directfb" = "xyes" -a "x$use_directfb" != xyes; then :
  24116. as_fn_error $? " directfb surface backend feature could not be enabled" "$LINENO" 5
  24117. fi ;; #(
  24118. *) :
  24119. as_fn_error $? "invalid argument passed to --enable-directfb: \`$use_directfb', should be one of [no/auto/yes]" "$LINENO" 5
  24120. ;;
  24121. esac
  24122. if test "x$use_directfb" = "xyes"; then :
  24123. CAIRO_REQUIRES="$directfb_REQUIRES"" ${CAIRO_REQUIRES}"
  24124. CAIRO_CFLAGS="$directfb_CFLAGS"" ${CAIRO_CFLAGS}"
  24125. CAIRO_NONPKGCONFIG_CFLAGS="$directfb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  24126. CAIRO_LIBS="$directfb_LIBS"" ${CAIRO_LIBS}"
  24127. CAIRO_NONPKGCONFIG_LIBS="$directfb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  24128. else
  24129. unset directfb_BASE
  24130. unset directfb_REQUIRES
  24131. unset directfb_CFLAGS
  24132. unset directfb_NONPKGCONFIG_CFLAGS
  24133. unset directfb_LIBS
  24134. unset directfb_NONPKGCONFIG_LIBS
  24135. unset directfb_NONPKGCONFIG_EXTRA_LIBS
  24136. fi
  24137. if test "x$use_directfb" = xyes; then
  24138. CAIRO_HAS_DIRECTFB_SURFACE_TRUE=
  24139. CAIRO_HAS_DIRECTFB_SURFACE_FALSE='#'
  24140. else
  24141. CAIRO_HAS_DIRECTFB_SURFACE_TRUE='#'
  24142. CAIRO_HAS_DIRECTFB_SURFACE_FALSE=
  24143. fi
  24144. cr_make_tmp='CAIRO_HAS_DIRECTFB_SURFACE=0'
  24145. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  24146. ""$cr_make_tmp"
  24147. cr_make_tmp=''
  24148. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24149. ""$cr_make_tmp"
  24150. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24151. ""$cr_make_tmp"
  24152. cr_make_tmp=''
  24153. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24154. ""$cr_make_tmp"
  24155. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24156. ""$cr_make_tmp"
  24157. cr_make_tmp='unsupported_cairo_headers += $(cairo_directfb_headers)'
  24158. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24159. ""$cr_make_tmp"
  24160. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24161. ""$cr_make_tmp"
  24162. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)'
  24163. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24164. ""$cr_make_tmp"
  24165. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24166. ""$cr_make_tmp"
  24167. cr_make_tmp='all_cairo_headers += $(cairo_directfb_headers)
  24168. all_cairo_private += $(cairo_directfb_private)
  24169. all_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
  24170. all_cairo_sources += $(cairo_directfb_sources)'
  24171. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24172. ""$cr_make_tmp"
  24173. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24174. ""$cr_make_tmp"
  24175. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
  24176. all_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
  24177. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
  24178. all_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
  24179. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24180. ""$cr_make_tmp"
  24181. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24182. ""$cr_make_tmp"
  24183. cr_make_tmp='enabled_cairo_headers += $(cairo_directfb_headers)
  24184. enabled_cairo_private += $(cairo_directfb_private)
  24185. enabled_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
  24186. enabled_cairo_sources += $(cairo_directfb_sources)'
  24187. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24188. "'if CAIRO_HAS_DIRECTFB_SURFACE'
  24189. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24190. ""$cr_make_tmp"
  24191. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24192. "'endif'
  24193. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24194. "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
  24195. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24196. ""$cr_make_tmp"
  24197. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24198. "'endif'
  24199. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
  24200. enabled_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
  24201. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
  24202. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
  24203. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24204. "'if CAIRO_HAS_DIRECTFB_SURFACE'
  24205. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24206. ""$cr_make_tmp"
  24207. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24208. "'endif'
  24209. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24210. "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
  24211. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24212. ""$cr_make_tmp"
  24213. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24214. "'endif'
  24215. if test "x$use_directfb" = xyes; then :
  24216. :
  24217. ac_config_files="$ac_config_files src/cairo-directfb.pc:src/cairo-features.pc.in"
  24218. fi
  24219. if test "x$use_directfb" = xyes; then :
  24220. :
  24221. ac_config_files="$ac_config_files cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  24222. fi
  24223. cr_make_tmp='all_cairo_pkgconf += cairo-directfb.pc'
  24224. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24225. ""$cr_make_tmp"
  24226. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24227. ""$cr_make_tmp"
  24228. cr_make_tmp='enabled_cairo_pkgconf += cairo-directfb.pc'
  24229. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24230. "'if CAIRO_HAS_DIRECTFB_SURFACE'
  24231. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24232. ""$cr_make_tmp"
  24233. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24234. "'endif'
  24235. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24236. "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
  24237. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24238. ""$cr_make_tmp"
  24239. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24240. "'endif'
  24241. if test "x$use_directfb" = xyes; then :
  24242. :
  24243. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DIRECTFB_SURFACE'
  24244. fi
  24245. if test "x$use_directfb" != xyes; then :
  24246. :
  24247. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_DIRECTFB_SURFACE'
  24248. fi
  24249. cr_make_tmp=' @echo "#define CAIRO_HAS_DIRECTFB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  24250. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24251. "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
  24252. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24253. ""$cr_make_tmp"
  24254. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24255. "'endif'
  24256. if test "x$use_directfb" = xyes; then :
  24257. :
  24258. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  24259. "'--- The directfb surface backend feature is still under active development
  24260. --- and is included in this release only as a preview. It does NOT fully work
  24261. --- yet and incompatible changes may yet be made to directfb surface backend
  24262. --- specific API.'
  24263. fi
  24264. # Check whether --enable-vg was given.
  24265. if test "${enable_vg+set}" = set; then :
  24266. enableval=$enable_vg; enable_vg=$enableval
  24267. else
  24268. enable_vg=no
  24269. fi
  24270. case $enable_vg in #(
  24271. no) :
  24272. use_vg="no (disabled, use --enable-vg to enable)"
  24273. ;; #(
  24274. yes|auto) :
  24275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenVG surface backend feature" >&5
  24276. $as_echo_n "checking for cairo's OpenVG surface backend feature... " >&6; }
  24277. echo
  24278. use_vg=yes
  24279. vg_BASE="cairo"
  24280. vg_REQUIRES="$ac_env_vg_REQUIRES_value"
  24281. vg_CFLAGS="$ac_env_vg_CFLAGS_value"
  24282. vg_NONPKGCONFIG_CFLAGS="$ac_env_vg_NONPKGCONFIG_CFLAGS_value"
  24283. vg_LIBS="$ac_env_vg_LIBS_value"
  24284. vg_NONPKGCONFIG_LIBS="$ac_env_vg_NONPKGCONFIG_LIBS_value"
  24285. vg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_vg_NONPKGCONFIG_EXTRA_LIBS_value"
  24286. ac_fn_c_check_header_mongrel "$LINENO" "VG/openvg.h" "ac_cv_header_VG_openvg_h" "$ac_includes_default"
  24287. if test "x$ac_cv_header_VG_openvg_h" = xyes; then :
  24288. else
  24289. use_vg="no (OpenVG headers not found)"
  24290. fi
  24291. if test "x$use_vg" = "xyes"; then
  24292. vg_NONPKGCONFIG_CFLAGS=
  24293. vg_NONPKGCONFIG_LIBS="-lOpenVG"
  24294. need_egl_functions=yes
  24295. need_glx_functions=yes
  24296. fi
  24297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenVG surface backend feature could be enabled" >&5
  24298. $as_echo_n "checking whether cairo's OpenVG surface backend feature could be enabled... " >&6; }
  24299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_vg" >&5
  24300. $as_echo "$use_vg" >&6; }
  24301. if test "x$enable_vg" = "xyes" -a "x$use_vg" != xyes; then :
  24302. as_fn_error $? " OpenVG surface backend feature could not be enabled" "$LINENO" 5
  24303. fi ;; #(
  24304. *) :
  24305. as_fn_error $? "invalid argument passed to --enable-vg: \`$use_vg', should be one of [no/auto/yes]" "$LINENO" 5
  24306. ;;
  24307. esac
  24308. if test "x$use_vg" = "xyes"; then :
  24309. CAIRO_REQUIRES="$vg_REQUIRES"" ${CAIRO_REQUIRES}"
  24310. CAIRO_CFLAGS="$vg_CFLAGS"" ${CAIRO_CFLAGS}"
  24311. CAIRO_NONPKGCONFIG_CFLAGS="$vg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  24312. CAIRO_LIBS="$vg_LIBS"" ${CAIRO_LIBS}"
  24313. CAIRO_NONPKGCONFIG_LIBS="$vg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  24314. else
  24315. unset vg_BASE
  24316. unset vg_REQUIRES
  24317. unset vg_CFLAGS
  24318. unset vg_NONPKGCONFIG_CFLAGS
  24319. unset vg_LIBS
  24320. unset vg_NONPKGCONFIG_LIBS
  24321. unset vg_NONPKGCONFIG_EXTRA_LIBS
  24322. fi
  24323. if test "x$use_vg" = xyes; then
  24324. CAIRO_HAS_VG_SURFACE_TRUE=
  24325. CAIRO_HAS_VG_SURFACE_FALSE='#'
  24326. else
  24327. CAIRO_HAS_VG_SURFACE_TRUE='#'
  24328. CAIRO_HAS_VG_SURFACE_FALSE=
  24329. fi
  24330. cr_make_tmp='CAIRO_HAS_VG_SURFACE=0'
  24331. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  24332. ""$cr_make_tmp"
  24333. cr_make_tmp=''
  24334. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24335. ""$cr_make_tmp"
  24336. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24337. ""$cr_make_tmp"
  24338. cr_make_tmp=''
  24339. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24340. ""$cr_make_tmp"
  24341. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24342. ""$cr_make_tmp"
  24343. cr_make_tmp='unsupported_cairo_headers += $(cairo_vg_headers)'
  24344. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24345. ""$cr_make_tmp"
  24346. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24347. ""$cr_make_tmp"
  24348. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)'
  24349. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24350. ""$cr_make_tmp"
  24351. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24352. ""$cr_make_tmp"
  24353. cr_make_tmp='all_cairo_headers += $(cairo_vg_headers)
  24354. all_cairo_private += $(cairo_vg_private)
  24355. all_cairo_cxx_sources += $(cairo_vg_cxx_sources)
  24356. all_cairo_sources += $(cairo_vg_sources)'
  24357. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24358. ""$cr_make_tmp"
  24359. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24360. ""$cr_make_tmp"
  24361. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
  24362. all_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
  24363. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
  24364. all_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
  24365. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24366. ""$cr_make_tmp"
  24367. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24368. ""$cr_make_tmp"
  24369. cr_make_tmp='enabled_cairo_headers += $(cairo_vg_headers)
  24370. enabled_cairo_private += $(cairo_vg_private)
  24371. enabled_cairo_cxx_sources += $(cairo_vg_cxx_sources)
  24372. enabled_cairo_sources += $(cairo_vg_sources)'
  24373. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24374. "'if CAIRO_HAS_VG_SURFACE'
  24375. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24376. ""$cr_make_tmp"
  24377. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24378. "'endif'
  24379. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24380. "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
  24381. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24382. ""$cr_make_tmp"
  24383. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24384. "'endif'
  24385. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
  24386. enabled_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
  24387. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
  24388. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
  24389. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24390. "'if CAIRO_HAS_VG_SURFACE'
  24391. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24392. ""$cr_make_tmp"
  24393. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24394. "'endif'
  24395. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24396. "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
  24397. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24398. ""$cr_make_tmp"
  24399. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24400. "'endif'
  24401. if test "x$use_vg" = xyes; then :
  24402. :
  24403. ac_config_files="$ac_config_files src/cairo-vg.pc:src/cairo-features.pc.in"
  24404. fi
  24405. if test "x$use_vg" = xyes; then :
  24406. :
  24407. ac_config_files="$ac_config_files cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  24408. fi
  24409. cr_make_tmp='all_cairo_pkgconf += cairo-vg.pc'
  24410. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24411. ""$cr_make_tmp"
  24412. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24413. ""$cr_make_tmp"
  24414. cr_make_tmp='enabled_cairo_pkgconf += cairo-vg.pc'
  24415. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24416. "'if CAIRO_HAS_VG_SURFACE'
  24417. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24418. ""$cr_make_tmp"
  24419. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24420. "'endif'
  24421. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24422. "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
  24423. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24424. ""$cr_make_tmp"
  24425. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24426. "'endif'
  24427. if test "x$use_vg" = xyes; then :
  24428. :
  24429. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_VG_SURFACE'
  24430. fi
  24431. if test "x$use_vg" != xyes; then :
  24432. :
  24433. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_VG_SURFACE'
  24434. fi
  24435. cr_make_tmp=' @echo "#define CAIRO_HAS_VG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  24436. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24437. "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
  24438. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24439. ""$cr_make_tmp"
  24440. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24441. "'endif'
  24442. if test "x$use_vg" = xyes; then :
  24443. :
  24444. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  24445. "'--- The OpenVG surface backend feature is still under active development and
  24446. --- is included in this release only as a preview. It does NOT fully work yet
  24447. --- and incompatible changes may yet be made to OpenVG surface backend
  24448. --- specific API.'
  24449. fi
  24450. # Check whether --enable-egl was given.
  24451. if test "${enable_egl+set}" = set; then :
  24452. enableval=$enable_egl; enable_egl=$enableval
  24453. else
  24454. enable_egl=auto
  24455. fi
  24456. case $enable_egl in #(
  24457. no) :
  24458. use_egl="no (disabled, use --enable-egl to enable)"
  24459. ;; #(
  24460. yes|auto) :
  24461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's EGL functions feature" >&5
  24462. $as_echo_n "checking for cairo's EGL functions feature... " >&6; }
  24463. echo
  24464. use_egl=yes
  24465. egl_BASE="cairo"
  24466. egl_REQUIRES="$ac_env_egl_REQUIRES_value"
  24467. egl_CFLAGS="$ac_env_egl_CFLAGS_value"
  24468. egl_NONPKGCONFIG_CFLAGS="$ac_env_egl_NONPKGCONFIG_CFLAGS_value"
  24469. egl_LIBS="$ac_env_egl_LIBS_value"
  24470. egl_NONPKGCONFIG_LIBS="$ac_env_egl_NONPKGCONFIG_LIBS_value"
  24471. egl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_egl_NONPKGCONFIG_EXTRA_LIBS_value"
  24472. if test "x$need_egl_functions" = "xyes"; then
  24473. egl_REQUIRES="egl"
  24474. pkg_failed=no
  24475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egl" >&5
  24476. $as_echo_n "checking for egl... " >&6; }
  24477. if test -n "$egl_CFLAGS"; then
  24478. pkg_cv_egl_CFLAGS="$egl_CFLAGS"
  24479. elif test -n "$PKG_CONFIG"; then
  24480. if test -n "$PKG_CONFIG" && \
  24481. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
  24482. ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
  24483. ac_status=$?
  24484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24485. test $ac_status = 0; }; then
  24486. pkg_cv_egl_CFLAGS=`$PKG_CONFIG --cflags "$egl_REQUIRES" 2>/dev/null`
  24487. else
  24488. pkg_failed=yes
  24489. fi
  24490. else
  24491. pkg_failed=untried
  24492. fi
  24493. if test -n "$egl_LIBS"; then
  24494. pkg_cv_egl_LIBS="$egl_LIBS"
  24495. elif test -n "$PKG_CONFIG"; then
  24496. if test -n "$PKG_CONFIG" && \
  24497. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
  24498. ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
  24499. ac_status=$?
  24500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24501. test $ac_status = 0; }; then
  24502. pkg_cv_egl_LIBS=`$PKG_CONFIG --libs "$egl_REQUIRES" 2>/dev/null`
  24503. else
  24504. pkg_failed=yes
  24505. fi
  24506. else
  24507. pkg_failed=untried
  24508. fi
  24509. if test $pkg_failed = yes; then
  24510. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24511. _pkg_short_errors_supported=yes
  24512. else
  24513. _pkg_short_errors_supported=no
  24514. fi
  24515. if test $_pkg_short_errors_supported = yes; then
  24516. egl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$egl_REQUIRES" 2>&1`
  24517. else
  24518. egl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$egl_REQUIRES" 2>&1`
  24519. fi
  24520. # Put the nasty error message in config.log where it belongs
  24521. echo "$egl_PKG_ERRORS" >&5
  24522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24523. $as_echo "no" >&6; }
  24524. egl_REQUIRES=""
  24525. ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  24526. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  24527. else
  24528. use_egl="no (EGL headers not found)"
  24529. fi
  24530. if test "x$use_egl" = "xyes"; then
  24531. egl_NONPKGCONFIG_CFLAGS=
  24532. egl_NONPKGCONFIG_LIBS=
  24533. save_LIBS="$LIBS"
  24534. other_egl_LIBS=""
  24535. # Temporary workaround for missing link from egl13
  24536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
  24537. $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
  24538. if ${ac_cv_lib_csi_csi_stream_attachresource+:} false; then :
  24539. $as_echo_n "(cached) " >&6
  24540. else
  24541. ac_check_lib_save_LIBS=$LIBS
  24542. LIBS="-lcsi $LIBS"
  24543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24544. /* end confdefs.h. */
  24545. /* Override any GCC internal prototype to avoid an error.
  24546. Use char because int might match the return type of a GCC
  24547. builtin and then its argument prototype would still apply. */
  24548. #ifdef __cplusplus
  24549. extern "C"
  24550. #endif
  24551. char csi_stream_attachresource ();
  24552. int
  24553. main ()
  24554. {
  24555. return csi_stream_attachresource ();
  24556. ;
  24557. return 0;
  24558. }
  24559. _ACEOF
  24560. if ac_fn_c_try_link "$LINENO"; then :
  24561. ac_cv_lib_csi_csi_stream_attachresource=yes
  24562. else
  24563. ac_cv_lib_csi_csi_stream_attachresource=no
  24564. fi
  24565. rm -f core conftest.err conftest.$ac_objext \
  24566. conftest$ac_exeext conftest.$ac_ext
  24567. LIBS=$ac_check_lib_save_LIBS
  24568. fi
  24569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
  24570. $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
  24571. if test "x$ac_cv_lib_csi_csi_stream_attachresource" = xyes; then :
  24572. other_egl_LIBS="-lcsi"
  24573. fi
  24574. LIBS="$other_egl_LIBS $LIBS"
  24575. for egl_lib in EGL egl13 egl12 egl11; do
  24576. if test -z "$egl_NONPKGCONFIG_LIBS"; then
  24577. as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
  24578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
  24579. $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
  24580. if eval \${$as_ac_Lib+:} false; then :
  24581. $as_echo_n "(cached) " >&6
  24582. else
  24583. ac_check_lib_save_LIBS=$LIBS
  24584. LIBS="-l$egl_lib $LIBS"
  24585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24586. /* end confdefs.h. */
  24587. /* Override any GCC internal prototype to avoid an error.
  24588. Use char because int might match the return type of a GCC
  24589. builtin and then its argument prototype would still apply. */
  24590. #ifdef __cplusplus
  24591. extern "C"
  24592. #endif
  24593. char eglGetError ();
  24594. int
  24595. main ()
  24596. {
  24597. return eglGetError ();
  24598. ;
  24599. return 0;
  24600. }
  24601. _ACEOF
  24602. if ac_fn_c_try_link "$LINENO"; then :
  24603. eval "$as_ac_Lib=yes"
  24604. else
  24605. eval "$as_ac_Lib=no"
  24606. fi
  24607. rm -f core conftest.err conftest.$ac_objext \
  24608. conftest$ac_exeext conftest.$ac_ext
  24609. LIBS=$ac_check_lib_save_LIBS
  24610. fi
  24611. eval ac_res=\$$as_ac_Lib
  24612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24613. $as_echo "$ac_res" >&6; }
  24614. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24615. egl_NONPKGCONFIG_LIBS="-l$egl_lib"
  24616. fi
  24617. fi
  24618. done
  24619. if test -z "$egl_NONPKGCONFIG_LIBS"; then
  24620. use_egl="no (EGL library not found)"
  24621. else
  24622. egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
  24623. fi
  24624. LIBS="$save_LIBS"
  24625. fi
  24626. elif test $pkg_failed = untried; then
  24627. egl_REQUIRES=""
  24628. ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  24629. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  24630. else
  24631. use_egl="no (EGL headers not found)"
  24632. fi
  24633. if test "x$use_egl" = "xyes"; then
  24634. egl_NONPKGCONFIG_CFLAGS=
  24635. egl_NONPKGCONFIG_LIBS=
  24636. save_LIBS="$LIBS"
  24637. other_egl_LIBS=""
  24638. # Temporary workaround for missing link from egl13
  24639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
  24640. $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
  24641. if ${ac_cv_lib_csi_csi_stream_attachresource+:} false; then :
  24642. $as_echo_n "(cached) " >&6
  24643. else
  24644. ac_check_lib_save_LIBS=$LIBS
  24645. LIBS="-lcsi $LIBS"
  24646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24647. /* end confdefs.h. */
  24648. /* Override any GCC internal prototype to avoid an error.
  24649. Use char because int might match the return type of a GCC
  24650. builtin and then its argument prototype would still apply. */
  24651. #ifdef __cplusplus
  24652. extern "C"
  24653. #endif
  24654. char csi_stream_attachresource ();
  24655. int
  24656. main ()
  24657. {
  24658. return csi_stream_attachresource ();
  24659. ;
  24660. return 0;
  24661. }
  24662. _ACEOF
  24663. if ac_fn_c_try_link "$LINENO"; then :
  24664. ac_cv_lib_csi_csi_stream_attachresource=yes
  24665. else
  24666. ac_cv_lib_csi_csi_stream_attachresource=no
  24667. fi
  24668. rm -f core conftest.err conftest.$ac_objext \
  24669. conftest$ac_exeext conftest.$ac_ext
  24670. LIBS=$ac_check_lib_save_LIBS
  24671. fi
  24672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
  24673. $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
  24674. if test "x$ac_cv_lib_csi_csi_stream_attachresource" = xyes; then :
  24675. other_egl_LIBS="-lcsi"
  24676. fi
  24677. LIBS="$other_egl_LIBS $LIBS"
  24678. for egl_lib in EGL egl13 egl12 egl11; do
  24679. if test -z "$egl_NONPKGCONFIG_LIBS"; then
  24680. as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
  24681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
  24682. $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
  24683. if eval \${$as_ac_Lib+:} false; then :
  24684. $as_echo_n "(cached) " >&6
  24685. else
  24686. ac_check_lib_save_LIBS=$LIBS
  24687. LIBS="-l$egl_lib $LIBS"
  24688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24689. /* end confdefs.h. */
  24690. /* Override any GCC internal prototype to avoid an error.
  24691. Use char because int might match the return type of a GCC
  24692. builtin and then its argument prototype would still apply. */
  24693. #ifdef __cplusplus
  24694. extern "C"
  24695. #endif
  24696. char eglGetError ();
  24697. int
  24698. main ()
  24699. {
  24700. return eglGetError ();
  24701. ;
  24702. return 0;
  24703. }
  24704. _ACEOF
  24705. if ac_fn_c_try_link "$LINENO"; then :
  24706. eval "$as_ac_Lib=yes"
  24707. else
  24708. eval "$as_ac_Lib=no"
  24709. fi
  24710. rm -f core conftest.err conftest.$ac_objext \
  24711. conftest$ac_exeext conftest.$ac_ext
  24712. LIBS=$ac_check_lib_save_LIBS
  24713. fi
  24714. eval ac_res=\$$as_ac_Lib
  24715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24716. $as_echo "$ac_res" >&6; }
  24717. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24718. egl_NONPKGCONFIG_LIBS="-l$egl_lib"
  24719. fi
  24720. fi
  24721. done
  24722. if test -z "$egl_NONPKGCONFIG_LIBS"; then
  24723. use_egl="no (EGL library not found)"
  24724. else
  24725. egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
  24726. fi
  24727. LIBS="$save_LIBS"
  24728. fi
  24729. else
  24730. egl_CFLAGS=$pkg_cv_egl_CFLAGS
  24731. egl_LIBS=$pkg_cv_egl_LIBS
  24732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24733. $as_echo "yes" >&6; }
  24734. :
  24735. fi
  24736. else
  24737. use_egl="no (not required by any backend)"
  24738. fi
  24739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's EGL functions feature could be enabled" >&5
  24740. $as_echo_n "checking whether cairo's EGL functions feature could be enabled... " >&6; }
  24741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_egl" >&5
  24742. $as_echo "$use_egl" >&6; }
  24743. if test "x$enable_egl" = "xyes" -a "x$use_egl" != xyes; then :
  24744. as_fn_error $? " EGL functions feature could not be enabled" "$LINENO" 5
  24745. fi ;; #(
  24746. *) :
  24747. as_fn_error $? "invalid argument passed to --enable-egl: \`$use_egl', should be one of [no/auto/yes]" "$LINENO" 5
  24748. ;;
  24749. esac
  24750. if test "x$use_egl" = "xyes"; then :
  24751. CAIRO_REQUIRES="$egl_REQUIRES"" ${CAIRO_REQUIRES}"
  24752. CAIRO_CFLAGS="$egl_CFLAGS"" ${CAIRO_CFLAGS}"
  24753. CAIRO_NONPKGCONFIG_CFLAGS="$egl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  24754. CAIRO_LIBS="$egl_LIBS"" ${CAIRO_LIBS}"
  24755. CAIRO_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  24756. else
  24757. unset egl_BASE
  24758. unset egl_REQUIRES
  24759. unset egl_CFLAGS
  24760. unset egl_NONPKGCONFIG_CFLAGS
  24761. unset egl_LIBS
  24762. unset egl_NONPKGCONFIG_LIBS
  24763. unset egl_NONPKGCONFIG_EXTRA_LIBS
  24764. fi
  24765. if test "x$use_egl" = xyes; then
  24766. CAIRO_HAS_EGL_FUNCTIONS_TRUE=
  24767. CAIRO_HAS_EGL_FUNCTIONS_FALSE='#'
  24768. else
  24769. CAIRO_HAS_EGL_FUNCTIONS_TRUE='#'
  24770. CAIRO_HAS_EGL_FUNCTIONS_FALSE=
  24771. fi
  24772. cr_make_tmp='CAIRO_HAS_EGL_FUNCTIONS=0'
  24773. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  24774. ""$cr_make_tmp"
  24775. cr_make_tmp=''
  24776. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24777. ""$cr_make_tmp"
  24778. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24779. ""$cr_make_tmp"
  24780. cr_make_tmp=''
  24781. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24782. ""$cr_make_tmp"
  24783. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24784. ""$cr_make_tmp"
  24785. cr_make_tmp='supported_cairo_headers += $(cairo_egl_headers)'
  24786. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24787. ""$cr_make_tmp"
  24788. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24789. ""$cr_make_tmp"
  24790. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)'
  24791. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24792. ""$cr_make_tmp"
  24793. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24794. ""$cr_make_tmp"
  24795. cr_make_tmp='all_cairo_headers += $(cairo_egl_headers)
  24796. all_cairo_private += $(cairo_egl_private)
  24797. all_cairo_cxx_sources += $(cairo_egl_cxx_sources)
  24798. all_cairo_sources += $(cairo_egl_sources)'
  24799. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24800. ""$cr_make_tmp"
  24801. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24802. ""$cr_make_tmp"
  24803. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
  24804. all_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
  24805. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
  24806. all_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
  24807. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24808. ""$cr_make_tmp"
  24809. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24810. ""$cr_make_tmp"
  24811. cr_make_tmp='enabled_cairo_headers += $(cairo_egl_headers)
  24812. enabled_cairo_private += $(cairo_egl_private)
  24813. enabled_cairo_cxx_sources += $(cairo_egl_cxx_sources)
  24814. enabled_cairo_sources += $(cairo_egl_sources)'
  24815. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24816. "'if CAIRO_HAS_EGL_FUNCTIONS'
  24817. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24818. ""$cr_make_tmp"
  24819. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24820. "'endif'
  24821. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24822. "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
  24823. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24824. ""$cr_make_tmp"
  24825. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24826. "'endif'
  24827. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
  24828. enabled_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
  24829. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
  24830. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
  24831. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24832. "'if CAIRO_HAS_EGL_FUNCTIONS'
  24833. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24834. ""$cr_make_tmp"
  24835. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24836. "'endif'
  24837. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24838. "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
  24839. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24840. ""$cr_make_tmp"
  24841. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24842. "'endif'
  24843. if test "x$use_egl" = xyes; then :
  24844. :
  24845. ac_config_files="$ac_config_files src/cairo-egl.pc:src/cairo-features.pc.in"
  24846. fi
  24847. if test "x$use_egl" = xyes; then :
  24848. :
  24849. ac_config_files="$ac_config_files cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  24850. fi
  24851. cr_make_tmp='all_cairo_pkgconf += cairo-egl.pc'
  24852. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24853. ""$cr_make_tmp"
  24854. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24855. ""$cr_make_tmp"
  24856. cr_make_tmp='enabled_cairo_pkgconf += cairo-egl.pc'
  24857. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24858. "'if CAIRO_HAS_EGL_FUNCTIONS'
  24859. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24860. ""$cr_make_tmp"
  24861. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24862. "'endif'
  24863. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24864. "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
  24865. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24866. ""$cr_make_tmp"
  24867. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24868. "'endif'
  24869. if test "x$use_egl" = xyes; then :
  24870. :
  24871. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
  24872. fi
  24873. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
  24874. if test "x$use_egl" != xyes; then :
  24875. :
  24876. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
  24877. fi
  24878. cr_make_tmp=' @echo "#define CAIRO_HAS_EGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  24879. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24880. "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
  24881. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24882. ""$cr_make_tmp"
  24883. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  24884. "'endif'
  24885. # Check whether --enable-glx was given.
  24886. if test "${enable_glx+set}" = set; then :
  24887. enableval=$enable_glx; enable_glx=$enableval
  24888. else
  24889. enable_glx=auto
  24890. fi
  24891. case $enable_glx in #(
  24892. no) :
  24893. use_glx="no (disabled, use --enable-glx to enable)"
  24894. ;; #(
  24895. yes|auto) :
  24896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's GLX functions feature" >&5
  24897. $as_echo_n "checking for cairo's GLX functions feature... " >&6; }
  24898. echo
  24899. use_glx=yes
  24900. glx_BASE="cairo"
  24901. glx_REQUIRES="$ac_env_glx_REQUIRES_value"
  24902. glx_CFLAGS="$ac_env_glx_CFLAGS_value"
  24903. glx_NONPKGCONFIG_CFLAGS="$ac_env_glx_NONPKGCONFIG_CFLAGS_value"
  24904. glx_LIBS="$ac_env_glx_LIBS_value"
  24905. glx_NONPKGCONFIG_LIBS="$ac_env_glx_NONPKGCONFIG_LIBS_value"
  24906. glx_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glx_NONPKGCONFIG_EXTRA_LIBS_value"
  24907. if test "x$need_glx_functions" = "xyes"; then
  24908. save_CFLAGS="$CFLAGS"
  24909. CFLAGS="$CFLAGS $gl_CFLAGS $gl_NONPKGCONFIG_CFLAGS"
  24910. ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
  24911. if test "x$ac_cv_header_GL_glx_h" = xyes; then :
  24912. else
  24913. use_glx="no (GLX headers not found)"
  24914. fi
  24915. glx_NONPKGCONFIG_CFLAGS=
  24916. glx_NONPKGCONFIG_LIBS="-lGL"
  24917. CFLAGS="$save_CFLAGS"
  24918. else
  24919. use_glx="no (not required by any backend)"
  24920. fi
  24921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's GLX functions feature could be enabled" >&5
  24922. $as_echo_n "checking whether cairo's GLX functions feature could be enabled... " >&6; }
  24923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glx" >&5
  24924. $as_echo "$use_glx" >&6; }
  24925. if test "x$enable_glx" = "xyes" -a "x$use_glx" != xyes; then :
  24926. as_fn_error $? " GLX functions feature could not be enabled" "$LINENO" 5
  24927. fi ;; #(
  24928. *) :
  24929. as_fn_error $? "invalid argument passed to --enable-glx: \`$use_glx', should be one of [no/auto/yes]" "$LINENO" 5
  24930. ;;
  24931. esac
  24932. if test "x$use_glx" = "xyes"; then :
  24933. CAIRO_REQUIRES="$glx_REQUIRES"" ${CAIRO_REQUIRES}"
  24934. CAIRO_CFLAGS="$glx_CFLAGS"" ${CAIRO_CFLAGS}"
  24935. CAIRO_NONPKGCONFIG_CFLAGS="$glx_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  24936. CAIRO_LIBS="$glx_LIBS"" ${CAIRO_LIBS}"
  24937. CAIRO_NONPKGCONFIG_LIBS="$glx_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  24938. else
  24939. unset glx_BASE
  24940. unset glx_REQUIRES
  24941. unset glx_CFLAGS
  24942. unset glx_NONPKGCONFIG_CFLAGS
  24943. unset glx_LIBS
  24944. unset glx_NONPKGCONFIG_LIBS
  24945. unset glx_NONPKGCONFIG_EXTRA_LIBS
  24946. fi
  24947. if test "x$use_glx" = xyes; then
  24948. CAIRO_HAS_GLX_FUNCTIONS_TRUE=
  24949. CAIRO_HAS_GLX_FUNCTIONS_FALSE='#'
  24950. else
  24951. CAIRO_HAS_GLX_FUNCTIONS_TRUE='#'
  24952. CAIRO_HAS_GLX_FUNCTIONS_FALSE=
  24953. fi
  24954. cr_make_tmp='CAIRO_HAS_GLX_FUNCTIONS=0'
  24955. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  24956. ""$cr_make_tmp"
  24957. cr_make_tmp=''
  24958. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24959. ""$cr_make_tmp"
  24960. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24961. ""$cr_make_tmp"
  24962. cr_make_tmp=''
  24963. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24964. ""$cr_make_tmp"
  24965. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24966. ""$cr_make_tmp"
  24967. cr_make_tmp='supported_cairo_headers += $(cairo_glx_headers)'
  24968. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24969. ""$cr_make_tmp"
  24970. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24971. ""$cr_make_tmp"
  24972. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)'
  24973. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24974. ""$cr_make_tmp"
  24975. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24976. ""$cr_make_tmp"
  24977. cr_make_tmp='all_cairo_headers += $(cairo_glx_headers)
  24978. all_cairo_private += $(cairo_glx_private)
  24979. all_cairo_cxx_sources += $(cairo_glx_cxx_sources)
  24980. all_cairo_sources += $(cairo_glx_sources)'
  24981. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24982. ""$cr_make_tmp"
  24983. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  24984. ""$cr_make_tmp"
  24985. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
  24986. all_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
  24987. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
  24988. all_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
  24989. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  24990. ""$cr_make_tmp"
  24991. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  24992. ""$cr_make_tmp"
  24993. cr_make_tmp='enabled_cairo_headers += $(cairo_glx_headers)
  24994. enabled_cairo_private += $(cairo_glx_private)
  24995. enabled_cairo_cxx_sources += $(cairo_glx_cxx_sources)
  24996. enabled_cairo_sources += $(cairo_glx_sources)'
  24997. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  24998. "'if CAIRO_HAS_GLX_FUNCTIONS'
  24999. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25000. ""$cr_make_tmp"
  25001. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25002. "'endif'
  25003. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25004. "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
  25005. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25006. ""$cr_make_tmp"
  25007. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25008. "'endif'
  25009. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
  25010. enabled_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
  25011. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
  25012. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
  25013. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25014. "'if CAIRO_HAS_GLX_FUNCTIONS'
  25015. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25016. ""$cr_make_tmp"
  25017. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25018. "'endif'
  25019. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25020. "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
  25021. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25022. ""$cr_make_tmp"
  25023. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25024. "'endif'
  25025. if test "x$use_glx" = xyes; then :
  25026. :
  25027. ac_config_files="$ac_config_files src/cairo-glx.pc:src/cairo-features.pc.in"
  25028. fi
  25029. if test "x$use_glx" = xyes; then :
  25030. :
  25031. ac_config_files="$ac_config_files cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  25032. fi
  25033. cr_make_tmp='all_cairo_pkgconf += cairo-glx.pc'
  25034. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25035. ""$cr_make_tmp"
  25036. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25037. ""$cr_make_tmp"
  25038. cr_make_tmp='enabled_cairo_pkgconf += cairo-glx.pc'
  25039. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25040. "'if CAIRO_HAS_GLX_FUNCTIONS'
  25041. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25042. ""$cr_make_tmp"
  25043. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25044. "'endif'
  25045. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25046. "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
  25047. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25048. ""$cr_make_tmp"
  25049. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25050. "'endif'
  25051. if test "x$use_glx" = xyes; then :
  25052. :
  25053. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
  25054. fi
  25055. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
  25056. if test "x$use_glx" != xyes; then :
  25057. :
  25058. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
  25059. fi
  25060. cr_make_tmp=' @echo "#define CAIRO_HAS_GLX_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  25061. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25062. "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
  25063. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25064. ""$cr_make_tmp"
  25065. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25066. "'endif'
  25067. # Check whether --enable-wgl was given.
  25068. if test "${enable_wgl+set}" = set; then :
  25069. enableval=$enable_wgl; enable_wgl=$enableval
  25070. else
  25071. enable_wgl=auto
  25072. fi
  25073. case $enable_wgl in #(
  25074. no) :
  25075. use_wgl="no (disabled, use --enable-wgl to enable)"
  25076. ;; #(
  25077. yes|auto) :
  25078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's WGL functions feature" >&5
  25079. $as_echo_n "checking for cairo's WGL functions feature... " >&6; }
  25080. echo
  25081. use_wgl=yes
  25082. wgl_BASE="cairo"
  25083. wgl_REQUIRES="$ac_env_wgl_REQUIRES_value"
  25084. wgl_CFLAGS="$ac_env_wgl_CFLAGS_value"
  25085. wgl_NONPKGCONFIG_CFLAGS="$ac_env_wgl_NONPKGCONFIG_CFLAGS_value"
  25086. wgl_LIBS="$ac_env_wgl_LIBS_value"
  25087. wgl_NONPKGCONFIG_LIBS="$ac_env_wgl_NONPKGCONFIG_LIBS_value"
  25088. wgl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_wgl_NONPKGCONFIG_EXTRA_LIBS_value"
  25089. if test "x$need_wgl_functions" = "xyes"; then
  25090. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  25091. if test "x$ac_cv_header_windows_h" = xyes; then :
  25092. else
  25093. use_wgl="no (WGL headers not found)"
  25094. fi
  25095. else
  25096. use_wgl="no (not required by any backend)"
  25097. fi
  25098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's WGL functions feature could be enabled" >&5
  25099. $as_echo_n "checking whether cairo's WGL functions feature could be enabled... " >&6; }
  25100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_wgl" >&5
  25101. $as_echo "$use_wgl" >&6; }
  25102. if test "x$enable_wgl" = "xyes" -a "x$use_wgl" != xyes; then :
  25103. as_fn_error $? " WGL functions feature could not be enabled" "$LINENO" 5
  25104. fi ;; #(
  25105. *) :
  25106. as_fn_error $? "invalid argument passed to --enable-wgl: \`$use_wgl', should be one of [no/auto/yes]" "$LINENO" 5
  25107. ;;
  25108. esac
  25109. if test "x$use_wgl" = "xyes"; then :
  25110. CAIRO_REQUIRES="$wgl_REQUIRES"" ${CAIRO_REQUIRES}"
  25111. CAIRO_CFLAGS="$wgl_CFLAGS"" ${CAIRO_CFLAGS}"
  25112. CAIRO_NONPKGCONFIG_CFLAGS="$wgl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  25113. CAIRO_LIBS="$wgl_LIBS"" ${CAIRO_LIBS}"
  25114. CAIRO_NONPKGCONFIG_LIBS="$wgl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  25115. else
  25116. unset wgl_BASE
  25117. unset wgl_REQUIRES
  25118. unset wgl_CFLAGS
  25119. unset wgl_NONPKGCONFIG_CFLAGS
  25120. unset wgl_LIBS
  25121. unset wgl_NONPKGCONFIG_LIBS
  25122. unset wgl_NONPKGCONFIG_EXTRA_LIBS
  25123. fi
  25124. if test "x$use_wgl" = xyes; then
  25125. CAIRO_HAS_WGL_FUNCTIONS_TRUE=
  25126. CAIRO_HAS_WGL_FUNCTIONS_FALSE='#'
  25127. else
  25128. CAIRO_HAS_WGL_FUNCTIONS_TRUE='#'
  25129. CAIRO_HAS_WGL_FUNCTIONS_FALSE=
  25130. fi
  25131. cr_make_tmp='CAIRO_HAS_WGL_FUNCTIONS=0'
  25132. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  25133. ""$cr_make_tmp"
  25134. cr_make_tmp=''
  25135. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25136. ""$cr_make_tmp"
  25137. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25138. ""$cr_make_tmp"
  25139. cr_make_tmp=''
  25140. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25141. ""$cr_make_tmp"
  25142. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25143. ""$cr_make_tmp"
  25144. cr_make_tmp='supported_cairo_headers += $(cairo_wgl_headers)'
  25145. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25146. ""$cr_make_tmp"
  25147. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25148. ""$cr_make_tmp"
  25149. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)'
  25150. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25151. ""$cr_make_tmp"
  25152. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25153. ""$cr_make_tmp"
  25154. cr_make_tmp='all_cairo_headers += $(cairo_wgl_headers)
  25155. all_cairo_private += $(cairo_wgl_private)
  25156. all_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
  25157. all_cairo_sources += $(cairo_wgl_sources)'
  25158. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25159. ""$cr_make_tmp"
  25160. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25161. ""$cr_make_tmp"
  25162. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
  25163. all_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
  25164. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
  25165. all_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
  25166. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25167. ""$cr_make_tmp"
  25168. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25169. ""$cr_make_tmp"
  25170. cr_make_tmp='enabled_cairo_headers += $(cairo_wgl_headers)
  25171. enabled_cairo_private += $(cairo_wgl_private)
  25172. enabled_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
  25173. enabled_cairo_sources += $(cairo_wgl_sources)'
  25174. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25175. "'if CAIRO_HAS_WGL_FUNCTIONS'
  25176. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25177. ""$cr_make_tmp"
  25178. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25179. "'endif'
  25180. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25181. "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
  25182. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25183. ""$cr_make_tmp"
  25184. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25185. "'endif'
  25186. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
  25187. enabled_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
  25188. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
  25189. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
  25190. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25191. "'if CAIRO_HAS_WGL_FUNCTIONS'
  25192. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25193. ""$cr_make_tmp"
  25194. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25195. "'endif'
  25196. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25197. "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
  25198. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25199. ""$cr_make_tmp"
  25200. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25201. "'endif'
  25202. if test "x$use_wgl" = xyes; then :
  25203. :
  25204. ac_config_files="$ac_config_files src/cairo-wgl.pc:src/cairo-features.pc.in"
  25205. fi
  25206. if test "x$use_wgl" = xyes; then :
  25207. :
  25208. ac_config_files="$ac_config_files cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  25209. fi
  25210. cr_make_tmp='all_cairo_pkgconf += cairo-wgl.pc'
  25211. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25212. ""$cr_make_tmp"
  25213. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25214. ""$cr_make_tmp"
  25215. cr_make_tmp='enabled_cairo_pkgconf += cairo-wgl.pc'
  25216. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25217. "'if CAIRO_HAS_WGL_FUNCTIONS'
  25218. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25219. ""$cr_make_tmp"
  25220. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25221. "'endif'
  25222. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25223. "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
  25224. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25225. ""$cr_make_tmp"
  25226. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25227. "'endif'
  25228. if test "x$use_wgl" = xyes; then :
  25229. :
  25230. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
  25231. fi
  25232. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
  25233. if test "x$use_wgl" != xyes; then :
  25234. :
  25235. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
  25236. fi
  25237. cr_make_tmp=' @echo "#define CAIRO_HAS_WGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  25238. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25239. "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
  25240. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25241. ""$cr_make_tmp"
  25242. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25243. "'endif'
  25244. any2ppm_cs=no
  25245. # Check whether --enable-script was given.
  25246. if test "${enable_script+set}" = set; then :
  25247. enableval=$enable_script; enable_script=$enableval
  25248. else
  25249. enable_script=yes
  25250. fi
  25251. case $enable_script in #(
  25252. no) :
  25253. use_script="no (disabled, use --enable-script to enable)"
  25254. ;; #(
  25255. yes|auto) :
  25256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's script surface backend feature" >&5
  25257. $as_echo_n "checking for cairo's script surface backend feature... " >&6; }
  25258. echo
  25259. use_script=yes
  25260. script_BASE="cairo"
  25261. script_REQUIRES="$ac_env_script_REQUIRES_value"
  25262. script_CFLAGS="$ac_env_script_CFLAGS_value"
  25263. script_NONPKGCONFIG_CFLAGS="$ac_env_script_NONPKGCONFIG_CFLAGS_value"
  25264. script_LIBS="$ac_env_script_LIBS_value"
  25265. script_NONPKGCONFIG_LIBS="$ac_env_script_NONPKGCONFIG_LIBS_value"
  25266. script_NONPKGCONFIG_EXTRA_LIBS="$ac_env_script_NONPKGCONFIG_EXTRA_LIBS_value"
  25267. any2ppm_cs=yes
  25268. # The script backend requires zlib.
  25269. use_script=$have_libz
  25270. script_NONPKGCONFIG_LIBS=-lz
  25271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's script surface backend feature could be enabled" >&5
  25272. $as_echo_n "checking whether cairo's script surface backend feature could be enabled... " >&6; }
  25273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_script" >&5
  25274. $as_echo "$use_script" >&6; }
  25275. if test "x$enable_script" = "xyes" -a "x$use_script" != xyes; then :
  25276. as_fn_error $? "recommended script surface backend feature could not be enabled" "$LINENO" 5
  25277. fi ;; #(
  25278. *) :
  25279. as_fn_error $? "invalid argument passed to --enable-script: \`$use_script', should be one of [no/auto/yes]" "$LINENO" 5
  25280. ;;
  25281. esac
  25282. if test "x$use_script" = "xyes"; then :
  25283. CAIRO_REQUIRES="$script_REQUIRES"" ${CAIRO_REQUIRES}"
  25284. CAIRO_CFLAGS="$script_CFLAGS"" ${CAIRO_CFLAGS}"
  25285. CAIRO_NONPKGCONFIG_CFLAGS="$script_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  25286. CAIRO_LIBS="$script_LIBS"" ${CAIRO_LIBS}"
  25287. CAIRO_NONPKGCONFIG_LIBS="$script_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  25288. else
  25289. unset script_BASE
  25290. unset script_REQUIRES
  25291. unset script_CFLAGS
  25292. unset script_NONPKGCONFIG_CFLAGS
  25293. unset script_LIBS
  25294. unset script_NONPKGCONFIG_LIBS
  25295. unset script_NONPKGCONFIG_EXTRA_LIBS
  25296. fi
  25297. if test "x$use_script" = xyes; then
  25298. CAIRO_HAS_SCRIPT_SURFACE_TRUE=
  25299. CAIRO_HAS_SCRIPT_SURFACE_FALSE='#'
  25300. else
  25301. CAIRO_HAS_SCRIPT_SURFACE_TRUE='#'
  25302. CAIRO_HAS_SCRIPT_SURFACE_FALSE=
  25303. fi
  25304. cr_make_tmp='CAIRO_HAS_SCRIPT_SURFACE=1'
  25305. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  25306. ""$cr_make_tmp"
  25307. cr_make_tmp=''
  25308. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25309. ""$cr_make_tmp"
  25310. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25311. ""$cr_make_tmp"
  25312. cr_make_tmp=''
  25313. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25314. ""$cr_make_tmp"
  25315. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25316. ""$cr_make_tmp"
  25317. cr_make_tmp='supported_cairo_headers += $(cairo_script_headers)'
  25318. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25319. ""$cr_make_tmp"
  25320. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25321. ""$cr_make_tmp"
  25322. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)'
  25323. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25324. ""$cr_make_tmp"
  25325. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25326. ""$cr_make_tmp"
  25327. cr_make_tmp='all_cairo_headers += $(cairo_script_headers)
  25328. all_cairo_private += $(cairo_script_private)
  25329. all_cairo_cxx_sources += $(cairo_script_cxx_sources)
  25330. all_cairo_sources += $(cairo_script_sources)'
  25331. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25332. ""$cr_make_tmp"
  25333. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25334. ""$cr_make_tmp"
  25335. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
  25336. all_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
  25337. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
  25338. all_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
  25339. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25340. ""$cr_make_tmp"
  25341. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25342. ""$cr_make_tmp"
  25343. cr_make_tmp='enabled_cairo_headers += $(cairo_script_headers)
  25344. enabled_cairo_private += $(cairo_script_private)
  25345. enabled_cairo_cxx_sources += $(cairo_script_cxx_sources)
  25346. enabled_cairo_sources += $(cairo_script_sources)'
  25347. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25348. "'if CAIRO_HAS_SCRIPT_SURFACE'
  25349. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25350. ""$cr_make_tmp"
  25351. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25352. "'endif'
  25353. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25354. "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
  25355. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25356. ""$cr_make_tmp"
  25357. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25358. "'endif'
  25359. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
  25360. enabled_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
  25361. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
  25362. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
  25363. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25364. "'if CAIRO_HAS_SCRIPT_SURFACE'
  25365. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25366. ""$cr_make_tmp"
  25367. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25368. "'endif'
  25369. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25370. "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
  25371. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25372. ""$cr_make_tmp"
  25373. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25374. "'endif'
  25375. if test "x$use_script" = xyes; then :
  25376. :
  25377. ac_config_files="$ac_config_files src/cairo-script.pc:src/cairo-features.pc.in"
  25378. fi
  25379. if test "x$use_script" = xyes; then :
  25380. :
  25381. ac_config_files="$ac_config_files cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  25382. fi
  25383. cr_make_tmp='all_cairo_pkgconf += cairo-script.pc'
  25384. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25385. ""$cr_make_tmp"
  25386. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25387. ""$cr_make_tmp"
  25388. cr_make_tmp='enabled_cairo_pkgconf += cairo-script.pc'
  25389. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25390. "'if CAIRO_HAS_SCRIPT_SURFACE'
  25391. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25392. ""$cr_make_tmp"
  25393. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25394. "'endif'
  25395. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25396. "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
  25397. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25398. ""$cr_make_tmp"
  25399. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25400. "'endif'
  25401. if test "x$use_script" = xyes; then :
  25402. :
  25403. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
  25404. fi
  25405. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
  25406. if test "x$use_script" != xyes; then :
  25407. :
  25408. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
  25409. fi
  25410. cr_make_tmp=' @echo "#define CAIRO_HAS_SCRIPT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  25411. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25412. "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
  25413. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25414. ""$cr_make_tmp"
  25415. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25416. "'endif'
  25417. if test "x$use_script" != xyes; then :
  25418. :
  25419. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  25420. "'+++ It is strongly recommended that you do NOT disable the script surface
  25421. +++ backend feature.'
  25422. fi
  25423. # We use pkg-config to look for freetype2, but fall back to
  25424. # freetype-config if it fails. We prefer pkg-config, since we can
  25425. # then just put freetype2 >= $FREETYPE_MIN_VERSION in
  25426. # Requires.private, but at least up to 2003-06-07, there was no
  25427. # freetype2.pc in the release.
  25428. #
  25429. # FreeType versions come in three forms:
  25430. # release (such as 2.1.9)
  25431. # libtool (such as 9.7.3) (returned by freetype-config and pkg-config)
  25432. # platform-specific/soname (such as 6.3.4)
  25433. # and they recommend you never use the platform-specific version
  25434. # (see docs/VERSION.DLL in freetype2 sources)
  25435. #
  25436. # Set these as appropriate:
  25437. # release number - for information only
  25438. FREETYPE_MIN_RELEASE=2.1.9
  25439. # libtool-specific version - this is what is checked
  25440. FREETYPE_MIN_VERSION=9.7.3
  25441. # Check whether --enable-ft was given.
  25442. if test "${enable_ft+set}" = set; then :
  25443. enableval=$enable_ft; enable_ft=$enableval
  25444. else
  25445. enable_ft=auto
  25446. fi
  25447. case $enable_ft in #(
  25448. no) :
  25449. use_ft="no (disabled, use --enable-ft to enable)"
  25450. ;; #(
  25451. yes|auto) :
  25452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's FreeType font backend feature" >&5
  25453. $as_echo_n "checking for cairo's FreeType font backend feature... " >&6; }
  25454. echo
  25455. use_ft=yes
  25456. ft_BASE="cairo"
  25457. ft_REQUIRES="$ac_env_ft_REQUIRES_value"
  25458. ft_CFLAGS="$ac_env_ft_CFLAGS_value"
  25459. ft_NONPKGCONFIG_CFLAGS="$ac_env_ft_NONPKGCONFIG_CFLAGS_value"
  25460. ft_LIBS="$ac_env_ft_LIBS_value"
  25461. ft_NONPKGCONFIG_LIBS="$ac_env_ft_NONPKGCONFIG_LIBS_value"
  25462. ft_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ft_NONPKGCONFIG_EXTRA_LIBS_value"
  25463. pkg_failed=no
  25464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
  25465. $as_echo_n "checking for FREETYPE... " >&6; }
  25466. if test -n "$FREETYPE_CFLAGS"; then
  25467. pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
  25468. elif test -n "$PKG_CONFIG"; then
  25469. if test -n "$PKG_CONFIG" && \
  25470. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
  25471. ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
  25472. ac_status=$?
  25473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25474. test $ac_status = 0; }; then
  25475. pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
  25476. else
  25477. pkg_failed=yes
  25478. fi
  25479. else
  25480. pkg_failed=untried
  25481. fi
  25482. if test -n "$FREETYPE_LIBS"; then
  25483. pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
  25484. elif test -n "$PKG_CONFIG"; then
  25485. if test -n "$PKG_CONFIG" && \
  25486. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
  25487. ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
  25488. ac_status=$?
  25489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25490. test $ac_status = 0; }; then
  25491. pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
  25492. else
  25493. pkg_failed=yes
  25494. fi
  25495. else
  25496. pkg_failed=untried
  25497. fi
  25498. if test $pkg_failed = yes; then
  25499. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25500. _pkg_short_errors_supported=yes
  25501. else
  25502. _pkg_short_errors_supported=no
  25503. fi
  25504. if test $_pkg_short_errors_supported = yes; then
  25505. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
  25506. else
  25507. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
  25508. fi
  25509. # Put the nasty error message in config.log where it belongs
  25510. echo "$FREETYPE_PKG_ERRORS" >&5
  25511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25512. $as_echo "no" >&6; }
  25513. freetype_pkgconfig=no
  25514. elif test $pkg_failed = untried; then
  25515. freetype_pkgconfig=no
  25516. else
  25517. FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
  25518. FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
  25519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25520. $as_echo "yes" >&6; }
  25521. freetype_pkgconfig=yes
  25522. fi
  25523. if test "x$freetype_pkgconfig" = "xyes"; then
  25524. ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES"
  25525. else
  25526. if test -z "$FREETYPE_CONFIG"; then
  25527. # Extract the first word of "freetype-config", so it can be a program name with args.
  25528. set dummy freetype-config; ac_word=$2
  25529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25530. $as_echo_n "checking for $ac_word... " >&6; }
  25531. if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
  25532. $as_echo_n "(cached) " >&6
  25533. else
  25534. case $FREETYPE_CONFIG in
  25535. [\\/]* | ?:[\\/]*)
  25536. ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
  25537. ;;
  25538. *)
  25539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25540. for as_dir in $PATH
  25541. do
  25542. IFS=$as_save_IFS
  25543. test -z "$as_dir" && as_dir=.
  25544. for ac_exec_ext in '' $ac_executable_extensions; do
  25545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25546. ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  25547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25548. break 2
  25549. fi
  25550. done
  25551. done
  25552. IFS=$as_save_IFS
  25553. test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
  25554. ;;
  25555. esac
  25556. fi
  25557. FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
  25558. if test -n "$FREETYPE_CONFIG"; then
  25559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
  25560. $as_echo "$FREETYPE_CONFIG" >&6; }
  25561. else
  25562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25563. $as_echo "no" >&6; }
  25564. fi
  25565. fi
  25566. if test "x$FREETYPE_CONFIG" = "xno" ; then
  25567. use_ft='no (freetype-config not found in path or $FREETYPE_CONFIG)'
  25568. else
  25569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking freetype2 libtool version" >&5
  25570. $as_echo_n "checking freetype2 libtool version... " >&6; }
  25571. FREETYPE_VERSION=`$FREETYPE_CONFIG --version`
  25572. # Used to indicate true or false condition
  25573. ax_compare_version=false
  25574. # Convert the two version strings to be compared into a format that
  25575. # allows a simple string comparison. The end result is that a version
  25576. # string of the form 1.12.5-r617 will be converted to the form
  25577. # 0001001200050617. In other words, each number is zero padded to four
  25578. # digits, and non digits are removed.
  25579. ax_compare_version_A=`echo "$FREETYPE_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  25580. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  25581. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  25582. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  25583. -e 's/[^0-9]//g'`
  25584. ax_compare_version_B=`echo "$FREETYPE_MIN_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  25585. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  25586. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  25587. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  25588. -e 's/[^0-9]//g'`
  25589. ax_compare_version=`echo "x$ax_compare_version_A
  25590. x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  25591. if test "$ax_compare_version" = "true" ; then
  25592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - OK" >&5
  25593. $as_echo "$FREETYPE_VERSION - OK" >&6; }
  25594. ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags`
  25595. ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`
  25596. else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - Too old" >&5
  25597. $as_echo "$FREETYPE_VERSION - Too old" >&6; }
  25598. use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"
  25599. fi
  25600. fi
  25601. fi
  25602. ft_CFLAGS="$FREETYPE_CFLAGS"
  25603. ft_LIBS="$FREETYPE_LIBS"
  25604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's FreeType font backend feature could be enabled" >&5
  25605. $as_echo_n "checking whether cairo's FreeType font backend feature could be enabled... " >&6; }
  25606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ft" >&5
  25607. $as_echo "$use_ft" >&6; }
  25608. if test "x$enable_ft" = "xyes" -a "x$use_ft" != xyes; then :
  25609. as_fn_error $? " FreeType font backend feature could not be enabled" "$LINENO" 5
  25610. fi ;; #(
  25611. *) :
  25612. as_fn_error $? "invalid argument passed to --enable-ft: \`$use_ft', should be one of [no/auto/yes]" "$LINENO" 5
  25613. ;;
  25614. esac
  25615. if test "x$use_ft" = "xyes"; then :
  25616. CAIRO_REQUIRES="$ft_REQUIRES"" ${CAIRO_REQUIRES}"
  25617. CAIRO_CFLAGS="$ft_CFLAGS"" ${CAIRO_CFLAGS}"
  25618. CAIRO_NONPKGCONFIG_CFLAGS="$ft_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  25619. CAIRO_LIBS="$ft_LIBS"" ${CAIRO_LIBS}"
  25620. CAIRO_NONPKGCONFIG_LIBS="$ft_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  25621. else
  25622. unset ft_BASE
  25623. unset ft_REQUIRES
  25624. unset ft_CFLAGS
  25625. unset ft_NONPKGCONFIG_CFLAGS
  25626. unset ft_LIBS
  25627. unset ft_NONPKGCONFIG_LIBS
  25628. unset ft_NONPKGCONFIG_EXTRA_LIBS
  25629. fi
  25630. if test "x$use_ft" = xyes; then
  25631. CAIRO_HAS_FT_FONT_TRUE=
  25632. CAIRO_HAS_FT_FONT_FALSE='#'
  25633. else
  25634. CAIRO_HAS_FT_FONT_TRUE='#'
  25635. CAIRO_HAS_FT_FONT_FALSE=
  25636. fi
  25637. cr_make_tmp='CAIRO_HAS_FT_FONT=0'
  25638. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  25639. ""$cr_make_tmp"
  25640. cr_make_tmp=''
  25641. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25642. ""$cr_make_tmp"
  25643. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25644. ""$cr_make_tmp"
  25645. cr_make_tmp=''
  25646. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25647. ""$cr_make_tmp"
  25648. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25649. ""$cr_make_tmp"
  25650. cr_make_tmp='supported_cairo_headers += $(cairo_ft_headers)'
  25651. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25652. ""$cr_make_tmp"
  25653. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25654. ""$cr_make_tmp"
  25655. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)'
  25656. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25657. ""$cr_make_tmp"
  25658. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25659. ""$cr_make_tmp"
  25660. cr_make_tmp='all_cairo_headers += $(cairo_ft_headers)
  25661. all_cairo_private += $(cairo_ft_private)
  25662. all_cairo_cxx_sources += $(cairo_ft_cxx_sources)
  25663. all_cairo_sources += $(cairo_ft_sources)'
  25664. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25665. ""$cr_make_tmp"
  25666. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25667. ""$cr_make_tmp"
  25668. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
  25669. all_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
  25670. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
  25671. all_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
  25672. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25673. ""$cr_make_tmp"
  25674. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25675. ""$cr_make_tmp"
  25676. cr_make_tmp='enabled_cairo_headers += $(cairo_ft_headers)
  25677. enabled_cairo_private += $(cairo_ft_private)
  25678. enabled_cairo_cxx_sources += $(cairo_ft_cxx_sources)
  25679. enabled_cairo_sources += $(cairo_ft_sources)'
  25680. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25681. "'if CAIRO_HAS_FT_FONT'
  25682. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25683. ""$cr_make_tmp"
  25684. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25685. "'endif'
  25686. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25687. "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
  25688. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25689. ""$cr_make_tmp"
  25690. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25691. "'endif'
  25692. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
  25693. enabled_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
  25694. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
  25695. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
  25696. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25697. "'if CAIRO_HAS_FT_FONT'
  25698. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25699. ""$cr_make_tmp"
  25700. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25701. "'endif'
  25702. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25703. "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
  25704. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25705. ""$cr_make_tmp"
  25706. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25707. "'endif'
  25708. if test "x$use_ft" = xyes; then :
  25709. :
  25710. ac_config_files="$ac_config_files src/cairo-ft.pc:src/cairo-features.pc.in"
  25711. fi
  25712. if test "x$use_ft" = xyes; then :
  25713. :
  25714. ac_config_files="$ac_config_files cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  25715. fi
  25716. cr_make_tmp='all_cairo_pkgconf += cairo-ft.pc'
  25717. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25718. ""$cr_make_tmp"
  25719. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25720. ""$cr_make_tmp"
  25721. cr_make_tmp='enabled_cairo_pkgconf += cairo-ft.pc'
  25722. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25723. "'if CAIRO_HAS_FT_FONT'
  25724. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25725. ""$cr_make_tmp"
  25726. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25727. "'endif'
  25728. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25729. "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
  25730. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25731. ""$cr_make_tmp"
  25732. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25733. "'endif'
  25734. if test "x$use_ft" = xyes; then :
  25735. :
  25736. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FT_FONT'
  25737. fi
  25738. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FT_FONT'
  25739. if test "x$use_ft" != xyes; then :
  25740. :
  25741. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FT_FONT'
  25742. fi
  25743. cr_make_tmp=' @echo "#define CAIRO_HAS_FT_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
  25744. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25745. "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
  25746. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25747. ""$cr_make_tmp"
  25748. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25749. "'endif'
  25750. if test "x$use_ft" = xyes; then :
  25751. :
  25752. CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'ft'
  25753. fi
  25754. FONTCONFIG_MIN_VERSION=2.2.95
  25755. # Check whether --enable-fc was given.
  25756. if test "${enable_fc+set}" = set; then :
  25757. enableval=$enable_fc; enable_fc=$enableval
  25758. else
  25759. enable_fc=auto
  25760. fi
  25761. case $enable_fc in #(
  25762. no) :
  25763. use_fc="no (disabled, use --enable-fc to enable)"
  25764. ;; #(
  25765. yes|auto) :
  25766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Fontconfig font backend feature" >&5
  25767. $as_echo_n "checking for cairo's Fontconfig font backend feature... " >&6; }
  25768. echo
  25769. use_fc=yes
  25770. fc_BASE="cairo"
  25771. fc_REQUIRES="$ac_env_fc_REQUIRES_value"
  25772. fc_CFLAGS="$ac_env_fc_CFLAGS_value"
  25773. fc_NONPKGCONFIG_CFLAGS="$ac_env_fc_NONPKGCONFIG_CFLAGS_value"
  25774. fc_LIBS="$ac_env_fc_LIBS_value"
  25775. fc_NONPKGCONFIG_LIBS="$ac_env_fc_NONPKGCONFIG_LIBS_value"
  25776. fc_NONPKGCONFIG_EXTRA_LIBS="$ac_env_fc_NONPKGCONFIG_EXTRA_LIBS_value"
  25777. use_fc=$use_ft
  25778. if test "x$use_fc" = "xyes"; then
  25779. fc_REQUIRES="fontconfig >= $FONTCONFIG_MIN_VERSION"
  25780. pkg_failed=no
  25781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
  25782. $as_echo_n "checking for FONTCONFIG... " >&6; }
  25783. if test -n "$FONTCONFIG_CFLAGS"; then
  25784. pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
  25785. elif test -n "$PKG_CONFIG"; then
  25786. if test -n "$PKG_CONFIG" && \
  25787. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
  25788. ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
  25789. ac_status=$?
  25790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25791. test $ac_status = 0; }; then
  25792. pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "$fc_REQUIRES" 2>/dev/null`
  25793. else
  25794. pkg_failed=yes
  25795. fi
  25796. else
  25797. pkg_failed=untried
  25798. fi
  25799. if test -n "$FONTCONFIG_LIBS"; then
  25800. pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
  25801. elif test -n "$PKG_CONFIG"; then
  25802. if test -n "$PKG_CONFIG" && \
  25803. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
  25804. ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
  25805. ac_status=$?
  25806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25807. test $ac_status = 0; }; then
  25808. pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "$fc_REQUIRES" 2>/dev/null`
  25809. else
  25810. pkg_failed=yes
  25811. fi
  25812. else
  25813. pkg_failed=untried
  25814. fi
  25815. if test $pkg_failed = yes; then
  25816. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25817. _pkg_short_errors_supported=yes
  25818. else
  25819. _pkg_short_errors_supported=no
  25820. fi
  25821. if test $_pkg_short_errors_supported = yes; then
  25822. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$fc_REQUIRES" 2>&1`
  25823. else
  25824. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$fc_REQUIRES" 2>&1`
  25825. fi
  25826. # Put the nasty error message in config.log where it belongs
  25827. echo "$FONTCONFIG_PKG_ERRORS" >&5
  25828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25829. $as_echo "no" >&6; }
  25830. use_fc="no (requires $fc_REQUIRES)"
  25831. elif test $pkg_failed = untried; then
  25832. use_fc="no (requires $fc_REQUIRES)"
  25833. else
  25834. FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
  25835. FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
  25836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25837. $as_echo "yes" >&6; }
  25838. :
  25839. fi
  25840. fi
  25841. fc_CFLAGS="$FONTCONFIG_CFLAGS"
  25842. fc_LIBS="$FONTCONFIG_LIBS"
  25843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Fontconfig font backend feature could be enabled" >&5
  25844. $as_echo_n "checking whether cairo's Fontconfig font backend feature could be enabled... " >&6; }
  25845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_fc" >&5
  25846. $as_echo "$use_fc" >&6; }
  25847. if test "x$enable_fc" = "xyes" -a "x$use_fc" != xyes; then :
  25848. as_fn_error $? " Fontconfig font backend feature could not be enabled" "$LINENO" 5
  25849. fi ;; #(
  25850. *) :
  25851. as_fn_error $? "invalid argument passed to --enable-fc: \`$use_fc', should be one of [no/auto/yes]" "$LINENO" 5
  25852. ;;
  25853. esac
  25854. if test "x$use_fc" = "xyes"; then :
  25855. CAIRO_REQUIRES="$fc_REQUIRES"" ${CAIRO_REQUIRES}"
  25856. CAIRO_CFLAGS="$fc_CFLAGS"" ${CAIRO_CFLAGS}"
  25857. CAIRO_NONPKGCONFIG_CFLAGS="$fc_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  25858. CAIRO_LIBS="$fc_LIBS"" ${CAIRO_LIBS}"
  25859. CAIRO_NONPKGCONFIG_LIBS="$fc_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  25860. else
  25861. unset fc_BASE
  25862. unset fc_REQUIRES
  25863. unset fc_CFLAGS
  25864. unset fc_NONPKGCONFIG_CFLAGS
  25865. unset fc_LIBS
  25866. unset fc_NONPKGCONFIG_LIBS
  25867. unset fc_NONPKGCONFIG_EXTRA_LIBS
  25868. fi
  25869. if test "x$use_fc" = xyes; then
  25870. CAIRO_HAS_FC_FONT_TRUE=
  25871. CAIRO_HAS_FC_FONT_FALSE='#'
  25872. else
  25873. CAIRO_HAS_FC_FONT_TRUE='#'
  25874. CAIRO_HAS_FC_FONT_FALSE=
  25875. fi
  25876. cr_make_tmp='CAIRO_HAS_FC_FONT=0'
  25877. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  25878. ""$cr_make_tmp"
  25879. cr_make_tmp=''
  25880. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25881. ""$cr_make_tmp"
  25882. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25883. ""$cr_make_tmp"
  25884. cr_make_tmp=''
  25885. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25886. ""$cr_make_tmp"
  25887. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25888. ""$cr_make_tmp"
  25889. cr_make_tmp='supported_cairo_headers += $(cairo_fc_headers)'
  25890. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25891. ""$cr_make_tmp"
  25892. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25893. ""$cr_make_tmp"
  25894. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)'
  25895. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25896. ""$cr_make_tmp"
  25897. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25898. ""$cr_make_tmp"
  25899. cr_make_tmp='all_cairo_headers += $(cairo_fc_headers)
  25900. all_cairo_private += $(cairo_fc_private)
  25901. all_cairo_cxx_sources += $(cairo_fc_cxx_sources)
  25902. all_cairo_sources += $(cairo_fc_sources)'
  25903. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25904. ""$cr_make_tmp"
  25905. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25906. ""$cr_make_tmp"
  25907. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
  25908. all_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
  25909. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
  25910. all_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
  25911. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25912. ""$cr_make_tmp"
  25913. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25914. ""$cr_make_tmp"
  25915. cr_make_tmp='enabled_cairo_headers += $(cairo_fc_headers)
  25916. enabled_cairo_private += $(cairo_fc_private)
  25917. enabled_cairo_cxx_sources += $(cairo_fc_cxx_sources)
  25918. enabled_cairo_sources += $(cairo_fc_sources)'
  25919. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25920. "'if CAIRO_HAS_FC_FONT'
  25921. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25922. ""$cr_make_tmp"
  25923. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25924. "'endif'
  25925. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25926. "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
  25927. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25928. ""$cr_make_tmp"
  25929. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25930. "'endif'
  25931. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
  25932. enabled_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
  25933. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
  25934. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
  25935. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25936. "'if CAIRO_HAS_FC_FONT'
  25937. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25938. ""$cr_make_tmp"
  25939. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  25940. "'endif'
  25941. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25942. "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
  25943. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25944. ""$cr_make_tmp"
  25945. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  25946. "'endif'
  25947. if test "x$use_fc" = xyes; then :
  25948. :
  25949. ac_config_files="$ac_config_files src/cairo-fc.pc:src/cairo-features.pc.in"
  25950. fi
  25951. if test "x$use_fc" = xyes; then :
  25952. :
  25953. ac_config_files="$ac_config_files cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  25954. fi
  25955. cr_make_tmp='all_cairo_pkgconf += cairo-fc.pc'
  25956. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25957. ""$cr_make_tmp"
  25958. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25959. ""$cr_make_tmp"
  25960. cr_make_tmp='enabled_cairo_pkgconf += cairo-fc.pc'
  25961. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25962. "'if CAIRO_HAS_FC_FONT'
  25963. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25964. ""$cr_make_tmp"
  25965. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  25966. "'endif'
  25967. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25968. "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
  25969. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25970. ""$cr_make_tmp"
  25971. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  25972. "'endif'
  25973. if test "x$use_fc" = xyes; then :
  25974. :
  25975. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FC_FONT'
  25976. fi
  25977. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FC_FONT'
  25978. if test "x$use_fc" != xyes; then :
  25979. :
  25980. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FC_FONT'
  25981. fi
  25982. cr_make_tmp=' @echo "#define CAIRO_HAS_FC_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
  25983. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25984. "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
  25985. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25986. ""$cr_make_tmp"
  25987. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  25988. "'endif'
  25989. if test "x$use_fc" = xyes; then :
  25990. :
  25991. CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'fc'
  25992. fi
  25993. if test "x$use_ft" = "xyes"; then
  25994. _save_libs="$LIBS"
  25995. _save_cflags="$CFLAGS"
  25996. LIBS="$LIBS $ft_LIBS"
  25997. CFLAGS="$CFLAGS $ft_CFLAGS"
  25998. for ac_func in FT_Get_X11_Font_Format FT_GlyphSlot_Embolden FT_GlyphSlot_Oblique FT_Load_Sfnt_Table FT_Library_SetLcdFilter FT_Get_Var_Design_Coordinates FT_Done_MM_Var
  25999. do :
  26000. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26001. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  26002. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  26003. cat >>confdefs.h <<_ACEOF
  26004. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26005. _ACEOF
  26006. fi
  26007. done
  26008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_HAS_COLOR" >&5
  26009. $as_echo_n "checking for FT_HAS_COLOR... " >&6; }
  26010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26011. /* end confdefs.h. */
  26012. #include <ft2build.h>
  26013. #include FT_FREETYPE_H
  26014. int
  26015. main ()
  26016. {
  26017. FT_Long has_color = FT_HAS_COLOR( ((FT_Face)NULL) );
  26018. ;
  26019. return 0;
  26020. }
  26021. _ACEOF
  26022. if ac_fn_c_try_link "$LINENO"; then :
  26023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26024. $as_echo "yes" >&6; }
  26025. else
  26026. $as_echo "#define FT_HAS_COLOR(x) (0)" >>confdefs.h
  26027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disable color font (freetype2 >= 2.5.1 is required)" >&5
  26028. $as_echo "no, disable color font (freetype2 >= 2.5.1 is required)" >&6; }
  26029. fi
  26030. rm -f core conftest.err conftest.$ac_objext \
  26031. conftest$ac_exeext conftest.$ac_ext
  26032. LIBS="$_save_libs"
  26033. CFLAGS="$_save_cflags"
  26034. fi
  26035. if test "x$use_fc" = "xyes"; then
  26036. _save_cflags="$CFLAGS"
  26037. _save_libs="$LIBS"
  26038. CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
  26039. LIBS="$LIBS $FONTCONFIG_LIBS"
  26040. for ac_func in FcInit FcFini
  26041. do :
  26042. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26043. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  26044. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  26045. cat >>confdefs.h <<_ACEOF
  26046. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26047. _ACEOF
  26048. fi
  26049. done
  26050. CFLAGS="$_save_cflags"
  26051. LIBS="$_save_libs"
  26052. fi
  26053. # Check whether --enable-ps was given.
  26054. if test "${enable_ps+set}" = set; then :
  26055. enableval=$enable_ps; enable_ps=$enableval
  26056. else
  26057. enable_ps=yes
  26058. fi
  26059. case $enable_ps in #(
  26060. no) :
  26061. use_ps="no (disabled, use --enable-ps to enable)"
  26062. ;; #(
  26063. yes|auto) :
  26064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PostScript surface backend feature" >&5
  26065. $as_echo_n "checking for cairo's PostScript surface backend feature... " >&6; }
  26066. echo
  26067. use_ps=yes
  26068. ps_BASE="cairo"
  26069. ps_REQUIRES="$ac_env_ps_REQUIRES_value"
  26070. ps_CFLAGS="$ac_env_ps_CFLAGS_value"
  26071. ps_NONPKGCONFIG_CFLAGS="$ac_env_ps_NONPKGCONFIG_CFLAGS_value"
  26072. ps_LIBS="$ac_env_ps_LIBS_value"
  26073. ps_NONPKGCONFIG_LIBS="$ac_env_ps_NONPKGCONFIG_LIBS_value"
  26074. ps_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ps_NONPKGCONFIG_EXTRA_LIBS_value"
  26075. # The ps backend requires zlib.
  26076. use_ps=$have_libz
  26077. ps_NONPKGCONFIG_LIBS=-lz
  26078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PostScript surface backend feature could be enabled" >&5
  26079. $as_echo_n "checking whether cairo's PostScript surface backend feature could be enabled... " >&6; }
  26080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ps" >&5
  26081. $as_echo "$use_ps" >&6; }
  26082. if test "x$enable_ps" = "xyes" -a "x$use_ps" != xyes; then :
  26083. as_fn_error $? "recommended PostScript surface backend feature could not be enabled" "$LINENO" 5
  26084. fi ;; #(
  26085. *) :
  26086. as_fn_error $? "invalid argument passed to --enable-ps: \`$use_ps', should be one of [no/auto/yes]" "$LINENO" 5
  26087. ;;
  26088. esac
  26089. if test "x$use_ps" = "xyes"; then :
  26090. CAIRO_REQUIRES="$ps_REQUIRES"" ${CAIRO_REQUIRES}"
  26091. CAIRO_CFLAGS="$ps_CFLAGS"" ${CAIRO_CFLAGS}"
  26092. CAIRO_NONPKGCONFIG_CFLAGS="$ps_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  26093. CAIRO_LIBS="$ps_LIBS"" ${CAIRO_LIBS}"
  26094. CAIRO_NONPKGCONFIG_LIBS="$ps_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  26095. else
  26096. unset ps_BASE
  26097. unset ps_REQUIRES
  26098. unset ps_CFLAGS
  26099. unset ps_NONPKGCONFIG_CFLAGS
  26100. unset ps_LIBS
  26101. unset ps_NONPKGCONFIG_LIBS
  26102. unset ps_NONPKGCONFIG_EXTRA_LIBS
  26103. fi
  26104. if test "x$use_ps" = xyes; then
  26105. CAIRO_HAS_PS_SURFACE_TRUE=
  26106. CAIRO_HAS_PS_SURFACE_FALSE='#'
  26107. else
  26108. CAIRO_HAS_PS_SURFACE_TRUE='#'
  26109. CAIRO_HAS_PS_SURFACE_FALSE=
  26110. fi
  26111. cr_make_tmp='CAIRO_HAS_PS_SURFACE=1'
  26112. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  26113. ""$cr_make_tmp"
  26114. cr_make_tmp=''
  26115. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26116. ""$cr_make_tmp"
  26117. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26118. ""$cr_make_tmp"
  26119. cr_make_tmp=''
  26120. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26121. ""$cr_make_tmp"
  26122. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26123. ""$cr_make_tmp"
  26124. cr_make_tmp='supported_cairo_headers += $(cairo_ps_headers)'
  26125. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26126. ""$cr_make_tmp"
  26127. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26128. ""$cr_make_tmp"
  26129. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)'
  26130. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26131. ""$cr_make_tmp"
  26132. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26133. ""$cr_make_tmp"
  26134. cr_make_tmp='all_cairo_headers += $(cairo_ps_headers)
  26135. all_cairo_private += $(cairo_ps_private)
  26136. all_cairo_cxx_sources += $(cairo_ps_cxx_sources)
  26137. all_cairo_sources += $(cairo_ps_sources)'
  26138. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26139. ""$cr_make_tmp"
  26140. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26141. ""$cr_make_tmp"
  26142. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
  26143. all_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
  26144. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
  26145. all_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
  26146. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26147. ""$cr_make_tmp"
  26148. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26149. ""$cr_make_tmp"
  26150. cr_make_tmp='enabled_cairo_headers += $(cairo_ps_headers)
  26151. enabled_cairo_private += $(cairo_ps_private)
  26152. enabled_cairo_cxx_sources += $(cairo_ps_cxx_sources)
  26153. enabled_cairo_sources += $(cairo_ps_sources)'
  26154. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26155. "'if CAIRO_HAS_PS_SURFACE'
  26156. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26157. ""$cr_make_tmp"
  26158. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26159. "'endif'
  26160. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26161. "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
  26162. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26163. ""$cr_make_tmp"
  26164. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26165. "'endif'
  26166. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
  26167. enabled_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
  26168. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
  26169. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
  26170. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26171. "'if CAIRO_HAS_PS_SURFACE'
  26172. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26173. ""$cr_make_tmp"
  26174. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26175. "'endif'
  26176. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26177. "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
  26178. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26179. ""$cr_make_tmp"
  26180. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26181. "'endif'
  26182. if test "x$use_ps" = xyes; then :
  26183. :
  26184. ac_config_files="$ac_config_files src/cairo-ps.pc:src/cairo-features.pc.in"
  26185. fi
  26186. if test "x$use_ps" = xyes; then :
  26187. :
  26188. ac_config_files="$ac_config_files cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  26189. fi
  26190. cr_make_tmp='all_cairo_pkgconf += cairo-ps.pc'
  26191. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26192. ""$cr_make_tmp"
  26193. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26194. ""$cr_make_tmp"
  26195. cr_make_tmp='enabled_cairo_pkgconf += cairo-ps.pc'
  26196. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26197. "'if CAIRO_HAS_PS_SURFACE'
  26198. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26199. ""$cr_make_tmp"
  26200. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26201. "'endif'
  26202. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26203. "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
  26204. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26205. ""$cr_make_tmp"
  26206. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26207. "'endif'
  26208. if test "x$use_ps" = xyes; then :
  26209. :
  26210. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
  26211. fi
  26212. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PS_SURFACE'
  26213. if test "x$use_ps" != xyes; then :
  26214. :
  26215. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
  26216. fi
  26217. cr_make_tmp=' @echo "#define CAIRO_HAS_PS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  26218. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26219. "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
  26220. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26221. ""$cr_make_tmp"
  26222. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26223. "'endif'
  26224. if test "x$use_ps" != xyes; then :
  26225. :
  26226. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  26227. "'+++ It is strongly recommended that you do NOT disable the PostScript surface
  26228. +++ backend feature.'
  26229. fi
  26230. SPECTRE_VERSION_REQUIRED=0.2.0
  26231. test_ps=no
  26232. any2ppm_ps=no
  26233. if test "x$use_ps" = "xyes"; then
  26234. # Extract the first word of "gs", so it can be a program name with args.
  26235. set dummy gs; ac_word=$2
  26236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26237. $as_echo_n "checking for $ac_word... " >&6; }
  26238. if ${ac_cv_prog_GS+:} false; then :
  26239. $as_echo_n "(cached) " >&6
  26240. else
  26241. if test -n "$GS"; then
  26242. ac_cv_prog_GS="$GS" # Let the user override the test.
  26243. else
  26244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26245. for as_dir in $PATH
  26246. do
  26247. IFS=$as_save_IFS
  26248. test -z "$as_dir" && as_dir=.
  26249. for ac_exec_ext in '' $ac_executable_extensions; do
  26250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26251. ac_cv_prog_GS="gs"
  26252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26253. break 2
  26254. fi
  26255. done
  26256. done
  26257. IFS=$as_save_IFS
  26258. fi
  26259. fi
  26260. GS=$ac_cv_prog_GS
  26261. if test -n "$GS"; then
  26262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
  26263. $as_echo "$GS" >&6; }
  26264. else
  26265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26266. $as_echo "no" >&6; }
  26267. fi
  26268. if test "$GS"; then
  26269. $as_echo "#define CAIRO_CAN_TEST_PS_SURFACE 1" >>confdefs.h
  26270. test_ps="yes"
  26271. else
  26272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PS backend will not be tested since ghostscript is not available" >&5
  26273. $as_echo "$as_me: WARNING: PS backend will not be tested since ghostscript is not available" >&2;}
  26274. test_ps="no (requires ghostscript)"
  26275. fi
  26276. libspectre_DEPENDENCY="libspectre >= $SPECTRE_VERSION_REQUIRED"
  26277. pkg_failed=no
  26278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPECTRE" >&5
  26279. $as_echo_n "checking for LIBSPECTRE... " >&6; }
  26280. if test -n "$LIBSPECTRE_CFLAGS"; then
  26281. pkg_cv_LIBSPECTRE_CFLAGS="$LIBSPECTRE_CFLAGS"
  26282. elif test -n "$PKG_CONFIG"; then
  26283. if test -n "$PKG_CONFIG" && \
  26284. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
  26285. ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
  26286. ac_status=$?
  26287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26288. test $ac_status = 0; }; then
  26289. pkg_cv_LIBSPECTRE_CFLAGS=`$PKG_CONFIG --cflags "$libspectre_DEPENDENCY" 2>/dev/null`
  26290. else
  26291. pkg_failed=yes
  26292. fi
  26293. else
  26294. pkg_failed=untried
  26295. fi
  26296. if test -n "$LIBSPECTRE_LIBS"; then
  26297. pkg_cv_LIBSPECTRE_LIBS="$LIBSPECTRE_LIBS"
  26298. elif test -n "$PKG_CONFIG"; then
  26299. if test -n "$PKG_CONFIG" && \
  26300. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
  26301. ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
  26302. ac_status=$?
  26303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26304. test $ac_status = 0; }; then
  26305. pkg_cv_LIBSPECTRE_LIBS=`$PKG_CONFIG --libs "$libspectre_DEPENDENCY" 2>/dev/null`
  26306. else
  26307. pkg_failed=yes
  26308. fi
  26309. else
  26310. pkg_failed=untried
  26311. fi
  26312. if test $pkg_failed = yes; then
  26313. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26314. _pkg_short_errors_supported=yes
  26315. else
  26316. _pkg_short_errors_supported=no
  26317. fi
  26318. if test $_pkg_short_errors_supported = yes; then
  26319. LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$libspectre_DEPENDENCY" 2>&1`
  26320. else
  26321. LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$libspectre_DEPENDENCY" 2>&1`
  26322. fi
  26323. # Put the nasty error message in config.log where it belongs
  26324. echo "$LIBSPECTRE_PKG_ERRORS" >&5
  26325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26326. $as_echo "no" >&6; }
  26327. test_ps="no (requires libspectre)"
  26328. elif test $pkg_failed = untried; then
  26329. test_ps="no (requires libspectre)"
  26330. else
  26331. LIBSPECTRE_CFLAGS=$pkg_cv_LIBSPECTRE_CFLAGS
  26332. LIBSPECTRE_LIBS=$pkg_cv_LIBSPECTRE_LIBS
  26333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26334. $as_echo "yes" >&6; }
  26335. any2ppm_ps=yes
  26336. fi
  26337. fi
  26338. if test "x$test_ps" = "xyes"; then
  26339. CAIRO_CAN_TEST_PS_SURFACE_TRUE=
  26340. CAIRO_CAN_TEST_PS_SURFACE_FALSE='#'
  26341. else
  26342. CAIRO_CAN_TEST_PS_SURFACE_TRUE='#'
  26343. CAIRO_CAN_TEST_PS_SURFACE_FALSE=
  26344. fi
  26345. if test "x$any2ppm_ps" = "xyes"; then
  26346. CAIRO_HAS_SPECTRE_TRUE=
  26347. CAIRO_HAS_SPECTRE_FALSE='#'
  26348. else
  26349. CAIRO_HAS_SPECTRE_TRUE='#'
  26350. CAIRO_HAS_SPECTRE_FALSE=
  26351. fi
  26352. if test "x$any2ppm_ps" = "xyes"; then
  26353. $as_echo "#define CAIRO_HAS_SPECTRE 1" >>confdefs.h
  26354. fi
  26355. # Check whether --enable-pdf was given.
  26356. if test "${enable_pdf+set}" = set; then :
  26357. enableval=$enable_pdf; enable_pdf=$enableval
  26358. else
  26359. enable_pdf=yes
  26360. fi
  26361. case $enable_pdf in #(
  26362. no) :
  26363. use_pdf="no (disabled, use --enable-pdf to enable)"
  26364. ;; #(
  26365. yes|auto) :
  26366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PDF surface backend feature" >&5
  26367. $as_echo_n "checking for cairo's PDF surface backend feature... " >&6; }
  26368. echo
  26369. use_pdf=yes
  26370. pdf_BASE="cairo"
  26371. pdf_REQUIRES="$ac_env_pdf_REQUIRES_value"
  26372. pdf_CFLAGS="$ac_env_pdf_CFLAGS_value"
  26373. pdf_NONPKGCONFIG_CFLAGS="$ac_env_pdf_NONPKGCONFIG_CFLAGS_value"
  26374. pdf_LIBS="$ac_env_pdf_LIBS_value"
  26375. pdf_NONPKGCONFIG_LIBS="$ac_env_pdf_NONPKGCONFIG_LIBS_value"
  26376. pdf_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pdf_NONPKGCONFIG_EXTRA_LIBS_value"
  26377. # The pdf backend requires zlib.
  26378. use_pdf=$have_libz
  26379. pdf_NONPKGCONFIG_LIBS=-lz
  26380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PDF surface backend feature could be enabled" >&5
  26381. $as_echo_n "checking whether cairo's PDF surface backend feature could be enabled... " >&6; }
  26382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pdf" >&5
  26383. $as_echo "$use_pdf" >&6; }
  26384. if test "x$enable_pdf" = "xyes" -a "x$use_pdf" != xyes; then :
  26385. as_fn_error $? "recommended PDF surface backend feature could not be enabled" "$LINENO" 5
  26386. fi ;; #(
  26387. *) :
  26388. as_fn_error $? "invalid argument passed to --enable-pdf: \`$use_pdf', should be one of [no/auto/yes]" "$LINENO" 5
  26389. ;;
  26390. esac
  26391. if test "x$use_pdf" = "xyes"; then :
  26392. CAIRO_REQUIRES="$pdf_REQUIRES"" ${CAIRO_REQUIRES}"
  26393. CAIRO_CFLAGS="$pdf_CFLAGS"" ${CAIRO_CFLAGS}"
  26394. CAIRO_NONPKGCONFIG_CFLAGS="$pdf_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  26395. CAIRO_LIBS="$pdf_LIBS"" ${CAIRO_LIBS}"
  26396. CAIRO_NONPKGCONFIG_LIBS="$pdf_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  26397. else
  26398. unset pdf_BASE
  26399. unset pdf_REQUIRES
  26400. unset pdf_CFLAGS
  26401. unset pdf_NONPKGCONFIG_CFLAGS
  26402. unset pdf_LIBS
  26403. unset pdf_NONPKGCONFIG_LIBS
  26404. unset pdf_NONPKGCONFIG_EXTRA_LIBS
  26405. fi
  26406. if test "x$use_pdf" = xyes; then
  26407. CAIRO_HAS_PDF_SURFACE_TRUE=
  26408. CAIRO_HAS_PDF_SURFACE_FALSE='#'
  26409. else
  26410. CAIRO_HAS_PDF_SURFACE_TRUE='#'
  26411. CAIRO_HAS_PDF_SURFACE_FALSE=
  26412. fi
  26413. cr_make_tmp='CAIRO_HAS_PDF_SURFACE=1'
  26414. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  26415. ""$cr_make_tmp"
  26416. cr_make_tmp=''
  26417. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26418. ""$cr_make_tmp"
  26419. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26420. ""$cr_make_tmp"
  26421. cr_make_tmp=''
  26422. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26423. ""$cr_make_tmp"
  26424. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26425. ""$cr_make_tmp"
  26426. cr_make_tmp='supported_cairo_headers += $(cairo_pdf_headers)'
  26427. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26428. ""$cr_make_tmp"
  26429. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26430. ""$cr_make_tmp"
  26431. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)'
  26432. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26433. ""$cr_make_tmp"
  26434. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26435. ""$cr_make_tmp"
  26436. cr_make_tmp='all_cairo_headers += $(cairo_pdf_headers)
  26437. all_cairo_private += $(cairo_pdf_private)
  26438. all_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
  26439. all_cairo_sources += $(cairo_pdf_sources)'
  26440. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26441. ""$cr_make_tmp"
  26442. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26443. ""$cr_make_tmp"
  26444. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
  26445. all_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
  26446. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
  26447. all_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
  26448. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26449. ""$cr_make_tmp"
  26450. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26451. ""$cr_make_tmp"
  26452. cr_make_tmp='enabled_cairo_headers += $(cairo_pdf_headers)
  26453. enabled_cairo_private += $(cairo_pdf_private)
  26454. enabled_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
  26455. enabled_cairo_sources += $(cairo_pdf_sources)'
  26456. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26457. "'if CAIRO_HAS_PDF_SURFACE'
  26458. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26459. ""$cr_make_tmp"
  26460. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26461. "'endif'
  26462. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26463. "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
  26464. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26465. ""$cr_make_tmp"
  26466. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26467. "'endif'
  26468. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
  26469. enabled_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
  26470. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
  26471. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
  26472. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26473. "'if CAIRO_HAS_PDF_SURFACE'
  26474. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26475. ""$cr_make_tmp"
  26476. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26477. "'endif'
  26478. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26479. "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
  26480. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26481. ""$cr_make_tmp"
  26482. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26483. "'endif'
  26484. if test "x$use_pdf" = xyes; then :
  26485. :
  26486. ac_config_files="$ac_config_files src/cairo-pdf.pc:src/cairo-features.pc.in"
  26487. fi
  26488. if test "x$use_pdf" = xyes; then :
  26489. :
  26490. ac_config_files="$ac_config_files cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  26491. fi
  26492. cr_make_tmp='all_cairo_pkgconf += cairo-pdf.pc'
  26493. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26494. ""$cr_make_tmp"
  26495. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26496. ""$cr_make_tmp"
  26497. cr_make_tmp='enabled_cairo_pkgconf += cairo-pdf.pc'
  26498. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26499. "'if CAIRO_HAS_PDF_SURFACE'
  26500. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26501. ""$cr_make_tmp"
  26502. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26503. "'endif'
  26504. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26505. "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
  26506. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26507. ""$cr_make_tmp"
  26508. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26509. "'endif'
  26510. if test "x$use_pdf" = xyes; then :
  26511. :
  26512. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
  26513. fi
  26514. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
  26515. if test "x$use_pdf" != xyes; then :
  26516. :
  26517. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
  26518. fi
  26519. cr_make_tmp=' @echo "#define CAIRO_HAS_PDF_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  26520. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26521. "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
  26522. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26523. ""$cr_make_tmp"
  26524. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26525. "'endif'
  26526. if test "x$use_pdf" != xyes; then :
  26527. :
  26528. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  26529. "'+++ It is strongly recommended that you do NOT disable the PDF surface
  26530. +++ backend feature.'
  26531. fi
  26532. # poppler-0.17.4 fixes text-pattern and text-transform
  26533. POPPLER_VERSION_REQUIRED=0.17.4
  26534. test_pdf=no
  26535. any2ppm_pdf=no
  26536. if test "x$use_pdf" = "xyes"; then
  26537. poppler_DEPENDENCY="poppler-glib >= $POPPLER_VERSION_REQUIRED"
  26538. pkg_failed=no
  26539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
  26540. $as_echo_n "checking for POPPLER... " >&6; }
  26541. if test -n "$POPPLER_CFLAGS"; then
  26542. pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
  26543. elif test -n "$PKG_CONFIG"; then
  26544. if test -n "$PKG_CONFIG" && \
  26545. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
  26546. ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
  26547. ac_status=$?
  26548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26549. test $ac_status = 0; }; then
  26550. pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "$poppler_DEPENDENCY" 2>/dev/null`
  26551. else
  26552. pkg_failed=yes
  26553. fi
  26554. else
  26555. pkg_failed=untried
  26556. fi
  26557. if test -n "$POPPLER_LIBS"; then
  26558. pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
  26559. elif test -n "$PKG_CONFIG"; then
  26560. if test -n "$PKG_CONFIG" && \
  26561. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
  26562. ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
  26563. ac_status=$?
  26564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26565. test $ac_status = 0; }; then
  26566. pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "$poppler_DEPENDENCY" 2>/dev/null`
  26567. else
  26568. pkg_failed=yes
  26569. fi
  26570. else
  26571. pkg_failed=untried
  26572. fi
  26573. if test $pkg_failed = yes; then
  26574. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26575. _pkg_short_errors_supported=yes
  26576. else
  26577. _pkg_short_errors_supported=no
  26578. fi
  26579. if test $_pkg_short_errors_supported = yes; then
  26580. POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$poppler_DEPENDENCY" 2>&1`
  26581. else
  26582. POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "$poppler_DEPENDENCY" 2>&1`
  26583. fi
  26584. # Put the nasty error message in config.log where it belongs
  26585. echo "$POPPLER_PKG_ERRORS" >&5
  26586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26587. $as_echo "no" >&6; }
  26588. test_pdf="no (requires $poppler_DEPENDENCY)"
  26589. elif test $pkg_failed = untried; then
  26590. test_pdf="no (requires $poppler_DEPENDENCY)"
  26591. else
  26592. POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
  26593. POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
  26594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26595. $as_echo "yes" >&6; }
  26596. _save_cflags="$CFLAGS"
  26597. _save_libs="$LIBS"
  26598. CFLAGS="$CFLAGS $POPPLER_CFLAGS"
  26599. LIBS="$LIBS $POPPLER_LIBS"
  26600. for ac_func in poppler_page_render
  26601. do :
  26602. ac_fn_c_check_func "$LINENO" "poppler_page_render" "ac_cv_func_poppler_page_render"
  26603. if test "x$ac_cv_func_poppler_page_render" = xyes; then :
  26604. cat >>confdefs.h <<_ACEOF
  26605. #define HAVE_POPPLER_PAGE_RENDER 1
  26606. _ACEOF
  26607. test_pdf=yes; any2ppm_pdf=yes
  26608. else
  26609. test_pdf="no (requires $poppler_DEPENDENCY)"
  26610. fi
  26611. done
  26612. CFLAGS="$_save_cflags"
  26613. LIBS="$_save_libs"
  26614. fi
  26615. if test "x$test_pdf" = "xyes"; then
  26616. $as_echo "#define CAIRO_CAN_TEST_PDF_SURFACE 1" >>confdefs.h
  26617. else
  26618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&5
  26619. $as_echo "$as_me: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&2;}
  26620. fi
  26621. fi
  26622. if test "x$test_pdf" = "xyes"; then
  26623. CAIRO_CAN_TEST_PDF_SURFACE_TRUE=
  26624. CAIRO_CAN_TEST_PDF_SURFACE_FALSE='#'
  26625. else
  26626. CAIRO_CAN_TEST_PDF_SURFACE_TRUE='#'
  26627. CAIRO_CAN_TEST_PDF_SURFACE_FALSE=
  26628. fi
  26629. if test "x$use_ps" = "xyes" -o "x$use_pdf" = "xyes"; then
  26630. CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE=
  26631. CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE='#'
  26632. else
  26633. CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE='#'
  26634. CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE=
  26635. fi
  26636. # Check whether --enable-svg was given.
  26637. if test "${enable_svg+set}" = set; then :
  26638. enableval=$enable_svg; enable_svg=$enableval
  26639. else
  26640. enable_svg=yes
  26641. fi
  26642. case $enable_svg in #(
  26643. no) :
  26644. use_svg="no (disabled, use --enable-svg to enable)"
  26645. ;; #(
  26646. yes|auto) :
  26647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's SVG surface backend feature" >&5
  26648. $as_echo_n "checking for cairo's SVG surface backend feature... " >&6; }
  26649. echo
  26650. use_svg=yes
  26651. svg_BASE="cairo"
  26652. svg_REQUIRES="$ac_env_svg_REQUIRES_value"
  26653. svg_CFLAGS="$ac_env_svg_CFLAGS_value"
  26654. svg_NONPKGCONFIG_CFLAGS="$ac_env_svg_NONPKGCONFIG_CFLAGS_value"
  26655. svg_LIBS="$ac_env_svg_LIBS_value"
  26656. svg_NONPKGCONFIG_LIBS="$ac_env_svg_NONPKGCONFIG_LIBS_value"
  26657. svg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_svg_NONPKGCONFIG_EXTRA_LIBS_value"
  26658. if test "x$use_png" != "xyes"; then
  26659. use_svg="no (requires --enable-png)"
  26660. fi
  26661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's SVG surface backend feature could be enabled" >&5
  26662. $as_echo_n "checking whether cairo's SVG surface backend feature could be enabled... " >&6; }
  26663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_svg" >&5
  26664. $as_echo "$use_svg" >&6; }
  26665. if test "x$enable_svg" = "xyes" -a "x$use_svg" != xyes; then :
  26666. as_fn_error $? "recommended SVG surface backend feature could not be enabled" "$LINENO" 5
  26667. fi ;; #(
  26668. *) :
  26669. as_fn_error $? "invalid argument passed to --enable-svg: \`$use_svg', should be one of [no/auto/yes]" "$LINENO" 5
  26670. ;;
  26671. esac
  26672. if test "x$use_svg" = "xyes"; then :
  26673. CAIRO_REQUIRES="$svg_REQUIRES"" ${CAIRO_REQUIRES}"
  26674. CAIRO_CFLAGS="$svg_CFLAGS"" ${CAIRO_CFLAGS}"
  26675. CAIRO_NONPKGCONFIG_CFLAGS="$svg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  26676. CAIRO_LIBS="$svg_LIBS"" ${CAIRO_LIBS}"
  26677. CAIRO_NONPKGCONFIG_LIBS="$svg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  26678. else
  26679. unset svg_BASE
  26680. unset svg_REQUIRES
  26681. unset svg_CFLAGS
  26682. unset svg_NONPKGCONFIG_CFLAGS
  26683. unset svg_LIBS
  26684. unset svg_NONPKGCONFIG_LIBS
  26685. unset svg_NONPKGCONFIG_EXTRA_LIBS
  26686. fi
  26687. if test "x$use_svg" = xyes; then
  26688. CAIRO_HAS_SVG_SURFACE_TRUE=
  26689. CAIRO_HAS_SVG_SURFACE_FALSE='#'
  26690. else
  26691. CAIRO_HAS_SVG_SURFACE_TRUE='#'
  26692. CAIRO_HAS_SVG_SURFACE_FALSE=
  26693. fi
  26694. cr_make_tmp='CAIRO_HAS_SVG_SURFACE=1'
  26695. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  26696. ""$cr_make_tmp"
  26697. cr_make_tmp=''
  26698. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26699. ""$cr_make_tmp"
  26700. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26701. ""$cr_make_tmp"
  26702. cr_make_tmp=''
  26703. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26704. ""$cr_make_tmp"
  26705. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26706. ""$cr_make_tmp"
  26707. cr_make_tmp='supported_cairo_headers += $(cairo_svg_headers)'
  26708. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26709. ""$cr_make_tmp"
  26710. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26711. ""$cr_make_tmp"
  26712. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)'
  26713. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26714. ""$cr_make_tmp"
  26715. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26716. ""$cr_make_tmp"
  26717. cr_make_tmp='all_cairo_headers += $(cairo_svg_headers)
  26718. all_cairo_private += $(cairo_svg_private)
  26719. all_cairo_cxx_sources += $(cairo_svg_cxx_sources)
  26720. all_cairo_sources += $(cairo_svg_sources)'
  26721. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26722. ""$cr_make_tmp"
  26723. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26724. ""$cr_make_tmp"
  26725. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
  26726. all_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
  26727. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
  26728. all_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
  26729. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26730. ""$cr_make_tmp"
  26731. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26732. ""$cr_make_tmp"
  26733. cr_make_tmp='enabled_cairo_headers += $(cairo_svg_headers)
  26734. enabled_cairo_private += $(cairo_svg_private)
  26735. enabled_cairo_cxx_sources += $(cairo_svg_cxx_sources)
  26736. enabled_cairo_sources += $(cairo_svg_sources)'
  26737. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26738. "'if CAIRO_HAS_SVG_SURFACE'
  26739. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26740. ""$cr_make_tmp"
  26741. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26742. "'endif'
  26743. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26744. "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
  26745. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26746. ""$cr_make_tmp"
  26747. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26748. "'endif'
  26749. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
  26750. enabled_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
  26751. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
  26752. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
  26753. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26754. "'if CAIRO_HAS_SVG_SURFACE'
  26755. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26756. ""$cr_make_tmp"
  26757. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26758. "'endif'
  26759. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26760. "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
  26761. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26762. ""$cr_make_tmp"
  26763. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26764. "'endif'
  26765. if test "x$use_svg" = xyes; then :
  26766. :
  26767. ac_config_files="$ac_config_files src/cairo-svg.pc:src/cairo-features.pc.in"
  26768. fi
  26769. if test "x$use_svg" = xyes; then :
  26770. :
  26771. ac_config_files="$ac_config_files cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  26772. fi
  26773. cr_make_tmp='all_cairo_pkgconf += cairo-svg.pc'
  26774. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26775. ""$cr_make_tmp"
  26776. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26777. ""$cr_make_tmp"
  26778. cr_make_tmp='enabled_cairo_pkgconf += cairo-svg.pc'
  26779. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26780. "'if CAIRO_HAS_SVG_SURFACE'
  26781. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26782. ""$cr_make_tmp"
  26783. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26784. "'endif'
  26785. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26786. "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
  26787. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26788. ""$cr_make_tmp"
  26789. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26790. "'endif'
  26791. if test "x$use_svg" = xyes; then :
  26792. :
  26793. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
  26794. fi
  26795. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
  26796. if test "x$use_svg" != xyes; then :
  26797. :
  26798. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
  26799. fi
  26800. cr_make_tmp=' @echo "#define CAIRO_HAS_SVG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  26801. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26802. "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
  26803. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26804. ""$cr_make_tmp"
  26805. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  26806. "'endif'
  26807. if test "x$use_svg" != xyes; then :
  26808. :
  26809. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  26810. "'+++ It is strongly recommended that you do NOT disable the SVG surface
  26811. +++ backend feature.'
  26812. fi
  26813. LIBRSVG_VERSION_REQUIRED=2.35.0
  26814. test_svg=no
  26815. any2ppm_svg=no
  26816. if test "x$use_svg" = "xyes"; then
  26817. librsvg_DEPENDENCY="librsvg-2.0 >= $LIBRSVG_VERSION_REQUIRED"
  26818. pkg_failed=no
  26819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
  26820. $as_echo_n "checking for LIBRSVG... " >&6; }
  26821. if test -n "$LIBRSVG_CFLAGS"; then
  26822. pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
  26823. elif test -n "$PKG_CONFIG"; then
  26824. if test -n "$PKG_CONFIG" && \
  26825. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
  26826. ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
  26827. ac_status=$?
  26828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26829. test $ac_status = 0; }; then
  26830. pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
  26831. else
  26832. pkg_failed=yes
  26833. fi
  26834. else
  26835. pkg_failed=untried
  26836. fi
  26837. if test -n "$LIBRSVG_LIBS"; then
  26838. pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
  26839. elif test -n "$PKG_CONFIG"; then
  26840. if test -n "$PKG_CONFIG" && \
  26841. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
  26842. ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
  26843. ac_status=$?
  26844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26845. test $ac_status = 0; }; then
  26846. pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
  26847. else
  26848. pkg_failed=yes
  26849. fi
  26850. else
  26851. pkg_failed=untried
  26852. fi
  26853. if test $pkg_failed = yes; then
  26854. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26855. _pkg_short_errors_supported=yes
  26856. else
  26857. _pkg_short_errors_supported=no
  26858. fi
  26859. if test $_pkg_short_errors_supported = yes; then
  26860. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
  26861. else
  26862. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
  26863. fi
  26864. # Put the nasty error message in config.log where it belongs
  26865. echo "$LIBRSVG_PKG_ERRORS" >&5
  26866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26867. $as_echo "no" >&6; }
  26868. test_svg="no (requires $librsvg_DEPENDENCY)"
  26869. elif test $pkg_failed = untried; then
  26870. test_svg="no (requires $librsvg_DEPENDENCY)"
  26871. else
  26872. LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
  26873. LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
  26874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26875. $as_echo "yes" >&6; }
  26876. _save_cflags="$CFLAGS"
  26877. _save_libs="$LIBS"
  26878. CFLAGS="$CFLAGS $LIBRSVG_CFLAGS"
  26879. LIBS="$LIBS $LIBRSVG_LIBS"
  26880. for ac_func in rsvg_pixbuf_from_file
  26881. do :
  26882. ac_fn_c_check_func "$LINENO" "rsvg_pixbuf_from_file" "ac_cv_func_rsvg_pixbuf_from_file"
  26883. if test "x$ac_cv_func_rsvg_pixbuf_from_file" = xyes; then :
  26884. cat >>confdefs.h <<_ACEOF
  26885. #define HAVE_RSVG_PIXBUF_FROM_FILE 1
  26886. _ACEOF
  26887. test_svg=yes; any2ppm_svg=yes
  26888. else
  26889. test_svg="no (requires $librsvg_DEPENDENCY)"
  26890. fi
  26891. done
  26892. CFLAGS="$_save_cflags"
  26893. LIBS="$_save_libs"
  26894. fi
  26895. if test "x$test_svg" = "xyes"; then
  26896. $as_echo "#define CAIRO_CAN_TEST_SVG_SURFACE 1" >>confdefs.h
  26897. else
  26898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&5
  26899. $as_echo "$as_me: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&2;}
  26900. fi
  26901. fi
  26902. if test "x$test_svg" = "xyes"; then
  26903. CAIRO_CAN_TEST_SVG_SURFACE_TRUE=
  26904. CAIRO_CAN_TEST_SVG_SURFACE_FALSE='#'
  26905. else
  26906. CAIRO_CAN_TEST_SVG_SURFACE_TRUE='#'
  26907. CAIRO_CAN_TEST_SVG_SURFACE_FALSE=
  26908. fi
  26909. # Check whether --enable-test-surfaces was given.
  26910. if test "${enable_test_surfaces+set}" = set; then :
  26911. enableval=$enable_test_surfaces; enable_test_surfaces=$enableval
  26912. else
  26913. enable_test_surfaces=no
  26914. fi
  26915. case $enable_test_surfaces in #(
  26916. no) :
  26917. use_test_surfaces="no (disabled, use --enable-test-surfaces to enable)"
  26918. ;; #(
  26919. yes|auto) :
  26920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's test surfaces feature" >&5
  26921. $as_echo_n "checking for cairo's test surfaces feature... " >&6; }
  26922. echo
  26923. use_test_surfaces=yes
  26924. test_surfaces_BASE="cairo"
  26925. test_surfaces_REQUIRES="$ac_env_test_surfaces_REQUIRES_value"
  26926. test_surfaces_CFLAGS="$ac_env_test_surfaces_CFLAGS_value"
  26927. test_surfaces_NONPKGCONFIG_CFLAGS="$ac_env_test_surfaces_NONPKGCONFIG_CFLAGS_value"
  26928. test_surfaces_LIBS="$ac_env_test_surfaces_LIBS_value"
  26929. test_surfaces_NONPKGCONFIG_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_LIBS_value"
  26930. test_surfaces_NONPKGCONFIG_EXTRA_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_EXTRA_LIBS_value"
  26931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's test surfaces feature could be enabled" >&5
  26932. $as_echo_n "checking whether cairo's test surfaces feature could be enabled... " >&6; }
  26933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_test_surfaces" >&5
  26934. $as_echo "$use_test_surfaces" >&6; }
  26935. if test "x$enable_test_surfaces" = "xyes" -a "x$use_test_surfaces" != xyes; then :
  26936. as_fn_error $? " test surfaces feature could not be enabled" "$LINENO" 5
  26937. fi ;; #(
  26938. *) :
  26939. as_fn_error $? "invalid argument passed to --enable-test-surfaces: \`$use_test_surfaces', should be one of [no/auto/yes]" "$LINENO" 5
  26940. ;;
  26941. esac
  26942. if test "x$use_test_surfaces" = "xyes"; then :
  26943. CAIRO_REQUIRES="$test_surfaces_REQUIRES"" ${CAIRO_REQUIRES}"
  26944. CAIRO_CFLAGS="$test_surfaces_CFLAGS"" ${CAIRO_CFLAGS}"
  26945. CAIRO_NONPKGCONFIG_CFLAGS="$test_surfaces_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  26946. CAIRO_LIBS="$test_surfaces_LIBS"" ${CAIRO_LIBS}"
  26947. CAIRO_NONPKGCONFIG_LIBS="$test_surfaces_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  26948. else
  26949. unset test_surfaces_BASE
  26950. unset test_surfaces_REQUIRES
  26951. unset test_surfaces_CFLAGS
  26952. unset test_surfaces_NONPKGCONFIG_CFLAGS
  26953. unset test_surfaces_LIBS
  26954. unset test_surfaces_NONPKGCONFIG_LIBS
  26955. unset test_surfaces_NONPKGCONFIG_EXTRA_LIBS
  26956. fi
  26957. if test "x$use_test_surfaces" = xyes; then
  26958. CAIRO_HAS_TEST_SURFACES_TRUE=
  26959. CAIRO_HAS_TEST_SURFACES_FALSE='#'
  26960. else
  26961. CAIRO_HAS_TEST_SURFACES_TRUE='#'
  26962. CAIRO_HAS_TEST_SURFACES_FALSE=
  26963. fi
  26964. cr_make_tmp='CAIRO_HAS_TEST_SURFACES=0'
  26965. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  26966. ""$cr_make_tmp"
  26967. cr_make_tmp=''
  26968. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26969. ""$cr_make_tmp"
  26970. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26971. ""$cr_make_tmp"
  26972. cr_make_tmp=''
  26973. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26974. ""$cr_make_tmp"
  26975. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26976. ""$cr_make_tmp"
  26977. cr_make_tmp='all_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
  26978. all_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
  26979. all_cairo_sources += $(cairo_test_surfaces_sources)'
  26980. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26981. ""$cr_make_tmp"
  26982. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  26983. ""$cr_make_tmp"
  26984. cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
  26985. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
  26986. all_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
  26987. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  26988. ""$cr_make_tmp"
  26989. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  26990. ""$cr_make_tmp"
  26991. cr_make_tmp='enabled_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
  26992. enabled_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
  26993. enabled_cairo_sources += $(cairo_test_surfaces_sources)'
  26994. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26995. "'if CAIRO_HAS_TEST_SURFACES'
  26996. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26997. ""$cr_make_tmp"
  26998. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  26999. "'endif'
  27000. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27001. "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
  27002. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27003. ""$cr_make_tmp"
  27004. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27005. "'endif'
  27006. cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
  27007. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
  27008. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
  27009. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27010. "'if CAIRO_HAS_TEST_SURFACES'
  27011. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27012. ""$cr_make_tmp"
  27013. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27014. "'endif'
  27015. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27016. "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
  27017. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27018. ""$cr_make_tmp"
  27019. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27020. "'endif'
  27021. if test "x$use_test_surfaces" = xyes; then :
  27022. :
  27023. $as_echo "#define CAIRO_HAS_TEST_SURFACES 1" >>confdefs.h
  27024. fi
  27025. cr_make_tmp=' @echo "#define CAIRO_HAS_TEST_SURFACES 1" >> $(top_srcdir)/src/cairo-features.h'
  27026. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27027. "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
  27028. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27029. ""$cr_make_tmp"
  27030. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27031. "'endif'
  27032. enable_image=yes
  27033. case $enable_image in #(
  27034. no) :
  27035. use_image="no (disabled, use --enable-image to enable)"
  27036. ;; #(
  27037. yes|auto) :
  27038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's image surface backend feature" >&5
  27039. $as_echo_n "checking for cairo's image surface backend feature... " >&6; }
  27040. echo
  27041. use_image=yes
  27042. image_BASE="cairo"
  27043. image_REQUIRES="$ac_env_image_REQUIRES_value"
  27044. image_CFLAGS="$ac_env_image_CFLAGS_value"
  27045. image_NONPKGCONFIG_CFLAGS="$ac_env_image_NONPKGCONFIG_CFLAGS_value"
  27046. image_LIBS="$ac_env_image_LIBS_value"
  27047. image_NONPKGCONFIG_LIBS="$ac_env_image_NONPKGCONFIG_LIBS_value"
  27048. image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_image_NONPKGCONFIG_EXTRA_LIBS_value"
  27049. pixman_REQUIRES="pixman-1 >= 0.30.0"
  27050. pkg_failed=no
  27051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman" >&5
  27052. $as_echo_n "checking for pixman... " >&6; }
  27053. if test -n "$pixman_CFLAGS"; then
  27054. pkg_cv_pixman_CFLAGS="$pixman_CFLAGS"
  27055. elif test -n "$PKG_CONFIG"; then
  27056. if test -n "$PKG_CONFIG" && \
  27057. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
  27058. ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
  27059. ac_status=$?
  27060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27061. test $ac_status = 0; }; then
  27062. pkg_cv_pixman_CFLAGS=`$PKG_CONFIG --cflags "$pixman_REQUIRES" 2>/dev/null`
  27063. else
  27064. pkg_failed=yes
  27065. fi
  27066. else
  27067. pkg_failed=untried
  27068. fi
  27069. if test -n "$pixman_LIBS"; then
  27070. pkg_cv_pixman_LIBS="$pixman_LIBS"
  27071. elif test -n "$PKG_CONFIG"; then
  27072. if test -n "$PKG_CONFIG" && \
  27073. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
  27074. ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
  27075. ac_status=$?
  27076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27077. test $ac_status = 0; }; then
  27078. pkg_cv_pixman_LIBS=`$PKG_CONFIG --libs "$pixman_REQUIRES" 2>/dev/null`
  27079. else
  27080. pkg_failed=yes
  27081. fi
  27082. else
  27083. pkg_failed=untried
  27084. fi
  27085. if test $pkg_failed = yes; then
  27086. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  27087. _pkg_short_errors_supported=yes
  27088. else
  27089. _pkg_short_errors_supported=no
  27090. fi
  27091. if test $_pkg_short_errors_supported = yes; then
  27092. pixman_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pixman_REQUIRES" 2>&1`
  27093. else
  27094. pixman_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pixman_REQUIRES" 2>&1`
  27095. fi
  27096. # Put the nasty error message in config.log where it belongs
  27097. echo "$pixman_PKG_ERRORS" >&5
  27098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27099. $as_echo "no" >&6; }
  27100. use_image="no (requires $pixman_REQUIRES https://cairographics.org/releases/)"
  27101. elif test $pkg_failed = untried; then
  27102. use_image="no (requires $pixman_REQUIRES https://cairographics.org/releases/)"
  27103. else
  27104. pixman_CFLAGS=$pkg_cv_pixman_CFLAGS
  27105. pixman_LIBS=$pkg_cv_pixman_LIBS
  27106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27107. $as_echo "yes" >&6; }
  27108. :
  27109. fi
  27110. image_REQUIRES=$pixman_REQUIRES
  27111. image_CFLAGS=$pixman_CFLAGS
  27112. image_LIBS=$pixman_LIBS
  27113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's image surface backend feature could be enabled" >&5
  27114. $as_echo_n "checking whether cairo's image surface backend feature could be enabled... " >&6; }
  27115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_image" >&5
  27116. $as_echo "$use_image" >&6; }
  27117. if test "x$enable_image" = "xyes" -a "x$use_image" != xyes; then :
  27118. as_fn_error $? "mandatory image surface backend feature could not be enabled" "$LINENO" 5
  27119. fi ;; #(
  27120. *) :
  27121. as_fn_error $? "invalid argument passed to --enable-image: \`$use_image', should be one of [no/auto/yes]" "$LINENO" 5
  27122. ;;
  27123. esac
  27124. if test "x$use_image" = "xyes"; then :
  27125. CAIRO_REQUIRES="$image_REQUIRES"" ${CAIRO_REQUIRES}"
  27126. CAIRO_CFLAGS="$image_CFLAGS"" ${CAIRO_CFLAGS}"
  27127. CAIRO_NONPKGCONFIG_CFLAGS="$image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27128. CAIRO_LIBS="$image_LIBS"" ${CAIRO_LIBS}"
  27129. CAIRO_NONPKGCONFIG_LIBS="$image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27130. else
  27131. unset image_BASE
  27132. unset image_REQUIRES
  27133. unset image_CFLAGS
  27134. unset image_NONPKGCONFIG_CFLAGS
  27135. unset image_LIBS
  27136. unset image_NONPKGCONFIG_LIBS
  27137. unset image_NONPKGCONFIG_EXTRA_LIBS
  27138. fi
  27139. cr_make_tmp=''
  27140. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27141. ""$cr_make_tmp"
  27142. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27143. ""$cr_make_tmp"
  27144. cr_make_tmp=''
  27145. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27146. ""$cr_make_tmp"
  27147. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27148. ""$cr_make_tmp"
  27149. cr_make_tmp='supported_cairo_headers += $(cairo_image_headers)'
  27150. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27151. ""$cr_make_tmp"
  27152. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27153. ""$cr_make_tmp"
  27154. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)'
  27155. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27156. ""$cr_make_tmp"
  27157. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27158. ""$cr_make_tmp"
  27159. cr_make_tmp='all_cairo_headers += $(cairo_image_headers)
  27160. all_cairo_private += $(cairo_image_private)
  27161. all_cairo_cxx_sources += $(cairo_image_cxx_sources)
  27162. all_cairo_sources += $(cairo_image_sources)'
  27163. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27164. ""$cr_make_tmp"
  27165. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27166. ""$cr_make_tmp"
  27167. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
  27168. all_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
  27169. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
  27170. all_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
  27171. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27172. ""$cr_make_tmp"
  27173. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27174. ""$cr_make_tmp"
  27175. cr_make_tmp='enabled_cairo_headers += $(cairo_image_headers)
  27176. enabled_cairo_private += $(cairo_image_private)
  27177. enabled_cairo_cxx_sources += $(cairo_image_cxx_sources)
  27178. enabled_cairo_sources += $(cairo_image_sources)'
  27179. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27180. ""$cr_make_tmp"
  27181. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27182. ""$cr_make_tmp"
  27183. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
  27184. enabled_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
  27185. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
  27186. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
  27187. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27188. ""$cr_make_tmp"
  27189. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27190. ""$cr_make_tmp"
  27191. if test "x$use_image" = xyes; then :
  27192. :
  27193. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
  27194. fi
  27195. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
  27196. if test "x$use_image" != xyes; then :
  27197. :
  27198. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
  27199. fi
  27200. cr_make_tmp=' @echo "#define CAIRO_HAS_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27201. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27202. ""$cr_make_tmp"
  27203. if pkg-config --exists 'pixman-1 >= 0.27.1'; then
  27204. $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
  27205. fi
  27206. enable_mime=yes
  27207. case $enable_mime in #(
  27208. no) :
  27209. use_mime="no (disabled, use --enable-mime to enable)"
  27210. ;; #(
  27211. yes|auto) :
  27212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's mime surface backend feature" >&5
  27213. $as_echo_n "checking for cairo's mime surface backend feature... " >&6; }
  27214. echo
  27215. use_mime=yes
  27216. mime_BASE="cairo"
  27217. mime_REQUIRES="$ac_env_mime_REQUIRES_value"
  27218. mime_CFLAGS="$ac_env_mime_CFLAGS_value"
  27219. mime_NONPKGCONFIG_CFLAGS="$ac_env_mime_NONPKGCONFIG_CFLAGS_value"
  27220. mime_LIBS="$ac_env_mime_LIBS_value"
  27221. mime_NONPKGCONFIG_LIBS="$ac_env_mime_NONPKGCONFIG_LIBS_value"
  27222. mime_NONPKGCONFIG_EXTRA_LIBS="$ac_env_mime_NONPKGCONFIG_EXTRA_LIBS_value"
  27223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's mime surface backend feature could be enabled" >&5
  27224. $as_echo_n "checking whether cairo's mime surface backend feature could be enabled... " >&6; }
  27225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_mime" >&5
  27226. $as_echo "$use_mime" >&6; }
  27227. if test "x$enable_mime" = "xyes" -a "x$use_mime" != xyes; then :
  27228. as_fn_error $? "mandatory mime surface backend feature could not be enabled" "$LINENO" 5
  27229. fi ;; #(
  27230. *) :
  27231. as_fn_error $? "invalid argument passed to --enable-mime: \`$use_mime', should be one of [no/auto/yes]" "$LINENO" 5
  27232. ;;
  27233. esac
  27234. if test "x$use_mime" = "xyes"; then :
  27235. CAIRO_REQUIRES="$mime_REQUIRES"" ${CAIRO_REQUIRES}"
  27236. CAIRO_CFLAGS="$mime_CFLAGS"" ${CAIRO_CFLAGS}"
  27237. CAIRO_NONPKGCONFIG_CFLAGS="$mime_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27238. CAIRO_LIBS="$mime_LIBS"" ${CAIRO_LIBS}"
  27239. CAIRO_NONPKGCONFIG_LIBS="$mime_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27240. else
  27241. unset mime_BASE
  27242. unset mime_REQUIRES
  27243. unset mime_CFLAGS
  27244. unset mime_NONPKGCONFIG_CFLAGS
  27245. unset mime_LIBS
  27246. unset mime_NONPKGCONFIG_LIBS
  27247. unset mime_NONPKGCONFIG_EXTRA_LIBS
  27248. fi
  27249. cr_make_tmp=''
  27250. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27251. ""$cr_make_tmp"
  27252. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27253. ""$cr_make_tmp"
  27254. cr_make_tmp=''
  27255. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27256. ""$cr_make_tmp"
  27257. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27258. ""$cr_make_tmp"
  27259. cr_make_tmp='supported_cairo_headers += $(cairo_mime_headers)'
  27260. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27261. ""$cr_make_tmp"
  27262. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27263. ""$cr_make_tmp"
  27264. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)'
  27265. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27266. ""$cr_make_tmp"
  27267. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27268. ""$cr_make_tmp"
  27269. cr_make_tmp='all_cairo_headers += $(cairo_mime_headers)
  27270. all_cairo_private += $(cairo_mime_private)
  27271. all_cairo_cxx_sources += $(cairo_mime_cxx_sources)
  27272. all_cairo_sources += $(cairo_mime_sources)'
  27273. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27274. ""$cr_make_tmp"
  27275. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27276. ""$cr_make_tmp"
  27277. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
  27278. all_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
  27279. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
  27280. all_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
  27281. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27282. ""$cr_make_tmp"
  27283. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27284. ""$cr_make_tmp"
  27285. cr_make_tmp='enabled_cairo_headers += $(cairo_mime_headers)
  27286. enabled_cairo_private += $(cairo_mime_private)
  27287. enabled_cairo_cxx_sources += $(cairo_mime_cxx_sources)
  27288. enabled_cairo_sources += $(cairo_mime_sources)'
  27289. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27290. ""$cr_make_tmp"
  27291. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27292. ""$cr_make_tmp"
  27293. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
  27294. enabled_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
  27295. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
  27296. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
  27297. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27298. ""$cr_make_tmp"
  27299. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27300. ""$cr_make_tmp"
  27301. if test "x$use_mime" = xyes; then :
  27302. :
  27303. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
  27304. fi
  27305. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
  27306. if test "x$use_mime" != xyes; then :
  27307. :
  27308. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
  27309. fi
  27310. cr_make_tmp=' @echo "#define CAIRO_HAS_MIME_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27311. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27312. ""$cr_make_tmp"
  27313. enable_recording=yes
  27314. case $enable_recording in #(
  27315. no) :
  27316. use_recording="no (disabled, use --enable-recording to enable)"
  27317. ;; #(
  27318. yes|auto) :
  27319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's recording surface backend feature" >&5
  27320. $as_echo_n "checking for cairo's recording surface backend feature... " >&6; }
  27321. echo
  27322. use_recording=yes
  27323. recording_BASE="cairo"
  27324. recording_REQUIRES="$ac_env_recording_REQUIRES_value"
  27325. recording_CFLAGS="$ac_env_recording_CFLAGS_value"
  27326. recording_NONPKGCONFIG_CFLAGS="$ac_env_recording_NONPKGCONFIG_CFLAGS_value"
  27327. recording_LIBS="$ac_env_recording_LIBS_value"
  27328. recording_NONPKGCONFIG_LIBS="$ac_env_recording_NONPKGCONFIG_LIBS_value"
  27329. recording_NONPKGCONFIG_EXTRA_LIBS="$ac_env_recording_NONPKGCONFIG_EXTRA_LIBS_value"
  27330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's recording surface backend feature could be enabled" >&5
  27331. $as_echo_n "checking whether cairo's recording surface backend feature could be enabled... " >&6; }
  27332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_recording" >&5
  27333. $as_echo "$use_recording" >&6; }
  27334. if test "x$enable_recording" = "xyes" -a "x$use_recording" != xyes; then :
  27335. as_fn_error $? "mandatory recording surface backend feature could not be enabled" "$LINENO" 5
  27336. fi ;; #(
  27337. *) :
  27338. as_fn_error $? "invalid argument passed to --enable-recording: \`$use_recording', should be one of [no/auto/yes]" "$LINENO" 5
  27339. ;;
  27340. esac
  27341. if test "x$use_recording" = "xyes"; then :
  27342. CAIRO_REQUIRES="$recording_REQUIRES"" ${CAIRO_REQUIRES}"
  27343. CAIRO_CFLAGS="$recording_CFLAGS"" ${CAIRO_CFLAGS}"
  27344. CAIRO_NONPKGCONFIG_CFLAGS="$recording_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27345. CAIRO_LIBS="$recording_LIBS"" ${CAIRO_LIBS}"
  27346. CAIRO_NONPKGCONFIG_LIBS="$recording_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27347. else
  27348. unset recording_BASE
  27349. unset recording_REQUIRES
  27350. unset recording_CFLAGS
  27351. unset recording_NONPKGCONFIG_CFLAGS
  27352. unset recording_LIBS
  27353. unset recording_NONPKGCONFIG_LIBS
  27354. unset recording_NONPKGCONFIG_EXTRA_LIBS
  27355. fi
  27356. cr_make_tmp=''
  27357. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27358. ""$cr_make_tmp"
  27359. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27360. ""$cr_make_tmp"
  27361. cr_make_tmp=''
  27362. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27363. ""$cr_make_tmp"
  27364. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27365. ""$cr_make_tmp"
  27366. cr_make_tmp='supported_cairo_headers += $(cairo_recording_headers)'
  27367. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27368. ""$cr_make_tmp"
  27369. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27370. ""$cr_make_tmp"
  27371. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)'
  27372. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27373. ""$cr_make_tmp"
  27374. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27375. ""$cr_make_tmp"
  27376. cr_make_tmp='all_cairo_headers += $(cairo_recording_headers)
  27377. all_cairo_private += $(cairo_recording_private)
  27378. all_cairo_cxx_sources += $(cairo_recording_cxx_sources)
  27379. all_cairo_sources += $(cairo_recording_sources)'
  27380. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27381. ""$cr_make_tmp"
  27382. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27383. ""$cr_make_tmp"
  27384. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
  27385. all_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
  27386. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
  27387. all_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
  27388. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27389. ""$cr_make_tmp"
  27390. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27391. ""$cr_make_tmp"
  27392. cr_make_tmp='enabled_cairo_headers += $(cairo_recording_headers)
  27393. enabled_cairo_private += $(cairo_recording_private)
  27394. enabled_cairo_cxx_sources += $(cairo_recording_cxx_sources)
  27395. enabled_cairo_sources += $(cairo_recording_sources)'
  27396. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27397. ""$cr_make_tmp"
  27398. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27399. ""$cr_make_tmp"
  27400. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
  27401. enabled_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
  27402. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
  27403. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
  27404. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27405. ""$cr_make_tmp"
  27406. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27407. ""$cr_make_tmp"
  27408. if test "x$use_recording" = xyes; then :
  27409. :
  27410. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
  27411. fi
  27412. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
  27413. if test "x$use_recording" != xyes; then :
  27414. :
  27415. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
  27416. fi
  27417. cr_make_tmp=' @echo "#define CAIRO_HAS_RECORDING_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27418. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27419. ""$cr_make_tmp"
  27420. enable_observer=yes
  27421. case $enable_observer in #(
  27422. no) :
  27423. use_observer="no (disabled, use --enable-observer to enable)"
  27424. ;; #(
  27425. yes|auto) :
  27426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's observer surface backend feature" >&5
  27427. $as_echo_n "checking for cairo's observer surface backend feature... " >&6; }
  27428. echo
  27429. use_observer=yes
  27430. observer_BASE="cairo"
  27431. observer_REQUIRES="$ac_env_observer_REQUIRES_value"
  27432. observer_CFLAGS="$ac_env_observer_CFLAGS_value"
  27433. observer_NONPKGCONFIG_CFLAGS="$ac_env_observer_NONPKGCONFIG_CFLAGS_value"
  27434. observer_LIBS="$ac_env_observer_LIBS_value"
  27435. observer_NONPKGCONFIG_LIBS="$ac_env_observer_NONPKGCONFIG_LIBS_value"
  27436. observer_NONPKGCONFIG_EXTRA_LIBS="$ac_env_observer_NONPKGCONFIG_EXTRA_LIBS_value"
  27437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's observer surface backend feature could be enabled" >&5
  27438. $as_echo_n "checking whether cairo's observer surface backend feature could be enabled... " >&6; }
  27439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_observer" >&5
  27440. $as_echo "$use_observer" >&6; }
  27441. if test "x$enable_observer" = "xyes" -a "x$use_observer" != xyes; then :
  27442. as_fn_error $? "mandatory observer surface backend feature could not be enabled" "$LINENO" 5
  27443. fi ;; #(
  27444. *) :
  27445. as_fn_error $? "invalid argument passed to --enable-observer: \`$use_observer', should be one of [no/auto/yes]" "$LINENO" 5
  27446. ;;
  27447. esac
  27448. if test "x$use_observer" = "xyes"; then :
  27449. CAIRO_REQUIRES="$observer_REQUIRES"" ${CAIRO_REQUIRES}"
  27450. CAIRO_CFLAGS="$observer_CFLAGS"" ${CAIRO_CFLAGS}"
  27451. CAIRO_NONPKGCONFIG_CFLAGS="$observer_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27452. CAIRO_LIBS="$observer_LIBS"" ${CAIRO_LIBS}"
  27453. CAIRO_NONPKGCONFIG_LIBS="$observer_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27454. else
  27455. unset observer_BASE
  27456. unset observer_REQUIRES
  27457. unset observer_CFLAGS
  27458. unset observer_NONPKGCONFIG_CFLAGS
  27459. unset observer_LIBS
  27460. unset observer_NONPKGCONFIG_LIBS
  27461. unset observer_NONPKGCONFIG_EXTRA_LIBS
  27462. fi
  27463. cr_make_tmp=''
  27464. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27465. ""$cr_make_tmp"
  27466. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27467. ""$cr_make_tmp"
  27468. cr_make_tmp=''
  27469. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27470. ""$cr_make_tmp"
  27471. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27472. ""$cr_make_tmp"
  27473. cr_make_tmp='supported_cairo_headers += $(cairo_observer_headers)'
  27474. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27475. ""$cr_make_tmp"
  27476. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27477. ""$cr_make_tmp"
  27478. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)'
  27479. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27480. ""$cr_make_tmp"
  27481. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27482. ""$cr_make_tmp"
  27483. cr_make_tmp='all_cairo_headers += $(cairo_observer_headers)
  27484. all_cairo_private += $(cairo_observer_private)
  27485. all_cairo_cxx_sources += $(cairo_observer_cxx_sources)
  27486. all_cairo_sources += $(cairo_observer_sources)'
  27487. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27488. ""$cr_make_tmp"
  27489. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27490. ""$cr_make_tmp"
  27491. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
  27492. all_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
  27493. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
  27494. all_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
  27495. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27496. ""$cr_make_tmp"
  27497. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27498. ""$cr_make_tmp"
  27499. cr_make_tmp='enabled_cairo_headers += $(cairo_observer_headers)
  27500. enabled_cairo_private += $(cairo_observer_private)
  27501. enabled_cairo_cxx_sources += $(cairo_observer_cxx_sources)
  27502. enabled_cairo_sources += $(cairo_observer_sources)'
  27503. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27504. ""$cr_make_tmp"
  27505. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27506. ""$cr_make_tmp"
  27507. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
  27508. enabled_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
  27509. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
  27510. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
  27511. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27512. ""$cr_make_tmp"
  27513. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27514. ""$cr_make_tmp"
  27515. if test "x$use_observer" = xyes; then :
  27516. :
  27517. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
  27518. fi
  27519. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
  27520. if test "x$use_observer" != xyes; then :
  27521. :
  27522. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
  27523. fi
  27524. cr_make_tmp=' @echo "#define CAIRO_HAS_OBSERVER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27525. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27526. ""$cr_make_tmp"
  27527. # Check whether --enable-tee was given.
  27528. if test "${enable_tee+set}" = set; then :
  27529. enableval=$enable_tee; enable_tee=$enableval
  27530. else
  27531. enable_tee=no
  27532. fi
  27533. case $enable_tee in #(
  27534. no) :
  27535. use_tee="no (disabled, use --enable-tee to enable)"
  27536. ;; #(
  27537. yes|auto) :
  27538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's tee surface backend feature" >&5
  27539. $as_echo_n "checking for cairo's tee surface backend feature... " >&6; }
  27540. echo
  27541. use_tee=yes
  27542. tee_BASE="cairo"
  27543. tee_REQUIRES="$ac_env_tee_REQUIRES_value"
  27544. tee_CFLAGS="$ac_env_tee_CFLAGS_value"
  27545. tee_NONPKGCONFIG_CFLAGS="$ac_env_tee_NONPKGCONFIG_CFLAGS_value"
  27546. tee_LIBS="$ac_env_tee_LIBS_value"
  27547. tee_NONPKGCONFIG_LIBS="$ac_env_tee_NONPKGCONFIG_LIBS_value"
  27548. tee_NONPKGCONFIG_EXTRA_LIBS="$ac_env_tee_NONPKGCONFIG_EXTRA_LIBS_value"
  27549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's tee surface backend feature could be enabled" >&5
  27550. $as_echo_n "checking whether cairo's tee surface backend feature could be enabled... " >&6; }
  27551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tee" >&5
  27552. $as_echo "$use_tee" >&6; }
  27553. if test "x$enable_tee" = "xyes" -a "x$use_tee" != xyes; then :
  27554. as_fn_error $? " tee surface backend feature could not be enabled" "$LINENO" 5
  27555. fi ;; #(
  27556. *) :
  27557. as_fn_error $? "invalid argument passed to --enable-tee: \`$use_tee', should be one of [no/auto/yes]" "$LINENO" 5
  27558. ;;
  27559. esac
  27560. if test "x$use_tee" = "xyes"; then :
  27561. CAIRO_REQUIRES="$tee_REQUIRES"" ${CAIRO_REQUIRES}"
  27562. CAIRO_CFLAGS="$tee_CFLAGS"" ${CAIRO_CFLAGS}"
  27563. CAIRO_NONPKGCONFIG_CFLAGS="$tee_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27564. CAIRO_LIBS="$tee_LIBS"" ${CAIRO_LIBS}"
  27565. CAIRO_NONPKGCONFIG_LIBS="$tee_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27566. else
  27567. unset tee_BASE
  27568. unset tee_REQUIRES
  27569. unset tee_CFLAGS
  27570. unset tee_NONPKGCONFIG_CFLAGS
  27571. unset tee_LIBS
  27572. unset tee_NONPKGCONFIG_LIBS
  27573. unset tee_NONPKGCONFIG_EXTRA_LIBS
  27574. fi
  27575. if test "x$use_tee" = xyes; then
  27576. CAIRO_HAS_TEE_SURFACE_TRUE=
  27577. CAIRO_HAS_TEE_SURFACE_FALSE='#'
  27578. else
  27579. CAIRO_HAS_TEE_SURFACE_TRUE='#'
  27580. CAIRO_HAS_TEE_SURFACE_FALSE=
  27581. fi
  27582. cr_make_tmp='CAIRO_HAS_TEE_SURFACE=0'
  27583. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  27584. ""$cr_make_tmp"
  27585. cr_make_tmp=''
  27586. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27587. ""$cr_make_tmp"
  27588. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27589. ""$cr_make_tmp"
  27590. cr_make_tmp=''
  27591. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27592. ""$cr_make_tmp"
  27593. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27594. ""$cr_make_tmp"
  27595. cr_make_tmp='unsupported_cairo_headers += $(cairo_tee_headers)'
  27596. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27597. ""$cr_make_tmp"
  27598. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27599. ""$cr_make_tmp"
  27600. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)'
  27601. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27602. ""$cr_make_tmp"
  27603. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27604. ""$cr_make_tmp"
  27605. cr_make_tmp='all_cairo_headers += $(cairo_tee_headers)
  27606. all_cairo_private += $(cairo_tee_private)
  27607. all_cairo_cxx_sources += $(cairo_tee_cxx_sources)
  27608. all_cairo_sources += $(cairo_tee_sources)'
  27609. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27610. ""$cr_make_tmp"
  27611. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27612. ""$cr_make_tmp"
  27613. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
  27614. all_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
  27615. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
  27616. all_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
  27617. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27618. ""$cr_make_tmp"
  27619. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27620. ""$cr_make_tmp"
  27621. cr_make_tmp='enabled_cairo_headers += $(cairo_tee_headers)
  27622. enabled_cairo_private += $(cairo_tee_private)
  27623. enabled_cairo_cxx_sources += $(cairo_tee_cxx_sources)
  27624. enabled_cairo_sources += $(cairo_tee_sources)'
  27625. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27626. "'if CAIRO_HAS_TEE_SURFACE'
  27627. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27628. ""$cr_make_tmp"
  27629. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27630. "'endif'
  27631. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27632. "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
  27633. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27634. ""$cr_make_tmp"
  27635. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27636. "'endif'
  27637. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
  27638. enabled_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
  27639. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
  27640. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
  27641. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27642. "'if CAIRO_HAS_TEE_SURFACE'
  27643. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27644. ""$cr_make_tmp"
  27645. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27646. "'endif'
  27647. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27648. "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
  27649. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27650. ""$cr_make_tmp"
  27651. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27652. "'endif'
  27653. if test "x$use_tee" = xyes; then :
  27654. :
  27655. ac_config_files="$ac_config_files src/cairo-tee.pc:src/cairo-features.pc.in"
  27656. fi
  27657. if test "x$use_tee" = xyes; then :
  27658. :
  27659. ac_config_files="$ac_config_files cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  27660. fi
  27661. cr_make_tmp='all_cairo_pkgconf += cairo-tee.pc'
  27662. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27663. ""$cr_make_tmp"
  27664. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27665. ""$cr_make_tmp"
  27666. cr_make_tmp='enabled_cairo_pkgconf += cairo-tee.pc'
  27667. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27668. "'if CAIRO_HAS_TEE_SURFACE'
  27669. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27670. ""$cr_make_tmp"
  27671. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27672. "'endif'
  27673. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27674. "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
  27675. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27676. ""$cr_make_tmp"
  27677. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27678. "'endif'
  27679. if test "x$use_tee" = xyes; then :
  27680. :
  27681. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_TEE_SURFACE'
  27682. fi
  27683. if test "x$use_tee" != xyes; then :
  27684. :
  27685. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_TEE_SURFACE'
  27686. fi
  27687. cr_make_tmp=' @echo "#define CAIRO_HAS_TEE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27688. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27689. "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
  27690. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27691. ""$cr_make_tmp"
  27692. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27693. "'endif'
  27694. if test "x$use_tee" = xyes; then :
  27695. :
  27696. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  27697. "'--- The tee surface backend feature is still under active development and is
  27698. --- included in this release only as a preview. It does NOT fully work yet
  27699. --- and incompatible changes may yet be made to tee surface backend specific
  27700. --- API.'
  27701. fi
  27702. # Check whether --enable-xml was given.
  27703. if test "${enable_xml+set}" = set; then :
  27704. enableval=$enable_xml; enable_xml=$enableval
  27705. else
  27706. enable_xml=no
  27707. fi
  27708. case $enable_xml in #(
  27709. no) :
  27710. use_xml="no (disabled, use --enable-xml to enable)"
  27711. ;; #(
  27712. yes|auto) :
  27713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's xml surface backend feature" >&5
  27714. $as_echo_n "checking for cairo's xml surface backend feature... " >&6; }
  27715. echo
  27716. use_xml=yes
  27717. xml_BASE="cairo"
  27718. xml_REQUIRES="$ac_env_xml_REQUIRES_value"
  27719. xml_CFLAGS="$ac_env_xml_CFLAGS_value"
  27720. xml_NONPKGCONFIG_CFLAGS="$ac_env_xml_NONPKGCONFIG_CFLAGS_value"
  27721. xml_LIBS="$ac_env_xml_LIBS_value"
  27722. xml_NONPKGCONFIG_LIBS="$ac_env_xml_NONPKGCONFIG_LIBS_value"
  27723. xml_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xml_NONPKGCONFIG_EXTRA_LIBS_value"
  27724. use_xml=$have_libz
  27725. xml_NONPKGCONFIG_LIBS=-lz
  27726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's xml surface backend feature could be enabled" >&5
  27727. $as_echo_n "checking whether cairo's xml surface backend feature could be enabled... " >&6; }
  27728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xml" >&5
  27729. $as_echo "$use_xml" >&6; }
  27730. if test "x$enable_xml" = "xyes" -a "x$use_xml" != xyes; then :
  27731. as_fn_error $? " xml surface backend feature could not be enabled" "$LINENO" 5
  27732. fi ;; #(
  27733. *) :
  27734. as_fn_error $? "invalid argument passed to --enable-xml: \`$use_xml', should be one of [no/auto/yes]" "$LINENO" 5
  27735. ;;
  27736. esac
  27737. if test "x$use_xml" = "xyes"; then :
  27738. CAIRO_REQUIRES="$xml_REQUIRES"" ${CAIRO_REQUIRES}"
  27739. CAIRO_CFLAGS="$xml_CFLAGS"" ${CAIRO_CFLAGS}"
  27740. CAIRO_NONPKGCONFIG_CFLAGS="$xml_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27741. CAIRO_LIBS="$xml_LIBS"" ${CAIRO_LIBS}"
  27742. CAIRO_NONPKGCONFIG_LIBS="$xml_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27743. else
  27744. unset xml_BASE
  27745. unset xml_REQUIRES
  27746. unset xml_CFLAGS
  27747. unset xml_NONPKGCONFIG_CFLAGS
  27748. unset xml_LIBS
  27749. unset xml_NONPKGCONFIG_LIBS
  27750. unset xml_NONPKGCONFIG_EXTRA_LIBS
  27751. fi
  27752. if test "x$use_xml" = xyes; then
  27753. CAIRO_HAS_XML_SURFACE_TRUE=
  27754. CAIRO_HAS_XML_SURFACE_FALSE='#'
  27755. else
  27756. CAIRO_HAS_XML_SURFACE_TRUE='#'
  27757. CAIRO_HAS_XML_SURFACE_FALSE=
  27758. fi
  27759. cr_make_tmp='CAIRO_HAS_XML_SURFACE=0'
  27760. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  27761. ""$cr_make_tmp"
  27762. cr_make_tmp=''
  27763. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27764. ""$cr_make_tmp"
  27765. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27766. ""$cr_make_tmp"
  27767. cr_make_tmp=''
  27768. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27769. ""$cr_make_tmp"
  27770. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27771. ""$cr_make_tmp"
  27772. cr_make_tmp='unsupported_cairo_headers += $(cairo_xml_headers)'
  27773. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27774. ""$cr_make_tmp"
  27775. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27776. ""$cr_make_tmp"
  27777. cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)'
  27778. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27779. ""$cr_make_tmp"
  27780. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27781. ""$cr_make_tmp"
  27782. cr_make_tmp='all_cairo_headers += $(cairo_xml_headers)
  27783. all_cairo_private += $(cairo_xml_private)
  27784. all_cairo_cxx_sources += $(cairo_xml_cxx_sources)
  27785. all_cairo_sources += $(cairo_xml_sources)'
  27786. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27787. ""$cr_make_tmp"
  27788. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27789. ""$cr_make_tmp"
  27790. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
  27791. all_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
  27792. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
  27793. all_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
  27794. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27795. ""$cr_make_tmp"
  27796. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27797. ""$cr_make_tmp"
  27798. cr_make_tmp='enabled_cairo_headers += $(cairo_xml_headers)
  27799. enabled_cairo_private += $(cairo_xml_private)
  27800. enabled_cairo_cxx_sources += $(cairo_xml_cxx_sources)
  27801. enabled_cairo_sources += $(cairo_xml_sources)'
  27802. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27803. "'if CAIRO_HAS_XML_SURFACE'
  27804. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27805. ""$cr_make_tmp"
  27806. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27807. "'endif'
  27808. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27809. "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
  27810. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27811. ""$cr_make_tmp"
  27812. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27813. "'endif'
  27814. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
  27815. enabled_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
  27816. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
  27817. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
  27818. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27819. "'if CAIRO_HAS_XML_SURFACE'
  27820. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27821. ""$cr_make_tmp"
  27822. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27823. "'endif'
  27824. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27825. "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
  27826. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27827. ""$cr_make_tmp"
  27828. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27829. "'endif'
  27830. if test "x$use_xml" = xyes; then :
  27831. :
  27832. ac_config_files="$ac_config_files src/cairo-xml.pc:src/cairo-features.pc.in"
  27833. fi
  27834. if test "x$use_xml" = xyes; then :
  27835. :
  27836. ac_config_files="$ac_config_files cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  27837. fi
  27838. cr_make_tmp='all_cairo_pkgconf += cairo-xml.pc'
  27839. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27840. ""$cr_make_tmp"
  27841. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27842. ""$cr_make_tmp"
  27843. cr_make_tmp='enabled_cairo_pkgconf += cairo-xml.pc'
  27844. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27845. "'if CAIRO_HAS_XML_SURFACE'
  27846. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27847. ""$cr_make_tmp"
  27848. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27849. "'endif'
  27850. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27851. "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
  27852. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27853. ""$cr_make_tmp"
  27854. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27855. "'endif'
  27856. if test "x$use_xml" = xyes; then :
  27857. :
  27858. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XML_SURFACE'
  27859. fi
  27860. if test "x$use_xml" != xyes; then :
  27861. :
  27862. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XML_SURFACE'
  27863. fi
  27864. cr_make_tmp=' @echo "#define CAIRO_HAS_XML_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
  27865. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27866. "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
  27867. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27868. ""$cr_make_tmp"
  27869. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27870. "'endif'
  27871. if test "x$use_xml" = xyes; then :
  27872. :
  27873. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  27874. "'--- The xml surface backend feature is still under active development and is
  27875. --- included in this release only as a preview. It does NOT fully work yet
  27876. --- and incompatible changes may yet be made to xml surface backend specific
  27877. --- API.'
  27878. fi
  27879. enable_user=yes
  27880. case $enable_user in #(
  27881. no) :
  27882. use_user="no (disabled, use --enable-user to enable)"
  27883. ;; #(
  27884. yes|auto) :
  27885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's user font backend feature" >&5
  27886. $as_echo_n "checking for cairo's user font backend feature... " >&6; }
  27887. echo
  27888. use_user=yes
  27889. user_BASE="cairo"
  27890. user_REQUIRES="$ac_env_user_REQUIRES_value"
  27891. user_CFLAGS="$ac_env_user_CFLAGS_value"
  27892. user_NONPKGCONFIG_CFLAGS="$ac_env_user_NONPKGCONFIG_CFLAGS_value"
  27893. user_LIBS="$ac_env_user_LIBS_value"
  27894. user_NONPKGCONFIG_LIBS="$ac_env_user_NONPKGCONFIG_LIBS_value"
  27895. user_NONPKGCONFIG_EXTRA_LIBS="$ac_env_user_NONPKGCONFIG_EXTRA_LIBS_value"
  27896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's user font backend feature could be enabled" >&5
  27897. $as_echo_n "checking whether cairo's user font backend feature could be enabled... " >&6; }
  27898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_user" >&5
  27899. $as_echo "$use_user" >&6; }
  27900. if test "x$enable_user" = "xyes" -a "x$use_user" != xyes; then :
  27901. as_fn_error $? "mandatory user font backend feature could not be enabled" "$LINENO" 5
  27902. fi ;; #(
  27903. *) :
  27904. as_fn_error $? "invalid argument passed to --enable-user: \`$use_user', should be one of [no/auto/yes]" "$LINENO" 5
  27905. ;;
  27906. esac
  27907. if test "x$use_user" = "xyes"; then :
  27908. CAIRO_REQUIRES="$user_REQUIRES"" ${CAIRO_REQUIRES}"
  27909. CAIRO_CFLAGS="$user_CFLAGS"" ${CAIRO_CFLAGS}"
  27910. CAIRO_NONPKGCONFIG_CFLAGS="$user_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  27911. CAIRO_LIBS="$user_LIBS"" ${CAIRO_LIBS}"
  27912. CAIRO_NONPKGCONFIG_LIBS="$user_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  27913. else
  27914. unset user_BASE
  27915. unset user_REQUIRES
  27916. unset user_CFLAGS
  27917. unset user_NONPKGCONFIG_CFLAGS
  27918. unset user_LIBS
  27919. unset user_NONPKGCONFIG_LIBS
  27920. unset user_NONPKGCONFIG_EXTRA_LIBS
  27921. fi
  27922. cr_make_tmp=''
  27923. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27924. ""$cr_make_tmp"
  27925. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27926. ""$cr_make_tmp"
  27927. cr_make_tmp=''
  27928. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27929. ""$cr_make_tmp"
  27930. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27931. ""$cr_make_tmp"
  27932. cr_make_tmp='supported_cairo_headers += $(cairo_user_headers)'
  27933. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27934. ""$cr_make_tmp"
  27935. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27936. ""$cr_make_tmp"
  27937. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)'
  27938. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27939. ""$cr_make_tmp"
  27940. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27941. ""$cr_make_tmp"
  27942. cr_make_tmp='all_cairo_headers += $(cairo_user_headers)
  27943. all_cairo_private += $(cairo_user_private)
  27944. all_cairo_cxx_sources += $(cairo_user_cxx_sources)
  27945. all_cairo_sources += $(cairo_user_sources)'
  27946. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27947. ""$cr_make_tmp"
  27948. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27949. ""$cr_make_tmp"
  27950. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
  27951. all_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
  27952. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
  27953. all_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
  27954. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27955. ""$cr_make_tmp"
  27956. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27957. ""$cr_make_tmp"
  27958. cr_make_tmp='enabled_cairo_headers += $(cairo_user_headers)
  27959. enabled_cairo_private += $(cairo_user_private)
  27960. enabled_cairo_cxx_sources += $(cairo_user_cxx_sources)
  27961. enabled_cairo_sources += $(cairo_user_sources)'
  27962. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  27963. ""$cr_make_tmp"
  27964. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  27965. ""$cr_make_tmp"
  27966. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
  27967. enabled_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
  27968. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
  27969. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
  27970. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  27971. ""$cr_make_tmp"
  27972. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  27973. ""$cr_make_tmp"
  27974. if test "x$use_user" = xyes; then :
  27975. :
  27976. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_USER_FONT'
  27977. fi
  27978. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_USER_FONT'
  27979. if test "x$use_user" != xyes; then :
  27980. :
  27981. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_USER_FONT'
  27982. fi
  27983. cr_make_tmp=' @echo "#define CAIRO_HAS_USER_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
  27984. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  27985. ""$cr_make_tmp"
  27986. have_real_pthread=no
  27987. have_pthread=yes
  27988. # Check whether --enable-pthread was given.
  27989. if test "${enable_pthread+set}" = set; then :
  27990. enableval=$enable_pthread; enable_pthread=$enableval
  27991. else
  27992. enable_pthread=auto
  27993. fi
  27994. case $enable_pthread in #(
  27995. no) :
  27996. use_pthread="no (disabled, use --enable-pthread to enable)"
  27997. ;; #(
  27998. yes|auto) :
  27999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's pthread feature" >&5
  28000. $as_echo_n "checking for cairo's pthread feature... " >&6; }
  28001. echo
  28002. use_pthread=yes
  28003. pthread_BASE="cairo"
  28004. pthread_REQUIRES="$ac_env_pthread_REQUIRES_value"
  28005. pthread_CFLAGS="$ac_env_pthread_CFLAGS_value"
  28006. pthread_NONPKGCONFIG_CFLAGS="$ac_env_pthread_NONPKGCONFIG_CFLAGS_value"
  28007. pthread_LIBS="$ac_env_pthread_LIBS_value"
  28008. pthread_NONPKGCONFIG_LIBS="$ac_env_pthread_NONPKGCONFIG_LIBS_value"
  28009. pthread_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pthread_NONPKGCONFIG_EXTRA_LIBS_value"
  28010. if test "x$PTHREAD_CFLAGS" = "x"; then
  28011. PTHREAD_CFLAGS="-D_REENTRANT"
  28012. fi
  28013. if test "x$PTHREAD_LIBS" = "x"; then
  28014. PTHREAD_LIBS="-lpthread"
  28015. fi
  28016. # AC_LANG_PROGRAM() produces a main() w/o args,
  28017. # but -Wold-style-definition doesn't like that.
  28018. # We need _some_ program so that we don't get
  28019. # warnings about empty compilation units, so always
  28020. # append a reasonable main().
  28021. _compile_program="#ifndef _GNU_SOURCE
  28022. #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
  28023. #endif
  28024. #include <pthread.h>
  28025. pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
  28026. int test_mutex (void)
  28027. {
  28028. int x = 0;
  28029. pthread_mutex_t mutex;
  28030. x |= pthread_mutex_init (&mutex, NULL);
  28031. x |= pthread_mutex_lock (&mutex);
  28032. x |= pthread_mutex_unlock (&mutex);
  28033. x |= pthread_mutex_destroy (&mutex);
  28034. return 0;
  28035. }
  28036. int test_mutex_attr (void)
  28037. {
  28038. int x = 0;
  28039. pthread_mutexattr_t attr;
  28040. pthread_mutex_t mutex;
  28041. x |= pthread_mutexattr_init (&attr);
  28042. x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
  28043. x |= pthread_mutex_init (&mutex, &attr);
  28044. x |= pthread_mutex_lock (&mutex);
  28045. x |= pthread_mutex_unlock (&mutex);
  28046. x |= pthread_mutex_destroy (&mutex);
  28047. x |= pthread_mutexattr_destroy (&attr);
  28048. return x;
  28049. }
  28050. pthread_once_t once_control = PTHREAD_ONCE_INIT;
  28051. void test_once_init (void) {}
  28052. int test_once (void)
  28053. {
  28054. return pthread_once (&once_control, test_once_init);
  28055. }
  28056. pthread_key_t test_specific_key;
  28057. int test_specific (void)
  28058. {
  28059. int x = 0;
  28060. x |= pthread_key_create (&test_specific_key, NULL);
  28061. x |= pthread_setspecific (test_specific_key, NULL);
  28062. x |= pthread_getspecific (test_specific_key) != NULL;
  28063. return x;
  28064. }
  28065. void cleaner (void *arg) { (void)arg; }
  28066. void *
  28067. test_thread_main (void *arg)
  28068. {
  28069. pthread_cleanup_push (cleaner, arg);
  28070. pthread_exit (arg);
  28071. pthread_cleanup_pop (1);
  28072. return arg;
  28073. }
  28074. int
  28075. test_threads (void)
  28076. {
  28077. int x = 0;
  28078. pthread_t thread;
  28079. pthread_attr_t attr;
  28080. void *arg = NULL;
  28081. x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
  28082. x |= pthread_create (&thread, &attr, test_thread_main, arg);
  28083. x |= pthread_equal (pthread_self(), thread);
  28084. x |= pthread_join (thread, &arg);
  28085. x |= pthread_attr_destroy (&attr);
  28086. return x;
  28087. }"'
  28088. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  28089. _save_cflags="$CFLAGS"
  28090. _save_ldflags="$LDFLAGS"
  28091. _save_libs="$LIBS"
  28092. CFLAGS="$CFLAGS $PTHREAD_CFLAGS";
  28093. LIBS="$LIBS $PTHREAD_LIBS"
  28094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28095. /* end confdefs.h. */
  28096. $_compile_program
  28097. _ACEOF
  28098. if ac_fn_c_try_link "$LINENO"; then :
  28099. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28100. cairo_cc_flag=yes
  28101. else
  28102. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28103. cairo_cc_flag=no
  28104. fi
  28105. rm -f core conftest.err conftest.$ac_objext \
  28106. conftest$ac_exeext conftest.$ac_ext
  28107. echo "#### cairo_cc_stderr= $cairo_cc_stderr"
  28108. # if test "x$cairo_cc_stderr" != "x"; then
  28109. # cairo_cc_flag=no
  28110. # fi
  28111. if test "x$cairo_cc_flag" = "xyes"; then
  28112. real_pthread_CFLAGS="$PTHREAD_CFLAGS";
  28113. real_pthread_LIBS="$PTHREAD_LIBS";
  28114. have_real_pthread=yes
  28115. else
  28116. real_pthread_CFLAGS="";
  28117. real_pthread_LIBS="";
  28118. have_real_pthread=no
  28119. fi
  28120. CFLAGS="$_save_cflags"
  28121. LDFLAGS="$_save_ldflags"
  28122. LIBS="$_save_libs"
  28123. if test "x$have_real_pthread" != "xyes"; then
  28124. # AC_LANG_PROGRAM() produces a main() w/o args,
  28125. # but -Wold-style-definition doesn't like that.
  28126. # We need _some_ program so that we don't get
  28127. # warnings about empty compilation units, so always
  28128. # append a reasonable main().
  28129. _compile_program="#ifndef _GNU_SOURCE
  28130. #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
  28131. #endif
  28132. #include <pthread.h>
  28133. pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
  28134. int test_mutex (void)
  28135. {
  28136. int x = 0;
  28137. pthread_mutex_t mutex;
  28138. x |= pthread_mutex_init (&mutex, NULL);
  28139. x |= pthread_mutex_lock (&mutex);
  28140. x |= pthread_mutex_unlock (&mutex);
  28141. x |= pthread_mutex_destroy (&mutex);
  28142. return 0;
  28143. }
  28144. int test_mutex_attr (void)
  28145. {
  28146. int x = 0;
  28147. pthread_mutexattr_t attr;
  28148. pthread_mutex_t mutex;
  28149. x |= pthread_mutexattr_init (&attr);
  28150. x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
  28151. x |= pthread_mutex_init (&mutex, &attr);
  28152. x |= pthread_mutex_lock (&mutex);
  28153. x |= pthread_mutex_unlock (&mutex);
  28154. x |= pthread_mutex_destroy (&mutex);
  28155. x |= pthread_mutexattr_destroy (&attr);
  28156. return x;
  28157. }
  28158. pthread_once_t once_control = PTHREAD_ONCE_INIT;
  28159. void test_once_init (void) {}
  28160. int test_once (void)
  28161. {
  28162. return pthread_once (&once_control, test_once_init);
  28163. }
  28164. pthread_key_t test_specific_key;
  28165. int test_specific (void)
  28166. {
  28167. int x = 0;
  28168. x |= pthread_key_create (&test_specific_key, NULL);
  28169. x |= pthread_setspecific (test_specific_key, NULL);
  28170. x |= pthread_getspecific (test_specific_key) != NULL;
  28171. return x;
  28172. }
  28173. void cleaner (void *arg) { (void)arg; }
  28174. void *
  28175. test_thread_main (void *arg)
  28176. {
  28177. pthread_cleanup_push (cleaner, arg);
  28178. pthread_exit (arg);
  28179. pthread_cleanup_pop (1);
  28180. return arg;
  28181. }
  28182. int
  28183. test_threads (void)
  28184. {
  28185. int x = 0;
  28186. pthread_t thread;
  28187. pthread_attr_t attr;
  28188. void *arg = NULL;
  28189. x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
  28190. x |= pthread_create (&thread, &attr, test_thread_main, arg);
  28191. x |= pthread_equal (pthread_self(), thread);
  28192. x |= pthread_join (thread, &arg);
  28193. x |= pthread_attr_destroy (&attr);
  28194. return x;
  28195. }"'
  28196. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  28197. _save_cflags="$CFLAGS"
  28198. _save_ldflags="$LDFLAGS"
  28199. _save_libs="$LIBS"
  28200. CFLAGS="$CFLAGS -pthread";
  28201. LIBS="$LIBS "
  28202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28203. /* end confdefs.h. */
  28204. $_compile_program
  28205. _ACEOF
  28206. if ac_fn_c_try_link "$LINENO"; then :
  28207. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28208. cairo_cc_flag=yes
  28209. else
  28210. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28211. cairo_cc_flag=no
  28212. fi
  28213. rm -f core conftest.err conftest.$ac_objext \
  28214. conftest$ac_exeext conftest.$ac_ext
  28215. if test "x$cairo_cc_stderr" != "x"; then
  28216. cairo_cc_flag=no
  28217. fi
  28218. if test "x$cairo_cc_flag" = "xyes"; then
  28219. real_pthread_CFLAGS="-pthread";
  28220. real_pthread_LIBS="";
  28221. have_real_pthread=yes
  28222. else
  28223. real_pthread_CFLAGS="";
  28224. real_pthread_LIBS="";
  28225. have_real_pthread="no (can't link with -lpthread or -pthread)"
  28226. fi
  28227. CFLAGS="$_save_cflags"
  28228. LDFLAGS="$_save_ldflags"
  28229. LIBS="$_save_libs"
  28230. fi
  28231. PTHREAD_CFLAGS=
  28232. PTHREAD_LIBS=
  28233. have_pthread="no"
  28234. if test "x$enable_pthread" != "xyes"; then
  28235. # AC_LANG_PROGRAM() produces a main() w/o args,
  28236. # but -Wold-style-definition doesn't like that.
  28237. # We need _some_ program so that we don't get
  28238. # warnings about empty compilation units, so always
  28239. # append a reasonable main().
  28240. _compile_program="#ifndef _GNU_SOURCE
  28241. #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
  28242. #endif
  28243. #include <pthread.h>
  28244. pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
  28245. int test_mutex (void)
  28246. {
  28247. int x = 0;
  28248. pthread_mutex_t mutex;
  28249. x |= pthread_mutex_init (&mutex, NULL);
  28250. x |= pthread_mutex_lock (&mutex);
  28251. x |= pthread_mutex_unlock (&mutex);
  28252. x |= pthread_mutex_destroy (&mutex);
  28253. return 0;
  28254. }
  28255. int test_mutex_attr (void)
  28256. {
  28257. int x = 0;
  28258. pthread_mutexattr_t attr;
  28259. pthread_mutex_t mutex;
  28260. x |= pthread_mutexattr_init (&attr);
  28261. x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
  28262. x |= pthread_mutex_init (&mutex, &attr);
  28263. x |= pthread_mutex_lock (&mutex);
  28264. x |= pthread_mutex_unlock (&mutex);
  28265. x |= pthread_mutex_destroy (&mutex);
  28266. x |= pthread_mutexattr_destroy (&attr);
  28267. return x;
  28268. }"'
  28269. int main(int c, char **v) { (void)c; (void)v; return 0; }'
  28270. _save_cflags="$CFLAGS"
  28271. _save_ldflags="$LDFLAGS"
  28272. _save_libs="$LIBS"
  28273. CFLAGS="$CFLAGS -D_REENTRANT";
  28274. LIBS="$LIBS "
  28275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28276. /* end confdefs.h. */
  28277. $_compile_program
  28278. _ACEOF
  28279. if ac_fn_c_try_link "$LINENO"; then :
  28280. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28281. cairo_cc_flag=yes
  28282. else
  28283. cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
  28284. cairo_cc_flag=no
  28285. fi
  28286. rm -f core conftest.err conftest.$ac_objext \
  28287. conftest$ac_exeext conftest.$ac_ext
  28288. if test "x$cairo_cc_stderr" != "x"; then
  28289. cairo_cc_flag=no
  28290. fi
  28291. if test "x$cairo_cc_flag" = "xyes"; then
  28292. pthread_CFLAGS="-D_REENTRANT";
  28293. pthread_LIBS="";
  28294. have_pthread=yes
  28295. else
  28296. pthread_CFLAGS="";
  28297. pthread_LIBS="";
  28298. fi
  28299. CFLAGS="$_save_cflags"
  28300. LDFLAGS="$_save_ldflags"
  28301. LIBS="$_save_libs"
  28302. fi
  28303. if test "x$have_pthread" != "xyes"; then
  28304. have_pthread="$have_real_pthread";
  28305. pthread_CFLAGS="$real_pthread_CFLAGS";
  28306. pthread_LIBS="$real_pthread_LIBS";
  28307. fi
  28308. if test "x$have_real_pthread" = "xyes"; then
  28309. $as_echo "#define CAIRO_HAS_REAL_PTHREAD 1" >>confdefs.h
  28310. fi
  28311. if test "x$have_pthread" = "xyes"; then
  28312. $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
  28313. fi
  28314. if test "x$enable_pthread" = "xyes" -a "x$have_pthread" != "xyes"; then
  28315. as_fn_error $? "pthread requested but not found" "$LINENO" 5
  28316. fi
  28317. use_pthread="$have_pthread"
  28318. pthread_REQUIRES=""
  28319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's pthread feature could be enabled" >&5
  28320. $as_echo_n "checking whether cairo's pthread feature could be enabled... " >&6; }
  28321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5
  28322. $as_echo "$use_pthread" >&6; }
  28323. if test "x$enable_pthread" = "xyes" -a "x$use_pthread" != xyes; then :
  28324. as_fn_error $? " pthread feature could not be enabled" "$LINENO" 5
  28325. fi ;; #(
  28326. *) :
  28327. as_fn_error $? "invalid argument passed to --enable-pthread: \`$use_pthread', should be one of [no/auto/yes]" "$LINENO" 5
  28328. ;;
  28329. esac
  28330. if test "x$use_pthread" = "xyes"; then :
  28331. CAIRO_REQUIRES="$pthread_REQUIRES"" ${CAIRO_REQUIRES}"
  28332. CAIRO_CFLAGS="$pthread_CFLAGS"" ${CAIRO_CFLAGS}"
  28333. CAIRO_NONPKGCONFIG_CFLAGS="$pthread_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  28334. CAIRO_LIBS="$pthread_LIBS"" ${CAIRO_LIBS}"
  28335. CAIRO_NONPKGCONFIG_LIBS="$pthread_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  28336. else
  28337. unset pthread_BASE
  28338. unset pthread_REQUIRES
  28339. unset pthread_CFLAGS
  28340. unset pthread_NONPKGCONFIG_CFLAGS
  28341. unset pthread_LIBS
  28342. unset pthread_NONPKGCONFIG_LIBS
  28343. unset pthread_NONPKGCONFIG_EXTRA_LIBS
  28344. fi
  28345. if test "x$use_pthread" = xyes; then
  28346. CAIRO_HAS_PTHREAD_TRUE=
  28347. CAIRO_HAS_PTHREAD_FALSE='#'
  28348. else
  28349. CAIRO_HAS_PTHREAD_TRUE='#'
  28350. CAIRO_HAS_PTHREAD_FALSE=
  28351. fi
  28352. cr_make_tmp='CAIRO_HAS_PTHREAD=0'
  28353. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  28354. ""$cr_make_tmp"
  28355. cr_make_tmp=''
  28356. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28357. ""$cr_make_tmp"
  28358. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28359. ""$cr_make_tmp"
  28360. cr_make_tmp=''
  28361. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28362. ""$cr_make_tmp"
  28363. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28364. ""$cr_make_tmp"
  28365. cr_make_tmp='all_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
  28366. all_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
  28367. all_cairo_sources += $(cairo_pthread_sources)'
  28368. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28369. ""$cr_make_tmp"
  28370. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28371. ""$cr_make_tmp"
  28372. cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
  28373. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
  28374. all_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
  28375. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28376. ""$cr_make_tmp"
  28377. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28378. ""$cr_make_tmp"
  28379. cr_make_tmp='enabled_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
  28380. enabled_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
  28381. enabled_cairo_sources += $(cairo_pthread_sources)'
  28382. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28383. "'if CAIRO_HAS_PTHREAD'
  28384. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28385. ""$cr_make_tmp"
  28386. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28387. "'endif'
  28388. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28389. "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
  28390. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28391. ""$cr_make_tmp"
  28392. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28393. "'endif'
  28394. cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
  28395. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
  28396. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
  28397. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28398. "'if CAIRO_HAS_PTHREAD'
  28399. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28400. ""$cr_make_tmp"
  28401. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28402. "'endif'
  28403. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28404. "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
  28405. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28406. ""$cr_make_tmp"
  28407. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28408. "'endif'
  28409. if test "x$use_pthread" = xyes; then :
  28410. :
  28411. $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
  28412. fi
  28413. cr_make_tmp=' @echo "#define CAIRO_HAS_PTHREAD 1" >> $(top_srcdir)/src/cairo-features.h'
  28414. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28415. "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
  28416. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28417. ""$cr_make_tmp"
  28418. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28419. "'endif'
  28420. if test "x$use_pthread" = "xyes" -a "x$have_real_pthread" = "xyes"; then
  28421. HAVE_REAL_PTHREAD_TRUE=
  28422. HAVE_REAL_PTHREAD_FALSE='#'
  28423. else
  28424. HAVE_REAL_PTHREAD_TRUE='#'
  28425. HAVE_REAL_PTHREAD_FALSE=
  28426. fi
  28427. if test "x$use_pthread" = "xyes"; then
  28428. HAVE_PTHREAD_TRUE=
  28429. HAVE_PTHREAD_FALSE='#'
  28430. else
  28431. HAVE_PTHREAD_TRUE='#'
  28432. HAVE_PTHREAD_FALSE=
  28433. fi
  28434. # Check whether --enable-gobject was given.
  28435. if test "${enable_gobject+set}" = set; then :
  28436. enableval=$enable_gobject; enable_gobject=$enableval
  28437. else
  28438. enable_gobject=auto
  28439. fi
  28440. case $enable_gobject in #(
  28441. no) :
  28442. use_gobject="no (disabled, use --enable-gobject to enable)"
  28443. ;; #(
  28444. yes|auto) :
  28445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's gobject functions feature" >&5
  28446. $as_echo_n "checking for cairo's gobject functions feature... " >&6; }
  28447. echo
  28448. use_gobject=yes
  28449. gobject_BASE="cairo"
  28450. gobject_REQUIRES="$ac_env_gobject_REQUIRES_value"
  28451. gobject_CFLAGS="$ac_env_gobject_CFLAGS_value"
  28452. gobject_NONPKGCONFIG_CFLAGS="$ac_env_gobject_NONPKGCONFIG_CFLAGS_value"
  28453. gobject_LIBS="$ac_env_gobject_LIBS_value"
  28454. gobject_NONPKGCONFIG_LIBS="$ac_env_gobject_NONPKGCONFIG_LIBS_value"
  28455. gobject_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gobject_NONPKGCONFIG_EXTRA_LIBS_value"
  28456. gobject_REQUIRES="gobject-2.0 glib-2.0 >= 2.14"
  28457. pkg_failed=no
  28458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
  28459. $as_echo_n "checking for GOBJECT... " >&6; }
  28460. if test -n "$GOBJECT_CFLAGS"; then
  28461. pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
  28462. elif test -n "$PKG_CONFIG"; then
  28463. if test -n "$PKG_CONFIG" && \
  28464. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
  28465. ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
  28466. ac_status=$?
  28467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28468. test $ac_status = 0; }; then
  28469. pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
  28470. else
  28471. pkg_failed=yes
  28472. fi
  28473. else
  28474. pkg_failed=untried
  28475. fi
  28476. if test -n "$GOBJECT_LIBS"; then
  28477. pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
  28478. elif test -n "$PKG_CONFIG"; then
  28479. if test -n "$PKG_CONFIG" && \
  28480. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
  28481. ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
  28482. ac_status=$?
  28483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28484. test $ac_status = 0; }; then
  28485. pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
  28486. else
  28487. pkg_failed=yes
  28488. fi
  28489. else
  28490. pkg_failed=untried
  28491. fi
  28492. if test $pkg_failed = yes; then
  28493. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  28494. _pkg_short_errors_supported=yes
  28495. else
  28496. _pkg_short_errors_supported=no
  28497. fi
  28498. if test $_pkg_short_errors_supported = yes; then
  28499. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
  28500. else
  28501. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
  28502. fi
  28503. # Put the nasty error message in config.log where it belongs
  28504. echo "$GOBJECT_PKG_ERRORS" >&5
  28505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28506. $as_echo "no" >&6; }
  28507. use_gobject="no (requires $gobject_REQUIRES https://download.gnome.org/pub/GNOME/sources/glib/)"
  28508. elif test $pkg_failed = untried; then
  28509. use_gobject="no (requires $gobject_REQUIRES https://download.gnome.org/pub/GNOME/sources/glib/)"
  28510. else
  28511. GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
  28512. GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
  28513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28514. $as_echo "yes" >&6; }
  28515. :
  28516. fi
  28517. gobject_NONPKGCONFIG_EXTRA_LIBS="-L\${libdir} -lcairo-gobject"
  28518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's gobject functions feature could be enabled" >&5
  28519. $as_echo_n "checking whether cairo's gobject functions feature could be enabled... " >&6; }
  28520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gobject" >&5
  28521. $as_echo "$use_gobject" >&6; }
  28522. if test "x$enable_gobject" = "xyes" -a "x$use_gobject" != xyes; then :
  28523. as_fn_error $? " gobject functions feature could not be enabled" "$LINENO" 5
  28524. fi ;; #(
  28525. *) :
  28526. as_fn_error $? "invalid argument passed to --enable-gobject: \`$use_gobject', should be one of [no/auto/yes]" "$LINENO" 5
  28527. ;;
  28528. esac
  28529. if test "x$use_gobject" = "xyes"; then :
  28530. CAIRO_REQUIRES="$gobject_REQUIRES"" ${CAIRO_REQUIRES}"
  28531. CAIRO_CFLAGS="$gobject_CFLAGS"" ${CAIRO_CFLAGS}"
  28532. CAIRO_NONPKGCONFIG_CFLAGS="$gobject_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  28533. CAIRO_LIBS="$gobject_LIBS"" ${CAIRO_LIBS}"
  28534. CAIRO_NONPKGCONFIG_LIBS="$gobject_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  28535. else
  28536. unset gobject_BASE
  28537. unset gobject_REQUIRES
  28538. unset gobject_CFLAGS
  28539. unset gobject_NONPKGCONFIG_CFLAGS
  28540. unset gobject_LIBS
  28541. unset gobject_NONPKGCONFIG_LIBS
  28542. unset gobject_NONPKGCONFIG_EXTRA_LIBS
  28543. fi
  28544. if test "x$use_gobject" = xyes; then
  28545. CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE=
  28546. CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE='#'
  28547. else
  28548. CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE='#'
  28549. CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE=
  28550. fi
  28551. cr_make_tmp='CAIRO_HAS_GOBJECT_FUNCTIONS=0'
  28552. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  28553. ""$cr_make_tmp"
  28554. cr_make_tmp=''
  28555. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28556. ""$cr_make_tmp"
  28557. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28558. ""$cr_make_tmp"
  28559. cr_make_tmp=''
  28560. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28561. ""$cr_make_tmp"
  28562. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28563. ""$cr_make_tmp"
  28564. cr_make_tmp='supported_cairo_headers += $(cairo_gobject_headers)'
  28565. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28566. ""$cr_make_tmp"
  28567. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28568. ""$cr_make_tmp"
  28569. cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)'
  28570. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28571. ""$cr_make_tmp"
  28572. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28573. ""$cr_make_tmp"
  28574. cr_make_tmp='all_cairo_headers += $(cairo_gobject_headers)
  28575. all_cairo_private += $(cairo_gobject_private)
  28576. all_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
  28577. all_cairo_sources += $(cairo_gobject_sources)'
  28578. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28579. ""$cr_make_tmp"
  28580. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28581. ""$cr_make_tmp"
  28582. cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
  28583. all_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
  28584. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
  28585. all_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
  28586. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28587. ""$cr_make_tmp"
  28588. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28589. ""$cr_make_tmp"
  28590. cr_make_tmp='enabled_cairo_headers += $(cairo_gobject_headers)
  28591. enabled_cairo_private += $(cairo_gobject_private)
  28592. enabled_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
  28593. enabled_cairo_sources += $(cairo_gobject_sources)'
  28594. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28595. "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
  28596. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28597. ""$cr_make_tmp"
  28598. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28599. "'endif'
  28600. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28601. "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
  28602. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28603. ""$cr_make_tmp"
  28604. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28605. "'endif'
  28606. cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
  28607. enabled_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
  28608. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
  28609. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
  28610. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28611. "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
  28612. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28613. ""$cr_make_tmp"
  28614. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28615. "'endif'
  28616. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28617. "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
  28618. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28619. ""$cr_make_tmp"
  28620. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28621. "'endif'
  28622. if test "x$use_gobject" = xyes; then :
  28623. :
  28624. ac_config_files="$ac_config_files src/cairo-gobject.pc:src/cairo-features.pc.in"
  28625. fi
  28626. if test "x$use_gobject" = xyes; then :
  28627. :
  28628. ac_config_files="$ac_config_files cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
  28629. fi
  28630. cr_make_tmp='all_cairo_pkgconf += cairo-gobject.pc'
  28631. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28632. ""$cr_make_tmp"
  28633. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28634. ""$cr_make_tmp"
  28635. cr_make_tmp='enabled_cairo_pkgconf += cairo-gobject.pc'
  28636. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28637. "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
  28638. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28639. ""$cr_make_tmp"
  28640. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28641. "'endif'
  28642. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28643. "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
  28644. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28645. ""$cr_make_tmp"
  28646. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28647. "'endif'
  28648. if test "x$use_gobject" = xyes; then :
  28649. :
  28650. CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
  28651. fi
  28652. CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
  28653. if test "x$use_gobject" != xyes; then :
  28654. :
  28655. CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
  28656. fi
  28657. cr_make_tmp=' @echo "#define CAIRO_HAS_GOBJECT_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
  28658. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28659. "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
  28660. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28661. ""$cr_make_tmp"
  28662. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28663. "'endif'
  28664. if test "x$use_gobject" = "xyes"; then
  28665. pkg_failed=no
  28666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
  28667. $as_echo_n "checking for GOBJECT... " >&6; }
  28668. if test -n "$GOBJECT_CFLAGS"; then
  28669. pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
  28670. elif test -n "$PKG_CONFIG"; then
  28671. if test -n "$PKG_CONFIG" && \
  28672. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
  28673. ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
  28674. ac_status=$?
  28675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28676. test $ac_status = 0; }; then
  28677. pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
  28678. else
  28679. pkg_failed=yes
  28680. fi
  28681. else
  28682. pkg_failed=untried
  28683. fi
  28684. if test -n "$GOBJECT_LIBS"; then
  28685. pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
  28686. elif test -n "$PKG_CONFIG"; then
  28687. if test -n "$PKG_CONFIG" && \
  28688. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
  28689. ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
  28690. ac_status=$?
  28691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28692. test $ac_status = 0; }; then
  28693. pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
  28694. else
  28695. pkg_failed=yes
  28696. fi
  28697. else
  28698. pkg_failed=untried
  28699. fi
  28700. if test $pkg_failed = yes; then
  28701. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  28702. _pkg_short_errors_supported=yes
  28703. else
  28704. _pkg_short_errors_supported=no
  28705. fi
  28706. if test $_pkg_short_errors_supported = yes; then
  28707. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
  28708. else
  28709. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
  28710. fi
  28711. # Put the nasty error message in config.log where it belongs
  28712. echo "$GOBJECT_PKG_ERRORS" >&5
  28713. as_fn_error $? "Package requirements ($gobject_REQUIRES) were not met:
  28714. $GOBJECT_PKG_ERRORS
  28715. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  28716. installed software in a non-standard prefix.
  28717. Alternatively, you may set the environment variables GOBJECT_CFLAGS
  28718. and GOBJECT_LIBS to avoid the need to call pkg-config.
  28719. See the pkg-config man page for more details.
  28720. " "$LINENO" 5
  28721. elif test $pkg_failed = untried; then
  28722. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28723. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28724. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  28725. is in your PATH or set the PKG_CONFIG environment variable to the full
  28726. path to pkg-config.
  28727. Alternatively, you may set the environment variables GOBJECT_CFLAGS
  28728. and GOBJECT_LIBS to avoid the need to call pkg-config.
  28729. See the pkg-config man page for more details.
  28730. To get pkg-config, see <https://pkg-config.freedesktop.org/>.
  28731. See \`config.log' for more details" "$LINENO" 5; }
  28732. else
  28733. GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
  28734. GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
  28735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28736. $as_echo "yes" >&6; }
  28737. :
  28738. fi
  28739. fi
  28740. # Check whether --enable-full-testing was given.
  28741. if test "${enable_full_testing+set}" = set; then :
  28742. enableval=$enable_full_testing;
  28743. if test "x$enableval" = "xyes"; then
  28744. CAIRO_TEST_MODE=full
  28745. fi
  28746. fi
  28747. if test "x$any2ppm_svg" = "xyes" \
  28748. -o "x$any2ppm_pdf" = "xyes" \
  28749. -o "x$any2ppm_ps" = "xyes" \
  28750. -o "x$any2ppm_cs" = "xyes"; then
  28751. BUILD_ANY2PPM_TRUE=
  28752. BUILD_ANY2PPM_FALSE='#'
  28753. else
  28754. BUILD_ANY2PPM_TRUE='#'
  28755. BUILD_ANY2PPM_FALSE=
  28756. fi
  28757. case $host in
  28758. *-*-darwin*)
  28759. SHLIB_EXT="dylib"
  28760. ;;
  28761. *)
  28762. SHLIB_EXT="so"
  28763. ;;
  28764. esac
  28765. cat >>confdefs.h <<_ACEOF
  28766. #define SHARED_LIB_EXT "${SHLIB_EXT}"
  28767. _ACEOF
  28768. case $host in
  28769. *-linux*|*-*bsd*|*-solaris*|*-*-darwin*|*-dragonfly*|*-*-gnu*)
  28770. have_ld_preload="yes"
  28771. ;;
  28772. *)
  28773. have_ld_preload="no"
  28774. ;;
  28775. esac
  28776. # Check whether --enable-trace was given.
  28777. if test "${enable_trace+set}" = set; then :
  28778. enableval=$enable_trace; enable_trace=$enableval
  28779. else
  28780. enable_trace=auto
  28781. fi
  28782. case $enable_trace in #(
  28783. no) :
  28784. use_trace="no (disabled, use --enable-trace to enable)"
  28785. ;; #(
  28786. yes|auto) :
  28787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-trace feature" >&5
  28788. $as_echo_n "checking for cairo's cairo-trace feature... " >&6; }
  28789. echo
  28790. use_trace=yes
  28791. trace_BASE="cairo"
  28792. trace_REQUIRES="$ac_env_trace_REQUIRES_value"
  28793. trace_CFLAGS="$ac_env_trace_CFLAGS_value"
  28794. trace_NONPKGCONFIG_CFLAGS="$ac_env_trace_NONPKGCONFIG_CFLAGS_value"
  28795. trace_LIBS="$ac_env_trace_LIBS_value"
  28796. trace_NONPKGCONFIG_LIBS="$ac_env_trace_NONPKGCONFIG_LIBS_value"
  28797. trace_NONPKGCONFIG_EXTRA_LIBS="$ac_env_trace_NONPKGCONFIG_EXTRA_LIBS_value"
  28798. if test "x$have_ld_preload" != "xyes" -o \
  28799. "x$have_libz" != "xyes" -o \
  28800. "x$have_real_pthread" != "xyes" -o \
  28801. "x$have_dlsym" != "xyes"; then
  28802. use_trace="no (requires dynamic linker and zlib and real pthreads)"
  28803. fi
  28804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-trace feature could be enabled" >&5
  28805. $as_echo_n "checking whether cairo's cairo-trace feature could be enabled... " >&6; }
  28806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trace" >&5
  28807. $as_echo "$use_trace" >&6; }
  28808. if test "x$enable_trace" = "xyes" -a "x$use_trace" != xyes; then :
  28809. as_fn_error $? " cairo-trace feature could not be enabled" "$LINENO" 5
  28810. fi ;; #(
  28811. *) :
  28812. as_fn_error $? "invalid argument passed to --enable-trace: \`$use_trace', should be one of [no/auto/yes]" "$LINENO" 5
  28813. ;;
  28814. esac
  28815. if test "x$use_trace" = "xyes"; then :
  28816. CAIRO_REQUIRES="$trace_REQUIRES"" ${CAIRO_REQUIRES}"
  28817. CAIRO_CFLAGS="$trace_CFLAGS"" ${CAIRO_CFLAGS}"
  28818. CAIRO_NONPKGCONFIG_CFLAGS="$trace_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  28819. CAIRO_LIBS="$trace_LIBS"" ${CAIRO_LIBS}"
  28820. CAIRO_NONPKGCONFIG_LIBS="$trace_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  28821. else
  28822. unset trace_BASE
  28823. unset trace_REQUIRES
  28824. unset trace_CFLAGS
  28825. unset trace_NONPKGCONFIG_CFLAGS
  28826. unset trace_LIBS
  28827. unset trace_NONPKGCONFIG_LIBS
  28828. unset trace_NONPKGCONFIG_EXTRA_LIBS
  28829. fi
  28830. if test "x$use_trace" = xyes; then
  28831. CAIRO_HAS_TRACE_TRUE=
  28832. CAIRO_HAS_TRACE_FALSE='#'
  28833. else
  28834. CAIRO_HAS_TRACE_TRUE='#'
  28835. CAIRO_HAS_TRACE_FALSE=
  28836. fi
  28837. cr_make_tmp='CAIRO_HAS_TRACE=0'
  28838. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  28839. ""$cr_make_tmp"
  28840. cr_make_tmp=''
  28841. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28842. ""$cr_make_tmp"
  28843. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28844. ""$cr_make_tmp"
  28845. cr_make_tmp=''
  28846. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28847. ""$cr_make_tmp"
  28848. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28849. ""$cr_make_tmp"
  28850. cr_make_tmp='all_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
  28851. all_cairo_cxx_sources += $(cairo_trace_cxx_sources)
  28852. all_cairo_sources += $(cairo_trace_sources)'
  28853. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28854. ""$cr_make_tmp"
  28855. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28856. ""$cr_make_tmp"
  28857. cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
  28858. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
  28859. all_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
  28860. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28861. ""$cr_make_tmp"
  28862. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28863. ""$cr_make_tmp"
  28864. cr_make_tmp='enabled_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
  28865. enabled_cairo_cxx_sources += $(cairo_trace_cxx_sources)
  28866. enabled_cairo_sources += $(cairo_trace_sources)'
  28867. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28868. "'if CAIRO_HAS_TRACE'
  28869. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28870. ""$cr_make_tmp"
  28871. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28872. "'endif'
  28873. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28874. "'ifeq ($(CAIRO_HAS_TRACE),1)'
  28875. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28876. ""$cr_make_tmp"
  28877. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28878. "'endif'
  28879. cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
  28880. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
  28881. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
  28882. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28883. "'if CAIRO_HAS_TRACE'
  28884. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28885. ""$cr_make_tmp"
  28886. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28887. "'endif'
  28888. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28889. "'ifeq ($(CAIRO_HAS_TRACE),1)'
  28890. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28891. ""$cr_make_tmp"
  28892. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28893. "'endif'
  28894. if test "x$use_trace" = xyes; then :
  28895. :
  28896. $as_echo "#define CAIRO_HAS_TRACE 1" >>confdefs.h
  28897. fi
  28898. cr_make_tmp=' @echo "#define CAIRO_HAS_TRACE 1" >> $(top_srcdir)/src/cairo-features.h'
  28899. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28900. "'ifeq ($(CAIRO_HAS_TRACE),1)'
  28901. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28902. ""$cr_make_tmp"
  28903. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  28904. "'endif'
  28905. # Check whether --enable-interpreter was given.
  28906. if test "${enable_interpreter+set}" = set; then :
  28907. enableval=$enable_interpreter; enable_interpreter=$enableval
  28908. else
  28909. enable_interpreter=yes
  28910. fi
  28911. case $enable_interpreter in #(
  28912. no) :
  28913. use_interpreter="no (disabled, use --enable-interpreter to enable)"
  28914. ;; #(
  28915. yes|auto) :
  28916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-script-interpreter feature" >&5
  28917. $as_echo_n "checking for cairo's cairo-script-interpreter feature... " >&6; }
  28918. echo
  28919. use_interpreter=yes
  28920. interpreter_BASE="cairo"
  28921. interpreter_REQUIRES="$ac_env_interpreter_REQUIRES_value"
  28922. interpreter_CFLAGS="$ac_env_interpreter_CFLAGS_value"
  28923. interpreter_NONPKGCONFIG_CFLAGS="$ac_env_interpreter_NONPKGCONFIG_CFLAGS_value"
  28924. interpreter_LIBS="$ac_env_interpreter_LIBS_value"
  28925. interpreter_NONPKGCONFIG_LIBS="$ac_env_interpreter_NONPKGCONFIG_LIBS_value"
  28926. interpreter_NONPKGCONFIG_EXTRA_LIBS="$ac_env_interpreter_NONPKGCONFIG_EXTRA_LIBS_value"
  28927. if test "x$have_libz" != "xyes"; then
  28928. use_interpreter="no (requires zlib)"
  28929. fi
  28930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-script-interpreter feature could be enabled" >&5
  28931. $as_echo_n "checking whether cairo's cairo-script-interpreter feature could be enabled... " >&6; }
  28932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_interpreter" >&5
  28933. $as_echo "$use_interpreter" >&6; }
  28934. if test "x$enable_interpreter" = "xyes" -a "x$use_interpreter" != xyes; then :
  28935. as_fn_error $? "recommended cairo-script-interpreter feature could not be enabled" "$LINENO" 5
  28936. fi ;; #(
  28937. *) :
  28938. as_fn_error $? "invalid argument passed to --enable-interpreter: \`$use_interpreter', should be one of [no/auto/yes]" "$LINENO" 5
  28939. ;;
  28940. esac
  28941. if test "x$use_interpreter" = "xyes"; then :
  28942. CAIRO_REQUIRES="$interpreter_REQUIRES"" ${CAIRO_REQUIRES}"
  28943. CAIRO_CFLAGS="$interpreter_CFLAGS"" ${CAIRO_CFLAGS}"
  28944. CAIRO_NONPKGCONFIG_CFLAGS="$interpreter_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  28945. CAIRO_LIBS="$interpreter_LIBS"" ${CAIRO_LIBS}"
  28946. CAIRO_NONPKGCONFIG_LIBS="$interpreter_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  28947. else
  28948. unset interpreter_BASE
  28949. unset interpreter_REQUIRES
  28950. unset interpreter_CFLAGS
  28951. unset interpreter_NONPKGCONFIG_CFLAGS
  28952. unset interpreter_LIBS
  28953. unset interpreter_NONPKGCONFIG_LIBS
  28954. unset interpreter_NONPKGCONFIG_EXTRA_LIBS
  28955. fi
  28956. if test "x$use_interpreter" = xyes; then
  28957. CAIRO_HAS_INTERPRETER_TRUE=
  28958. CAIRO_HAS_INTERPRETER_FALSE='#'
  28959. else
  28960. CAIRO_HAS_INTERPRETER_TRUE='#'
  28961. CAIRO_HAS_INTERPRETER_FALSE=
  28962. fi
  28963. cr_make_tmp='CAIRO_HAS_INTERPRETER=1'
  28964. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  28965. ""$cr_make_tmp"
  28966. cr_make_tmp=''
  28967. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28968. ""$cr_make_tmp"
  28969. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28970. ""$cr_make_tmp"
  28971. cr_make_tmp=''
  28972. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28973. ""$cr_make_tmp"
  28974. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28975. ""$cr_make_tmp"
  28976. cr_make_tmp='all_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
  28977. all_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
  28978. all_cairo_sources += $(cairo_interpreter_sources)'
  28979. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28980. ""$cr_make_tmp"
  28981. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  28982. ""$cr_make_tmp"
  28983. cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
  28984. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
  28985. all_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
  28986. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  28987. ""$cr_make_tmp"
  28988. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  28989. ""$cr_make_tmp"
  28990. cr_make_tmp='enabled_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
  28991. enabled_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
  28992. enabled_cairo_sources += $(cairo_interpreter_sources)'
  28993. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28994. "'if CAIRO_HAS_INTERPRETER'
  28995. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28996. ""$cr_make_tmp"
  28997. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  28998. "'endif'
  28999. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29000. "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
  29001. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29002. ""$cr_make_tmp"
  29003. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29004. "'endif'
  29005. cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
  29006. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
  29007. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
  29008. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29009. "'if CAIRO_HAS_INTERPRETER'
  29010. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29011. ""$cr_make_tmp"
  29012. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29013. "'endif'
  29014. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29015. "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
  29016. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29017. ""$cr_make_tmp"
  29018. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29019. "'endif'
  29020. if test "x$use_interpreter" = xyes; then :
  29021. :
  29022. $as_echo "#define CAIRO_HAS_INTERPRETER 1" >>confdefs.h
  29023. fi
  29024. cr_make_tmp=' @echo "#define CAIRO_HAS_INTERPRETER 1" >> $(top_srcdir)/src/cairo-features.h'
  29025. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29026. "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
  29027. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29028. ""$cr_make_tmp"
  29029. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29030. "'endif'
  29031. if test "x$use_interpreter" != xyes; then :
  29032. :
  29033. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  29034. "'+++ It is strongly recommended that you do NOT disable the
  29035. +++ cairo-script-interpreter feature.'
  29036. fi
  29037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
  29038. $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
  29039. if ${ac_cv_lib_bfd_bfd_openr+:} false; then :
  29040. $as_echo_n "(cached) " >&6
  29041. else
  29042. ac_check_lib_save_LIBS=$LIBS
  29043. LIBS="-lbfd $LIBS"
  29044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29045. /* end confdefs.h. */
  29046. /* Override any GCC internal prototype to avoid an error.
  29047. Use char because int might match the return type of a GCC
  29048. builtin and then its argument prototype would still apply. */
  29049. #ifdef __cplusplus
  29050. extern "C"
  29051. #endif
  29052. char bfd_openr ();
  29053. int
  29054. main ()
  29055. {
  29056. return bfd_openr ();
  29057. ;
  29058. return 0;
  29059. }
  29060. _ACEOF
  29061. if ac_fn_c_try_link "$LINENO"; then :
  29062. ac_cv_lib_bfd_bfd_openr=yes
  29063. else
  29064. ac_cv_lib_bfd_bfd_openr=no
  29065. fi
  29066. rm -f core conftest.err conftest.$ac_objext \
  29067. conftest$ac_exeext conftest.$ac_ext
  29068. LIBS=$ac_check_lib_save_LIBS
  29069. fi
  29070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
  29071. $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
  29072. if test "x$ac_cv_lib_bfd_bfd_openr" = xyes; then :
  29073. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  29074. if test "x$ac_cv_header_bfd_h" = xyes; then :
  29075. have_bfd=yes
  29076. else
  29077. have_bfd=no
  29078. fi
  29079. else
  29080. have_bfd=no
  29081. fi
  29082. ac_fn_c_check_header_mongrel "$LINENO" "libiberty.h" "ac_cv_header_libiberty_h" "$ac_includes_default"
  29083. if test "x$ac_cv_header_libiberty_h" = xyes; then :
  29084. else
  29085. have_bfd=no
  29086. fi
  29087. if test "x$have_bfd" = "xyes"; then
  29088. $as_echo "#define HAVE_BFD 1" >>confdefs.h
  29089. BFD_LIBS=-lbfd
  29090. fi
  29091. # Check whether --enable-symbol-lookup was given.
  29092. if test "${enable_symbol_lookup+set}" = set; then :
  29093. enableval=$enable_symbol_lookup; enable_symbol_lookup=$enableval
  29094. else
  29095. enable_symbol_lookup=auto
  29096. fi
  29097. case $enable_symbol_lookup in #(
  29098. no) :
  29099. use_symbol_lookup="no (disabled, use --enable-symbol-lookup to enable)"
  29100. ;; #(
  29101. yes|auto) :
  29102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's symbol-lookup feature" >&5
  29103. $as_echo_n "checking for cairo's symbol-lookup feature... " >&6; }
  29104. echo
  29105. use_symbol_lookup=yes
  29106. symbol_lookup_BASE="cairo"
  29107. symbol_lookup_REQUIRES="$ac_env_symbol_lookup_REQUIRES_value"
  29108. symbol_lookup_CFLAGS="$ac_env_symbol_lookup_CFLAGS_value"
  29109. symbol_lookup_NONPKGCONFIG_CFLAGS="$ac_env_symbol_lookup_NONPKGCONFIG_CFLAGS_value"
  29110. symbol_lookup_LIBS="$ac_env_symbol_lookup_LIBS_value"
  29111. symbol_lookup_NONPKGCONFIG_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_LIBS_value"
  29112. symbol_lookup_NONPKGCONFIG_EXTRA_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_EXTRA_LIBS_value"
  29113. if test "x$have_bfd" != "xyes"; then
  29114. use_symbol_lookup="no (requires bfd)"
  29115. fi
  29116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's symbol-lookup feature could be enabled" >&5
  29117. $as_echo_n "checking whether cairo's symbol-lookup feature could be enabled... " >&6; }
  29118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_symbol_lookup" >&5
  29119. $as_echo "$use_symbol_lookup" >&6; }
  29120. if test "x$enable_symbol_lookup" = "xyes" -a "x$use_symbol_lookup" != xyes; then :
  29121. as_fn_error $? " symbol-lookup feature could not be enabled" "$LINENO" 5
  29122. fi ;; #(
  29123. *) :
  29124. as_fn_error $? "invalid argument passed to --enable-symbol-lookup: \`$use_symbol_lookup', should be one of [no/auto/yes]" "$LINENO" 5
  29125. ;;
  29126. esac
  29127. if test "x$use_symbol_lookup" = "xyes"; then :
  29128. CAIRO_REQUIRES="$symbol_lookup_REQUIRES"" ${CAIRO_REQUIRES}"
  29129. CAIRO_CFLAGS="$symbol_lookup_CFLAGS"" ${CAIRO_CFLAGS}"
  29130. CAIRO_NONPKGCONFIG_CFLAGS="$symbol_lookup_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
  29131. CAIRO_LIBS="$symbol_lookup_LIBS"" ${CAIRO_LIBS}"
  29132. CAIRO_NONPKGCONFIG_LIBS="$symbol_lookup_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
  29133. else
  29134. unset symbol_lookup_BASE
  29135. unset symbol_lookup_REQUIRES
  29136. unset symbol_lookup_CFLAGS
  29137. unset symbol_lookup_NONPKGCONFIG_CFLAGS
  29138. unset symbol_lookup_LIBS
  29139. unset symbol_lookup_NONPKGCONFIG_LIBS
  29140. unset symbol_lookup_NONPKGCONFIG_EXTRA_LIBS
  29141. fi
  29142. if test "x$use_symbol_lookup" = xyes; then
  29143. CAIRO_HAS_SYMBOL_LOOKUP_TRUE=
  29144. CAIRO_HAS_SYMBOL_LOOKUP_FALSE='#'
  29145. else
  29146. CAIRO_HAS_SYMBOL_LOOKUP_TRUE='#'
  29147. CAIRO_HAS_SYMBOL_LOOKUP_FALSE=
  29148. fi
  29149. cr_make_tmp='CAIRO_HAS_SYMBOL_LOOKUP=0'
  29150. CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
  29151. ""$cr_make_tmp"
  29152. cr_make_tmp=''
  29153. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  29154. ""$cr_make_tmp"
  29155. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29156. ""$cr_make_tmp"
  29157. cr_make_tmp=''
  29158. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29159. ""$cr_make_tmp"
  29160. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29161. ""$cr_make_tmp"
  29162. cr_make_tmp='all_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
  29163. all_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
  29164. all_cairo_sources += $(cairo_symbol_lookup_sources)'
  29165. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  29166. ""$cr_make_tmp"
  29167. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29168. ""$cr_make_tmp"
  29169. cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
  29170. all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
  29171. all_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
  29172. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29173. ""$cr_make_tmp"
  29174. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29175. ""$cr_make_tmp"
  29176. cr_make_tmp='enabled_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
  29177. enabled_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
  29178. enabled_cairo_sources += $(cairo_symbol_lookup_sources)'
  29179. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  29180. "'if CAIRO_HAS_SYMBOL_LOOKUP'
  29181. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  29182. ""$cr_make_tmp"
  29183. CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
  29184. "'endif'
  29185. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29186. "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
  29187. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29188. ""$cr_make_tmp"
  29189. CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
  29190. "'endif'
  29191. cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
  29192. enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
  29193. enabled_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
  29194. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29195. "'if CAIRO_HAS_SYMBOL_LOOKUP'
  29196. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29197. ""$cr_make_tmp"
  29198. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
  29199. "'endif'
  29200. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29201. "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
  29202. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29203. ""$cr_make_tmp"
  29204. CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
  29205. "'endif'
  29206. if test "x$use_symbol_lookup" = xyes; then :
  29207. :
  29208. $as_echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >>confdefs.h
  29209. fi
  29210. cr_make_tmp=' @echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >> $(top_srcdir)/src/cairo-features.h'
  29211. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29212. "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
  29213. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29214. ""$cr_make_tmp"
  29215. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29216. "'endif'
  29217. pkg_failed=no
  29218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
  29219. $as_echo_n "checking for glib... " >&6; }
  29220. if test -n "$glib_CFLAGS"; then
  29221. pkg_cv_glib_CFLAGS="$glib_CFLAGS"
  29222. elif test -n "$PKG_CONFIG"; then
  29223. if test -n "$PKG_CONFIG" && \
  29224. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
  29225. ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  29226. ac_status=$?
  29227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29228. test $ac_status = 0; }; then
  29229. pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  29230. else
  29231. pkg_failed=yes
  29232. fi
  29233. else
  29234. pkg_failed=untried
  29235. fi
  29236. if test -n "$glib_LIBS"; then
  29237. pkg_cv_glib_LIBS="$glib_LIBS"
  29238. elif test -n "$PKG_CONFIG"; then
  29239. if test -n "$PKG_CONFIG" && \
  29240. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
  29241. ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  29242. ac_status=$?
  29243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29244. test $ac_status = 0; }; then
  29245. pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  29246. else
  29247. pkg_failed=yes
  29248. fi
  29249. else
  29250. pkg_failed=untried
  29251. fi
  29252. if test $pkg_failed = yes; then
  29253. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  29254. _pkg_short_errors_supported=yes
  29255. else
  29256. _pkg_short_errors_supported=no
  29257. fi
  29258. if test $_pkg_short_errors_supported = yes; then
  29259. glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
  29260. else
  29261. glib_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
  29262. fi
  29263. # Put the nasty error message in config.log where it belongs
  29264. echo "$glib_PKG_ERRORS" >&5
  29265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29266. $as_echo "no" >&6; }
  29267. have_glib=no
  29268. elif test $pkg_failed = untried; then
  29269. have_glib=no
  29270. else
  29271. glib_CFLAGS=$pkg_cv_glib_CFLAGS
  29272. glib_LIBS=$pkg_cv_glib_LIBS
  29273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29274. $as_echo "yes" >&6; }
  29275. have_glib=yes
  29276. fi
  29277. if test "x$have_glib" = "xyes" -a "x$have_windows" = "xno"; then
  29278. BUILD_SPHINX_TRUE=
  29279. BUILD_SPHINX_FALSE='#'
  29280. else
  29281. BUILD_SPHINX_TRUE='#'
  29282. BUILD_SPHINX_FALSE=
  29283. fi
  29284. save_LIBS="$LIBS"
  29285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  29286. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  29287. if ${ac_cv_lib_rt_shm_open+:} false; then :
  29288. $as_echo_n "(cached) " >&6
  29289. else
  29290. ac_check_lib_save_LIBS=$LIBS
  29291. LIBS="-lrt $LIBS"
  29292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29293. /* end confdefs.h. */
  29294. /* Override any GCC internal prototype to avoid an error.
  29295. Use char because int might match the return type of a GCC
  29296. builtin and then its argument prototype would still apply. */
  29297. #ifdef __cplusplus
  29298. extern "C"
  29299. #endif
  29300. char shm_open ();
  29301. int
  29302. main ()
  29303. {
  29304. return shm_open ();
  29305. ;
  29306. return 0;
  29307. }
  29308. _ACEOF
  29309. if ac_fn_c_try_link "$LINENO"; then :
  29310. ac_cv_lib_rt_shm_open=yes
  29311. else
  29312. ac_cv_lib_rt_shm_open=no
  29313. fi
  29314. rm -f core conftest.err conftest.$ac_objext \
  29315. conftest$ac_exeext conftest.$ac_ext
  29316. LIBS=$ac_check_lib_save_LIBS
  29317. fi
  29318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  29319. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  29320. if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
  29321. shm_LIBS="-lrt"
  29322. fi
  29323. LIBS="$save_LIBS"
  29324. # Check whether --enable-some-floating-point was given.
  29325. if test "${enable_some_floating_point+set}" = set; then :
  29326. enableval=$enable_some_floating_point;
  29327. if test "x$enableval" = "xno"; then
  29328. # A value of 'no' for $enableval means that they want to disable, which
  29329. # means 'yes' for $disable_some_floating_point.
  29330. disable_some_floating_point=yes
  29331. fi
  29332. else
  29333. disable_some_floating_point=no
  29334. fi
  29335. if test "x$disable_some_floating_point" = "xyes"; then
  29336. DISABLE_SOME_FLOATING_POINT_TRUE=
  29337. DISABLE_SOME_FLOATING_POINT_FALSE='#'
  29338. else
  29339. DISABLE_SOME_FLOATING_POINT_TRUE='#'
  29340. DISABLE_SOME_FLOATING_POINT_FALSE=
  29341. fi
  29342. if test "x$disable_some_floating_point" = "xyes"; then
  29343. $as_echo "#define DISABLE_SOME_FLOATING_POINT 1" >>confdefs.h
  29344. fi
  29345. need_cxx="no"
  29346. if test "x$use_qt" = "xyes"; then :
  29347. need_cxx="yes"
  29348. fi
  29349. if test "x$use_beos" = "xyes"; then :
  29350. need_cxx="yes"
  29351. fi
  29352. if test "x$need_cxx" = "xyes"; then
  29353. BUILD_CXX_TRUE=
  29354. BUILD_CXX_FALSE='#'
  29355. else
  29356. BUILD_CXX_TRUE='#'
  29357. BUILD_CXX_FALSE=
  29358. fi
  29359. # We use GTK+ for some utility/debugging tools
  29360. pkg_failed=no
  29361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk" >&5
  29362. $as_echo_n "checking for gtk... " >&6; }
  29363. if test -n "$gtk_CFLAGS"; then
  29364. pkg_cv_gtk_CFLAGS="$gtk_CFLAGS"
  29365. elif test -n "$PKG_CONFIG"; then
  29366. if test -n "$PKG_CONFIG" && \
  29367. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
  29368. ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
  29369. ac_status=$?
  29370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29371. test $ac_status = 0; }; then
  29372. pkg_cv_gtk_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0"" 2>/dev/null`
  29373. else
  29374. pkg_failed=yes
  29375. fi
  29376. else
  29377. pkg_failed=untried
  29378. fi
  29379. if test -n "$gtk_LIBS"; then
  29380. pkg_cv_gtk_LIBS="$gtk_LIBS"
  29381. elif test -n "$PKG_CONFIG"; then
  29382. if test -n "$PKG_CONFIG" && \
  29383. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
  29384. ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
  29385. ac_status=$?
  29386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29387. test $ac_status = 0; }; then
  29388. pkg_cv_gtk_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0"" 2>/dev/null`
  29389. else
  29390. pkg_failed=yes
  29391. fi
  29392. else
  29393. pkg_failed=untried
  29394. fi
  29395. if test $pkg_failed = yes; then
  29396. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  29397. _pkg_short_errors_supported=yes
  29398. else
  29399. _pkg_short_errors_supported=no
  29400. fi
  29401. if test $_pkg_short_errors_supported = yes; then
  29402. gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors ""gtk+-2.0"" 2>&1`
  29403. else
  29404. gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors ""gtk+-2.0"" 2>&1`
  29405. fi
  29406. # Put the nasty error message in config.log where it belongs
  29407. echo "$gtk_PKG_ERRORS" >&5
  29408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29409. $as_echo "no" >&6; }
  29410. have_gtk=no
  29411. elif test $pkg_failed = untried; then
  29412. have_gtk=no
  29413. else
  29414. gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
  29415. gtk_LIBS=$pkg_cv_gtk_LIBS
  29416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29417. $as_echo "yes" >&6; }
  29418. have_gtk=yes
  29419. fi
  29420. if test "x$have_gtk" = "xyes"; then
  29421. HAVE_GTK_TRUE=
  29422. HAVE_GTK_FALSE='#'
  29423. else
  29424. HAVE_GTK_TRUE='#'
  29425. HAVE_GTK_FALSE=
  29426. fi
  29427. ac_config_files="$ac_config_files Makefile boilerplate/Makefile src/Makefile test/Makefile test/pdiff/Makefile perf/Makefile perf/micro/Makefile util/Makefile util/cairo-fdr/Makefile util/cairo-gobject/Makefile util/cairo-missing/Makefile util/cairo-script/Makefile util/cairo-script/examples/Makefile util/cairo-sphinx/Makefile util/cairo-trace/Makefile util/cairo-trace/cairo-trace doc/Makefile doc/public/Makefile"
  29428. ac_config_commands="$ac_config_commands cairo-trace"
  29429. cat >confcache <<\_ACEOF
  29430. # This file is a shell script that caches the results of configure
  29431. # tests run on this system so they can be shared between configure
  29432. # scripts and configure runs, see configure's option --config-cache.
  29433. # It is not useful on other systems. If it contains results you don't
  29434. # want to keep, you may remove or edit it.
  29435. #
  29436. # config.status only pays attention to the cache file if you give it
  29437. # the --recheck option to rerun configure.
  29438. #
  29439. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  29440. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  29441. # following values.
  29442. _ACEOF
  29443. # The following way of writing the cache mishandles newlines in values,
  29444. # but we know of no workaround that is simple, portable, and efficient.
  29445. # So, we kill variables containing newlines.
  29446. # Ultrix sh set writes to stderr and can't be redirected directly,
  29447. # and sets the high bit in the cache file unless we assign to the vars.
  29448. (
  29449. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  29450. eval ac_val=\$$ac_var
  29451. case $ac_val in #(
  29452. *${as_nl}*)
  29453. case $ac_var in #(
  29454. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  29455. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  29456. esac
  29457. case $ac_var in #(
  29458. _ | IFS | as_nl) ;; #(
  29459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  29460. *) { eval $ac_var=; unset $ac_var;} ;;
  29461. esac ;;
  29462. esac
  29463. done
  29464. (set) 2>&1 |
  29465. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  29466. *${as_nl}ac_space=\ *)
  29467. # `set' does not quote correctly, so add quotes: double-quote
  29468. # substitution turns \\\\ into \\, and sed turns \\ into \.
  29469. sed -n \
  29470. "s/'/'\\\\''/g;
  29471. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  29472. ;; #(
  29473. *)
  29474. # `set' quotes correctly as required by POSIX, so do not add quotes.
  29475. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  29476. ;;
  29477. esac |
  29478. sort
  29479. ) |
  29480. sed '
  29481. /^ac_cv_env_/b end
  29482. t clear
  29483. :clear
  29484. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  29485. t end
  29486. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  29487. :end' >>confcache
  29488. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  29489. if test -w "$cache_file"; then
  29490. if test "x$cache_file" != "x/dev/null"; then
  29491. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  29492. $as_echo "$as_me: updating cache $cache_file" >&6;}
  29493. if test ! -f "$cache_file" || test -h "$cache_file"; then
  29494. cat confcache >"$cache_file"
  29495. else
  29496. case $cache_file in #(
  29497. */* | ?:*)
  29498. mv -f confcache "$cache_file"$$ &&
  29499. mv -f "$cache_file"$$ "$cache_file" ;; #(
  29500. *)
  29501. mv -f confcache "$cache_file" ;;
  29502. esac
  29503. fi
  29504. fi
  29505. else
  29506. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  29507. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  29508. fi
  29509. fi
  29510. rm -f confcache
  29511. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  29512. # Let make expand exec_prefix.
  29513. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  29514. DEFS=-DHAVE_CONFIG_H
  29515. ac_libobjs=
  29516. ac_ltlibobjs=
  29517. U=
  29518. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  29519. # 1. Remove the extension, and $U if already installed.
  29520. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  29521. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  29522. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  29523. # will be set to the directory where LIBOBJS objects are built.
  29524. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  29525. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  29526. done
  29527. LIBOBJS=$ac_libobjs
  29528. LTLIBOBJS=$ac_ltlibobjs
  29529. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  29530. as_fn_error $? "conditional \"AMDEP\" was never defined.
  29531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29532. fi
  29533. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  29534. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  29535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29536. fi
  29537. if test -n "$EXEEXT"; then
  29538. am__EXEEXT_TRUE=
  29539. am__EXEEXT_FALSE='#'
  29540. else
  29541. am__EXEEXT_TRUE='#'
  29542. am__EXEEXT_FALSE=
  29543. fi
  29544. if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
  29545. as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
  29546. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29547. fi
  29548. if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
  29549. as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
  29550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29551. fi
  29552. if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
  29553. as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
  29554. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29555. fi
  29556. if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
  29557. as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
  29558. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29559. fi
  29560. if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
  29561. as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
  29562. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29563. fi
  29564. if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
  29565. as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
  29566. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29567. fi
  29568. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  29569. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  29570. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29571. fi
  29572. CAIRO_CFLAGS="$CAIRO_CFLAGS $CAIRO_NONPKGCONFIG_CFLAGS"
  29573. CAIRO_LIBS="$CAIRO_LIBS $CAIRO_NONPKGCONFIG_LIBS"
  29574. cr_make_tmp=' @echo "#endif" >> $(top_srcdir)/src/cairo-features.h'
  29575. CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
  29576. ""$cr_make_tmp"
  29577. if test -z "$CAIRO_NATIVE_SURFACE_BACKENDS"; then :
  29578. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  29579. "'*** No native surface backends enabled for your platform. It is strongly
  29580. *** recommended that you enable the native surface backend feature for your
  29581. *** platform.'
  29582. fi
  29583. if test -z "$CAIRO_NATIVE_FONT_BACKENDS"; then :
  29584. CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
  29585. "'*** No native font backends enabled for your platform. It is strongly
  29586. *** recommended that you enable the native font backend feature for your
  29587. *** platform.'
  29588. fi
  29589. if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  29590. as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
  29591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29592. fi
  29593. if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
  29594. as_fn_error $? "conditional \"OS_WIN32\" was never defined.
  29595. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29596. fi
  29597. if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
  29598. as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
  29599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29600. fi
  29601. if test -z "${CAIRO_HAS_LCOV_TRUE}" && test -z "${CAIRO_HAS_LCOV_FALSE}"; then
  29602. as_fn_error $? "conditional \"CAIRO_HAS_LCOV\" was never defined.
  29603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29604. fi
  29605. if test -z "${CAIRO_HAS_DL_TRUE}" && test -z "${CAIRO_HAS_DL_FALSE}"; then
  29606. as_fn_error $? "conditional \"CAIRO_HAS_DL\" was never defined.
  29607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29608. fi
  29609. if test -z "${CAIRO_HAS_DLSYM_TRUE}" && test -z "${CAIRO_HAS_DLSYM_FALSE}"; then
  29610. as_fn_error $? "conditional \"CAIRO_HAS_DLSYM\" was never defined.
  29611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29612. fi
  29613. if test -z "${CAIRO_HAS_XLIB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_SURFACE_FALSE}"; then
  29614. as_fn_error $? "conditional \"CAIRO_HAS_XLIB_SURFACE\" was never defined.
  29615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29616. fi
  29617. if test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE}"; then
  29618. as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XRENDER_SURFACE\" was never defined.
  29619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29620. fi
  29621. if test -z "${CAIRO_HAS_XCB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XCB_SURFACE_FALSE}"; then
  29622. as_fn_error $? "conditional \"CAIRO_HAS_XCB_SURFACE\" was never defined.
  29623. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29624. fi
  29625. if test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE}"; then
  29626. as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XCB_FUNCTIONS\" was never defined.
  29627. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29628. fi
  29629. if test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE}"; then
  29630. as_fn_error $? "conditional \"CAIRO_HAS_XCB_SHM_FUNCTIONS\" was never defined.
  29631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29632. fi
  29633. if test -z "${CAIRO_HAS_QT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QT_SURFACE_FALSE}"; then
  29634. as_fn_error $? "conditional \"CAIRO_HAS_QT_SURFACE\" was never defined.
  29635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29636. fi
  29637. if test -z "${CAIRO_HAS_QUARTZ_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_SURFACE_FALSE}"; then
  29638. as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_SURFACE\" was never defined.
  29639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29640. fi
  29641. if test -z "${CAIRO_HAS_QUARTZ_FONT_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_FONT_FALSE}"; then
  29642. as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_FONT\" was never defined.
  29643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29644. fi
  29645. if test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE}"; then
  29646. as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_IMAGE_SURFACE\" was never defined.
  29647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29648. fi
  29649. if test -z "${CAIRO_HAS_WIN32_SURFACE_TRUE}" && test -z "${CAIRO_HAS_WIN32_SURFACE_FALSE}"; then
  29650. as_fn_error $? "conditional \"CAIRO_HAS_WIN32_SURFACE\" was never defined.
  29651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29652. fi
  29653. if test -z "${CAIRO_HAS_WIN32_FONT_TRUE}" && test -z "${CAIRO_HAS_WIN32_FONT_FALSE}"; then
  29654. as_fn_error $? "conditional \"CAIRO_HAS_WIN32_FONT\" was never defined.
  29655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29656. fi
  29657. if test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE}"; then
  29658. as_fn_error $? "conditional \"CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE\" was never defined.
  29659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29660. fi
  29661. if test -z "${CAIRO_HAS_OS2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_OS2_SURFACE_FALSE}"; then
  29662. as_fn_error $? "conditional \"CAIRO_HAS_OS2_SURFACE\" was never defined.
  29663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29664. fi
  29665. if test -z "${CAIRO_HAS_BEOS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_BEOS_SURFACE_FALSE}"; then
  29666. as_fn_error $? "conditional \"CAIRO_HAS_BEOS_SURFACE\" was never defined.
  29667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29668. fi
  29669. if test -z "${CAIRO_HAS_DRM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DRM_SURFACE_FALSE}"; then
  29670. as_fn_error $? "conditional \"CAIRO_HAS_DRM_SURFACE\" was never defined.
  29671. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29672. fi
  29673. if test -z "${CAIRO_HAS_GALLIUM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GALLIUM_SURFACE_FALSE}"; then
  29674. as_fn_error $? "conditional \"CAIRO_HAS_GALLIUM_SURFACE\" was never defined.
  29675. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29676. fi
  29677. if test -z "${CAIRO_HAS_PNG_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_PNG_FUNCTIONS_FALSE}"; then
  29678. as_fn_error $? "conditional \"CAIRO_HAS_PNG_FUNCTIONS\" was never defined.
  29679. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29680. fi
  29681. if test -z "${CAIRO_HAS_GL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GL_SURFACE_FALSE}"; then
  29682. as_fn_error $? "conditional \"CAIRO_HAS_GL_SURFACE\" was never defined.
  29683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29684. fi
  29685. if test -z "${CAIRO_HAS_GLESV2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GLESV2_SURFACE_FALSE}"; then
  29686. as_fn_error $? "conditional \"CAIRO_HAS_GLESV2_SURFACE\" was never defined.
  29687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29688. fi
  29689. if test -z "${CAIRO_HAS_GLESV3_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GLESV3_SURFACE_FALSE}"; then
  29690. as_fn_error $? "conditional \"CAIRO_HAS_GLESV3_SURFACE\" was never defined.
  29691. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29692. fi
  29693. if test -z "${CAIRO_HAS_COGL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_COGL_SURFACE_FALSE}"; then
  29694. as_fn_error $? "conditional \"CAIRO_HAS_COGL_SURFACE\" was never defined.
  29695. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29696. fi
  29697. if test -z "${CAIRO_HAS_DIRECTFB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DIRECTFB_SURFACE_FALSE}"; then
  29698. as_fn_error $? "conditional \"CAIRO_HAS_DIRECTFB_SURFACE\" was never defined.
  29699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29700. fi
  29701. if test -z "${CAIRO_HAS_VG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_VG_SURFACE_FALSE}"; then
  29702. as_fn_error $? "conditional \"CAIRO_HAS_VG_SURFACE\" was never defined.
  29703. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29704. fi
  29705. if test -z "${CAIRO_HAS_EGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_EGL_FUNCTIONS_FALSE}"; then
  29706. as_fn_error $? "conditional \"CAIRO_HAS_EGL_FUNCTIONS\" was never defined.
  29707. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29708. fi
  29709. if test -z "${CAIRO_HAS_GLX_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GLX_FUNCTIONS_FALSE}"; then
  29710. as_fn_error $? "conditional \"CAIRO_HAS_GLX_FUNCTIONS\" was never defined.
  29711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29712. fi
  29713. if test -z "${CAIRO_HAS_WGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_WGL_FUNCTIONS_FALSE}"; then
  29714. as_fn_error $? "conditional \"CAIRO_HAS_WGL_FUNCTIONS\" was never defined.
  29715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29716. fi
  29717. if test -z "${CAIRO_HAS_SCRIPT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SCRIPT_SURFACE_FALSE}"; then
  29718. as_fn_error $? "conditional \"CAIRO_HAS_SCRIPT_SURFACE\" was never defined.
  29719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29720. fi
  29721. if test -z "${CAIRO_HAS_FT_FONT_TRUE}" && test -z "${CAIRO_HAS_FT_FONT_FALSE}"; then
  29722. as_fn_error $? "conditional \"CAIRO_HAS_FT_FONT\" was never defined.
  29723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29724. fi
  29725. if test -z "${CAIRO_HAS_FC_FONT_TRUE}" && test -z "${CAIRO_HAS_FC_FONT_FALSE}"; then
  29726. as_fn_error $? "conditional \"CAIRO_HAS_FC_FONT\" was never defined.
  29727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29728. fi
  29729. if test -z "${CAIRO_HAS_PS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PS_SURFACE_FALSE}"; then
  29730. as_fn_error $? "conditional \"CAIRO_HAS_PS_SURFACE\" was never defined.
  29731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29732. fi
  29733. if test -z "${CAIRO_CAN_TEST_PS_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PS_SURFACE_FALSE}"; then
  29734. as_fn_error $? "conditional \"CAIRO_CAN_TEST_PS_SURFACE\" was never defined.
  29735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29736. fi
  29737. if test -z "${CAIRO_HAS_SPECTRE_TRUE}" && test -z "${CAIRO_HAS_SPECTRE_FALSE}"; then
  29738. as_fn_error $? "conditional \"CAIRO_HAS_SPECTRE\" was never defined.
  29739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29740. fi
  29741. if test -z "${CAIRO_HAS_PDF_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PDF_SURFACE_FALSE}"; then
  29742. as_fn_error $? "conditional \"CAIRO_HAS_PDF_SURFACE\" was never defined.
  29743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29744. fi
  29745. if test -z "${CAIRO_CAN_TEST_PDF_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PDF_SURFACE_FALSE}"; then
  29746. as_fn_error $? "conditional \"CAIRO_CAN_TEST_PDF_SURFACE\" was never defined.
  29747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29748. fi
  29749. if test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE}" && test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE}"; then
  29750. as_fn_error $? "conditional \"CAIRO_HAS_MULTI_PAGE_SURFACES\" was never defined.
  29751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29752. fi
  29753. if test -z "${CAIRO_HAS_SVG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SVG_SURFACE_FALSE}"; then
  29754. as_fn_error $? "conditional \"CAIRO_HAS_SVG_SURFACE\" was never defined.
  29755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29756. fi
  29757. if test -z "${CAIRO_CAN_TEST_SVG_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_SVG_SURFACE_FALSE}"; then
  29758. as_fn_error $? "conditional \"CAIRO_CAN_TEST_SVG_SURFACE\" was never defined.
  29759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29760. fi
  29761. if test -z "${CAIRO_HAS_TEST_SURFACES_TRUE}" && test -z "${CAIRO_HAS_TEST_SURFACES_FALSE}"; then
  29762. as_fn_error $? "conditional \"CAIRO_HAS_TEST_SURFACES\" was never defined.
  29763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29764. fi
  29765. if test -z "${CAIRO_HAS_TEE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_TEE_SURFACE_FALSE}"; then
  29766. as_fn_error $? "conditional \"CAIRO_HAS_TEE_SURFACE\" was never defined.
  29767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29768. fi
  29769. if test -z "${CAIRO_HAS_XML_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XML_SURFACE_FALSE}"; then
  29770. as_fn_error $? "conditional \"CAIRO_HAS_XML_SURFACE\" was never defined.
  29771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29772. fi
  29773. if test -z "${CAIRO_HAS_PTHREAD_TRUE}" && test -z "${CAIRO_HAS_PTHREAD_FALSE}"; then
  29774. as_fn_error $? "conditional \"CAIRO_HAS_PTHREAD\" was never defined.
  29775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29776. fi
  29777. if test -z "${HAVE_REAL_PTHREAD_TRUE}" && test -z "${HAVE_REAL_PTHREAD_FALSE}"; then
  29778. as_fn_error $? "conditional \"HAVE_REAL_PTHREAD\" was never defined.
  29779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29780. fi
  29781. if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
  29782. as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
  29783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29784. fi
  29785. if test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE}"; then
  29786. as_fn_error $? "conditional \"CAIRO_HAS_GOBJECT_FUNCTIONS\" was never defined.
  29787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29788. fi
  29789. if test -z "${BUILD_ANY2PPM_TRUE}" && test -z "${BUILD_ANY2PPM_FALSE}"; then
  29790. as_fn_error $? "conditional \"BUILD_ANY2PPM\" was never defined.
  29791. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29792. fi
  29793. if test -z "${CAIRO_HAS_TRACE_TRUE}" && test -z "${CAIRO_HAS_TRACE_FALSE}"; then
  29794. as_fn_error $? "conditional \"CAIRO_HAS_TRACE\" was never defined.
  29795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29796. fi
  29797. if test -z "${CAIRO_HAS_INTERPRETER_TRUE}" && test -z "${CAIRO_HAS_INTERPRETER_FALSE}"; then
  29798. as_fn_error $? "conditional \"CAIRO_HAS_INTERPRETER\" was never defined.
  29799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29800. fi
  29801. if test -z "${CAIRO_HAS_SYMBOL_LOOKUP_TRUE}" && test -z "${CAIRO_HAS_SYMBOL_LOOKUP_FALSE}"; then
  29802. as_fn_error $? "conditional \"CAIRO_HAS_SYMBOL_LOOKUP\" was never defined.
  29803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29804. fi
  29805. if test -z "${BUILD_SPHINX_TRUE}" && test -z "${BUILD_SPHINX_FALSE}"; then
  29806. as_fn_error $? "conditional \"BUILD_SPHINX\" was never defined.
  29807. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29808. fi
  29809. if test -z "${DISABLE_SOME_FLOATING_POINT_TRUE}" && test -z "${DISABLE_SOME_FLOATING_POINT_FALSE}"; then
  29810. as_fn_error $? "conditional \"DISABLE_SOME_FLOATING_POINT\" was never defined.
  29811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29812. fi
  29813. if test -z "${BUILD_CXX_TRUE}" && test -z "${BUILD_CXX_FALSE}"; then
  29814. as_fn_error $? "conditional \"BUILD_CXX\" was never defined.
  29815. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29816. fi
  29817. if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
  29818. as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
  29819. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  29820. fi
  29821. : "${CONFIG_STATUS=./config.status}"
  29822. ac_write_fail=0
  29823. ac_clean_files_save=$ac_clean_files
  29824. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  29825. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  29826. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  29827. as_write_fail=0
  29828. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  29829. #! $SHELL
  29830. # Generated by $as_me.
  29831. # Run this file to recreate the current configuration.
  29832. # Compiler output produced by configure, useful for debugging
  29833. # configure, is in config.log if it exists.
  29834. debug=false
  29835. ac_cs_recheck=false
  29836. ac_cs_silent=false
  29837. SHELL=\${CONFIG_SHELL-$SHELL}
  29838. export SHELL
  29839. _ASEOF
  29840. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  29841. ## -------------------- ##
  29842. ## M4sh Initialization. ##
  29843. ## -------------------- ##
  29844. # Be more Bourne compatible
  29845. DUALCASE=1; export DUALCASE # for MKS sh
  29846. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  29847. emulate sh
  29848. NULLCMD=:
  29849. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29850. # is contrary to our usage. Disable this feature.
  29851. alias -g '${1+"$@"}'='"$@"'
  29852. setopt NO_GLOB_SUBST
  29853. else
  29854. case `(set -o) 2>/dev/null` in #(
  29855. *posix*) :
  29856. set -o posix ;; #(
  29857. *) :
  29858. ;;
  29859. esac
  29860. fi
  29861. as_nl='
  29862. '
  29863. export as_nl
  29864. as_echo='printf %s\n'
  29865. as_echo_n='printf %s'
  29866. # The user is always right.
  29867. if test "${PATH_SEPARATOR+set}" != set; then
  29868. PATH_SEPARATOR=:
  29869. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  29870. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  29871. PATH_SEPARATOR=';'
  29872. }
  29873. fi
  29874. # IFS
  29875. # We need space, tab and new line, in precisely that order. Quoting is
  29876. # there to prevent editors from complaining about space-tab.
  29877. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  29878. # splitting by setting IFS to empty value.)
  29879. IFS=" "" $as_nl"
  29880. # Find who we are. Look in the path if we contain no directory separator.
  29881. as_myself=
  29882. case $0 in #((
  29883. *[\\/]* ) as_myself=$0 ;;
  29884. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29885. for as_dir in $PATH
  29886. do
  29887. IFS=$as_save_IFS
  29888. test -z "$as_dir" && as_dir=.
  29889. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  29890. done
  29891. IFS=$as_save_IFS
  29892. ;;
  29893. esac
  29894. # We did not find ourselves, most probably we were run as `sh COMMAND'
  29895. # in which case we are not to be found in the path.
  29896. if test "x$as_myself" = x; then
  29897. as_myself=$0
  29898. fi
  29899. if test ! -f "$as_myself"; then
  29900. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  29901. exit 1
  29902. fi
  29903. # Unset variables that we do not need and which cause bugs (e.g. in
  29904. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  29905. # suppresses any "Segmentation fault" message there. '((' could
  29906. # trigger a bug in pdksh 5.2.14.
  29907. for as_var in BASH_ENV ENV MAIL MAILPATH
  29908. do eval test x\${$as_var+set} = xset \
  29909. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  29910. done
  29911. PS1='$ '
  29912. PS2='> '
  29913. PS4='+ '
  29914. # NLS nuisances.
  29915. LC_ALL=C
  29916. export LC_ALL
  29917. LANGUAGE=C
  29918. export LANGUAGE
  29919. # CDPATH.
  29920. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29921. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  29922. # ----------------------------------------
  29923. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  29924. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  29925. # script with STATUS, using 1 if that was 0.
  29926. as_fn_error ()
  29927. {
  29928. as_status=$1; test $as_status -eq 0 && as_status=1
  29929. if test "$4"; then
  29930. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  29931. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  29932. fi
  29933. $as_echo "$as_me: error: $2" >&2
  29934. as_fn_exit $as_status
  29935. } # as_fn_error
  29936. # as_fn_set_status STATUS
  29937. # -----------------------
  29938. # Set $? to STATUS, without forking.
  29939. as_fn_set_status ()
  29940. {
  29941. return $1
  29942. } # as_fn_set_status
  29943. # as_fn_exit STATUS
  29944. # -----------------
  29945. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  29946. as_fn_exit ()
  29947. {
  29948. set +e
  29949. as_fn_set_status $1
  29950. exit $1
  29951. } # as_fn_exit
  29952. # as_fn_unset VAR
  29953. # ---------------
  29954. # Portably unset VAR.
  29955. as_fn_unset ()
  29956. {
  29957. { eval $1=; unset $1;}
  29958. }
  29959. as_unset=as_fn_unset
  29960. # as_fn_append VAR VALUE
  29961. # ----------------------
  29962. # Append the text in VALUE to the end of the definition contained in VAR. Take
  29963. # advantage of any shell optimizations that allow amortized linear growth over
  29964. # repeated appends, instead of the typical quadratic growth present in naive
  29965. # implementations.
  29966. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  29967. eval 'as_fn_append ()
  29968. {
  29969. eval $1+=\$2
  29970. }'
  29971. else
  29972. as_fn_append ()
  29973. {
  29974. eval $1=\$$1\$2
  29975. }
  29976. fi # as_fn_append
  29977. # as_fn_arith ARG...
  29978. # ------------------
  29979. # Perform arithmetic evaluation on the ARGs, and store the result in the
  29980. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  29981. # must be portable across $(()) and expr.
  29982. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  29983. eval 'as_fn_arith ()
  29984. {
  29985. as_val=$(( $* ))
  29986. }'
  29987. else
  29988. as_fn_arith ()
  29989. {
  29990. as_val=`expr "$@" || test $? -eq 1`
  29991. }
  29992. fi # as_fn_arith
  29993. if expr a : '\(a\)' >/dev/null 2>&1 &&
  29994. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  29995. as_expr=expr
  29996. else
  29997. as_expr=false
  29998. fi
  29999. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  30000. as_basename=basename
  30001. else
  30002. as_basename=false
  30003. fi
  30004. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  30005. as_dirname=dirname
  30006. else
  30007. as_dirname=false
  30008. fi
  30009. as_me=`$as_basename -- "$0" ||
  30010. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  30011. X"$0" : 'X\(//\)$' \| \
  30012. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  30013. $as_echo X/"$0" |
  30014. sed '/^.*\/\([^/][^/]*\)\/*$/{
  30015. s//\1/
  30016. q
  30017. }
  30018. /^X\/\(\/\/\)$/{
  30019. s//\1/
  30020. q
  30021. }
  30022. /^X\/\(\/\).*/{
  30023. s//\1/
  30024. q
  30025. }
  30026. s/.*/./; q'`
  30027. # Avoid depending upon Character Ranges.
  30028. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30029. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30030. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  30031. as_cr_digits='0123456789'
  30032. as_cr_alnum=$as_cr_Letters$as_cr_digits
  30033. ECHO_C= ECHO_N= ECHO_T=
  30034. case `echo -n x` in #(((((
  30035. -n*)
  30036. case `echo 'xy\c'` in
  30037. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  30038. xy) ECHO_C='\c';;
  30039. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  30040. ECHO_T=' ';;
  30041. esac;;
  30042. *)
  30043. ECHO_N='-n';;
  30044. esac
  30045. rm -f conf$$ conf$$.exe conf$$.file
  30046. if test -d conf$$.dir; then
  30047. rm -f conf$$.dir/conf$$.file
  30048. else
  30049. rm -f conf$$.dir
  30050. mkdir conf$$.dir 2>/dev/null
  30051. fi
  30052. if (echo >conf$$.file) 2>/dev/null; then
  30053. if ln -s conf$$.file conf$$ 2>/dev/null; then
  30054. as_ln_s='ln -s'
  30055. # ... but there are two gotchas:
  30056. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  30057. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  30058. # In both cases, we have to default to `cp -pR'.
  30059. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  30060. as_ln_s='cp -pR'
  30061. elif ln conf$$.file conf$$ 2>/dev/null; then
  30062. as_ln_s=ln
  30063. else
  30064. as_ln_s='cp -pR'
  30065. fi
  30066. else
  30067. as_ln_s='cp -pR'
  30068. fi
  30069. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  30070. rmdir conf$$.dir 2>/dev/null
  30071. # as_fn_mkdir_p
  30072. # -------------
  30073. # Create "$as_dir" as a directory, including parents if necessary.
  30074. as_fn_mkdir_p ()
  30075. {
  30076. case $as_dir in #(
  30077. -*) as_dir=./$as_dir;;
  30078. esac
  30079. test -d "$as_dir" || eval $as_mkdir_p || {
  30080. as_dirs=
  30081. while :; do
  30082. case $as_dir in #(
  30083. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30084. *) as_qdir=$as_dir;;
  30085. esac
  30086. as_dirs="'$as_qdir' $as_dirs"
  30087. as_dir=`$as_dirname -- "$as_dir" ||
  30088. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30089. X"$as_dir" : 'X\(//\)[^/]' \| \
  30090. X"$as_dir" : 'X\(//\)$' \| \
  30091. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30092. $as_echo X"$as_dir" |
  30093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30094. s//\1/
  30095. q
  30096. }
  30097. /^X\(\/\/\)[^/].*/{
  30098. s//\1/
  30099. q
  30100. }
  30101. /^X\(\/\/\)$/{
  30102. s//\1/
  30103. q
  30104. }
  30105. /^X\(\/\).*/{
  30106. s//\1/
  30107. q
  30108. }
  30109. s/.*/./; q'`
  30110. test -d "$as_dir" && break
  30111. done
  30112. test -z "$as_dirs" || eval "mkdir $as_dirs"
  30113. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  30114. } # as_fn_mkdir_p
  30115. if mkdir -p . 2>/dev/null; then
  30116. as_mkdir_p='mkdir -p "$as_dir"'
  30117. else
  30118. test -d ./-p && rmdir ./-p
  30119. as_mkdir_p=false
  30120. fi
  30121. # as_fn_executable_p FILE
  30122. # -----------------------
  30123. # Test if FILE is an executable regular file.
  30124. as_fn_executable_p ()
  30125. {
  30126. test -f "$1" && test -x "$1"
  30127. } # as_fn_executable_p
  30128. as_test_x='test -x'
  30129. as_executable_p=as_fn_executable_p
  30130. # Sed expression to map a string onto a valid CPP name.
  30131. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  30132. # Sed expression to map a string onto a valid variable name.
  30133. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  30134. exec 6>&1
  30135. ## ----------------------------------- ##
  30136. ## Main body of $CONFIG_STATUS script. ##
  30137. ## ----------------------------------- ##
  30138. _ASEOF
  30139. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  30140. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30141. # Save the log message, to keep $0 and so on meaningful, and to
  30142. # report actual input values of CONFIG_FILES etc. instead of their
  30143. # values after options handling.
  30144. ac_log="
  30145. This file was extended by cairo $as_me 1.16.0, which was
  30146. generated by GNU Autoconf 2.69. Invocation command line was
  30147. CONFIG_FILES = $CONFIG_FILES
  30148. CONFIG_HEADERS = $CONFIG_HEADERS
  30149. CONFIG_LINKS = $CONFIG_LINKS
  30150. CONFIG_COMMANDS = $CONFIG_COMMANDS
  30151. $ $0 $@
  30152. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  30153. "
  30154. _ACEOF
  30155. case $ac_config_files in *"
  30156. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  30157. esac
  30158. case $ac_config_headers in *"
  30159. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  30160. esac
  30161. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30162. # Files that config.status was made for.
  30163. config_files="$ac_config_files"
  30164. config_headers="$ac_config_headers"
  30165. config_commands="$ac_config_commands"
  30166. _ACEOF
  30167. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30168. ac_cs_usage="\
  30169. \`$as_me' instantiates files and other configuration actions
  30170. from templates according to the current configuration. Unless the files
  30171. and actions are specified as TAGs, all are instantiated by default.
  30172. Usage: $0 [OPTION]... [TAG]...
  30173. -h, --help print this help, then exit
  30174. -V, --version print version number and configuration settings, then exit
  30175. --config print configuration, then exit
  30176. -q, --quiet, --silent
  30177. do not print progress messages
  30178. -d, --debug don't remove temporary files
  30179. --recheck update $as_me by reconfiguring in the same conditions
  30180. --file=FILE[:TEMPLATE]
  30181. instantiate the configuration file FILE
  30182. --header=FILE[:TEMPLATE]
  30183. instantiate the configuration header FILE
  30184. Configuration files:
  30185. $config_files
  30186. Configuration headers:
  30187. $config_headers
  30188. Configuration commands:
  30189. $config_commands
  30190. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
  30191. cairo home page: <https://cairographics.org/>."
  30192. _ACEOF
  30193. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30194. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  30195. ac_cs_version="\\
  30196. cairo config.status 1.16.0
  30197. configured by $0, generated by GNU Autoconf 2.69,
  30198. with options \\"\$ac_cs_config\\"
  30199. Copyright (C) 2012 Free Software Foundation, Inc.
  30200. This config.status script is free software; the Free Software Foundation
  30201. gives unlimited permission to copy, distribute and modify it."
  30202. ac_pwd='$ac_pwd'
  30203. srcdir='$srcdir'
  30204. INSTALL='$INSTALL'
  30205. MKDIR_P='$MKDIR_P'
  30206. AWK='$AWK'
  30207. test -n "\$AWK" || AWK=awk
  30208. _ACEOF
  30209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30210. # The default lists apply if the user does not specify any file.
  30211. ac_need_defaults=:
  30212. while test $# != 0
  30213. do
  30214. case $1 in
  30215. --*=?*)
  30216. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  30217. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  30218. ac_shift=:
  30219. ;;
  30220. --*=)
  30221. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  30222. ac_optarg=
  30223. ac_shift=:
  30224. ;;
  30225. *)
  30226. ac_option=$1
  30227. ac_optarg=$2
  30228. ac_shift=shift
  30229. ;;
  30230. esac
  30231. case $ac_option in
  30232. # Handling of the options.
  30233. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  30234. ac_cs_recheck=: ;;
  30235. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  30236. $as_echo "$ac_cs_version"; exit ;;
  30237. --config | --confi | --conf | --con | --co | --c )
  30238. $as_echo "$ac_cs_config"; exit ;;
  30239. --debug | --debu | --deb | --de | --d | -d )
  30240. debug=: ;;
  30241. --file | --fil | --fi | --f )
  30242. $ac_shift
  30243. case $ac_optarg in
  30244. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  30245. '') as_fn_error $? "missing file argument" ;;
  30246. esac
  30247. as_fn_append CONFIG_FILES " '$ac_optarg'"
  30248. ac_need_defaults=false;;
  30249. --header | --heade | --head | --hea )
  30250. $ac_shift
  30251. case $ac_optarg in
  30252. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  30253. esac
  30254. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  30255. ac_need_defaults=false;;
  30256. --he | --h)
  30257. # Conflict between --help and --header
  30258. as_fn_error $? "ambiguous option: \`$1'
  30259. Try \`$0 --help' for more information.";;
  30260. --help | --hel | -h )
  30261. $as_echo "$ac_cs_usage"; exit ;;
  30262. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  30263. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  30264. ac_cs_silent=: ;;
  30265. # This is an error.
  30266. -*) as_fn_error $? "unrecognized option: \`$1'
  30267. Try \`$0 --help' for more information." ;;
  30268. *) as_fn_append ac_config_targets " $1"
  30269. ac_need_defaults=false ;;
  30270. esac
  30271. shift
  30272. done
  30273. ac_configure_extra_args=
  30274. if $ac_cs_silent; then
  30275. exec 6>/dev/null
  30276. ac_configure_extra_args="$ac_configure_extra_args --silent"
  30277. fi
  30278. _ACEOF
  30279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30280. if \$ac_cs_recheck; then
  30281. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  30282. shift
  30283. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  30284. CONFIG_SHELL='$SHELL'
  30285. export CONFIG_SHELL
  30286. exec "\$@"
  30287. fi
  30288. _ACEOF
  30289. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30290. exec 5>>config.log
  30291. {
  30292. echo
  30293. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  30294. ## Running $as_me. ##
  30295. _ASBOX
  30296. $as_echo "$ac_log"
  30297. } >&5
  30298. _ACEOF
  30299. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30300. #
  30301. # INIT-COMMANDS
  30302. #
  30303. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  30304. # The HP-UX ksh and POSIX shell print the target directory to stdout
  30305. # if CDPATH is set.
  30306. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  30307. sed_quote_subst='$sed_quote_subst'
  30308. double_quote_subst='$double_quote_subst'
  30309. delay_variable_subst='$delay_variable_subst'
  30310. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  30311. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  30312. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  30313. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  30314. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  30315. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  30316. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  30317. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  30318. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  30319. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  30320. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  30321. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  30322. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  30323. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  30324. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  30325. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  30326. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  30327. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  30328. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  30329. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  30330. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  30331. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  30332. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  30333. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  30334. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  30335. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  30336. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  30337. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  30338. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  30339. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  30340. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  30341. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  30342. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  30343. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  30344. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  30345. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  30346. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  30347. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  30348. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  30349. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  30350. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  30351. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  30352. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  30353. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  30354. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  30355. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  30356. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  30357. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  30358. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  30359. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  30360. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  30361. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  30362. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  30363. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  30364. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  30365. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  30366. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  30367. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  30368. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  30369. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  30370. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  30371. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  30372. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  30373. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  30374. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  30375. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  30376. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  30377. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  30378. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  30379. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  30380. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  30381. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  30382. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  30383. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  30384. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  30385. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  30386. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  30387. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  30388. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  30389. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  30390. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  30391. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  30392. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  30393. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  30394. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  30395. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  30396. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  30397. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  30398. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  30399. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  30400. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  30401. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  30402. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  30403. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  30404. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  30405. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  30406. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  30407. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  30408. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  30409. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  30410. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  30411. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  30412. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  30413. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  30414. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  30415. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  30416. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  30417. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  30418. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  30419. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  30420. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  30421. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  30422. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  30423. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  30424. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  30425. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  30426. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  30427. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  30428. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  30429. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  30430. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  30431. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  30432. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  30433. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  30434. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  30435. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  30436. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  30437. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  30438. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  30439. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  30440. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  30441. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  30442. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  30443. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  30444. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  30445. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  30446. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  30447. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  30448. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  30449. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  30450. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  30451. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  30452. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  30453. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  30454. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30455. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30456. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  30457. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  30458. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  30459. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  30460. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  30461. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  30462. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  30463. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  30464. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  30465. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  30466. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  30467. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  30468. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30469. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30470. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30471. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30472. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30473. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30474. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  30475. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  30476. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  30477. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  30478. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  30479. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  30480. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  30481. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  30482. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  30483. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  30484. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  30485. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  30486. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  30487. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30488. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  30489. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  30490. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30491. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  30492. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  30493. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  30494. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  30495. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  30496. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  30497. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  30498. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  30499. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  30500. LTCC='$LTCC'
  30501. LTCFLAGS='$LTCFLAGS'
  30502. compiler='$compiler_DEFAULT'
  30503. # A function that is used when there is no print builtin or printf.
  30504. func_fallback_echo ()
  30505. {
  30506. eval 'cat <<_LTECHO_EOF
  30507. \$1
  30508. _LTECHO_EOF'
  30509. }
  30510. # Quote evaled strings.
  30511. for var in AS \
  30512. DLLTOOL \
  30513. OBJDUMP \
  30514. SHELL \
  30515. ECHO \
  30516. PATH_SEPARATOR \
  30517. SED \
  30518. GREP \
  30519. EGREP \
  30520. FGREP \
  30521. LD \
  30522. NM \
  30523. LN_S \
  30524. lt_SP2NL \
  30525. lt_NL2SP \
  30526. reload_flag \
  30527. deplibs_check_method \
  30528. file_magic_cmd \
  30529. file_magic_glob \
  30530. want_nocaseglob \
  30531. sharedlib_from_linklib_cmd \
  30532. AR \
  30533. AR_FLAGS \
  30534. archiver_list_spec \
  30535. STRIP \
  30536. RANLIB \
  30537. CC \
  30538. CFLAGS \
  30539. compiler \
  30540. lt_cv_sys_global_symbol_pipe \
  30541. lt_cv_sys_global_symbol_to_cdecl \
  30542. lt_cv_sys_global_symbol_to_import \
  30543. lt_cv_sys_global_symbol_to_c_name_address \
  30544. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  30545. lt_cv_nm_interface \
  30546. nm_file_list_spec \
  30547. lt_cv_truncate_bin \
  30548. lt_prog_compiler_no_builtin_flag \
  30549. lt_prog_compiler_pic \
  30550. lt_prog_compiler_wl \
  30551. lt_prog_compiler_static \
  30552. lt_cv_prog_compiler_c_o \
  30553. need_locks \
  30554. MANIFEST_TOOL \
  30555. DSYMUTIL \
  30556. NMEDIT \
  30557. LIPO \
  30558. OTOOL \
  30559. OTOOL64 \
  30560. shrext_cmds \
  30561. export_dynamic_flag_spec \
  30562. whole_archive_flag_spec \
  30563. compiler_needs_object \
  30564. with_gnu_ld \
  30565. allow_undefined_flag \
  30566. no_undefined_flag \
  30567. hardcode_libdir_flag_spec \
  30568. hardcode_libdir_separator \
  30569. exclude_expsyms \
  30570. include_expsyms \
  30571. file_list_spec \
  30572. variables_saved_for_relink \
  30573. libname_spec \
  30574. library_names_spec \
  30575. soname_spec \
  30576. install_override_mode \
  30577. finish_eval \
  30578. old_striplib \
  30579. striplib \
  30580. compiler_lib_search_dirs \
  30581. predep_objects \
  30582. postdep_objects \
  30583. predeps \
  30584. postdeps \
  30585. compiler_lib_search_path \
  30586. LD_CXX \
  30587. reload_flag_CXX \
  30588. compiler_CXX \
  30589. lt_prog_compiler_no_builtin_flag_CXX \
  30590. lt_prog_compiler_pic_CXX \
  30591. lt_prog_compiler_wl_CXX \
  30592. lt_prog_compiler_static_CXX \
  30593. lt_cv_prog_compiler_c_o_CXX \
  30594. export_dynamic_flag_spec_CXX \
  30595. whole_archive_flag_spec_CXX \
  30596. compiler_needs_object_CXX \
  30597. with_gnu_ld_CXX \
  30598. allow_undefined_flag_CXX \
  30599. no_undefined_flag_CXX \
  30600. hardcode_libdir_flag_spec_CXX \
  30601. hardcode_libdir_separator_CXX \
  30602. exclude_expsyms_CXX \
  30603. include_expsyms_CXX \
  30604. file_list_spec_CXX \
  30605. compiler_lib_search_dirs_CXX \
  30606. predep_objects_CXX \
  30607. postdep_objects_CXX \
  30608. predeps_CXX \
  30609. postdeps_CXX \
  30610. compiler_lib_search_path_CXX; do
  30611. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  30612. *[\\\\\\\`\\"\\\$]*)
  30613. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  30614. ;;
  30615. *)
  30616. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  30617. ;;
  30618. esac
  30619. done
  30620. # Double-quote double-evaled strings.
  30621. for var in reload_cmds \
  30622. old_postinstall_cmds \
  30623. old_postuninstall_cmds \
  30624. old_archive_cmds \
  30625. extract_expsyms_cmds \
  30626. old_archive_from_new_cmds \
  30627. old_archive_from_expsyms_cmds \
  30628. archive_cmds \
  30629. archive_expsym_cmds \
  30630. module_cmds \
  30631. module_expsym_cmds \
  30632. export_symbols_cmds \
  30633. prelink_cmds \
  30634. postlink_cmds \
  30635. postinstall_cmds \
  30636. postuninstall_cmds \
  30637. finish_cmds \
  30638. sys_lib_search_path_spec \
  30639. configure_time_dlsearch_path \
  30640. configure_time_lt_sys_library_path \
  30641. reload_cmds_CXX \
  30642. old_archive_cmds_CXX \
  30643. old_archive_from_new_cmds_CXX \
  30644. old_archive_from_expsyms_cmds_CXX \
  30645. archive_cmds_CXX \
  30646. archive_expsym_cmds_CXX \
  30647. module_cmds_CXX \
  30648. module_expsym_cmds_CXX \
  30649. export_symbols_cmds_CXX \
  30650. prelink_cmds_CXX \
  30651. postlink_cmds_CXX; do
  30652. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  30653. *[\\\\\\\`\\"\\\$]*)
  30654. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  30655. ;;
  30656. *)
  30657. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  30658. ;;
  30659. esac
  30660. done
  30661. ac_aux_dir='$ac_aux_dir'
  30662. # See if we are running on zsh, and set the options that allow our
  30663. # commands through without removal of \ escapes INIT.
  30664. if test -n "\${ZSH_VERSION+set}"; then
  30665. setopt NO_GLOB_SUBST
  30666. fi
  30667. PACKAGE='$PACKAGE'
  30668. VERSION='$VERSION'
  30669. RM='$RM'
  30670. ofile='$ofile'
  30671. CAIRO_MAKEFILE___WIN32='$CAIRO_MAKEFILE___WIN32'
  30672. CAIRO_MAKEFILE_cairo_AMAKE='$CAIRO_MAKEFILE_cairo_AMAKE'
  30673. CAIRO_MAKEFILE_cairo_WIN32='$CAIRO_MAKEFILE_cairo_WIN32'
  30674. CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE'
  30675. CAIRO_MAKEFILE_cairo_boilerplate_WIN32='$CAIRO_MAKEFILE_cairo_boilerplate_WIN32'
  30676. CAIRO_FEATURES='$CAIRO_FEATURES'
  30677. CAIRO_NO_FEATURES='$CAIRO_NO_FEATURES'
  30678. CAIRO_SUPPORTED_FEATURES='$CAIRO_SUPPORTED_FEATURES'
  30679. CAIRO_MAKEFILE_win32_features_h_WIN32='$CAIRO_MAKEFILE_win32_features_h_WIN32'
  30680. SED='$SED'
  30681. xlib_BASE='$xlib_BASE'
  30682. xlib_REQUIRES='$xlib_REQUIRES'
  30683. xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
  30684. xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
  30685. xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
  30686. SED='$SED'
  30687. xlib_BASE='$xlib_BASE'
  30688. xlib_REQUIRES='$xlib_REQUIRES'
  30689. xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
  30690. xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
  30691. xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
  30692. SED='$SED'
  30693. xlib_xrender_BASE='$xlib_xrender_BASE'
  30694. xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
  30695. xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
  30696. xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
  30697. xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
  30698. SED='$SED'
  30699. xlib_xrender_BASE='$xlib_xrender_BASE'
  30700. xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
  30701. xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
  30702. xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
  30703. xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
  30704. SED='$SED'
  30705. xcb_BASE='$xcb_BASE'
  30706. xcb_REQUIRES='$xcb_REQUIRES'
  30707. xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
  30708. xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
  30709. xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
  30710. SED='$SED'
  30711. xcb_BASE='$xcb_BASE'
  30712. xcb_REQUIRES='$xcb_REQUIRES'
  30713. xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
  30714. xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
  30715. xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
  30716. SED='$SED'
  30717. xlib_xcb_BASE='$xlib_xcb_BASE'
  30718. xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
  30719. xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
  30720. xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
  30721. xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
  30722. SED='$SED'
  30723. xlib_xcb_BASE='$xlib_xcb_BASE'
  30724. xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
  30725. xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
  30726. xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
  30727. xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
  30728. SED='$SED'
  30729. xcb_shm_BASE='$xcb_shm_BASE'
  30730. xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
  30731. xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
  30732. xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
  30733. xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
  30734. SED='$SED'
  30735. xcb_shm_BASE='$xcb_shm_BASE'
  30736. xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
  30737. xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
  30738. xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
  30739. xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
  30740. SED='$SED'
  30741. qt_BASE='$qt_BASE'
  30742. qt_REQUIRES='$qt_REQUIRES'
  30743. qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
  30744. qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
  30745. qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
  30746. SED='$SED'
  30747. qt_BASE='$qt_BASE'
  30748. qt_REQUIRES='$qt_REQUIRES'
  30749. qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
  30750. qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
  30751. qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
  30752. SED='$SED'
  30753. quartz_BASE='$quartz_BASE'
  30754. quartz_REQUIRES='$quartz_REQUIRES'
  30755. quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
  30756. quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
  30757. quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
  30758. SED='$SED'
  30759. quartz_BASE='$quartz_BASE'
  30760. quartz_REQUIRES='$quartz_REQUIRES'
  30761. quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
  30762. quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
  30763. quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
  30764. SED='$SED'
  30765. quartz_font_BASE='$quartz_font_BASE'
  30766. quartz_font_REQUIRES='$quartz_font_REQUIRES'
  30767. quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
  30768. quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
  30769. quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
  30770. SED='$SED'
  30771. quartz_font_BASE='$quartz_font_BASE'
  30772. quartz_font_REQUIRES='$quartz_font_REQUIRES'
  30773. quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
  30774. quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
  30775. quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
  30776. SED='$SED'
  30777. quartz_image_BASE='$quartz_image_BASE'
  30778. quartz_image_REQUIRES='$quartz_image_REQUIRES'
  30779. quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
  30780. quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
  30781. quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
  30782. SED='$SED'
  30783. quartz_image_BASE='$quartz_image_BASE'
  30784. quartz_image_REQUIRES='$quartz_image_REQUIRES'
  30785. quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
  30786. quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
  30787. quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
  30788. SED='$SED'
  30789. win32_BASE='$win32_BASE'
  30790. win32_REQUIRES='$win32_REQUIRES'
  30791. win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
  30792. win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
  30793. win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
  30794. SED='$SED'
  30795. win32_BASE='$win32_BASE'
  30796. win32_REQUIRES='$win32_REQUIRES'
  30797. win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
  30798. win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
  30799. win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
  30800. SED='$SED'
  30801. win32_font_BASE='$win32_font_BASE'
  30802. win32_font_REQUIRES='$win32_font_REQUIRES'
  30803. win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
  30804. win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
  30805. win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
  30806. SED='$SED'
  30807. win32_font_BASE='$win32_font_BASE'
  30808. win32_font_REQUIRES='$win32_font_REQUIRES'
  30809. win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
  30810. win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
  30811. win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
  30812. SED='$SED'
  30813. os2_BASE='$os2_BASE'
  30814. os2_REQUIRES='$os2_REQUIRES'
  30815. os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
  30816. os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
  30817. os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
  30818. SED='$SED'
  30819. os2_BASE='$os2_BASE'
  30820. os2_REQUIRES='$os2_REQUIRES'
  30821. os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
  30822. os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
  30823. os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
  30824. SED='$SED'
  30825. beos_BASE='$beos_BASE'
  30826. beos_REQUIRES='$beos_REQUIRES'
  30827. beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
  30828. beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
  30829. beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
  30830. SED='$SED'
  30831. beos_BASE='$beos_BASE'
  30832. beos_REQUIRES='$beos_REQUIRES'
  30833. beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
  30834. beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
  30835. beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
  30836. SED='$SED'
  30837. drm_BASE='$drm_BASE'
  30838. drm_REQUIRES='$drm_REQUIRES'
  30839. drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
  30840. drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
  30841. drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
  30842. SED='$SED'
  30843. drm_BASE='$drm_BASE'
  30844. drm_REQUIRES='$drm_REQUIRES'
  30845. drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
  30846. drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
  30847. drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
  30848. SED='$SED'
  30849. gallium_BASE='$gallium_BASE'
  30850. gallium_REQUIRES='$gallium_REQUIRES'
  30851. gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
  30852. gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
  30853. gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
  30854. SED='$SED'
  30855. gallium_BASE='$gallium_BASE'
  30856. gallium_REQUIRES='$gallium_REQUIRES'
  30857. gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
  30858. gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
  30859. gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
  30860. SED='$SED'
  30861. png_BASE='$png_BASE'
  30862. png_REQUIRES='$png_REQUIRES'
  30863. png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
  30864. png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
  30865. png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
  30866. SED='$SED'
  30867. png_BASE='$png_BASE'
  30868. png_REQUIRES='$png_REQUIRES'
  30869. png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
  30870. png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
  30871. png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
  30872. SED='$SED'
  30873. gl_BASE='$gl_BASE'
  30874. gl_REQUIRES='$gl_REQUIRES'
  30875. gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
  30876. gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
  30877. gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
  30878. SED='$SED'
  30879. gl_BASE='$gl_BASE'
  30880. gl_REQUIRES='$gl_REQUIRES'
  30881. gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
  30882. gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
  30883. gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
  30884. SED='$SED'
  30885. glesv2_BASE='$glesv2_BASE'
  30886. glesv2_REQUIRES='$glesv2_REQUIRES'
  30887. glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
  30888. glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
  30889. glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
  30890. SED='$SED'
  30891. glesv2_BASE='$glesv2_BASE'
  30892. glesv2_REQUIRES='$glesv2_REQUIRES'
  30893. glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
  30894. glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
  30895. glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
  30896. SED='$SED'
  30897. glesv3_BASE='$glesv3_BASE'
  30898. glesv3_REQUIRES='$glesv3_REQUIRES'
  30899. glesv3_NONPKGCONFIG_LIBS='$glesv3_NONPKGCONFIG_LIBS'
  30900. glesv3_NONPKGCONFIG_EXTRA_LIBS='$glesv3_NONPKGCONFIG_EXTRA_LIBS'
  30901. glesv3_NONPKGCONFIG_CFLAGS='$glesv3_NONPKGCONFIG_CFLAGS'
  30902. SED='$SED'
  30903. glesv3_BASE='$glesv3_BASE'
  30904. glesv3_REQUIRES='$glesv3_REQUIRES'
  30905. glesv3_NONPKGCONFIG_LIBS='$glesv3_NONPKGCONFIG_LIBS'
  30906. glesv3_NONPKGCONFIG_EXTRA_LIBS='$glesv3_NONPKGCONFIG_EXTRA_LIBS'
  30907. glesv3_NONPKGCONFIG_CFLAGS='$glesv3_NONPKGCONFIG_CFLAGS'
  30908. SED='$SED'
  30909. cogl_BASE='$cogl_BASE'
  30910. cogl_REQUIRES='$cogl_REQUIRES'
  30911. cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
  30912. cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
  30913. cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
  30914. SED='$SED'
  30915. cogl_BASE='$cogl_BASE'
  30916. cogl_REQUIRES='$cogl_REQUIRES'
  30917. cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
  30918. cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
  30919. cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
  30920. SED='$SED'
  30921. directfb_BASE='$directfb_BASE'
  30922. directfb_REQUIRES='$directfb_REQUIRES'
  30923. directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
  30924. directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
  30925. directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
  30926. SED='$SED'
  30927. directfb_BASE='$directfb_BASE'
  30928. directfb_REQUIRES='$directfb_REQUIRES'
  30929. directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
  30930. directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
  30931. directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
  30932. SED='$SED'
  30933. vg_BASE='$vg_BASE'
  30934. vg_REQUIRES='$vg_REQUIRES'
  30935. vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
  30936. vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
  30937. vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
  30938. SED='$SED'
  30939. vg_BASE='$vg_BASE'
  30940. vg_REQUIRES='$vg_REQUIRES'
  30941. vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
  30942. vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
  30943. vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
  30944. SED='$SED'
  30945. egl_BASE='$egl_BASE'
  30946. egl_REQUIRES='$egl_REQUIRES'
  30947. egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
  30948. egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
  30949. egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
  30950. SED='$SED'
  30951. egl_BASE='$egl_BASE'
  30952. egl_REQUIRES='$egl_REQUIRES'
  30953. egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
  30954. egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
  30955. egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
  30956. SED='$SED'
  30957. glx_BASE='$glx_BASE'
  30958. glx_REQUIRES='$glx_REQUIRES'
  30959. glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
  30960. glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
  30961. glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
  30962. SED='$SED'
  30963. glx_BASE='$glx_BASE'
  30964. glx_REQUIRES='$glx_REQUIRES'
  30965. glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
  30966. glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
  30967. glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
  30968. SED='$SED'
  30969. wgl_BASE='$wgl_BASE'
  30970. wgl_REQUIRES='$wgl_REQUIRES'
  30971. wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
  30972. wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
  30973. wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
  30974. SED='$SED'
  30975. wgl_BASE='$wgl_BASE'
  30976. wgl_REQUIRES='$wgl_REQUIRES'
  30977. wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
  30978. wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
  30979. wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
  30980. SED='$SED'
  30981. script_BASE='$script_BASE'
  30982. script_REQUIRES='$script_REQUIRES'
  30983. script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
  30984. script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
  30985. script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
  30986. SED='$SED'
  30987. script_BASE='$script_BASE'
  30988. script_REQUIRES='$script_REQUIRES'
  30989. script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
  30990. script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
  30991. script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
  30992. SED='$SED'
  30993. ft_BASE='$ft_BASE'
  30994. ft_REQUIRES='$ft_REQUIRES'
  30995. ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
  30996. ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
  30997. ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
  30998. SED='$SED'
  30999. ft_BASE='$ft_BASE'
  31000. ft_REQUIRES='$ft_REQUIRES'
  31001. ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
  31002. ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
  31003. ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
  31004. SED='$SED'
  31005. fc_BASE='$fc_BASE'
  31006. fc_REQUIRES='$fc_REQUIRES'
  31007. fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
  31008. fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
  31009. fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
  31010. SED='$SED'
  31011. fc_BASE='$fc_BASE'
  31012. fc_REQUIRES='$fc_REQUIRES'
  31013. fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
  31014. fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
  31015. fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
  31016. SED='$SED'
  31017. ps_BASE='$ps_BASE'
  31018. ps_REQUIRES='$ps_REQUIRES'
  31019. ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
  31020. ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
  31021. ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
  31022. SED='$SED'
  31023. ps_BASE='$ps_BASE'
  31024. ps_REQUIRES='$ps_REQUIRES'
  31025. ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
  31026. ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
  31027. ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
  31028. SED='$SED'
  31029. pdf_BASE='$pdf_BASE'
  31030. pdf_REQUIRES='$pdf_REQUIRES'
  31031. pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
  31032. pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
  31033. pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
  31034. SED='$SED'
  31035. pdf_BASE='$pdf_BASE'
  31036. pdf_REQUIRES='$pdf_REQUIRES'
  31037. pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
  31038. pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
  31039. pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
  31040. SED='$SED'
  31041. svg_BASE='$svg_BASE'
  31042. svg_REQUIRES='$svg_REQUIRES'
  31043. svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
  31044. svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
  31045. svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
  31046. SED='$SED'
  31047. svg_BASE='$svg_BASE'
  31048. svg_REQUIRES='$svg_REQUIRES'
  31049. svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
  31050. svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
  31051. svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
  31052. SED='$SED'
  31053. tee_BASE='$tee_BASE'
  31054. tee_REQUIRES='$tee_REQUIRES'
  31055. tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
  31056. tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
  31057. tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
  31058. SED='$SED'
  31059. tee_BASE='$tee_BASE'
  31060. tee_REQUIRES='$tee_REQUIRES'
  31061. tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
  31062. tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
  31063. tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
  31064. SED='$SED'
  31065. xml_BASE='$xml_BASE'
  31066. xml_REQUIRES='$xml_REQUIRES'
  31067. xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
  31068. xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
  31069. xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
  31070. SED='$SED'
  31071. xml_BASE='$xml_BASE'
  31072. xml_REQUIRES='$xml_REQUIRES'
  31073. xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
  31074. xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
  31075. xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
  31076. SED='$SED'
  31077. gobject_BASE='$gobject_BASE'
  31078. gobject_REQUIRES='$gobject_REQUIRES'
  31079. gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
  31080. gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
  31081. gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
  31082. SED='$SED'
  31083. gobject_BASE='$gobject_BASE'
  31084. gobject_REQUIRES='$gobject_REQUIRES'
  31085. gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
  31086. gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
  31087. gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
  31088. _ACEOF
  31089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31090. # Handling of arguments.
  31091. for ac_config_target in $ac_config_targets
  31092. do
  31093. case $ac_config_target in
  31094. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  31095. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  31096. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  31097. "$srcdir/build/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features" ;;
  31098. "$srcdir/src/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.am.features" ;;
  31099. "$srcdir/src/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.win32.features" ;;
  31100. "$srcdir/boilerplate/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.am.features" ;;
  31101. "$srcdir/boilerplate/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.win32.features" ;;
  31102. "src/cairo.pc") CONFIG_FILES="$CONFIG_FILES src/cairo.pc" ;;
  31103. "cairo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-uninstalled.pc:src/cairo-uninstalled.pc.in" ;;
  31104. "src/cairo-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-features.h" ;;
  31105. "src/cairo-supported-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-supported-features.h" ;;
  31106. "$srcdir/build/Makefile.win32.features-h") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features-h" ;;
  31107. "src/cairo-xlib.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib.pc:src/cairo-features.pc.in" ;;
  31108. "cairo-xlib-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31109. "src/cairo-xlib-xrender.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xrender.pc:src/cairo-features.pc.in" ;;
  31110. "cairo-xlib-xrender-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31111. "src/cairo-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb.pc:src/cairo-features.pc.in" ;;
  31112. "cairo-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31113. "src/cairo-xlib-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xcb.pc:src/cairo-features.pc.in" ;;
  31114. "cairo-xlib-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31115. "src/cairo-xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb-shm.pc:src/cairo-features.pc.in" ;;
  31116. "cairo-xcb-shm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31117. "src/cairo-qt.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-qt.pc:src/cairo-features.pc.in" ;;
  31118. "cairo-qt-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31119. "src/cairo-quartz.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz.pc:src/cairo-features.pc.in" ;;
  31120. "cairo-quartz-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31121. "src/cairo-quartz-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-font.pc:src/cairo-features.pc.in" ;;
  31122. "cairo-quartz-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31123. "src/cairo-quartz-image.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-image.pc:src/cairo-features.pc.in" ;;
  31124. "cairo-quartz-image-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31125. "src/cairo-win32.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32.pc:src/cairo-features.pc.in" ;;
  31126. "cairo-win32-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31127. "src/cairo-win32-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32-font.pc:src/cairo-features.pc.in" ;;
  31128. "cairo-win32-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31129. "src/cairo-os2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-os2.pc:src/cairo-features.pc.in" ;;
  31130. "cairo-os2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31131. "src/cairo-beos.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-beos.pc:src/cairo-features.pc.in" ;;
  31132. "cairo-beos-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31133. "src/cairo-drm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-drm.pc:src/cairo-features.pc.in" ;;
  31134. "cairo-drm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31135. "src/cairo-gallium.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gallium.pc:src/cairo-features.pc.in" ;;
  31136. "cairo-gallium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31137. "src/cairo-png.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-png.pc:src/cairo-features.pc.in" ;;
  31138. "cairo-png-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31139. "src/cairo-gl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gl.pc:src/cairo-features.pc.in" ;;
  31140. "cairo-gl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31141. "src/cairo-glesv2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glesv2.pc:src/cairo-features.pc.in" ;;
  31142. "cairo-glesv2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31143. "src/cairo-glesv3.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glesv3.pc:src/cairo-features.pc.in" ;;
  31144. "cairo-glesv3-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glesv3-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31145. "src/cairo-cogl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-cogl.pc:src/cairo-features.pc.in" ;;
  31146. "cairo-cogl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31147. "src/cairo-directfb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-directfb.pc:src/cairo-features.pc.in" ;;
  31148. "cairo-directfb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31149. "src/cairo-vg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-vg.pc:src/cairo-features.pc.in" ;;
  31150. "cairo-vg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31151. "src/cairo-egl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-egl.pc:src/cairo-features.pc.in" ;;
  31152. "cairo-egl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31153. "src/cairo-glx.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glx.pc:src/cairo-features.pc.in" ;;
  31154. "cairo-glx-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31155. "src/cairo-wgl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-wgl.pc:src/cairo-features.pc.in" ;;
  31156. "cairo-wgl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31157. "src/cairo-script.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-script.pc:src/cairo-features.pc.in" ;;
  31158. "cairo-script-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31159. "src/cairo-ft.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ft.pc:src/cairo-features.pc.in" ;;
  31160. "cairo-ft-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31161. "src/cairo-fc.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-fc.pc:src/cairo-features.pc.in" ;;
  31162. "cairo-fc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31163. "src/cairo-ps.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ps.pc:src/cairo-features.pc.in" ;;
  31164. "cairo-ps-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31165. "src/cairo-pdf.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-pdf.pc:src/cairo-features.pc.in" ;;
  31166. "cairo-pdf-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31167. "src/cairo-svg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-svg.pc:src/cairo-features.pc.in" ;;
  31168. "cairo-svg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31169. "src/cairo-tee.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-tee.pc:src/cairo-features.pc.in" ;;
  31170. "cairo-tee-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31171. "src/cairo-xml.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xml.pc:src/cairo-features.pc.in" ;;
  31172. "cairo-xml-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31173. "src/cairo-gobject.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gobject.pc:src/cairo-features.pc.in" ;;
  31174. "cairo-gobject-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
  31175. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  31176. "boilerplate/Makefile") CONFIG_FILES="$CONFIG_FILES boilerplate/Makefile" ;;
  31177. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  31178. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  31179. "test/pdiff/Makefile") CONFIG_FILES="$CONFIG_FILES test/pdiff/Makefile" ;;
  31180. "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
  31181. "perf/micro/Makefile") CONFIG_FILES="$CONFIG_FILES perf/micro/Makefile" ;;
  31182. "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
  31183. "util/cairo-fdr/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-fdr/Makefile" ;;
  31184. "util/cairo-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-gobject/Makefile" ;;
  31185. "util/cairo-missing/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-missing/Makefile" ;;
  31186. "util/cairo-script/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/Makefile" ;;
  31187. "util/cairo-script/examples/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/examples/Makefile" ;;
  31188. "util/cairo-sphinx/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-sphinx/Makefile" ;;
  31189. "util/cairo-trace/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/Makefile" ;;
  31190. "util/cairo-trace/cairo-trace") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/cairo-trace" ;;
  31191. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  31192. "doc/public/Makefile") CONFIG_FILES="$CONFIG_FILES doc/public/Makefile" ;;
  31193. "cairo-trace") CONFIG_COMMANDS="$CONFIG_COMMANDS cairo-trace" ;;
  31194. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  31195. esac
  31196. done
  31197. # If the user did not use the arguments to specify the items to instantiate,
  31198. # then the envvar interface is used. Set only those that are not.
  31199. # We use the long form for the default assignment because of an extremely
  31200. # bizarre bug on SunOS 4.1.3.
  31201. if $ac_need_defaults; then
  31202. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  31203. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  31204. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  31205. fi
  31206. # Have a temporary directory for convenience. Make it in the build tree
  31207. # simply because there is no reason against having it here, and in addition,
  31208. # creating and moving files from /tmp can sometimes cause problems.
  31209. # Hook for its removal unless debugging.
  31210. # Note that there is a small window in which the directory will not be cleaned:
  31211. # after its creation but before its name has been assigned to `$tmp'.
  31212. $debug ||
  31213. {
  31214. tmp= ac_tmp=
  31215. trap 'exit_status=$?
  31216. : "${ac_tmp:=$tmp}"
  31217. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  31218. ' 0
  31219. trap 'as_fn_exit 1' 1 2 13 15
  31220. }
  31221. # Create a (secure) tmp directory for tmp files.
  31222. {
  31223. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  31224. test -d "$tmp"
  31225. } ||
  31226. {
  31227. tmp=./conf$$-$RANDOM
  31228. (umask 077 && mkdir "$tmp")
  31229. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  31230. ac_tmp=$tmp
  31231. # Set up the scripts for CONFIG_FILES section.
  31232. # No need to generate them if there are no CONFIG_FILES.
  31233. # This happens for instance with `./config.status config.h'.
  31234. if test -n "$CONFIG_FILES"; then
  31235. ac_cr=`echo X | tr X '\015'`
  31236. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  31237. # But we know of no other shell where ac_cr would be empty at this
  31238. # point, so we can use a bashism as a fallback.
  31239. if test "x$ac_cr" = x; then
  31240. eval ac_cr=\$\'\\r\'
  31241. fi
  31242. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  31243. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  31244. ac_cs_awk_cr='\\r'
  31245. else
  31246. ac_cs_awk_cr=$ac_cr
  31247. fi
  31248. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  31249. _ACEOF
  31250. {
  31251. echo "cat >conf$$subs.awk <<_ACEOF" &&
  31252. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  31253. echo "_ACEOF"
  31254. } >conf$$subs.sh ||
  31255. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31256. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  31257. ac_delim='%!_!# '
  31258. for ac_last_try in false false false false false :; do
  31259. . ./conf$$subs.sh ||
  31260. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31261. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  31262. if test $ac_delim_n = $ac_delim_num; then
  31263. break
  31264. elif $ac_last_try; then
  31265. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31266. else
  31267. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  31268. fi
  31269. done
  31270. rm -f conf$$subs.sh
  31271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31272. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  31273. _ACEOF
  31274. sed -n '
  31275. h
  31276. s/^/S["/; s/!.*/"]=/
  31277. p
  31278. g
  31279. s/^[^!]*!//
  31280. :repl
  31281. t repl
  31282. s/'"$ac_delim"'$//
  31283. t delim
  31284. :nl
  31285. h
  31286. s/\(.\{148\}\)..*/\1/
  31287. t more1
  31288. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  31289. p
  31290. n
  31291. b repl
  31292. :more1
  31293. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  31294. p
  31295. g
  31296. s/.\{148\}//
  31297. t nl
  31298. :delim
  31299. h
  31300. s/\(.\{148\}\)..*/\1/
  31301. t more2
  31302. s/["\\]/\\&/g; s/^/"/; s/$/"/
  31303. p
  31304. b
  31305. :more2
  31306. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  31307. p
  31308. g
  31309. s/.\{148\}//
  31310. t delim
  31311. ' <conf$$subs.awk | sed '
  31312. /^[^""]/{
  31313. N
  31314. s/\n//
  31315. }
  31316. ' >>$CONFIG_STATUS || ac_write_fail=1
  31317. rm -f conf$$subs.awk
  31318. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31319. _ACAWK
  31320. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  31321. for (key in S) S_is_set[key] = 1
  31322. FS = ""
  31323. }
  31324. {
  31325. line = $ 0
  31326. nfields = split(line, field, "@")
  31327. substed = 0
  31328. len = length(field[1])
  31329. for (i = 2; i < nfields; i++) {
  31330. key = field[i]
  31331. keylen = length(key)
  31332. if (S_is_set[key]) {
  31333. value = S[key]
  31334. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  31335. len += length(value) + length(field[++i])
  31336. substed = 1
  31337. } else
  31338. len += 1 + keylen
  31339. }
  31340. print line
  31341. }
  31342. _ACAWK
  31343. _ACEOF
  31344. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31345. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  31346. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  31347. else
  31348. cat
  31349. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  31350. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  31351. _ACEOF
  31352. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  31353. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  31354. # trailing colons and then remove the whole line if VPATH becomes empty
  31355. # (actually we leave an empty line to preserve line numbers).
  31356. if test "x$srcdir" = x.; then
  31357. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  31358. h
  31359. s///
  31360. s/^/:/
  31361. s/[ ]*$/:/
  31362. s/:\$(srcdir):/:/g
  31363. s/:\${srcdir}:/:/g
  31364. s/:@srcdir@:/:/g
  31365. s/^:*//
  31366. s/:*$//
  31367. x
  31368. s/\(=[ ]*\).*/\1/
  31369. G
  31370. s/\n//
  31371. s/^[^=]*=[ ]*$//
  31372. }'
  31373. fi
  31374. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31375. fi # test -n "$CONFIG_FILES"
  31376. # Set up the scripts for CONFIG_HEADERS section.
  31377. # No need to generate them if there are no CONFIG_HEADERS.
  31378. # This happens for instance with `./config.status Makefile'.
  31379. if test -n "$CONFIG_HEADERS"; then
  31380. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  31381. BEGIN {
  31382. _ACEOF
  31383. # Transform confdefs.h into an awk script `defines.awk', embedded as
  31384. # here-document in config.status, that substitutes the proper values into
  31385. # config.h.in to produce config.h.
  31386. # Create a delimiter string that does not exist in confdefs.h, to ease
  31387. # handling of long lines.
  31388. ac_delim='%!_!# '
  31389. for ac_last_try in false false :; do
  31390. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  31391. if test -z "$ac_tt"; then
  31392. break
  31393. elif $ac_last_try; then
  31394. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  31395. else
  31396. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  31397. fi
  31398. done
  31399. # For the awk script, D is an array of macro values keyed by name,
  31400. # likewise P contains macro parameters if any. Preserve backslash
  31401. # newline sequences.
  31402. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  31403. sed -n '
  31404. s/.\{148\}/&'"$ac_delim"'/g
  31405. t rset
  31406. :rset
  31407. s/^[ ]*#[ ]*define[ ][ ]*/ /
  31408. t def
  31409. d
  31410. :def
  31411. s/\\$//
  31412. t bsnl
  31413. s/["\\]/\\&/g
  31414. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  31415. D["\1"]=" \3"/p
  31416. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  31417. d
  31418. :bsnl
  31419. s/["\\]/\\&/g
  31420. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  31421. D["\1"]=" \3\\\\\\n"\\/p
  31422. t cont
  31423. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  31424. t cont
  31425. d
  31426. :cont
  31427. n
  31428. s/.\{148\}/&'"$ac_delim"'/g
  31429. t clear
  31430. :clear
  31431. s/\\$//
  31432. t bsnlc
  31433. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  31434. d
  31435. :bsnlc
  31436. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  31437. b cont
  31438. ' <confdefs.h | sed '
  31439. s/'"$ac_delim"'/"\\\
  31440. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  31441. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31442. for (key in D) D_is_set[key] = 1
  31443. FS = ""
  31444. }
  31445. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  31446. line = \$ 0
  31447. split(line, arg, " ")
  31448. if (arg[1] == "#") {
  31449. defundef = arg[2]
  31450. mac1 = arg[3]
  31451. } else {
  31452. defundef = substr(arg[1], 2)
  31453. mac1 = arg[2]
  31454. }
  31455. split(mac1, mac2, "(") #)
  31456. macro = mac2[1]
  31457. prefix = substr(line, 1, index(line, defundef) - 1)
  31458. if (D_is_set[macro]) {
  31459. # Preserve the white space surrounding the "#".
  31460. print prefix "define", macro P[macro] D[macro]
  31461. next
  31462. } else {
  31463. # Replace #undef with comments. This is necessary, for example,
  31464. # in the case of _POSIX_SOURCE, which is predefined and required
  31465. # on some systems where configure will not decide to define it.
  31466. if (defundef == "undef") {
  31467. print "/*", prefix defundef, macro, "*/"
  31468. next
  31469. }
  31470. }
  31471. }
  31472. { print }
  31473. _ACAWK
  31474. _ACEOF
  31475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31476. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  31477. fi # test -n "$CONFIG_HEADERS"
  31478. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  31479. shift
  31480. for ac_tag
  31481. do
  31482. case $ac_tag in
  31483. :[FHLC]) ac_mode=$ac_tag; continue;;
  31484. esac
  31485. case $ac_mode$ac_tag in
  31486. :[FHL]*:*);;
  31487. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  31488. :[FH]-) ac_tag=-:-;;
  31489. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  31490. esac
  31491. ac_save_IFS=$IFS
  31492. IFS=:
  31493. set x $ac_tag
  31494. IFS=$ac_save_IFS
  31495. shift
  31496. ac_file=$1
  31497. shift
  31498. case $ac_mode in
  31499. :L) ac_source=$1;;
  31500. :[FH])
  31501. ac_file_inputs=
  31502. for ac_f
  31503. do
  31504. case $ac_f in
  31505. -) ac_f="$ac_tmp/stdin";;
  31506. *) # Look for the file first in the build tree, then in the source tree
  31507. # (if the path is not absolute). The absolute path cannot be DOS-style,
  31508. # because $ac_f cannot contain `:'.
  31509. test -f "$ac_f" ||
  31510. case $ac_f in
  31511. [\\/$]*) false;;
  31512. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  31513. esac ||
  31514. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  31515. esac
  31516. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  31517. as_fn_append ac_file_inputs " '$ac_f'"
  31518. done
  31519. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31520. # use $as_me), people would be surprised to read:
  31521. # /* config.h. Generated by config.status. */
  31522. configure_input='Generated from '`
  31523. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  31524. `' by configure.'
  31525. if test x"$ac_file" != x-; then
  31526. configure_input="$ac_file. $configure_input"
  31527. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  31528. $as_echo "$as_me: creating $ac_file" >&6;}
  31529. fi
  31530. # Neutralize special characters interpreted by sed in replacement strings.
  31531. case $configure_input in #(
  31532. *\&* | *\|* | *\\* )
  31533. ac_sed_conf_input=`$as_echo "$configure_input" |
  31534. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  31535. *) ac_sed_conf_input=$configure_input;;
  31536. esac
  31537. case $ac_tag in
  31538. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  31539. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  31540. esac
  31541. ;;
  31542. esac
  31543. ac_dir=`$as_dirname -- "$ac_file" ||
  31544. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31545. X"$ac_file" : 'X\(//\)[^/]' \| \
  31546. X"$ac_file" : 'X\(//\)$' \| \
  31547. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  31548. $as_echo X"$ac_file" |
  31549. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31550. s//\1/
  31551. q
  31552. }
  31553. /^X\(\/\/\)[^/].*/{
  31554. s//\1/
  31555. q
  31556. }
  31557. /^X\(\/\/\)$/{
  31558. s//\1/
  31559. q
  31560. }
  31561. /^X\(\/\).*/{
  31562. s//\1/
  31563. q
  31564. }
  31565. s/.*/./; q'`
  31566. as_dir="$ac_dir"; as_fn_mkdir_p
  31567. ac_builddir=.
  31568. case "$ac_dir" in
  31569. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  31570. *)
  31571. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  31572. # A ".." for each directory in $ac_dir_suffix.
  31573. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  31574. case $ac_top_builddir_sub in
  31575. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  31576. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  31577. esac ;;
  31578. esac
  31579. ac_abs_top_builddir=$ac_pwd
  31580. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  31581. # for backward compatibility:
  31582. ac_top_builddir=$ac_top_build_prefix
  31583. case $srcdir in
  31584. .) # We are building in place.
  31585. ac_srcdir=.
  31586. ac_top_srcdir=$ac_top_builddir_sub
  31587. ac_abs_top_srcdir=$ac_pwd ;;
  31588. [\\/]* | ?:[\\/]* ) # Absolute name.
  31589. ac_srcdir=$srcdir$ac_dir_suffix;
  31590. ac_top_srcdir=$srcdir
  31591. ac_abs_top_srcdir=$srcdir ;;
  31592. *) # Relative name.
  31593. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  31594. ac_top_srcdir=$ac_top_build_prefix$srcdir
  31595. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  31596. esac
  31597. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  31598. case $ac_mode in
  31599. :F)
  31600. #
  31601. # CONFIG_FILE
  31602. #
  31603. case $INSTALL in
  31604. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  31605. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  31606. esac
  31607. ac_MKDIR_P=$MKDIR_P
  31608. case $MKDIR_P in
  31609. [\\/$]* | ?:[\\/]* ) ;;
  31610. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  31611. esac
  31612. _ACEOF
  31613. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31614. # If the template does not know about datarootdir, expand it.
  31615. # FIXME: This hack should be removed a few years after 2.60.
  31616. ac_datarootdir_hack=; ac_datarootdir_seen=
  31617. ac_sed_dataroot='
  31618. /datarootdir/ {
  31619. p
  31620. q
  31621. }
  31622. /@datadir@/p
  31623. /@docdir@/p
  31624. /@infodir@/p
  31625. /@localedir@/p
  31626. /@mandir@/p'
  31627. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  31628. *datarootdir*) ac_datarootdir_seen=yes;;
  31629. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  31630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  31631. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  31632. _ACEOF
  31633. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31634. ac_datarootdir_hack='
  31635. s&@datadir@&$datadir&g
  31636. s&@docdir@&$docdir&g
  31637. s&@infodir@&$infodir&g
  31638. s&@localedir@&$localedir&g
  31639. s&@mandir@&$mandir&g
  31640. s&\\\${datarootdir}&$datarootdir&g' ;;
  31641. esac
  31642. _ACEOF
  31643. # Neutralize VPATH when `$srcdir' = `.'.
  31644. # Shell code in configure.ac might set extrasub.
  31645. # FIXME: do we really want to maintain this feature?
  31646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31647. ac_sed_extra="$ac_vpsub
  31648. $extrasub
  31649. _ACEOF
  31650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31651. :t
  31652. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  31653. s|@configure_input@|$ac_sed_conf_input|;t t
  31654. s&@top_builddir@&$ac_top_builddir_sub&;t t
  31655. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  31656. s&@srcdir@&$ac_srcdir&;t t
  31657. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  31658. s&@top_srcdir@&$ac_top_srcdir&;t t
  31659. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  31660. s&@builddir@&$ac_builddir&;t t
  31661. s&@abs_builddir@&$ac_abs_builddir&;t t
  31662. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  31663. s&@INSTALL@&$ac_INSTALL&;t t
  31664. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  31665. $ac_datarootdir_hack
  31666. "
  31667. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  31668. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31669. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  31670. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  31671. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  31672. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  31673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  31674. which seems to be undefined. Please make sure it is defined" >&5
  31675. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  31676. which seems to be undefined. Please make sure it is defined" >&2;}
  31677. rm -f "$ac_tmp/stdin"
  31678. case $ac_file in
  31679. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  31680. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  31681. esac \
  31682. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31683. ;;
  31684. :H)
  31685. #
  31686. # CONFIG_HEADER
  31687. #
  31688. if test x"$ac_file" != x-; then
  31689. {
  31690. $as_echo "/* $configure_input */" \
  31691. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  31692. } >"$ac_tmp/config.h" \
  31693. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31694. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  31695. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  31696. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  31697. else
  31698. rm -f "$ac_file"
  31699. mv "$ac_tmp/config.h" "$ac_file" \
  31700. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31701. fi
  31702. else
  31703. $as_echo "/* $configure_input */" \
  31704. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  31705. || as_fn_error $? "could not create -" "$LINENO" 5
  31706. fi
  31707. # Compute "$ac_file"'s index in $config_headers.
  31708. _am_arg="$ac_file"
  31709. _am_stamp_count=1
  31710. for _am_header in $config_headers :; do
  31711. case $_am_header in
  31712. $_am_arg | $_am_arg:* )
  31713. break ;;
  31714. * )
  31715. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  31716. esac
  31717. done
  31718. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  31719. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31720. X"$_am_arg" : 'X\(//\)[^/]' \| \
  31721. X"$_am_arg" : 'X\(//\)$' \| \
  31722. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  31723. $as_echo X"$_am_arg" |
  31724. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31725. s//\1/
  31726. q
  31727. }
  31728. /^X\(\/\/\)[^/].*/{
  31729. s//\1/
  31730. q
  31731. }
  31732. /^X\(\/\/\)$/{
  31733. s//\1/
  31734. q
  31735. }
  31736. /^X\(\/\).*/{
  31737. s//\1/
  31738. q
  31739. }
  31740. s/.*/./; q'`/stamp-h$_am_stamp_count
  31741. ;;
  31742. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  31743. $as_echo "$as_me: executing $ac_file commands" >&6;}
  31744. ;;
  31745. esac
  31746. case $ac_file$ac_mode in
  31747. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  31748. # Older Autoconf quotes --file arguments for eval, but not when files
  31749. # are listed without --file. Let's play safe and only enable the eval
  31750. # if we detect the quoting.
  31751. # TODO: see whether this extra hack can be removed once we start
  31752. # requiring Autoconf 2.70 or later.
  31753. case $CONFIG_FILES in #(
  31754. *\'*) :
  31755. eval set x "$CONFIG_FILES" ;; #(
  31756. *) :
  31757. set x $CONFIG_FILES ;; #(
  31758. *) :
  31759. ;;
  31760. esac
  31761. shift
  31762. # Used to flag and report bootstrapping failures.
  31763. am_rc=0
  31764. for am_mf
  31765. do
  31766. # Strip MF so we end up with the name of the file.
  31767. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  31768. # Check whether this is an Automake generated Makefile which includes
  31769. # dependency-tracking related rules and includes.
  31770. # Grep'ing the whole file directly is not great: AIX grep has a line
  31771. # limit of 2048, but all sed's we know have understand at least 4000.
  31772. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  31773. || continue
  31774. am_dirpart=`$as_dirname -- "$am_mf" ||
  31775. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31776. X"$am_mf" : 'X\(//\)[^/]' \| \
  31777. X"$am_mf" : 'X\(//\)$' \| \
  31778. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  31779. $as_echo X"$am_mf" |
  31780. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31781. s//\1/
  31782. q
  31783. }
  31784. /^X\(\/\/\)[^/].*/{
  31785. s//\1/
  31786. q
  31787. }
  31788. /^X\(\/\/\)$/{
  31789. s//\1/
  31790. q
  31791. }
  31792. /^X\(\/\).*/{
  31793. s//\1/
  31794. q
  31795. }
  31796. s/.*/./; q'`
  31797. am_filepart=`$as_basename -- "$am_mf" ||
  31798. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  31799. X"$am_mf" : 'X\(//\)$' \| \
  31800. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  31801. $as_echo X/"$am_mf" |
  31802. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31803. s//\1/
  31804. q
  31805. }
  31806. /^X\/\(\/\/\)$/{
  31807. s//\1/
  31808. q
  31809. }
  31810. /^X\/\(\/\).*/{
  31811. s//\1/
  31812. q
  31813. }
  31814. s/.*/./; q'`
  31815. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  31816. && sed -e '/# am--include-marker/d' "$am_filepart" \
  31817. | $MAKE -f - am--depfiles" >&5
  31818. (cd "$am_dirpart" \
  31819. && sed -e '/# am--include-marker/d' "$am_filepart" \
  31820. | $MAKE -f - am--depfiles) >&5 2>&5
  31821. ac_status=$?
  31822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31823. (exit $ac_status); } || am_rc=$?
  31824. done
  31825. if test $am_rc -ne 0; then
  31826. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31828. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  31829. for automatic dependency tracking. If GNU make was not used, consider
  31830. re-running the configure script with MAKE=\"gmake\" (or whatever is
  31831. necessary). You can also try re-running configure with the
  31832. '--disable-dependency-tracking' option to at least be able to build
  31833. the package (albeit without support for automatic dependency tracking).
  31834. See \`config.log' for more details" "$LINENO" 5; }
  31835. fi
  31836. { am_dirpart=; unset am_dirpart;}
  31837. { am_filepart=; unset am_filepart;}
  31838. { am_mf=; unset am_mf;}
  31839. { am_rc=; unset am_rc;}
  31840. rm -f conftest-deps.mk
  31841. }
  31842. ;;
  31843. "libtool":C)
  31844. # See if we are running on zsh, and set the options that allow our
  31845. # commands through without removal of \ escapes.
  31846. if test -n "${ZSH_VERSION+set}"; then
  31847. setopt NO_GLOB_SUBST
  31848. fi
  31849. cfgfile=${ofile}T
  31850. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  31851. $RM "$cfgfile"
  31852. cat <<_LT_EOF >> "$cfgfile"
  31853. #! $SHELL
  31854. # Generated automatically by $as_me ($PACKAGE) $VERSION
  31855. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  31856. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  31857. # Provide generalized library-building support services.
  31858. # Written by Gordon Matzigkeit, 1996
  31859. # Copyright (C) 2014 Free Software Foundation, Inc.
  31860. # This is free software; see the source for copying conditions. There is NO
  31861. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  31862. # GNU Libtool is free software; you can redistribute it and/or modify
  31863. # it under the terms of the GNU General Public License as published by
  31864. # the Free Software Foundation; either version 2 of of the License, or
  31865. # (at your option) any later version.
  31866. #
  31867. # As a special exception to the GNU General Public License, if you
  31868. # distribute this file as part of a program or library that is built
  31869. # using GNU Libtool, you may include this file under the same
  31870. # distribution terms that you use for the rest of that program.
  31871. #
  31872. # GNU Libtool is distributed in the hope that it will be useful, but
  31873. # WITHOUT ANY WARRANTY; without even the implied warranty of
  31874. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31875. # GNU General Public License for more details.
  31876. #
  31877. # You should have received a copy of the GNU General Public License
  31878. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  31879. # The names of the tagged configurations supported by this script.
  31880. available_tags='CXX '
  31881. # Configured defaults for sys_lib_dlsearch_path munging.
  31882. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  31883. # ### BEGIN LIBTOOL CONFIG
  31884. # Which release of libtool.m4 was used?
  31885. macro_version=$macro_version
  31886. macro_revision=$macro_revision
  31887. # Assembler program.
  31888. AS=$lt_AS
  31889. # DLL creation program.
  31890. DLLTOOL=$lt_DLLTOOL
  31891. # Object dumper program.
  31892. OBJDUMP=$lt_OBJDUMP
  31893. # Whether or not to build shared libraries.
  31894. build_libtool_libs=$enable_shared
  31895. # Whether or not to build static libraries.
  31896. build_old_libs=$enable_static
  31897. # What type of objects to build.
  31898. pic_mode=$pic_mode
  31899. # Whether or not to optimize for fast installation.
  31900. fast_install=$enable_fast_install
  31901. # Shared archive member basename,for filename based shared library versioning on AIX.
  31902. shared_archive_member_spec=$shared_archive_member_spec
  31903. # Shell to use when invoking shell scripts.
  31904. SHELL=$lt_SHELL
  31905. # An echo program that protects backslashes.
  31906. ECHO=$lt_ECHO
  31907. # The PATH separator for the build system.
  31908. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  31909. # The host system.
  31910. host_alias=$host_alias
  31911. host=$host
  31912. host_os=$host_os
  31913. # The build system.
  31914. build_alias=$build_alias
  31915. build=$build
  31916. build_os=$build_os
  31917. # A sed program that does not truncate output.
  31918. SED=$lt_SED
  31919. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  31920. Xsed="\$SED -e 1s/^X//"
  31921. # A grep program that handles long lines.
  31922. GREP=$lt_GREP
  31923. # An ERE matcher.
  31924. EGREP=$lt_EGREP
  31925. # A literal string matcher.
  31926. FGREP=$lt_FGREP
  31927. # A BSD- or MS-compatible name lister.
  31928. NM=$lt_NM
  31929. # Whether we need soft or hard links.
  31930. LN_S=$lt_LN_S
  31931. # What is the maximum length of a command?
  31932. max_cmd_len=$max_cmd_len
  31933. # Object file suffix (normally "o").
  31934. objext=$ac_objext
  31935. # Executable file suffix (normally "").
  31936. exeext=$exeext
  31937. # whether the shell understands "unset".
  31938. lt_unset=$lt_unset
  31939. # turn spaces into newlines.
  31940. SP2NL=$lt_lt_SP2NL
  31941. # turn newlines into spaces.
  31942. NL2SP=$lt_lt_NL2SP
  31943. # convert \$build file names to \$host format.
  31944. to_host_file_cmd=$lt_cv_to_host_file_cmd
  31945. # convert \$build files to toolchain format.
  31946. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  31947. # Method to check whether dependent libraries are shared objects.
  31948. deplibs_check_method=$lt_deplibs_check_method
  31949. # Command to use when deplibs_check_method = "file_magic".
  31950. file_magic_cmd=$lt_file_magic_cmd
  31951. # How to find potential files when deplibs_check_method = "file_magic".
  31952. file_magic_glob=$lt_file_magic_glob
  31953. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  31954. want_nocaseglob=$lt_want_nocaseglob
  31955. # Command to associate shared and link libraries.
  31956. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  31957. # The archiver.
  31958. AR=$lt_AR
  31959. # Flags to create an archive.
  31960. AR_FLAGS=$lt_AR_FLAGS
  31961. # How to feed a file listing to the archiver.
  31962. archiver_list_spec=$lt_archiver_list_spec
  31963. # A symbol stripping program.
  31964. STRIP=$lt_STRIP
  31965. # Commands used to install an old-style archive.
  31966. RANLIB=$lt_RANLIB
  31967. old_postinstall_cmds=$lt_old_postinstall_cmds
  31968. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  31969. # Whether to use a lock for old archive extraction.
  31970. lock_old_archive_extraction=$lock_old_archive_extraction
  31971. # A C compiler.
  31972. LTCC=$lt_CC
  31973. # LTCC compiler flags.
  31974. LTCFLAGS=$lt_CFLAGS
  31975. # Take the output of nm and produce a listing of raw symbols and C names.
  31976. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31977. # Transform the output of nm in a proper C declaration.
  31978. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31979. # Transform the output of nm into a list of symbols to manually relocate.
  31980. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  31981. # Transform the output of nm in a C name address pair.
  31982. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31983. # Transform the output of nm in a C name address pair when lib prefix is needed.
  31984. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  31985. # The name lister interface.
  31986. nm_interface=$lt_lt_cv_nm_interface
  31987. # Specify filename containing input files for \$NM.
  31988. nm_file_list_spec=$lt_nm_file_list_spec
  31989. # The root where to search for dependent libraries,and where our libraries should be installed.
  31990. lt_sysroot=$lt_sysroot
  31991. # Command to truncate a binary pipe.
  31992. lt_truncate_bin=$lt_lt_cv_truncate_bin
  31993. # The name of the directory that contains temporary libtool files.
  31994. objdir=$objdir
  31995. # Used to examine libraries when file_magic_cmd begins with "file".
  31996. MAGIC_CMD=$MAGIC_CMD
  31997. # Must we lock files when doing compilation?
  31998. need_locks=$lt_need_locks
  31999. # Manifest tool.
  32000. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  32001. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  32002. DSYMUTIL=$lt_DSYMUTIL
  32003. # Tool to change global to local symbols on Mac OS X.
  32004. NMEDIT=$lt_NMEDIT
  32005. # Tool to manipulate fat objects and archives on Mac OS X.
  32006. LIPO=$lt_LIPO
  32007. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  32008. OTOOL=$lt_OTOOL
  32009. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  32010. OTOOL64=$lt_OTOOL64
  32011. # Old archive suffix (normally "a").
  32012. libext=$libext
  32013. # Shared library suffix (normally ".so").
  32014. shrext_cmds=$lt_shrext_cmds
  32015. # The commands to extract the exported symbol list from a shared archive.
  32016. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32017. # Variables whose values should be saved in libtool wrapper scripts and
  32018. # restored at link time.
  32019. variables_saved_for_relink=$lt_variables_saved_for_relink
  32020. # Do we need the "lib" prefix for modules?
  32021. need_lib_prefix=$need_lib_prefix
  32022. # Do we need a version for libraries?
  32023. need_version=$need_version
  32024. # Library versioning type.
  32025. version_type=$version_type
  32026. # Shared library runtime path variable.
  32027. runpath_var=$runpath_var
  32028. # Shared library path variable.
  32029. shlibpath_var=$shlibpath_var
  32030. # Is shlibpath searched before the hard-coded library search path?
  32031. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32032. # Format of library name prefix.
  32033. libname_spec=$lt_libname_spec
  32034. # List of archive names. First name is the real one, the rest are links.
  32035. # The last name is the one that the linker finds with -lNAME
  32036. library_names_spec=$lt_library_names_spec
  32037. # The coded name of the library, if different from the real name.
  32038. soname_spec=$lt_soname_spec
  32039. # Permission mode override for installation of shared libraries.
  32040. install_override_mode=$lt_install_override_mode
  32041. # Command to use after installation of a shared archive.
  32042. postinstall_cmds=$lt_postinstall_cmds
  32043. # Command to use after uninstallation of a shared archive.
  32044. postuninstall_cmds=$lt_postuninstall_cmds
  32045. # Commands used to finish a libtool library installation in a directory.
  32046. finish_cmds=$lt_finish_cmds
  32047. # As "finish_cmds", except a single script fragment to be evaled but
  32048. # not shown.
  32049. finish_eval=$lt_finish_eval
  32050. # Whether we should hardcode library paths into libraries.
  32051. hardcode_into_libs=$hardcode_into_libs
  32052. # Compile-time system search path for libraries.
  32053. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32054. # Detected run-time system search path for libraries.
  32055. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  32056. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  32057. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  32058. # Whether dlopen is supported.
  32059. dlopen_support=$enable_dlopen
  32060. # Whether dlopen of programs is supported.
  32061. dlopen_self=$enable_dlopen_self
  32062. # Whether dlopen of statically linked programs is supported.
  32063. dlopen_self_static=$enable_dlopen_self_static
  32064. # Commands to strip libraries.
  32065. old_striplib=$lt_old_striplib
  32066. striplib=$lt_striplib
  32067. # The linker used to build libraries.
  32068. LD=$lt_LD
  32069. # How to create reloadable object files.
  32070. reload_flag=$lt_reload_flag
  32071. reload_cmds=$lt_reload_cmds
  32072. # Commands used to build an old-style archive.
  32073. old_archive_cmds=$lt_old_archive_cmds
  32074. # A language specific compiler.
  32075. CC=$lt_compiler
  32076. # Is the compiler the GNU compiler?
  32077. with_gcc=$GCC
  32078. # Compiler flag to turn off builtin functions.
  32079. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  32080. # Additional compiler flags for building library objects.
  32081. pic_flag=$lt_lt_prog_compiler_pic
  32082. # How to pass a linker flag through the compiler.
  32083. wl=$lt_lt_prog_compiler_wl
  32084. # Compiler flag to prevent dynamic linking.
  32085. link_static_flag=$lt_lt_prog_compiler_static
  32086. # Does compiler simultaneously support -c and -o options?
  32087. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  32088. # Whether or not to add -lc for building shared libraries.
  32089. build_libtool_need_lc=$archive_cmds_need_lc
  32090. # Whether or not to disallow shared libs when runtime libs are static.
  32091. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  32092. # Compiler flag to allow reflexive dlopens.
  32093. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  32094. # Compiler flag to generate shared objects directly from archives.
  32095. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  32096. # Whether the compiler copes with passing no objects directly.
  32097. compiler_needs_object=$lt_compiler_needs_object
  32098. # Create an old-style archive from a shared archive.
  32099. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  32100. # Create a temporary old-style archive to link instead of a shared archive.
  32101. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  32102. # Commands used to build a shared archive.
  32103. archive_cmds=$lt_archive_cmds
  32104. archive_expsym_cmds=$lt_archive_expsym_cmds
  32105. # Commands used to build a loadable module if different from building
  32106. # a shared archive.
  32107. module_cmds=$lt_module_cmds
  32108. module_expsym_cmds=$lt_module_expsym_cmds
  32109. # Whether we are building with GNU ld or not.
  32110. with_gnu_ld=$lt_with_gnu_ld
  32111. # Flag that allows shared libraries with undefined symbols to be built.
  32112. allow_undefined_flag=$lt_allow_undefined_flag
  32113. # Flag that enforces no undefined symbols.
  32114. no_undefined_flag=$lt_no_undefined_flag
  32115. # Flag to hardcode \$libdir into a binary during linking.
  32116. # This must work even if \$libdir does not exist
  32117. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  32118. # Whether we need a single "-rpath" flag with a separated argument.
  32119. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  32120. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  32121. # DIR into the resulting binary.
  32122. hardcode_direct=$hardcode_direct
  32123. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  32124. # DIR into the resulting binary and the resulting library dependency is
  32125. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  32126. # library is relocated.
  32127. hardcode_direct_absolute=$hardcode_direct_absolute
  32128. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  32129. # into the resulting binary.
  32130. hardcode_minus_L=$hardcode_minus_L
  32131. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  32132. # into the resulting binary.
  32133. hardcode_shlibpath_var=$hardcode_shlibpath_var
  32134. # Set to "yes" if building a shared library automatically hardcodes DIR
  32135. # into the library and all subsequent libraries and executables linked
  32136. # against it.
  32137. hardcode_automatic=$hardcode_automatic
  32138. # Set to yes if linker adds runtime paths of dependent libraries
  32139. # to runtime path list.
  32140. inherit_rpath=$inherit_rpath
  32141. # Whether libtool must link a program against all its dependency libraries.
  32142. link_all_deplibs=$link_all_deplibs
  32143. # Set to "yes" if exported symbols are required.
  32144. always_export_symbols=$always_export_symbols
  32145. # The commands to list exported symbols.
  32146. export_symbols_cmds=$lt_export_symbols_cmds
  32147. # Symbols that should not be listed in the preloaded symbols.
  32148. exclude_expsyms=$lt_exclude_expsyms
  32149. # Symbols that must always be exported.
  32150. include_expsyms=$lt_include_expsyms
  32151. # Commands necessary for linking programs (against libraries) with templates.
  32152. prelink_cmds=$lt_prelink_cmds
  32153. # Commands necessary for finishing linking programs.
  32154. postlink_cmds=$lt_postlink_cmds
  32155. # Specify filename containing input files.
  32156. file_list_spec=$lt_file_list_spec
  32157. # How to hardcode a shared library path into an executable.
  32158. hardcode_action=$hardcode_action
  32159. # The directories searched by this compiler when creating a shared library.
  32160. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  32161. # Dependencies to place before and after the objects being linked to
  32162. # create a shared library.
  32163. predep_objects=$lt_predep_objects
  32164. postdep_objects=$lt_postdep_objects
  32165. predeps=$lt_predeps
  32166. postdeps=$lt_postdeps
  32167. # The library search path used internally by the compiler when linking
  32168. # a shared library.
  32169. compiler_lib_search_path=$lt_compiler_lib_search_path
  32170. # ### END LIBTOOL CONFIG
  32171. _LT_EOF
  32172. cat <<'_LT_EOF' >> "$cfgfile"
  32173. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  32174. # func_munge_path_list VARIABLE PATH
  32175. # -----------------------------------
  32176. # VARIABLE is name of variable containing _space_ separated list of
  32177. # directories to be munged by the contents of PATH, which is string
  32178. # having a format:
  32179. # "DIR[:DIR]:"
  32180. # string "DIR[ DIR]" will be prepended to VARIABLE
  32181. # ":DIR[:DIR]"
  32182. # string "DIR[ DIR]" will be appended to VARIABLE
  32183. # "DIRP[:DIRP]::[DIRA:]DIRA"
  32184. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  32185. # "DIRA[ DIRA]" will be appended to VARIABLE
  32186. # "DIR[:DIR]"
  32187. # VARIABLE will be replaced by "DIR[ DIR]"
  32188. func_munge_path_list ()
  32189. {
  32190. case x$2 in
  32191. x)
  32192. ;;
  32193. *:)
  32194. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  32195. ;;
  32196. x:*)
  32197. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  32198. ;;
  32199. *::*)
  32200. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  32201. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  32202. ;;
  32203. *)
  32204. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  32205. ;;
  32206. esac
  32207. }
  32208. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  32209. func_cc_basename ()
  32210. {
  32211. for cc_temp in $*""; do
  32212. case $cc_temp in
  32213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32215. \-*) ;;
  32216. *) break;;
  32217. esac
  32218. done
  32219. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  32220. }
  32221. # ### END FUNCTIONS SHARED WITH CONFIGURE
  32222. _LT_EOF
  32223. case $host_os in
  32224. aix3*)
  32225. cat <<\_LT_EOF >> "$cfgfile"
  32226. # AIX sometimes has problems with the GCC collect2 program. For some
  32227. # reason, if we set the COLLECT_NAMES environment variable, the problems
  32228. # vanish in a puff of smoke.
  32229. if test set != "${COLLECT_NAMES+set}"; then
  32230. COLLECT_NAMES=
  32231. export COLLECT_NAMES
  32232. fi
  32233. _LT_EOF
  32234. ;;
  32235. esac
  32236. ltmain=$ac_aux_dir/ltmain.sh
  32237. # We use sed instead of cat because bash on DJGPP gets confused if
  32238. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  32239. # text mode, it properly converts lines to CR/LF. This bash problem
  32240. # is reportedly fixed, but why not run on old versions too?
  32241. sed '$q' "$ltmain" >> "$cfgfile" \
  32242. || (rm -f "$cfgfile"; exit 1)
  32243. mv -f "$cfgfile" "$ofile" ||
  32244. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  32245. chmod +x "$ofile"
  32246. cat <<_LT_EOF >> "$ofile"
  32247. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  32248. # The linker used to build libraries.
  32249. LD=$lt_LD_CXX
  32250. # How to create reloadable object files.
  32251. reload_flag=$lt_reload_flag_CXX
  32252. reload_cmds=$lt_reload_cmds_CXX
  32253. # Commands used to build an old-style archive.
  32254. old_archive_cmds=$lt_old_archive_cmds_CXX
  32255. # A language specific compiler.
  32256. CC=$lt_compiler_CXX
  32257. # Is the compiler the GNU compiler?
  32258. with_gcc=$GCC_CXX
  32259. # Compiler flag to turn off builtin functions.
  32260. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  32261. # Additional compiler flags for building library objects.
  32262. pic_flag=$lt_lt_prog_compiler_pic_CXX
  32263. # How to pass a linker flag through the compiler.
  32264. wl=$lt_lt_prog_compiler_wl_CXX
  32265. # Compiler flag to prevent dynamic linking.
  32266. link_static_flag=$lt_lt_prog_compiler_static_CXX
  32267. # Does compiler simultaneously support -c and -o options?
  32268. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  32269. # Whether or not to add -lc for building shared libraries.
  32270. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  32271. # Whether or not to disallow shared libs when runtime libs are static.
  32272. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  32273. # Compiler flag to allow reflexive dlopens.
  32274. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  32275. # Compiler flag to generate shared objects directly from archives.
  32276. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  32277. # Whether the compiler copes with passing no objects directly.
  32278. compiler_needs_object=$lt_compiler_needs_object_CXX
  32279. # Create an old-style archive from a shared archive.
  32280. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  32281. # Create a temporary old-style archive to link instead of a shared archive.
  32282. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  32283. # Commands used to build a shared archive.
  32284. archive_cmds=$lt_archive_cmds_CXX
  32285. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  32286. # Commands used to build a loadable module if different from building
  32287. # a shared archive.
  32288. module_cmds=$lt_module_cmds_CXX
  32289. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  32290. # Whether we are building with GNU ld or not.
  32291. with_gnu_ld=$lt_with_gnu_ld_CXX
  32292. # Flag that allows shared libraries with undefined symbols to be built.
  32293. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  32294. # Flag that enforces no undefined symbols.
  32295. no_undefined_flag=$lt_no_undefined_flag_CXX
  32296. # Flag to hardcode \$libdir into a binary during linking.
  32297. # This must work even if \$libdir does not exist
  32298. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  32299. # Whether we need a single "-rpath" flag with a separated argument.
  32300. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  32301. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  32302. # DIR into the resulting binary.
  32303. hardcode_direct=$hardcode_direct_CXX
  32304. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  32305. # DIR into the resulting binary and the resulting library dependency is
  32306. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  32307. # library is relocated.
  32308. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  32309. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  32310. # into the resulting binary.
  32311. hardcode_minus_L=$hardcode_minus_L_CXX
  32312. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  32313. # into the resulting binary.
  32314. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  32315. # Set to "yes" if building a shared library automatically hardcodes DIR
  32316. # into the library and all subsequent libraries and executables linked
  32317. # against it.
  32318. hardcode_automatic=$hardcode_automatic_CXX
  32319. # Set to yes if linker adds runtime paths of dependent libraries
  32320. # to runtime path list.
  32321. inherit_rpath=$inherit_rpath_CXX
  32322. # Whether libtool must link a program against all its dependency libraries.
  32323. link_all_deplibs=$link_all_deplibs_CXX
  32324. # Set to "yes" if exported symbols are required.
  32325. always_export_symbols=$always_export_symbols_CXX
  32326. # The commands to list exported symbols.
  32327. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  32328. # Symbols that should not be listed in the preloaded symbols.
  32329. exclude_expsyms=$lt_exclude_expsyms_CXX
  32330. # Symbols that must always be exported.
  32331. include_expsyms=$lt_include_expsyms_CXX
  32332. # Commands necessary for linking programs (against libraries) with templates.
  32333. prelink_cmds=$lt_prelink_cmds_CXX
  32334. # Commands necessary for finishing linking programs.
  32335. postlink_cmds=$lt_postlink_cmds_CXX
  32336. # Specify filename containing input files.
  32337. file_list_spec=$lt_file_list_spec_CXX
  32338. # How to hardcode a shared library path into an executable.
  32339. hardcode_action=$hardcode_action_CXX
  32340. # The directories searched by this compiler when creating a shared library.
  32341. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  32342. # Dependencies to place before and after the objects being linked to
  32343. # create a shared library.
  32344. predep_objects=$lt_predep_objects_CXX
  32345. postdep_objects=$lt_postdep_objects_CXX
  32346. predeps=$lt_predeps_CXX
  32347. postdeps=$lt_postdeps_CXX
  32348. # The library search path used internally by the compiler when linking
  32349. # a shared library.
  32350. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  32351. # ### END LIBTOOL TAG CONFIG: CXX
  32352. _LT_EOF
  32353. ;;
  32354. "$srcdir/build/Makefile.win32.features":C)
  32355. _config_file=$srcdir/build/Makefile.win32.features
  32356. _tmp_file=cairoconf.tmp
  32357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32358. $as_echo "$as_me: creating $_config_file" >&6;}
  32359. {
  32360. echo "$CAIRO_MAKEFILE___WIN32"
  32361. } >> "$_tmp_file" ||
  32362. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32363. if cmp -s "$_tmp_file" "$_config_file"; then
  32364. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32365. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32366. rm -f "$_tmp_file"
  32367. else
  32368. mv "$_tmp_file" "$_config_file" ||
  32369. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32370. fi
  32371. ;;
  32372. "$srcdir/src/Makefile.am.features":C)
  32373. _config_file=$srcdir/src/Makefile.am.features
  32374. _tmp_file=cairoconf.tmp
  32375. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32376. $as_echo "$as_me: creating $_config_file" >&6;}
  32377. {
  32378. echo "$CAIRO_MAKEFILE_cairo_AMAKE"
  32379. } >> "$_tmp_file" ||
  32380. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32381. if cmp -s "$_tmp_file" "$_config_file"; then
  32382. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32383. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32384. rm -f "$_tmp_file"
  32385. else
  32386. mv "$_tmp_file" "$_config_file" ||
  32387. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32388. fi
  32389. ;;
  32390. "$srcdir/src/Makefile.win32.features":C)
  32391. _config_file=$srcdir/src/Makefile.win32.features
  32392. _tmp_file=cairoconf.tmp
  32393. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32394. $as_echo "$as_me: creating $_config_file" >&6;}
  32395. {
  32396. echo "$CAIRO_MAKEFILE_cairo_WIN32"
  32397. } >> "$_tmp_file" ||
  32398. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32399. if cmp -s "$_tmp_file" "$_config_file"; then
  32400. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32401. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32402. rm -f "$_tmp_file"
  32403. else
  32404. mv "$_tmp_file" "$_config_file" ||
  32405. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32406. fi
  32407. ;;
  32408. "$srcdir/boilerplate/Makefile.am.features":C)
  32409. _config_file=$srcdir/boilerplate/Makefile.am.features
  32410. _tmp_file=cairoconf.tmp
  32411. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32412. $as_echo "$as_me: creating $_config_file" >&6;}
  32413. {
  32414. echo "$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE"
  32415. } >> "$_tmp_file" ||
  32416. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32417. if cmp -s "$_tmp_file" "$_config_file"; then
  32418. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32419. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32420. rm -f "$_tmp_file"
  32421. else
  32422. mv "$_tmp_file" "$_config_file" ||
  32423. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32424. fi
  32425. ;;
  32426. "$srcdir/boilerplate/Makefile.win32.features":C)
  32427. _config_file=$srcdir/boilerplate/Makefile.win32.features
  32428. _tmp_file=cairoconf.tmp
  32429. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32430. $as_echo "$as_me: creating $_config_file" >&6;}
  32431. {
  32432. echo "$CAIRO_MAKEFILE_cairo_boilerplate_WIN32"
  32433. } >> "$_tmp_file" ||
  32434. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32435. if cmp -s "$_tmp_file" "$_config_file"; then
  32436. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32437. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32438. rm -f "$_tmp_file"
  32439. else
  32440. mv "$_tmp_file" "$_config_file" ||
  32441. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32442. fi
  32443. ;;
  32444. "src/cairo-features.h":C)
  32445. _config_file=src/cairo-features.h
  32446. _tmp_file=cairoconf.tmp
  32447. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32448. $as_echo "$as_me: creating $_config_file" >&6;}
  32449. {
  32450. echo '/* Generated by configure. Do not edit. */'
  32451. echo '#ifndef CAIRO_FEATURES_H'
  32452. echo '#define CAIRO_FEATURES_H'
  32453. echo ''
  32454. for FEATURE in $CAIRO_FEATURES; do
  32455. echo "#define $FEATURE 1"
  32456. done | LANG=C sort
  32457. echo ''
  32458. for FEATURE in $CAIRO_NO_FEATURES; do
  32459. echo "/*#undef $FEATURE */"
  32460. done | LANG=C sort
  32461. echo ''
  32462. echo '#endif'
  32463. } >> "$_tmp_file" ||
  32464. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32465. if cmp -s "$_tmp_file" "$_config_file"; then
  32466. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32467. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32468. rm -f "$_tmp_file"
  32469. else
  32470. mv "$_tmp_file" "$_config_file" ||
  32471. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32472. fi
  32473. ;;
  32474. "src/cairo-supported-features.h":C)
  32475. _config_file=src/cairo-supported-features.h
  32476. _tmp_file=cairoconf.tmp
  32477. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32478. $as_echo "$as_me: creating $_config_file" >&6;}
  32479. {
  32480. echo '/* Generated by configure. Do not edit. */'
  32481. echo '#ifndef CAIRO_SUPPORTED_FEATURES_H'
  32482. echo '#define CAIRO_SUPPORTED_FEATURES_H'
  32483. echo ''
  32484. echo '/* This is a dummy header, to trick gtk-doc only */'
  32485. echo ''
  32486. for FEATURE in $CAIRO_SUPPORTED_FEATURES; do
  32487. echo "#define $FEATURE 1"
  32488. done
  32489. echo ''
  32490. echo '#endif'
  32491. } >> "$_tmp_file" ||
  32492. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32493. if cmp -s "$_tmp_file" "$_config_file"; then
  32494. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32495. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32496. rm -f "$_tmp_file"
  32497. else
  32498. mv "$_tmp_file" "$_config_file" ||
  32499. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32500. fi
  32501. ;;
  32502. "$srcdir/build/Makefile.win32.features-h":C)
  32503. _config_file=$srcdir/build/Makefile.win32.features-h
  32504. _tmp_file=cairoconf.tmp
  32505. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
  32506. $as_echo "$as_me: creating $_config_file" >&6;}
  32507. {
  32508. echo "$CAIRO_MAKEFILE_win32_features_h_WIN32"
  32509. } >> "$_tmp_file" ||
  32510. as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
  32511. if cmp -s "$_tmp_file" "$_config_file"; then
  32512. { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
  32513. $as_echo "$as_me: $_config_file is unchanged" >&6;}
  32514. rm -f "$_tmp_file"
  32515. else
  32516. mv "$_tmp_file" "$_config_file" ||
  32517. as_fn_error $? "failed to update $_config_file" "$LINENO" 5
  32518. fi
  32519. ;;
  32520. "src/cairo-xlib.pc":F) mv "src/cairo-xlib.pc" "src/cairo-xlib.pc.tmp" &&
  32521. $SED " s%@FEATURE_PC@%cairo-xlib%g; s%@FEATURE_NAME@%Xlib surface backend%g; s%@FEATURE_BASE@%$xlib_BASE%g; s%@FEATURE_REQUIRES@%$xlib_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xlib.pc.tmp" > "src/cairo-xlib.pc" && rm -f "src/cairo-xlib.pc.tmp" ||
  32522. as_fn_error $? "failed to update src/cairo-xlib.pc" "$LINENO" 5
  32523. ;;
  32524. "cairo-xlib-uninstalled.pc":F) mv "cairo-xlib-uninstalled.pc" "cairo-xlib-uninstalled.pc.tmp" &&
  32525. $SED " s%@FEATURE_PC@%cairo-xlib%g; s%@FEATURE_NAME@%Xlib surface backend%g; s%@FEATURE_BASE@%$xlib_BASE%g; s%@FEATURE_REQUIRES@%$xlib_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_NONPKGCONFIG_CFLAGS%g; " < "cairo-xlib-uninstalled.pc.tmp" > "cairo-xlib-uninstalled.pc" && rm -f "cairo-xlib-uninstalled.pc.tmp" ||
  32526. as_fn_error $? "failed to update cairo-xlib-uninstalled.pc" "$LINENO" 5
  32527. ;;
  32528. "src/cairo-xlib-xrender.pc":F) mv "src/cairo-xlib-xrender.pc" "src/cairo-xlib-xrender.pc.tmp" &&
  32529. $SED " s%@FEATURE_PC@%cairo-xlib-xrender%g; s%@FEATURE_NAME@%Xlib Xrender surface backend%g; s%@FEATURE_BASE@%$xlib_xrender_BASE%g; s%@FEATURE_REQUIRES@%$xlib_xrender_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xrender_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xrender_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xlib-xrender.pc.tmp" > "src/cairo-xlib-xrender.pc" && rm -f "src/cairo-xlib-xrender.pc.tmp" ||
  32530. as_fn_error $? "failed to update src/cairo-xlib-xrender.pc" "$LINENO" 5
  32531. ;;
  32532. "cairo-xlib-xrender-uninstalled.pc":F) mv "cairo-xlib-xrender-uninstalled.pc" "cairo-xlib-xrender-uninstalled.pc.tmp" &&
  32533. $SED " s%@FEATURE_PC@%cairo-xlib-xrender%g; s%@FEATURE_NAME@%Xlib Xrender surface backend%g; s%@FEATURE_BASE@%$xlib_xrender_BASE%g; s%@FEATURE_REQUIRES@%$xlib_xrender_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xrender_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xrender_NONPKGCONFIG_CFLAGS%g; " < "cairo-xlib-xrender-uninstalled.pc.tmp" > "cairo-xlib-xrender-uninstalled.pc" && rm -f "cairo-xlib-xrender-uninstalled.pc.tmp" ||
  32534. as_fn_error $? "failed to update cairo-xlib-xrender-uninstalled.pc" "$LINENO" 5
  32535. ;;
  32536. "src/cairo-xcb.pc":F) mv "src/cairo-xcb.pc" "src/cairo-xcb.pc.tmp" &&
  32537. $SED " s%@FEATURE_PC@%cairo-xcb%g; s%@FEATURE_NAME@%XCB surface backend%g; s%@FEATURE_BASE@%$xcb_BASE%g; s%@FEATURE_REQUIRES@%$xcb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xcb.pc.tmp" > "src/cairo-xcb.pc" && rm -f "src/cairo-xcb.pc.tmp" ||
  32538. as_fn_error $? "failed to update src/cairo-xcb.pc" "$LINENO" 5
  32539. ;;
  32540. "cairo-xcb-uninstalled.pc":F) mv "cairo-xcb-uninstalled.pc" "cairo-xcb-uninstalled.pc.tmp" &&
  32541. $SED " s%@FEATURE_PC@%cairo-xcb%g; s%@FEATURE_NAME@%XCB surface backend%g; s%@FEATURE_BASE@%$xcb_BASE%g; s%@FEATURE_REQUIRES@%$xcb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_NONPKGCONFIG_CFLAGS%g; " < "cairo-xcb-uninstalled.pc.tmp" > "cairo-xcb-uninstalled.pc" && rm -f "cairo-xcb-uninstalled.pc.tmp" ||
  32542. as_fn_error $? "failed to update cairo-xcb-uninstalled.pc" "$LINENO" 5
  32543. ;;
  32544. "src/cairo-xlib-xcb.pc":F) mv "src/cairo-xlib-xcb.pc" "src/cairo-xlib-xcb.pc.tmp" &&
  32545. $SED " s%@FEATURE_PC@%cairo-xlib-xcb%g; s%@FEATURE_NAME@%Xlib/XCB functions%g; s%@FEATURE_BASE@%$xlib_xcb_BASE%g; s%@FEATURE_REQUIRES@%$xlib_xcb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xcb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xcb_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xlib-xcb.pc.tmp" > "src/cairo-xlib-xcb.pc" && rm -f "src/cairo-xlib-xcb.pc.tmp" ||
  32546. as_fn_error $? "failed to update src/cairo-xlib-xcb.pc" "$LINENO" 5
  32547. ;;
  32548. "cairo-xlib-xcb-uninstalled.pc":F) mv "cairo-xlib-xcb-uninstalled.pc" "cairo-xlib-xcb-uninstalled.pc.tmp" &&
  32549. $SED " s%@FEATURE_PC@%cairo-xlib-xcb%g; s%@FEATURE_NAME@%Xlib/XCB functions%g; s%@FEATURE_BASE@%$xlib_xcb_BASE%g; s%@FEATURE_REQUIRES@%$xlib_xcb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xcb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xcb_NONPKGCONFIG_CFLAGS%g; " < "cairo-xlib-xcb-uninstalled.pc.tmp" > "cairo-xlib-xcb-uninstalled.pc" && rm -f "cairo-xlib-xcb-uninstalled.pc.tmp" ||
  32550. as_fn_error $? "failed to update cairo-xlib-xcb-uninstalled.pc" "$LINENO" 5
  32551. ;;
  32552. "src/cairo-xcb-shm.pc":F) mv "src/cairo-xcb-shm.pc" "src/cairo-xcb-shm.pc.tmp" &&
  32553. $SED " s%@FEATURE_PC@%cairo-xcb-shm%g; s%@FEATURE_NAME@%XCB/SHM functions%g; s%@FEATURE_BASE@%$xcb_shm_BASE%g; s%@FEATURE_REQUIRES@%$xcb_shm_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_shm_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_shm_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_shm_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xcb-shm.pc.tmp" > "src/cairo-xcb-shm.pc" && rm -f "src/cairo-xcb-shm.pc.tmp" ||
  32554. as_fn_error $? "failed to update src/cairo-xcb-shm.pc" "$LINENO" 5
  32555. ;;
  32556. "cairo-xcb-shm-uninstalled.pc":F) mv "cairo-xcb-shm-uninstalled.pc" "cairo-xcb-shm-uninstalled.pc.tmp" &&
  32557. $SED " s%@FEATURE_PC@%cairo-xcb-shm%g; s%@FEATURE_NAME@%XCB/SHM functions%g; s%@FEATURE_BASE@%$xcb_shm_BASE%g; s%@FEATURE_REQUIRES@%$xcb_shm_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_shm_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_shm_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_shm_NONPKGCONFIG_CFLAGS%g; " < "cairo-xcb-shm-uninstalled.pc.tmp" > "cairo-xcb-shm-uninstalled.pc" && rm -f "cairo-xcb-shm-uninstalled.pc.tmp" ||
  32558. as_fn_error $? "failed to update cairo-xcb-shm-uninstalled.pc" "$LINENO" 5
  32559. ;;
  32560. "src/cairo-qt.pc":F) mv "src/cairo-qt.pc" "src/cairo-qt.pc.tmp" &&
  32561. $SED " s%@FEATURE_PC@%cairo-qt%g; s%@FEATURE_NAME@%Qt surface backend%g; s%@FEATURE_BASE@%$qt_BASE%g; s%@FEATURE_REQUIRES@%$qt_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$qt_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$qt_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$qt_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-qt.pc.tmp" > "src/cairo-qt.pc" && rm -f "src/cairo-qt.pc.tmp" ||
  32562. as_fn_error $? "failed to update src/cairo-qt.pc" "$LINENO" 5
  32563. ;;
  32564. "cairo-qt-uninstalled.pc":F) mv "cairo-qt-uninstalled.pc" "cairo-qt-uninstalled.pc.tmp" &&
  32565. $SED " s%@FEATURE_PC@%cairo-qt%g; s%@FEATURE_NAME@%Qt surface backend%g; s%@FEATURE_BASE@%$qt_BASE%g; s%@FEATURE_REQUIRES@%$qt_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$qt_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$qt_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$qt_NONPKGCONFIG_CFLAGS%g; " < "cairo-qt-uninstalled.pc.tmp" > "cairo-qt-uninstalled.pc" && rm -f "cairo-qt-uninstalled.pc.tmp" ||
  32566. as_fn_error $? "failed to update cairo-qt-uninstalled.pc" "$LINENO" 5
  32567. ;;
  32568. "src/cairo-quartz.pc":F) mv "src/cairo-quartz.pc" "src/cairo-quartz.pc.tmp" &&
  32569. $SED " s%@FEATURE_PC@%cairo-quartz%g; s%@FEATURE_NAME@%Quartz surface backend%g; s%@FEATURE_BASE@%$quartz_BASE%g; s%@FEATURE_REQUIRES@%$quartz_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-quartz.pc.tmp" > "src/cairo-quartz.pc" && rm -f "src/cairo-quartz.pc.tmp" ||
  32570. as_fn_error $? "failed to update src/cairo-quartz.pc" "$LINENO" 5
  32571. ;;
  32572. "cairo-quartz-uninstalled.pc":F) mv "cairo-quartz-uninstalled.pc" "cairo-quartz-uninstalled.pc.tmp" &&
  32573. $SED " s%@FEATURE_PC@%cairo-quartz%g; s%@FEATURE_NAME@%Quartz surface backend%g; s%@FEATURE_BASE@%$quartz_BASE%g; s%@FEATURE_REQUIRES@%$quartz_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_NONPKGCONFIG_CFLAGS%g; " < "cairo-quartz-uninstalled.pc.tmp" > "cairo-quartz-uninstalled.pc" && rm -f "cairo-quartz-uninstalled.pc.tmp" ||
  32574. as_fn_error $? "failed to update cairo-quartz-uninstalled.pc" "$LINENO" 5
  32575. ;;
  32576. "src/cairo-quartz-font.pc":F) mv "src/cairo-quartz-font.pc" "src/cairo-quartz-font.pc.tmp" &&
  32577. $SED " s%@FEATURE_PC@%cairo-quartz-font%g; s%@FEATURE_NAME@%Quartz font backend%g; s%@FEATURE_BASE@%$quartz_font_BASE%g; s%@FEATURE_REQUIRES@%$quartz_font_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_font_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_font_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_font_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-quartz-font.pc.tmp" > "src/cairo-quartz-font.pc" && rm -f "src/cairo-quartz-font.pc.tmp" ||
  32578. as_fn_error $? "failed to update src/cairo-quartz-font.pc" "$LINENO" 5
  32579. ;;
  32580. "cairo-quartz-font-uninstalled.pc":F) mv "cairo-quartz-font-uninstalled.pc" "cairo-quartz-font-uninstalled.pc.tmp" &&
  32581. $SED " s%@FEATURE_PC@%cairo-quartz-font%g; s%@FEATURE_NAME@%Quartz font backend%g; s%@FEATURE_BASE@%$quartz_font_BASE%g; s%@FEATURE_REQUIRES@%$quartz_font_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_font_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_font_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_font_NONPKGCONFIG_CFLAGS%g; " < "cairo-quartz-font-uninstalled.pc.tmp" > "cairo-quartz-font-uninstalled.pc" && rm -f "cairo-quartz-font-uninstalled.pc.tmp" ||
  32582. as_fn_error $? "failed to update cairo-quartz-font-uninstalled.pc" "$LINENO" 5
  32583. ;;
  32584. "src/cairo-quartz-image.pc":F) mv "src/cairo-quartz-image.pc" "src/cairo-quartz-image.pc.tmp" &&
  32585. $SED " s%@FEATURE_PC@%cairo-quartz-image%g; s%@FEATURE_NAME@%Quartz Image surface backend%g; s%@FEATURE_BASE@%$quartz_image_BASE%g; s%@FEATURE_REQUIRES@%$quartz_image_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_image_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_image_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_image_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-quartz-image.pc.tmp" > "src/cairo-quartz-image.pc" && rm -f "src/cairo-quartz-image.pc.tmp" ||
  32586. as_fn_error $? "failed to update src/cairo-quartz-image.pc" "$LINENO" 5
  32587. ;;
  32588. "cairo-quartz-image-uninstalled.pc":F) mv "cairo-quartz-image-uninstalled.pc" "cairo-quartz-image-uninstalled.pc.tmp" &&
  32589. $SED " s%@FEATURE_PC@%cairo-quartz-image%g; s%@FEATURE_NAME@%Quartz Image surface backend%g; s%@FEATURE_BASE@%$quartz_image_BASE%g; s%@FEATURE_REQUIRES@%$quartz_image_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_image_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_image_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_image_NONPKGCONFIG_CFLAGS%g; " < "cairo-quartz-image-uninstalled.pc.tmp" > "cairo-quartz-image-uninstalled.pc" && rm -f "cairo-quartz-image-uninstalled.pc.tmp" ||
  32590. as_fn_error $? "failed to update cairo-quartz-image-uninstalled.pc" "$LINENO" 5
  32591. ;;
  32592. "src/cairo-win32.pc":F) mv "src/cairo-win32.pc" "src/cairo-win32.pc.tmp" &&
  32593. $SED " s%@FEATURE_PC@%cairo-win32%g; s%@FEATURE_NAME@%Microsoft Windows surface backend%g; s%@FEATURE_BASE@%$win32_BASE%g; s%@FEATURE_REQUIRES@%$win32_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-win32.pc.tmp" > "src/cairo-win32.pc" && rm -f "src/cairo-win32.pc.tmp" ||
  32594. as_fn_error $? "failed to update src/cairo-win32.pc" "$LINENO" 5
  32595. ;;
  32596. "cairo-win32-uninstalled.pc":F) mv "cairo-win32-uninstalled.pc" "cairo-win32-uninstalled.pc.tmp" &&
  32597. $SED " s%@FEATURE_PC@%cairo-win32%g; s%@FEATURE_NAME@%Microsoft Windows surface backend%g; s%@FEATURE_BASE@%$win32_BASE%g; s%@FEATURE_REQUIRES@%$win32_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_NONPKGCONFIG_CFLAGS%g; " < "cairo-win32-uninstalled.pc.tmp" > "cairo-win32-uninstalled.pc" && rm -f "cairo-win32-uninstalled.pc.tmp" ||
  32598. as_fn_error $? "failed to update cairo-win32-uninstalled.pc" "$LINENO" 5
  32599. ;;
  32600. "src/cairo-win32-font.pc":F) mv "src/cairo-win32-font.pc" "src/cairo-win32-font.pc.tmp" &&
  32601. $SED " s%@FEATURE_PC@%cairo-win32-font%g; s%@FEATURE_NAME@%Microsoft Windows font backend%g; s%@FEATURE_BASE@%$win32_font_BASE%g; s%@FEATURE_REQUIRES@%$win32_font_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_font_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_font_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_font_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-win32-font.pc.tmp" > "src/cairo-win32-font.pc" && rm -f "src/cairo-win32-font.pc.tmp" ||
  32602. as_fn_error $? "failed to update src/cairo-win32-font.pc" "$LINENO" 5
  32603. ;;
  32604. "cairo-win32-font-uninstalled.pc":F) mv "cairo-win32-font-uninstalled.pc" "cairo-win32-font-uninstalled.pc.tmp" &&
  32605. $SED " s%@FEATURE_PC@%cairo-win32-font%g; s%@FEATURE_NAME@%Microsoft Windows font backend%g; s%@FEATURE_BASE@%$win32_font_BASE%g; s%@FEATURE_REQUIRES@%$win32_font_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_font_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_font_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_font_NONPKGCONFIG_CFLAGS%g; " < "cairo-win32-font-uninstalled.pc.tmp" > "cairo-win32-font-uninstalled.pc" && rm -f "cairo-win32-font-uninstalled.pc.tmp" ||
  32606. as_fn_error $? "failed to update cairo-win32-font-uninstalled.pc" "$LINENO" 5
  32607. ;;
  32608. "src/cairo-os2.pc":F) mv "src/cairo-os2.pc" "src/cairo-os2.pc.tmp" &&
  32609. $SED " s%@FEATURE_PC@%cairo-os2%g; s%@FEATURE_NAME@%OS/2 surface backend%g; s%@FEATURE_BASE@%$os2_BASE%g; s%@FEATURE_REQUIRES@%$os2_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$os2_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$os2_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$os2_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-os2.pc.tmp" > "src/cairo-os2.pc" && rm -f "src/cairo-os2.pc.tmp" ||
  32610. as_fn_error $? "failed to update src/cairo-os2.pc" "$LINENO" 5
  32611. ;;
  32612. "cairo-os2-uninstalled.pc":F) mv "cairo-os2-uninstalled.pc" "cairo-os2-uninstalled.pc.tmp" &&
  32613. $SED " s%@FEATURE_PC@%cairo-os2%g; s%@FEATURE_NAME@%OS/2 surface backend%g; s%@FEATURE_BASE@%$os2_BASE%g; s%@FEATURE_REQUIRES@%$os2_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$os2_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$os2_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$os2_NONPKGCONFIG_CFLAGS%g; " < "cairo-os2-uninstalled.pc.tmp" > "cairo-os2-uninstalled.pc" && rm -f "cairo-os2-uninstalled.pc.tmp" ||
  32614. as_fn_error $? "failed to update cairo-os2-uninstalled.pc" "$LINENO" 5
  32615. ;;
  32616. "src/cairo-beos.pc":F) mv "src/cairo-beos.pc" "src/cairo-beos.pc.tmp" &&
  32617. $SED " s%@FEATURE_PC@%cairo-beos%g; s%@FEATURE_NAME@%BeOS/Zeta surface backend%g; s%@FEATURE_BASE@%$beos_BASE%g; s%@FEATURE_REQUIRES@%$beos_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$beos_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$beos_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$beos_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-beos.pc.tmp" > "src/cairo-beos.pc" && rm -f "src/cairo-beos.pc.tmp" ||
  32618. as_fn_error $? "failed to update src/cairo-beos.pc" "$LINENO" 5
  32619. ;;
  32620. "cairo-beos-uninstalled.pc":F) mv "cairo-beos-uninstalled.pc" "cairo-beos-uninstalled.pc.tmp" &&
  32621. $SED " s%@FEATURE_PC@%cairo-beos%g; s%@FEATURE_NAME@%BeOS/Zeta surface backend%g; s%@FEATURE_BASE@%$beos_BASE%g; s%@FEATURE_REQUIRES@%$beos_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$beos_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$beos_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$beos_NONPKGCONFIG_CFLAGS%g; " < "cairo-beos-uninstalled.pc.tmp" > "cairo-beos-uninstalled.pc" && rm -f "cairo-beos-uninstalled.pc.tmp" ||
  32622. as_fn_error $? "failed to update cairo-beos-uninstalled.pc" "$LINENO" 5
  32623. ;;
  32624. "src/cairo-drm.pc":F) mv "src/cairo-drm.pc" "src/cairo-drm.pc.tmp" &&
  32625. $SED " s%@FEATURE_PC@%cairo-drm%g; s%@FEATURE_NAME@%DRM surface backend%g; s%@FEATURE_BASE@%$drm_BASE%g; s%@FEATURE_REQUIRES@%$drm_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$drm_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$drm_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$drm_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-drm.pc.tmp" > "src/cairo-drm.pc" && rm -f "src/cairo-drm.pc.tmp" ||
  32626. as_fn_error $? "failed to update src/cairo-drm.pc" "$LINENO" 5
  32627. ;;
  32628. "cairo-drm-uninstalled.pc":F) mv "cairo-drm-uninstalled.pc" "cairo-drm-uninstalled.pc.tmp" &&
  32629. $SED " s%@FEATURE_PC@%cairo-drm%g; s%@FEATURE_NAME@%DRM surface backend%g; s%@FEATURE_BASE@%$drm_BASE%g; s%@FEATURE_REQUIRES@%$drm_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$drm_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$drm_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$drm_NONPKGCONFIG_CFLAGS%g; " < "cairo-drm-uninstalled.pc.tmp" > "cairo-drm-uninstalled.pc" && rm -f "cairo-drm-uninstalled.pc.tmp" ||
  32630. as_fn_error $? "failed to update cairo-drm-uninstalled.pc" "$LINENO" 5
  32631. ;;
  32632. "src/cairo-gallium.pc":F) mv "src/cairo-gallium.pc" "src/cairo-gallium.pc.tmp" &&
  32633. $SED " s%@FEATURE_PC@%cairo-gallium%g; s%@FEATURE_NAME@%Gallium3D surface backend%g; s%@FEATURE_BASE@%$gallium_BASE%g; s%@FEATURE_REQUIRES@%$gallium_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gallium_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gallium_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gallium_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-gallium.pc.tmp" > "src/cairo-gallium.pc" && rm -f "src/cairo-gallium.pc.tmp" ||
  32634. as_fn_error $? "failed to update src/cairo-gallium.pc" "$LINENO" 5
  32635. ;;
  32636. "cairo-gallium-uninstalled.pc":F) mv "cairo-gallium-uninstalled.pc" "cairo-gallium-uninstalled.pc.tmp" &&
  32637. $SED " s%@FEATURE_PC@%cairo-gallium%g; s%@FEATURE_NAME@%Gallium3D surface backend%g; s%@FEATURE_BASE@%$gallium_BASE%g; s%@FEATURE_REQUIRES@%$gallium_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gallium_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gallium_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gallium_NONPKGCONFIG_CFLAGS%g; " < "cairo-gallium-uninstalled.pc.tmp" > "cairo-gallium-uninstalled.pc" && rm -f "cairo-gallium-uninstalled.pc.tmp" ||
  32638. as_fn_error $? "failed to update cairo-gallium-uninstalled.pc" "$LINENO" 5
  32639. ;;
  32640. "src/cairo-png.pc":F) mv "src/cairo-png.pc" "src/cairo-png.pc.tmp" &&
  32641. $SED " s%@FEATURE_PC@%cairo-png%g; s%@FEATURE_NAME@%PNG functions%g; s%@FEATURE_BASE@%$png_BASE%g; s%@FEATURE_REQUIRES@%$png_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$png_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$png_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$png_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-png.pc.tmp" > "src/cairo-png.pc" && rm -f "src/cairo-png.pc.tmp" ||
  32642. as_fn_error $? "failed to update src/cairo-png.pc" "$LINENO" 5
  32643. ;;
  32644. "cairo-png-uninstalled.pc":F) mv "cairo-png-uninstalled.pc" "cairo-png-uninstalled.pc.tmp" &&
  32645. $SED " s%@FEATURE_PC@%cairo-png%g; s%@FEATURE_NAME@%PNG functions%g; s%@FEATURE_BASE@%$png_BASE%g; s%@FEATURE_REQUIRES@%$png_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$png_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$png_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$png_NONPKGCONFIG_CFLAGS%g; " < "cairo-png-uninstalled.pc.tmp" > "cairo-png-uninstalled.pc" && rm -f "cairo-png-uninstalled.pc.tmp" ||
  32646. as_fn_error $? "failed to update cairo-png-uninstalled.pc" "$LINENO" 5
  32647. ;;
  32648. "src/cairo-gl.pc":F) mv "src/cairo-gl.pc" "src/cairo-gl.pc.tmp" &&
  32649. $SED " s%@FEATURE_PC@%cairo-gl%g; s%@FEATURE_NAME@%OpenGL surface backend%g; s%@FEATURE_BASE@%$gl_BASE%g; s%@FEATURE_REQUIRES@%$gl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gl_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-gl.pc.tmp" > "src/cairo-gl.pc" && rm -f "src/cairo-gl.pc.tmp" ||
  32650. as_fn_error $? "failed to update src/cairo-gl.pc" "$LINENO" 5
  32651. ;;
  32652. "cairo-gl-uninstalled.pc":F) mv "cairo-gl-uninstalled.pc" "cairo-gl-uninstalled.pc.tmp" &&
  32653. $SED " s%@FEATURE_PC@%cairo-gl%g; s%@FEATURE_NAME@%OpenGL surface backend%g; s%@FEATURE_BASE@%$gl_BASE%g; s%@FEATURE_REQUIRES@%$gl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gl_NONPKGCONFIG_CFLAGS%g; " < "cairo-gl-uninstalled.pc.tmp" > "cairo-gl-uninstalled.pc" && rm -f "cairo-gl-uninstalled.pc.tmp" ||
  32654. as_fn_error $? "failed to update cairo-gl-uninstalled.pc" "$LINENO" 5
  32655. ;;
  32656. "src/cairo-glesv2.pc":F) mv "src/cairo-glesv2.pc" "src/cairo-glesv2.pc.tmp" &&
  32657. $SED " s%@FEATURE_PC@%cairo-glesv2%g; s%@FEATURE_NAME@%OpenGLESv2 surface backend%g; s%@FEATURE_BASE@%$glesv2_BASE%g; s%@FEATURE_REQUIRES@%$glesv2_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv2_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv2_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv2_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-glesv2.pc.tmp" > "src/cairo-glesv2.pc" && rm -f "src/cairo-glesv2.pc.tmp" ||
  32658. as_fn_error $? "failed to update src/cairo-glesv2.pc" "$LINENO" 5
  32659. ;;
  32660. "cairo-glesv2-uninstalled.pc":F) mv "cairo-glesv2-uninstalled.pc" "cairo-glesv2-uninstalled.pc.tmp" &&
  32661. $SED " s%@FEATURE_PC@%cairo-glesv2%g; s%@FEATURE_NAME@%OpenGLESv2 surface backend%g; s%@FEATURE_BASE@%$glesv2_BASE%g; s%@FEATURE_REQUIRES@%$glesv2_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv2_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv2_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv2_NONPKGCONFIG_CFLAGS%g; " < "cairo-glesv2-uninstalled.pc.tmp" > "cairo-glesv2-uninstalled.pc" && rm -f "cairo-glesv2-uninstalled.pc.tmp" ||
  32662. as_fn_error $? "failed to update cairo-glesv2-uninstalled.pc" "$LINENO" 5
  32663. ;;
  32664. "src/cairo-glesv3.pc":F) mv "src/cairo-glesv3.pc" "src/cairo-glesv3.pc.tmp" &&
  32665. $SED " s%@FEATURE_PC@%cairo-glesv3%g; s%@FEATURE_NAME@%OpenGLESv3 surface backend%g; s%@FEATURE_BASE@%$glesv3_BASE%g; s%@FEATURE_REQUIRES@%$glesv3_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv3_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv3_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv3_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-glesv3.pc.tmp" > "src/cairo-glesv3.pc" && rm -f "src/cairo-glesv3.pc.tmp" ||
  32666. as_fn_error $? "failed to update src/cairo-glesv3.pc" "$LINENO" 5
  32667. ;;
  32668. "cairo-glesv3-uninstalled.pc":F) mv "cairo-glesv3-uninstalled.pc" "cairo-glesv3-uninstalled.pc.tmp" &&
  32669. $SED " s%@FEATURE_PC@%cairo-glesv3%g; s%@FEATURE_NAME@%OpenGLESv3 surface backend%g; s%@FEATURE_BASE@%$glesv3_BASE%g; s%@FEATURE_REQUIRES@%$glesv3_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv3_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv3_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv3_NONPKGCONFIG_CFLAGS%g; " < "cairo-glesv3-uninstalled.pc.tmp" > "cairo-glesv3-uninstalled.pc" && rm -f "cairo-glesv3-uninstalled.pc.tmp" ||
  32670. as_fn_error $? "failed to update cairo-glesv3-uninstalled.pc" "$LINENO" 5
  32671. ;;
  32672. "src/cairo-cogl.pc":F) mv "src/cairo-cogl.pc" "src/cairo-cogl.pc.tmp" &&
  32673. $SED " s%@FEATURE_PC@%cairo-cogl%g; s%@FEATURE_NAME@%Cogl surface backend%g; s%@FEATURE_BASE@%$cogl_BASE%g; s%@FEATURE_REQUIRES@%$cogl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$cogl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$cogl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$cogl_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-cogl.pc.tmp" > "src/cairo-cogl.pc" && rm -f "src/cairo-cogl.pc.tmp" ||
  32674. as_fn_error $? "failed to update src/cairo-cogl.pc" "$LINENO" 5
  32675. ;;
  32676. "cairo-cogl-uninstalled.pc":F) mv "cairo-cogl-uninstalled.pc" "cairo-cogl-uninstalled.pc.tmp" &&
  32677. $SED " s%@FEATURE_PC@%cairo-cogl%g; s%@FEATURE_NAME@%Cogl surface backend%g; s%@FEATURE_BASE@%$cogl_BASE%g; s%@FEATURE_REQUIRES@%$cogl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$cogl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$cogl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$cogl_NONPKGCONFIG_CFLAGS%g; " < "cairo-cogl-uninstalled.pc.tmp" > "cairo-cogl-uninstalled.pc" && rm -f "cairo-cogl-uninstalled.pc.tmp" ||
  32678. as_fn_error $? "failed to update cairo-cogl-uninstalled.pc" "$LINENO" 5
  32679. ;;
  32680. "src/cairo-directfb.pc":F) mv "src/cairo-directfb.pc" "src/cairo-directfb.pc.tmp" &&
  32681. $SED " s%@FEATURE_PC@%cairo-directfb%g; s%@FEATURE_NAME@%directfb surface backend%g; s%@FEATURE_BASE@%$directfb_BASE%g; s%@FEATURE_REQUIRES@%$directfb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$directfb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$directfb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$directfb_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-directfb.pc.tmp" > "src/cairo-directfb.pc" && rm -f "src/cairo-directfb.pc.tmp" ||
  32682. as_fn_error $? "failed to update src/cairo-directfb.pc" "$LINENO" 5
  32683. ;;
  32684. "cairo-directfb-uninstalled.pc":F) mv "cairo-directfb-uninstalled.pc" "cairo-directfb-uninstalled.pc.tmp" &&
  32685. $SED " s%@FEATURE_PC@%cairo-directfb%g; s%@FEATURE_NAME@%directfb surface backend%g; s%@FEATURE_BASE@%$directfb_BASE%g; s%@FEATURE_REQUIRES@%$directfb_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$directfb_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$directfb_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$directfb_NONPKGCONFIG_CFLAGS%g; " < "cairo-directfb-uninstalled.pc.tmp" > "cairo-directfb-uninstalled.pc" && rm -f "cairo-directfb-uninstalled.pc.tmp" ||
  32686. as_fn_error $? "failed to update cairo-directfb-uninstalled.pc" "$LINENO" 5
  32687. ;;
  32688. "src/cairo-vg.pc":F) mv "src/cairo-vg.pc" "src/cairo-vg.pc.tmp" &&
  32689. $SED " s%@FEATURE_PC@%cairo-vg%g; s%@FEATURE_NAME@%OpenVG surface backend%g; s%@FEATURE_BASE@%$vg_BASE%g; s%@FEATURE_REQUIRES@%$vg_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$vg_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$vg_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$vg_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-vg.pc.tmp" > "src/cairo-vg.pc" && rm -f "src/cairo-vg.pc.tmp" ||
  32690. as_fn_error $? "failed to update src/cairo-vg.pc" "$LINENO" 5
  32691. ;;
  32692. "cairo-vg-uninstalled.pc":F) mv "cairo-vg-uninstalled.pc" "cairo-vg-uninstalled.pc.tmp" &&
  32693. $SED " s%@FEATURE_PC@%cairo-vg%g; s%@FEATURE_NAME@%OpenVG surface backend%g; s%@FEATURE_BASE@%$vg_BASE%g; s%@FEATURE_REQUIRES@%$vg_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$vg_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$vg_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$vg_NONPKGCONFIG_CFLAGS%g; " < "cairo-vg-uninstalled.pc.tmp" > "cairo-vg-uninstalled.pc" && rm -f "cairo-vg-uninstalled.pc.tmp" ||
  32694. as_fn_error $? "failed to update cairo-vg-uninstalled.pc" "$LINENO" 5
  32695. ;;
  32696. "src/cairo-egl.pc":F) mv "src/cairo-egl.pc" "src/cairo-egl.pc.tmp" &&
  32697. $SED " s%@FEATURE_PC@%cairo-egl%g; s%@FEATURE_NAME@%EGL functions%g; s%@FEATURE_BASE@%$egl_BASE%g; s%@FEATURE_REQUIRES@%$egl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$egl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$egl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$egl_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-egl.pc.tmp" > "src/cairo-egl.pc" && rm -f "src/cairo-egl.pc.tmp" ||
  32698. as_fn_error $? "failed to update src/cairo-egl.pc" "$LINENO" 5
  32699. ;;
  32700. "cairo-egl-uninstalled.pc":F) mv "cairo-egl-uninstalled.pc" "cairo-egl-uninstalled.pc.tmp" &&
  32701. $SED " s%@FEATURE_PC@%cairo-egl%g; s%@FEATURE_NAME@%EGL functions%g; s%@FEATURE_BASE@%$egl_BASE%g; s%@FEATURE_REQUIRES@%$egl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$egl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$egl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$egl_NONPKGCONFIG_CFLAGS%g; " < "cairo-egl-uninstalled.pc.tmp" > "cairo-egl-uninstalled.pc" && rm -f "cairo-egl-uninstalled.pc.tmp" ||
  32702. as_fn_error $? "failed to update cairo-egl-uninstalled.pc" "$LINENO" 5
  32703. ;;
  32704. "src/cairo-glx.pc":F) mv "src/cairo-glx.pc" "src/cairo-glx.pc.tmp" &&
  32705. $SED " s%@FEATURE_PC@%cairo-glx%g; s%@FEATURE_NAME@%GLX functions%g; s%@FEATURE_BASE@%$glx_BASE%g; s%@FEATURE_REQUIRES@%$glx_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glx_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glx_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glx_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-glx.pc.tmp" > "src/cairo-glx.pc" && rm -f "src/cairo-glx.pc.tmp" ||
  32706. as_fn_error $? "failed to update src/cairo-glx.pc" "$LINENO" 5
  32707. ;;
  32708. "cairo-glx-uninstalled.pc":F) mv "cairo-glx-uninstalled.pc" "cairo-glx-uninstalled.pc.tmp" &&
  32709. $SED " s%@FEATURE_PC@%cairo-glx%g; s%@FEATURE_NAME@%GLX functions%g; s%@FEATURE_BASE@%$glx_BASE%g; s%@FEATURE_REQUIRES@%$glx_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$glx_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glx_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glx_NONPKGCONFIG_CFLAGS%g; " < "cairo-glx-uninstalled.pc.tmp" > "cairo-glx-uninstalled.pc" && rm -f "cairo-glx-uninstalled.pc.tmp" ||
  32710. as_fn_error $? "failed to update cairo-glx-uninstalled.pc" "$LINENO" 5
  32711. ;;
  32712. "src/cairo-wgl.pc":F) mv "src/cairo-wgl.pc" "src/cairo-wgl.pc.tmp" &&
  32713. $SED " s%@FEATURE_PC@%cairo-wgl%g; s%@FEATURE_NAME@%WGL functions%g; s%@FEATURE_BASE@%$wgl_BASE%g; s%@FEATURE_REQUIRES@%$wgl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$wgl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$wgl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$wgl_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-wgl.pc.tmp" > "src/cairo-wgl.pc" && rm -f "src/cairo-wgl.pc.tmp" ||
  32714. as_fn_error $? "failed to update src/cairo-wgl.pc" "$LINENO" 5
  32715. ;;
  32716. "cairo-wgl-uninstalled.pc":F) mv "cairo-wgl-uninstalled.pc" "cairo-wgl-uninstalled.pc.tmp" &&
  32717. $SED " s%@FEATURE_PC@%cairo-wgl%g; s%@FEATURE_NAME@%WGL functions%g; s%@FEATURE_BASE@%$wgl_BASE%g; s%@FEATURE_REQUIRES@%$wgl_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$wgl_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$wgl_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$wgl_NONPKGCONFIG_CFLAGS%g; " < "cairo-wgl-uninstalled.pc.tmp" > "cairo-wgl-uninstalled.pc" && rm -f "cairo-wgl-uninstalled.pc.tmp" ||
  32718. as_fn_error $? "failed to update cairo-wgl-uninstalled.pc" "$LINENO" 5
  32719. ;;
  32720. "src/cairo-script.pc":F) mv "src/cairo-script.pc" "src/cairo-script.pc.tmp" &&
  32721. $SED " s%@FEATURE_PC@%cairo-script%g; s%@FEATURE_NAME@%script surface backend%g; s%@FEATURE_BASE@%$script_BASE%g; s%@FEATURE_REQUIRES@%$script_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$script_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$script_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$script_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-script.pc.tmp" > "src/cairo-script.pc" && rm -f "src/cairo-script.pc.tmp" ||
  32722. as_fn_error $? "failed to update src/cairo-script.pc" "$LINENO" 5
  32723. ;;
  32724. "cairo-script-uninstalled.pc":F) mv "cairo-script-uninstalled.pc" "cairo-script-uninstalled.pc.tmp" &&
  32725. $SED " s%@FEATURE_PC@%cairo-script%g; s%@FEATURE_NAME@%script surface backend%g; s%@FEATURE_BASE@%$script_BASE%g; s%@FEATURE_REQUIRES@%$script_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$script_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$script_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$script_NONPKGCONFIG_CFLAGS%g; " < "cairo-script-uninstalled.pc.tmp" > "cairo-script-uninstalled.pc" && rm -f "cairo-script-uninstalled.pc.tmp" ||
  32726. as_fn_error $? "failed to update cairo-script-uninstalled.pc" "$LINENO" 5
  32727. ;;
  32728. "src/cairo-ft.pc":F) mv "src/cairo-ft.pc" "src/cairo-ft.pc.tmp" &&
  32729. $SED " s%@FEATURE_PC@%cairo-ft%g; s%@FEATURE_NAME@%FreeType font backend%g; s%@FEATURE_BASE@%$ft_BASE%g; s%@FEATURE_REQUIRES@%$ft_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$ft_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ft_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ft_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-ft.pc.tmp" > "src/cairo-ft.pc" && rm -f "src/cairo-ft.pc.tmp" ||
  32730. as_fn_error $? "failed to update src/cairo-ft.pc" "$LINENO" 5
  32731. ;;
  32732. "cairo-ft-uninstalled.pc":F) mv "cairo-ft-uninstalled.pc" "cairo-ft-uninstalled.pc.tmp" &&
  32733. $SED " s%@FEATURE_PC@%cairo-ft%g; s%@FEATURE_NAME@%FreeType font backend%g; s%@FEATURE_BASE@%$ft_BASE%g; s%@FEATURE_REQUIRES@%$ft_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$ft_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ft_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ft_NONPKGCONFIG_CFLAGS%g; " < "cairo-ft-uninstalled.pc.tmp" > "cairo-ft-uninstalled.pc" && rm -f "cairo-ft-uninstalled.pc.tmp" ||
  32734. as_fn_error $? "failed to update cairo-ft-uninstalled.pc" "$LINENO" 5
  32735. ;;
  32736. "src/cairo-fc.pc":F) mv "src/cairo-fc.pc" "src/cairo-fc.pc.tmp" &&
  32737. $SED " s%@FEATURE_PC@%cairo-fc%g; s%@FEATURE_NAME@%Fontconfig font backend%g; s%@FEATURE_BASE@%$fc_BASE%g; s%@FEATURE_REQUIRES@%$fc_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$fc_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$fc_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$fc_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-fc.pc.tmp" > "src/cairo-fc.pc" && rm -f "src/cairo-fc.pc.tmp" ||
  32738. as_fn_error $? "failed to update src/cairo-fc.pc" "$LINENO" 5
  32739. ;;
  32740. "cairo-fc-uninstalled.pc":F) mv "cairo-fc-uninstalled.pc" "cairo-fc-uninstalled.pc.tmp" &&
  32741. $SED " s%@FEATURE_PC@%cairo-fc%g; s%@FEATURE_NAME@%Fontconfig font backend%g; s%@FEATURE_BASE@%$fc_BASE%g; s%@FEATURE_REQUIRES@%$fc_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$fc_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$fc_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$fc_NONPKGCONFIG_CFLAGS%g; " < "cairo-fc-uninstalled.pc.tmp" > "cairo-fc-uninstalled.pc" && rm -f "cairo-fc-uninstalled.pc.tmp" ||
  32742. as_fn_error $? "failed to update cairo-fc-uninstalled.pc" "$LINENO" 5
  32743. ;;
  32744. "src/cairo-ps.pc":F) mv "src/cairo-ps.pc" "src/cairo-ps.pc.tmp" &&
  32745. $SED " s%@FEATURE_PC@%cairo-ps%g; s%@FEATURE_NAME@%PostScript surface backend%g; s%@FEATURE_BASE@%$ps_BASE%g; s%@FEATURE_REQUIRES@%$ps_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$ps_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ps_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ps_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-ps.pc.tmp" > "src/cairo-ps.pc" && rm -f "src/cairo-ps.pc.tmp" ||
  32746. as_fn_error $? "failed to update src/cairo-ps.pc" "$LINENO" 5
  32747. ;;
  32748. "cairo-ps-uninstalled.pc":F) mv "cairo-ps-uninstalled.pc" "cairo-ps-uninstalled.pc.tmp" &&
  32749. $SED " s%@FEATURE_PC@%cairo-ps%g; s%@FEATURE_NAME@%PostScript surface backend%g; s%@FEATURE_BASE@%$ps_BASE%g; s%@FEATURE_REQUIRES@%$ps_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$ps_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ps_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ps_NONPKGCONFIG_CFLAGS%g; " < "cairo-ps-uninstalled.pc.tmp" > "cairo-ps-uninstalled.pc" && rm -f "cairo-ps-uninstalled.pc.tmp" ||
  32750. as_fn_error $? "failed to update cairo-ps-uninstalled.pc" "$LINENO" 5
  32751. ;;
  32752. "src/cairo-pdf.pc":F) mv "src/cairo-pdf.pc" "src/cairo-pdf.pc.tmp" &&
  32753. $SED " s%@FEATURE_PC@%cairo-pdf%g; s%@FEATURE_NAME@%PDF surface backend%g; s%@FEATURE_BASE@%$pdf_BASE%g; s%@FEATURE_REQUIRES@%$pdf_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$pdf_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$pdf_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$pdf_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-pdf.pc.tmp" > "src/cairo-pdf.pc" && rm -f "src/cairo-pdf.pc.tmp" ||
  32754. as_fn_error $? "failed to update src/cairo-pdf.pc" "$LINENO" 5
  32755. ;;
  32756. "cairo-pdf-uninstalled.pc":F) mv "cairo-pdf-uninstalled.pc" "cairo-pdf-uninstalled.pc.tmp" &&
  32757. $SED " s%@FEATURE_PC@%cairo-pdf%g; s%@FEATURE_NAME@%PDF surface backend%g; s%@FEATURE_BASE@%$pdf_BASE%g; s%@FEATURE_REQUIRES@%$pdf_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$pdf_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$pdf_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$pdf_NONPKGCONFIG_CFLAGS%g; " < "cairo-pdf-uninstalled.pc.tmp" > "cairo-pdf-uninstalled.pc" && rm -f "cairo-pdf-uninstalled.pc.tmp" ||
  32758. as_fn_error $? "failed to update cairo-pdf-uninstalled.pc" "$LINENO" 5
  32759. ;;
  32760. "src/cairo-svg.pc":F) mv "src/cairo-svg.pc" "src/cairo-svg.pc.tmp" &&
  32761. $SED " s%@FEATURE_PC@%cairo-svg%g; s%@FEATURE_NAME@%SVG surface backend%g; s%@FEATURE_BASE@%$svg_BASE%g; s%@FEATURE_REQUIRES@%$svg_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$svg_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$svg_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$svg_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-svg.pc.tmp" > "src/cairo-svg.pc" && rm -f "src/cairo-svg.pc.tmp" ||
  32762. as_fn_error $? "failed to update src/cairo-svg.pc" "$LINENO" 5
  32763. ;;
  32764. "cairo-svg-uninstalled.pc":F) mv "cairo-svg-uninstalled.pc" "cairo-svg-uninstalled.pc.tmp" &&
  32765. $SED " s%@FEATURE_PC@%cairo-svg%g; s%@FEATURE_NAME@%SVG surface backend%g; s%@FEATURE_BASE@%$svg_BASE%g; s%@FEATURE_REQUIRES@%$svg_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$svg_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$svg_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$svg_NONPKGCONFIG_CFLAGS%g; " < "cairo-svg-uninstalled.pc.tmp" > "cairo-svg-uninstalled.pc" && rm -f "cairo-svg-uninstalled.pc.tmp" ||
  32766. as_fn_error $? "failed to update cairo-svg-uninstalled.pc" "$LINENO" 5
  32767. ;;
  32768. "src/cairo-tee.pc":F) mv "src/cairo-tee.pc" "src/cairo-tee.pc.tmp" &&
  32769. $SED " s%@FEATURE_PC@%cairo-tee%g; s%@FEATURE_NAME@%tee surface backend%g; s%@FEATURE_BASE@%$tee_BASE%g; s%@FEATURE_REQUIRES@%$tee_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$tee_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$tee_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$tee_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-tee.pc.tmp" > "src/cairo-tee.pc" && rm -f "src/cairo-tee.pc.tmp" ||
  32770. as_fn_error $? "failed to update src/cairo-tee.pc" "$LINENO" 5
  32771. ;;
  32772. "cairo-tee-uninstalled.pc":F) mv "cairo-tee-uninstalled.pc" "cairo-tee-uninstalled.pc.tmp" &&
  32773. $SED " s%@FEATURE_PC@%cairo-tee%g; s%@FEATURE_NAME@%tee surface backend%g; s%@FEATURE_BASE@%$tee_BASE%g; s%@FEATURE_REQUIRES@%$tee_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$tee_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$tee_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$tee_NONPKGCONFIG_CFLAGS%g; " < "cairo-tee-uninstalled.pc.tmp" > "cairo-tee-uninstalled.pc" && rm -f "cairo-tee-uninstalled.pc.tmp" ||
  32774. as_fn_error $? "failed to update cairo-tee-uninstalled.pc" "$LINENO" 5
  32775. ;;
  32776. "src/cairo-xml.pc":F) mv "src/cairo-xml.pc" "src/cairo-xml.pc.tmp" &&
  32777. $SED " s%@FEATURE_PC@%cairo-xml%g; s%@FEATURE_NAME@%xml surface backend%g; s%@FEATURE_BASE@%$xml_BASE%g; s%@FEATURE_REQUIRES@%$xml_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xml_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xml_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xml_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-xml.pc.tmp" > "src/cairo-xml.pc" && rm -f "src/cairo-xml.pc.tmp" ||
  32778. as_fn_error $? "failed to update src/cairo-xml.pc" "$LINENO" 5
  32779. ;;
  32780. "cairo-xml-uninstalled.pc":F) mv "cairo-xml-uninstalled.pc" "cairo-xml-uninstalled.pc.tmp" &&
  32781. $SED " s%@FEATURE_PC@%cairo-xml%g; s%@FEATURE_NAME@%xml surface backend%g; s%@FEATURE_BASE@%$xml_BASE%g; s%@FEATURE_REQUIRES@%$xml_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$xml_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xml_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xml_NONPKGCONFIG_CFLAGS%g; " < "cairo-xml-uninstalled.pc.tmp" > "cairo-xml-uninstalled.pc" && rm -f "cairo-xml-uninstalled.pc.tmp" ||
  32782. as_fn_error $? "failed to update cairo-xml-uninstalled.pc" "$LINENO" 5
  32783. ;;
  32784. "src/cairo-gobject.pc":F) mv "src/cairo-gobject.pc" "src/cairo-gobject.pc.tmp" &&
  32785. $SED " s%@FEATURE_PC@%cairo-gobject%g; s%@FEATURE_NAME@%gobject functions%g; s%@FEATURE_BASE@%$gobject_BASE%g; s%@FEATURE_REQUIRES@%$gobject_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gobject_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gobject_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gobject_NONPKGCONFIG_CFLAGS%g; " < "src/cairo-gobject.pc.tmp" > "src/cairo-gobject.pc" && rm -f "src/cairo-gobject.pc.tmp" ||
  32786. as_fn_error $? "failed to update src/cairo-gobject.pc" "$LINENO" 5
  32787. ;;
  32788. "cairo-gobject-uninstalled.pc":F) mv "cairo-gobject-uninstalled.pc" "cairo-gobject-uninstalled.pc.tmp" &&
  32789. $SED " s%@FEATURE_PC@%cairo-gobject%g; s%@FEATURE_NAME@%gobject functions%g; s%@FEATURE_BASE@%$gobject_BASE%g; s%@FEATURE_REQUIRES@%$gobject_REQUIRES%g; s%@FEATURE_NONPKGCONFIG_LIBS@%$gobject_NONPKGCONFIG_LIBS%g; s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gobject_NONPKGCONFIG_EXTRA_LIBS%g; s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gobject_NONPKGCONFIG_CFLAGS%g; " < "cairo-gobject-uninstalled.pc.tmp" > "cairo-gobject-uninstalled.pc" && rm -f "cairo-gobject-uninstalled.pc.tmp" ||
  32790. as_fn_error $? "failed to update cairo-gobject-uninstalled.pc" "$LINENO" 5
  32791. ;;
  32792. "cairo-trace":C) chmod a+x util/cairo-trace/cairo-trace ;;
  32793. esac
  32794. done # for ac_tag
  32795. as_fn_exit 0
  32796. _ACEOF
  32797. ac_clean_files=$ac_clean_files_save
  32798. test $ac_write_fail = 0 ||
  32799. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  32800. # configure is writing to config.log, and then calls config.status.
  32801. # config.status does its own redirection, appending to config.log.
  32802. # Unfortunately, on DOS this fails, as config.log is still kept open
  32803. # by configure, so config.status won't be able to write to it; its
  32804. # output is simply discarded. So we exec the FD to /dev/null,
  32805. # effectively closing config.log, so it can be properly (re)opened and
  32806. # appended to by config.status. When coming back to configure, we
  32807. # need to make the FD available again.
  32808. if test "$no_create" != yes; then
  32809. ac_cs_success=:
  32810. ac_config_status_args=
  32811. test "$silent" = yes &&
  32812. ac_config_status_args="$ac_config_status_args --quiet"
  32813. exec 5>/dev/null
  32814. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  32815. exec 5>>config.log
  32816. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  32817. # would make configure fail if this is the last instruction.
  32818. $ac_cs_success || as_fn_exit 1
  32819. fi
  32820. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  32821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  32822. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  32823. fi
  32824. V="$CAIRO_VERSION_MAJOR.$CAIRO_VERSION_MINOR.$CAIRO_VERSION_MICRO"
  32825. echo ""
  32826. echo "cairo (version $V [$CAIRO_RELEASE_STATUS]) will be compiled with:"
  32827. echo ""
  32828. echo "The following surface backends:"
  32829. echo " Image: yes (always builtin)"
  32830. echo " Recording: yes (always builtin)"
  32831. echo " Observer: yes (always builtin)"
  32832. echo " Mime: yes (always builtin)"
  32833. echo " Tee: $use_tee"
  32834. echo " XML: $use_xml"
  32835. #echo " Skia: $use_skia"
  32836. echo " Xlib: $use_xlib"
  32837. echo " Xlib Xrender: $use_xlib_xrender"
  32838. echo " Qt: $use_qt"
  32839. echo " Quartz: $use_quartz"
  32840. echo " Quartz-image: $use_quartz_image"
  32841. echo " XCB: $use_xcb"
  32842. echo " Win32: $use_win32"
  32843. echo " OS2: $use_os2"
  32844. echo " CairoScript: $use_script"
  32845. echo " PostScript: $use_ps"
  32846. echo " PDF: $use_pdf"
  32847. echo " SVG: $use_svg"
  32848. echo " OpenGL: $use_gl"
  32849. echo " OpenGL ES 2.0: $use_glesv2"
  32850. echo " OpenGL ES 3.0: $use_glesv3"
  32851. echo " BeOS: $use_beos"
  32852. echo " DirectFB: $use_directfb"
  32853. echo " OpenVG: $use_vg"
  32854. echo " DRM: $use_drm"
  32855. echo " Cogl: $use_cogl"
  32856. echo ""
  32857. echo "The following font backends:"
  32858. echo " User: yes (always builtin)"
  32859. echo " FreeType: $use_ft"
  32860. echo " Fontconfig: $use_fc"
  32861. echo " Win32: $use_win32_font"
  32862. echo " Quartz: $use_quartz_font"
  32863. echo ""
  32864. echo "The following functions:"
  32865. echo " PNG functions: $use_png"
  32866. echo " GLX functions: $use_glx"
  32867. echo " WGL functions: $use_wgl"
  32868. echo " EGL functions: $use_egl"
  32869. echo " X11-xcb functions: $use_xlib_xcb"
  32870. echo " XCB-shm functions: $use_xcb_shm"
  32871. echo ""
  32872. echo "The following features and utilities:"
  32873. echo " cairo-trace: $use_trace"
  32874. echo " cairo-script-interpreter: $use_interpreter"
  32875. echo ""
  32876. echo "And the following internal features:"
  32877. echo " pthread: $use_pthread"
  32878. echo " gtk-doc: $enable_gtk_doc"
  32879. echo " gcov support: $use_gcov"
  32880. echo " symbol-lookup: $use_symbol_lookup"
  32881. echo " test surfaces: $use_test_surfaces"
  32882. echo " ps testing: $test_ps"
  32883. echo " pdf testing: $test_pdf"
  32884. echo " svg testing: $test_svg"
  32885. if test x"$use_win32" = "xyes"; then
  32886. echo " win32 printing testing: $test_win32_printing"
  32887. fi
  32888. echo "$CAIRO_WARNING_MESSAGE"
  32889. echo ""