configure 885 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for graphviz 12.2.1.
  4. #
  5. # Report bugs to <https://gitlab.com/graphviz/graphviz/-/issues>.
  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. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: https://gitlab.com/graphviz/graphviz/-/issues about
  260. $0: your system, including any error possibly output before
  261. $0: this message. Then install a modern shell, or manually
  262. $0: run the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. lt_ltdl_dir='libltdl'
  524. lt_dlopen_dir=$lt_ltdl_dir
  525. test -n "$DJDIR" || exec 7<&0 </dev/null
  526. exec 6>&1
  527. # Name of the host.
  528. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  529. # so uname gets run too.
  530. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  531. #
  532. # Initializations.
  533. #
  534. ac_default_prefix=/usr/local
  535. ac_clean_files=
  536. ac_config_libobj_dir=.
  537. LIBOBJS=
  538. cross_compiling=no
  539. subdirs=
  540. MFLAGS=
  541. MAKEFLAGS=
  542. # Identity of this package.
  543. PACKAGE_NAME='graphviz'
  544. PACKAGE_TARNAME='graphviz'
  545. PACKAGE_VERSION='12.2.1'
  546. PACKAGE_STRING='graphviz 12.2.1'
  547. PACKAGE_BUGREPORT='https://gitlab.com/graphviz/graphviz/-/issues'
  548. PACKAGE_URL=''
  549. ac_unique_file="configure.ac"
  550. ac_default_prefix=/usr/local
  551. # Factoring default headers for most tests.
  552. ac_includes_default="\
  553. #include <stdio.h>
  554. #ifdef HAVE_SYS_TYPES_H
  555. # include <sys/types.h>
  556. #endif
  557. #ifdef HAVE_SYS_STAT_H
  558. # include <sys/stat.h>
  559. #endif
  560. #ifdef STDC_HEADERS
  561. # include <stdlib.h>
  562. # include <stddef.h>
  563. #else
  564. # ifdef HAVE_STDLIB_H
  565. # include <stdlib.h>
  566. # endif
  567. #endif
  568. #ifdef HAVE_STRING_H
  569. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  570. # include <memory.h>
  571. # endif
  572. # include <string.h>
  573. #endif
  574. #ifdef HAVE_STRINGS_H
  575. # include <strings.h>
  576. #endif
  577. #ifdef HAVE_INTTYPES_H
  578. # include <inttypes.h>
  579. #endif
  580. #ifdef HAVE_STDINT_H
  581. # include <stdint.h>
  582. #endif
  583. #ifdef HAVE_UNISTD_H
  584. # include <unistd.h>
  585. #endif"
  586. enable_option_checking=no
  587. ac_subst_vars='ltdl_LTLIBOBJS
  588. ltdl_LIBOBJS
  589. am__EXEEXT_FALSE
  590. am__EXEEXT_TRUE
  591. LTLIBOBJS
  592. WITH_CGRAPH_FALSE
  593. WITH_CGRAPH_TRUE
  594. WITH_IPSEPCOLA_FALSE
  595. WITH_IPSEPCOLA_TRUE
  596. IPSEPCOLA_LIBS
  597. IPSEPCOLA_INCLUDES
  598. WITH_ORTHO_FALSE
  599. WITH_ORTHO_TRUE
  600. WITH_SMYRNA_FALSE
  601. WITH_SMYRNA_TRUE
  602. WITH_SFDP_FALSE
  603. WITH_SFDP_TRUE
  604. TCL_PKGINDEX_SWIG
  605. TCL_PKGINDEX_GD
  606. TCL_PKGINDEX
  607. TCLINT_INCLUDES
  608. GLUT_LIBS
  609. GLUT_CFLAGS
  610. WITH_LIBGD_FALSE
  611. WITH_LIBGD_TRUE
  612. GDLIB_CONFIG
  613. GDLIB_LIBS
  614. GDLIB_CFLAGS
  615. WITH_GDIPLUS_FALSE
  616. WITH_GDIPLUS_TRUE
  617. GDIPLUS_LIBS
  618. GDIPLUS_CFLAGS
  619. GDIPLUS_HEADS
  620. PLATFORMSDKLIB
  621. PLATFORMSDKINCLUDE
  622. WITH_QUARTZ_FALSE
  623. WITH_QUARTZ_TRUE
  624. QUARTZ_LIBS
  625. QUARTZ_CFLAGS
  626. WITH_QT_FALSE
  627. WITH_QT_TRUE
  628. QTGUI_LIBS
  629. QTGUI_CFLAGS
  630. QTCORE_LIBS
  631. QTCORE_CFLAGS
  632. QMAKE
  633. WITH_GLADE_FALSE
  634. WITH_GLADE_TRUE
  635. GLADE_LIBS
  636. GLADE_CFLAGS
  637. WITH_ANN_FALSE
  638. WITH_ANN_TRUE
  639. ANN_LIBS
  640. ANN_CFLAGS
  641. WITH_GTS_FALSE
  642. WITH_GTS_TRUE
  643. GTS_LIBS
  644. GTS_CFLAGS
  645. WITH_GTKGLEXT_FALSE
  646. WITH_GTKGLEXT_TRUE
  647. GTKGLEXT_LIBS
  648. GTKGLEXT_CFLAGS
  649. WITH_GTKGL_FALSE
  650. WITH_GTKGL_TRUE
  651. GTKGL_LIBS
  652. GTKGL_CFLAGS
  653. WITH_GTK_FALSE
  654. WITH_GTK_TRUE
  655. GTK_LIBS
  656. GTK_CFLAGS
  657. WITH_GDK_PIXBUF_FALSE
  658. WITH_GDK_PIXBUF_TRUE
  659. GDK_PIXBUF_LIBS
  660. GDK_PIXBUF_CFLAGS
  661. WITH_GDK_FALSE
  662. WITH_GDK_TRUE
  663. GDK_LIBS
  664. GDK_CFLAGS
  665. FREETYPE2_LIBS
  666. FREETYPE2_CFLAGS
  667. WITH_LASI_FALSE
  668. WITH_LASI_TRUE
  669. LASI_LIBS
  670. LASI_CFLAGS
  671. PANGOFT2_LIBS
  672. PANGOFT2_CFLAGS
  673. WITH_PANGOCAIRO_FALSE
  674. WITH_PANGOCAIRO_TRUE
  675. PANGOCAIRO_LIBS
  676. PANGOCAIRO_CFLAGS
  677. WITH_GS_FALSE
  678. WITH_GS_TRUE
  679. GS_LIBS
  680. GS_CFLAGS
  681. WITH_RSVG_FALSE
  682. WITH_RSVG_TRUE
  683. RSVG_LIBS
  684. RSVG_CFLAGS
  685. WITH_POPPLER_FALSE
  686. WITH_POPPLER_TRUE
  687. POPPLER_LIBS
  688. POPPLER_CFLAGS
  689. WITH_WEBP_FALSE
  690. WITH_WEBP_TRUE
  691. WEBP_LIBS
  692. WEBP_CFLAGS
  693. Z_LIBS
  694. Z_INCLUDES
  695. WITH_DEVIL_FALSE
  696. WITH_DEVIL_TRUE
  697. DEVIL_LIBS
  698. DEVIL_INCLUDES
  699. EXPAT_LIBS
  700. EXPAT_CFLAGS
  701. TCL_STUB_LIB_SPEC
  702. TCL_SRC_DIR
  703. TCL_SHLIB_SUFFIX
  704. TCL_LIBS
  705. TCL_DEFS
  706. TCL_CFLAGS
  707. TCL_PATCH_LEVEL
  708. TCL_MINOR_VERSION
  709. TCL_MAJOR_VERSION
  710. TCL_VERSION
  711. WITH_TCL_FALSE
  712. WITH_TCL_TRUE
  713. TCL_INSTALL_DIR
  714. TCLCONFIG
  715. TCLSH_EXEC_PREFIX
  716. TCL_INCLUDES
  717. WITH_RUBY_FALSE
  718. WITH_RUBY_TRUE
  719. RUBY_INSTALL_DIR
  720. RUBY
  721. RUBY_LIBS
  722. RUBY_CFLAGS
  723. WITH_R_FALSE
  724. WITH_R_TRUE
  725. R_LIBS
  726. R_CFLAGS
  727. WITH_PYTHON3_FALSE
  728. WITH_PYTHON3_TRUE
  729. PYTHON3_LIBS
  730. PYTHON3_INCLUDES
  731. PYTHON3_INSTALL_DIR
  732. PYTHON3
  733. WITH_PHP_FALSE
  734. WITH_PHP_TRUE
  735. SWIG_PHP_OPT
  736. PHP_LIBS
  737. PHP_INSTALL_DATADIR
  738. PHP_INSTALL_DIR
  739. PHP_INCLUDES
  740. PHPCONFIG
  741. PHP
  742. WITH_PERL_FALSE
  743. WITH_PERL_TRUE
  744. PERL_INSTALL_DIR
  745. PERL_LIBS
  746. PERL_INCLUDES
  747. PERL
  748. WITH_LUA_FALSE
  749. WITH_LUA_TRUE
  750. LUA_INSTALL_DIR
  751. LUA_LIBS
  752. LUA_INCLUDES
  753. LUA
  754. WITH_JAVASCRIPT_FALSE
  755. WITH_JAVASCRIPT_TRUE
  756. JAVASCRIPT
  757. WITH_JAVA_FALSE
  758. WITH_JAVA_TRUE
  759. JAVA_LIBS
  760. JAVA_INCLUDES
  761. JAVA
  762. WITH_GUILE_FALSE
  763. WITH_GUILE_TRUE
  764. GUILE_LIBS
  765. GUILE_CFLAGS
  766. WITH_GO_FALSE
  767. WITH_GO_TRUE
  768. GO_LIBS
  769. GO_INCLUDES
  770. GO
  771. WITH_D_FALSE
  772. WITH_D_TRUE
  773. WITH_SHARP_FALSE
  774. WITH_SHARP_TRUE
  775. MCS
  776. WITH_SWIG_PHP_DATA_FALSE
  777. WITH_SWIG_PHP_DATA_TRUE
  778. WITH_SWIG_FALSE
  779. WITH_SWIG_TRUE
  780. SWIG_PHP_DATA_TO_PACKAGE
  781. SWIG_PHP_DATA
  782. SWIGJAVA_CPPFLAGS
  783. SWIG_VERSION
  784. SWIG
  785. WITH_X_FALSE
  786. WITH_X_TRUE
  787. XRENDER_LIBS
  788. XRENDER_CFLAGS
  789. X_EXTRA_LIBS
  790. X_LIBS
  791. X_PRE_LIBS
  792. X_CFLAGS
  793. XMKMF
  794. ENABLE_LTDL_FALSE
  795. ENABLE_LTDL_TRUE
  796. LTDLOPEN
  797. LT_CONFIG_H
  798. subdirs
  799. CONVENIENCE_LTDL_FALSE
  800. CONVENIENCE_LTDL_TRUE
  801. INSTALL_LTDL_FALSE
  802. INSTALL_LTDL_TRUE
  803. LT_ARGZ_H
  804. sys_symbol_underscore
  805. LIBADD_DL
  806. LT_DLPREOPEN
  807. LIBADD_DLD_LINK
  808. LIBADD_SHL_LOAD
  809. LIBADD_DLOPEN
  810. LT_DLLOADERS
  811. INCLTDL
  812. LTDLINCL
  813. LTDLDEPS
  814. LIBLTDL
  815. LIBOBJS
  816. MATH_LIBS
  817. DEBUG_FALSE
  818. DEBUG_TRUE
  819. am__fastdepOBJC_FALSE
  820. am__fastdepOBJC_TRUE
  821. OBJCDEPMODE
  822. ac_ct_OBJC
  823. OBJCFLAGS
  824. OBJC
  825. HAVE_CXX17
  826. CXXCPP
  827. am__fastdepCXX_FALSE
  828. am__fastdepCXX_TRUE
  829. CXXDEPMODE
  830. ac_ct_CXX
  831. CXXFLAGS
  832. CXX
  833. TCLSH
  834. PKG_CONFIG_LIBDIR
  835. PKG_CONFIG_PATH
  836. PKG_CONFIG
  837. pkgconfigdir
  838. demodir
  839. INSTALL_DEMOS_FALSE
  840. INSTALL_DEMOS_TRUE
  841. ENABLE_MAN_PDFS_FALSE
  842. ENABLE_MAN_PDFS_TRUE
  843. PS2PDF
  844. GROFF
  845. CPP
  846. LT_SYS_LIBRARY_PATH
  847. OTOOL64
  848. OTOOL
  849. LIPO
  850. NMEDIT
  851. DSYMUTIL
  852. MANIFEST_TOOL
  853. RANLIB
  854. ac_ct_AR
  855. AR
  856. DLLTOOL
  857. OBJDUMP
  858. NM
  859. ac_ct_DUMPBIN
  860. DUMPBIN
  861. LD
  862. FGREP
  863. SED
  864. LIBTOOL
  865. LN_S
  866. EGREP
  867. GREP
  868. YFLAGS
  869. YACC
  870. LEXLIB
  871. am__fastdepCC_FALSE
  872. am__fastdepCC_TRUE
  873. CCDEPMODE
  874. am__nodep
  875. AMDEPBACKSLASH
  876. AMDEP_FALSE
  877. AMDEP_TRUE
  878. am__include
  879. DEPDIR
  880. OBJEXT
  881. EXEEXT
  882. ac_ct_CC
  883. CPPFLAGS
  884. LDFLAGS
  885. CFLAGS
  886. CC
  887. LEX_OUTPUT_ROOT
  888. LEX
  889. ENABLE_SHARED_FALSE
  890. ENABLE_SHARED_TRUE
  891. ENABLE_STATIC_FALSE
  892. ENABLE_STATIC_TRUE
  893. AM_BACKSLASH
  894. AM_DEFAULT_VERBOSITY
  895. AM_DEFAULT_V
  896. AM_V
  897. am__untar
  898. am__tar
  899. AMTAR
  900. am__leading_dot
  901. SET_MAKE
  902. AWK
  903. mkdir_p
  904. MKDIR_P
  905. INSTALL_STRIP_PROGRAM
  906. STRIP
  907. install_sh
  908. MAKEINFO
  909. AUTOHEADER
  910. AUTOMAKE
  911. AUTOCONF
  912. ACLOCAL
  913. VERSION
  914. PACKAGE
  915. CYGPATH_W
  916. am__isrc
  917. INSTALL_DATA
  918. INSTALL_SCRIPT
  919. INSTALL_PROGRAM
  920. WITH_MINGW_FALSE
  921. WITH_MINGW_TRUE
  922. WITH_CYGWIN_FALSE
  923. WITH_CYGWIN_TRUE
  924. WITH_WIN32_FALSE
  925. WITH_WIN32_TRUE
  926. SHARED_LIBRARY_SUFFIX
  927. JSHEXT
  928. JNI_EXTRA_LDFLAGS
  929. DARWIN
  930. MINGW32
  931. CYGWIN
  932. RUBY_VER
  933. INTGOSIZE
  934. LIBPOSTFIX
  935. GVPLUGIN_VERSION
  936. host_os
  937. host_vendor
  938. host_cpu
  939. host
  940. build_os
  941. build_vendor
  942. build_cpu
  943. build
  944. GVPLUGIN_VERSION_INFO
  945. GVPLUGIN_CONFIG_FILE
  946. GRAPHVIZ_CHANGE_DATE
  947. GRAPHVIZ_AUTHOR_EMAIL
  948. GRAPHVIZ_AUTHOR_NAME
  949. GRAPHVIZ_VERSION_DATE
  950. GRAPHVIZ_VERSION_MICRO
  951. GRAPHVIZ_VERSION_MINOR
  952. GRAPHVIZ_VERSION_MAJOR
  953. target_alias
  954. host_alias
  955. build_alias
  956. LIBS
  957. ECHO_T
  958. ECHO_N
  959. ECHO_C
  960. DEFS
  961. mandir
  962. localedir
  963. libdir
  964. psdir
  965. pdfdir
  966. dvidir
  967. htmldir
  968. infodir
  969. docdir
  970. oldincludedir
  971. includedir
  972. runstatedir
  973. localstatedir
  974. sharedstatedir
  975. sysconfdir
  976. datadir
  977. datarootdir
  978. libexecdir
  979. sbindir
  980. bindir
  981. program_transform_name
  982. prefix
  983. exec_prefix
  984. PACKAGE_URL
  985. PACKAGE_BUGREPORT
  986. PACKAGE_STRING
  987. PACKAGE_VERSION
  988. PACKAGE_TARNAME
  989. PACKAGE_NAME
  990. PATH_SEPARATOR
  991. SHELL
  992. am__quote'
  993. ac_subst_files=''
  994. ac_user_opts='
  995. enable_option_checking
  996. enable_silent_rules
  997. enable_static
  998. enable_shared
  999. enable_dependency_tracking
  1000. with_pic
  1001. enable_fast_install
  1002. with_aix_soname
  1003. with_gnu_ld
  1004. with_sysroot
  1005. enable_libtool_lock
  1006. enable_man_pdfs
  1007. with_demos
  1008. with_pkgconfigdir
  1009. with_tclsh
  1010. enable_debug
  1011. with_included_ltdl
  1012. with_ltdl_include
  1013. with_ltdl_lib
  1014. enable_ltdl_install
  1015. enable_ltdl
  1016. with_x
  1017. enable_swig
  1018. enable_sharp
  1019. enable_d
  1020. enable_go
  1021. enable_guile
  1022. enable_java
  1023. with_javaincludedir
  1024. with_javalibdir
  1025. enable_javascript
  1026. enable_lua
  1027. enable_perl
  1028. enable_php
  1029. enable_python
  1030. enable_python3
  1031. enable_r
  1032. enable_ruby
  1033. enable_tcl
  1034. with_extraincludedir
  1035. with_extralibdir
  1036. with_expat
  1037. with_devil
  1038. with_devilincludedir
  1039. with_devillibdir
  1040. with_zincludedir
  1041. with_zlibdir
  1042. with_webp
  1043. with_poppler
  1044. with_rsvg
  1045. with_ghostscript
  1046. with_pangocairo
  1047. with_lasi
  1048. with_freetype2
  1049. with_gdk
  1050. with_gdk_pixbuf
  1051. with_gtk
  1052. with_gtkgl
  1053. with_gtkglext
  1054. with_gts
  1055. with_ann
  1056. with_glade
  1057. with_qt
  1058. with_quartz
  1059. with_platformsdkincludedir
  1060. with_platformsdklibdir
  1061. with_gdiplus
  1062. with_libgd
  1063. with_gdincludedir
  1064. with_gdlibdir
  1065. with_glut
  1066. with_glutincludedir
  1067. with_glutlibdir
  1068. with_sfdp
  1069. with_smyrna
  1070. with_ortho
  1071. with_digcola
  1072. with_ipsepcola
  1073. '
  1074. ac_precious_vars='build_alias
  1075. host_alias
  1076. target_alias
  1077. LIBPOSTFIX
  1078. INTGOSIZE
  1079. RUBY_VER
  1080. CC
  1081. CFLAGS
  1082. LDFLAGS
  1083. LIBS
  1084. CPPFLAGS
  1085. YACC
  1086. YFLAGS
  1087. LT_SYS_LIBRARY_PATH
  1088. CPP
  1089. PKG_CONFIG
  1090. PKG_CONFIG_PATH
  1091. PKG_CONFIG_LIBDIR
  1092. CXX
  1093. CXXFLAGS
  1094. CCC
  1095. CXXCPP
  1096. OBJC
  1097. OBJCFLAGS
  1098. XMKMF
  1099. XRENDER_CFLAGS
  1100. XRENDER_LIBS
  1101. GUILE_CFLAGS
  1102. GUILE_LIBS
  1103. R_CFLAGS
  1104. R_LIBS
  1105. RUBY_CFLAGS
  1106. RUBY_LIBS
  1107. EXPAT_CFLAGS
  1108. EXPAT_LIBS
  1109. WEBP_CFLAGS
  1110. WEBP_LIBS
  1111. POPPLER_CFLAGS
  1112. POPPLER_LIBS
  1113. RSVG_CFLAGS
  1114. RSVG_LIBS
  1115. PANGOCAIRO_CFLAGS
  1116. PANGOCAIRO_LIBS
  1117. PANGOFT2_CFLAGS
  1118. PANGOFT2_LIBS
  1119. LASI_CFLAGS
  1120. LASI_LIBS
  1121. FREETYPE2_CFLAGS
  1122. FREETYPE2_LIBS
  1123. GDK_CFLAGS
  1124. GDK_LIBS
  1125. GDK_PIXBUF_CFLAGS
  1126. GDK_PIXBUF_LIBS
  1127. GTK_CFLAGS
  1128. GTK_LIBS
  1129. GTKGL_CFLAGS
  1130. GTKGL_LIBS
  1131. GTKGLEXT_CFLAGS
  1132. GTKGLEXT_LIBS
  1133. GTS_CFLAGS
  1134. GTS_LIBS
  1135. ANN_CFLAGS
  1136. ANN_LIBS
  1137. GLADE_CFLAGS
  1138. GLADE_LIBS
  1139. QTCORE_CFLAGS
  1140. QTCORE_LIBS
  1141. QTGUI_CFLAGS
  1142. QTGUI_LIBS
  1143. GDLIB_CFLAGS
  1144. GDLIB_LIBS'
  1145. ac_subdirs_all='libltdl'
  1146. # Initialize some variables set by options.
  1147. ac_init_help=
  1148. ac_init_version=false
  1149. ac_unrecognized_opts=
  1150. ac_unrecognized_sep=
  1151. # The variables have the same names as the options, with
  1152. # dashes changed to underlines.
  1153. cache_file=/dev/null
  1154. exec_prefix=NONE
  1155. no_create=
  1156. no_recursion=
  1157. prefix=NONE
  1158. program_prefix=NONE
  1159. program_suffix=NONE
  1160. program_transform_name=s,x,x,
  1161. silent=
  1162. site=
  1163. srcdir=
  1164. verbose=
  1165. x_includes=NONE
  1166. x_libraries=NONE
  1167. # Installation directory options.
  1168. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1169. # and all the variables that are supposed to be based on exec_prefix
  1170. # by default will actually change.
  1171. # Use braces instead of parens because sh, perl, etc. also accept them.
  1172. # (The list follows the same order as the GNU Coding Standards.)
  1173. bindir='${exec_prefix}/bin'
  1174. sbindir='${exec_prefix}/sbin'
  1175. libexecdir='${exec_prefix}/libexec'
  1176. datarootdir='${prefix}/share'
  1177. datadir='${datarootdir}'
  1178. sysconfdir='${prefix}/etc'
  1179. sharedstatedir='${prefix}/com'
  1180. localstatedir='${prefix}/var'
  1181. runstatedir='${localstatedir}/run'
  1182. includedir='${prefix}/include'
  1183. oldincludedir='/usr/include'
  1184. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1185. infodir='${datarootdir}/info'
  1186. htmldir='${docdir}'
  1187. dvidir='${docdir}'
  1188. pdfdir='${docdir}'
  1189. psdir='${docdir}'
  1190. libdir='${exec_prefix}/lib'
  1191. localedir='${datarootdir}/locale'
  1192. mandir='${datarootdir}/man'
  1193. ac_prev=
  1194. ac_dashdash=
  1195. for ac_option
  1196. do
  1197. # If the previous option needs an argument, assign it.
  1198. if test -n "$ac_prev"; then
  1199. eval $ac_prev=\$ac_option
  1200. ac_prev=
  1201. continue
  1202. fi
  1203. case $ac_option in
  1204. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1205. *=) ac_optarg= ;;
  1206. *) ac_optarg=yes ;;
  1207. esac
  1208. # Accept the important Cygnus configure options, so we can diagnose typos.
  1209. case $ac_dashdash$ac_option in
  1210. --)
  1211. ac_dashdash=yes ;;
  1212. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1213. ac_prev=bindir ;;
  1214. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1215. bindir=$ac_optarg ;;
  1216. -build | --build | --buil | --bui | --bu)
  1217. ac_prev=build_alias ;;
  1218. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1219. build_alias=$ac_optarg ;;
  1220. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1221. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1222. ac_prev=cache_file ;;
  1223. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1224. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1225. cache_file=$ac_optarg ;;
  1226. --config-cache | -C)
  1227. cache_file=config.cache ;;
  1228. -datadir | --datadir | --datadi | --datad)
  1229. ac_prev=datadir ;;
  1230. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1231. datadir=$ac_optarg ;;
  1232. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1233. | --dataroo | --dataro | --datar)
  1234. ac_prev=datarootdir ;;
  1235. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1236. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1237. datarootdir=$ac_optarg ;;
  1238. -disable-* | --disable-*)
  1239. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. as_fn_error $? "invalid feature name: $ac_useropt"
  1243. ac_useropt_orig=$ac_useropt
  1244. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1245. case $ac_user_opts in
  1246. *"
  1247. "enable_$ac_useropt"
  1248. "*) ;;
  1249. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1250. ac_unrecognized_sep=', ';;
  1251. esac
  1252. eval enable_$ac_useropt=no ;;
  1253. -docdir | --docdir | --docdi | --doc | --do)
  1254. ac_prev=docdir ;;
  1255. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1256. docdir=$ac_optarg ;;
  1257. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1258. ac_prev=dvidir ;;
  1259. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1260. dvidir=$ac_optarg ;;
  1261. -enable-* | --enable-*)
  1262. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1263. # Reject names that are not valid shell variable names.
  1264. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1265. as_fn_error $? "invalid feature name: $ac_useropt"
  1266. ac_useropt_orig=$ac_useropt
  1267. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1268. case $ac_user_opts in
  1269. *"
  1270. "enable_$ac_useropt"
  1271. "*) ;;
  1272. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1273. ac_unrecognized_sep=', ';;
  1274. esac
  1275. eval enable_$ac_useropt=\$ac_optarg ;;
  1276. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1277. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1278. | --exec | --exe | --ex)
  1279. ac_prev=exec_prefix ;;
  1280. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1281. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1282. | --exec=* | --exe=* | --ex=*)
  1283. exec_prefix=$ac_optarg ;;
  1284. -gas | --gas | --ga | --g)
  1285. # Obsolete; use --with-gas.
  1286. with_gas=yes ;;
  1287. -help | --help | --hel | --he | -h)
  1288. ac_init_help=long ;;
  1289. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1290. ac_init_help=recursive ;;
  1291. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1292. ac_init_help=short ;;
  1293. -host | --host | --hos | --ho)
  1294. ac_prev=host_alias ;;
  1295. -host=* | --host=* | --hos=* | --ho=*)
  1296. host_alias=$ac_optarg ;;
  1297. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1298. ac_prev=htmldir ;;
  1299. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1300. | --ht=*)
  1301. htmldir=$ac_optarg ;;
  1302. -includedir | --includedir | --includedi | --included | --include \
  1303. | --includ | --inclu | --incl | --inc)
  1304. ac_prev=includedir ;;
  1305. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1306. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1307. includedir=$ac_optarg ;;
  1308. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1309. ac_prev=infodir ;;
  1310. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1311. infodir=$ac_optarg ;;
  1312. -libdir | --libdir | --libdi | --libd)
  1313. ac_prev=libdir ;;
  1314. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1315. libdir=$ac_optarg ;;
  1316. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1317. | --libexe | --libex | --libe)
  1318. ac_prev=libexecdir ;;
  1319. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1320. | --libexe=* | --libex=* | --libe=*)
  1321. libexecdir=$ac_optarg ;;
  1322. -localedir | --localedir | --localedi | --localed | --locale)
  1323. ac_prev=localedir ;;
  1324. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1325. localedir=$ac_optarg ;;
  1326. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1327. | --localstate | --localstat | --localsta | --localst | --locals)
  1328. ac_prev=localstatedir ;;
  1329. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1330. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1331. localstatedir=$ac_optarg ;;
  1332. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1333. ac_prev=mandir ;;
  1334. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1335. mandir=$ac_optarg ;;
  1336. -nfp | --nfp | --nf)
  1337. # Obsolete; use --without-fp.
  1338. with_fp=no ;;
  1339. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1340. | --no-cr | --no-c | -n)
  1341. no_create=yes ;;
  1342. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1343. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1344. no_recursion=yes ;;
  1345. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1346. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1347. | --oldin | --oldi | --old | --ol | --o)
  1348. ac_prev=oldincludedir ;;
  1349. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1350. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1351. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1352. oldincludedir=$ac_optarg ;;
  1353. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1354. ac_prev=prefix ;;
  1355. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1356. prefix=$ac_optarg ;;
  1357. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1358. | --program-pre | --program-pr | --program-p)
  1359. ac_prev=program_prefix ;;
  1360. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1361. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1362. program_prefix=$ac_optarg ;;
  1363. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1364. | --program-suf | --program-su | --program-s)
  1365. ac_prev=program_suffix ;;
  1366. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1367. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1368. program_suffix=$ac_optarg ;;
  1369. -program-transform-name | --program-transform-name \
  1370. | --program-transform-nam | --program-transform-na \
  1371. | --program-transform-n | --program-transform- \
  1372. | --program-transform | --program-transfor \
  1373. | --program-transfo | --program-transf \
  1374. | --program-trans | --program-tran \
  1375. | --progr-tra | --program-tr | --program-t)
  1376. ac_prev=program_transform_name ;;
  1377. -program-transform-name=* | --program-transform-name=* \
  1378. | --program-transform-nam=* | --program-transform-na=* \
  1379. | --program-transform-n=* | --program-transform-=* \
  1380. | --program-transform=* | --program-transfor=* \
  1381. | --program-transfo=* | --program-transf=* \
  1382. | --program-trans=* | --program-tran=* \
  1383. | --progr-tra=* | --program-tr=* | --program-t=*)
  1384. program_transform_name=$ac_optarg ;;
  1385. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1386. ac_prev=pdfdir ;;
  1387. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1388. pdfdir=$ac_optarg ;;
  1389. -psdir | --psdir | --psdi | --psd | --ps)
  1390. ac_prev=psdir ;;
  1391. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1392. psdir=$ac_optarg ;;
  1393. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1394. | -silent | --silent | --silen | --sile | --sil)
  1395. silent=yes ;;
  1396. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1397. | --runstate | --runstat | --runsta | --runst | --runs \
  1398. | --run | --ru | --r)
  1399. ac_prev=runstatedir ;;
  1400. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1401. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1402. | --run=* | --ru=* | --r=*)
  1403. runstatedir=$ac_optarg ;;
  1404. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1405. ac_prev=sbindir ;;
  1406. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1407. | --sbi=* | --sb=*)
  1408. sbindir=$ac_optarg ;;
  1409. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1410. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1411. | --sharedst | --shareds | --shared | --share | --shar \
  1412. | --sha | --sh)
  1413. ac_prev=sharedstatedir ;;
  1414. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1415. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1416. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1417. | --sha=* | --sh=*)
  1418. sharedstatedir=$ac_optarg ;;
  1419. -site | --site | --sit)
  1420. ac_prev=site ;;
  1421. -site=* | --site=* | --sit=*)
  1422. site=$ac_optarg ;;
  1423. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1424. ac_prev=srcdir ;;
  1425. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1426. srcdir=$ac_optarg ;;
  1427. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1428. | --syscon | --sysco | --sysc | --sys | --sy)
  1429. ac_prev=sysconfdir ;;
  1430. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1431. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1432. sysconfdir=$ac_optarg ;;
  1433. -target | --target | --targe | --targ | --tar | --ta | --t)
  1434. ac_prev=target_alias ;;
  1435. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1436. target_alias=$ac_optarg ;;
  1437. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1438. verbose=yes ;;
  1439. -version | --version | --versio | --versi | --vers | -V)
  1440. ac_init_version=: ;;
  1441. -with-* | --with-*)
  1442. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1443. # Reject names that are not valid shell variable names.
  1444. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1445. as_fn_error $? "invalid package name: $ac_useropt"
  1446. ac_useropt_orig=$ac_useropt
  1447. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1448. case $ac_user_opts in
  1449. *"
  1450. "with_$ac_useropt"
  1451. "*) ;;
  1452. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1453. ac_unrecognized_sep=', ';;
  1454. esac
  1455. eval with_$ac_useropt=\$ac_optarg ;;
  1456. -without-* | --without-*)
  1457. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1458. # Reject names that are not valid shell variable names.
  1459. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1460. as_fn_error $? "invalid package name: $ac_useropt"
  1461. ac_useropt_orig=$ac_useropt
  1462. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1463. case $ac_user_opts in
  1464. *"
  1465. "with_$ac_useropt"
  1466. "*) ;;
  1467. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1468. ac_unrecognized_sep=', ';;
  1469. esac
  1470. eval with_$ac_useropt=no ;;
  1471. --x)
  1472. # Obsolete; use --with-x.
  1473. with_x=yes ;;
  1474. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1475. | --x-incl | --x-inc | --x-in | --x-i)
  1476. ac_prev=x_includes ;;
  1477. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1478. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1479. x_includes=$ac_optarg ;;
  1480. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1481. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1482. ac_prev=x_libraries ;;
  1483. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1484. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1485. x_libraries=$ac_optarg ;;
  1486. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1487. Try \`$0 --help' for more information"
  1488. ;;
  1489. *=*)
  1490. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1491. # Reject names that are not valid shell variable names.
  1492. case $ac_envvar in #(
  1493. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1494. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1495. esac
  1496. eval $ac_envvar=\$ac_optarg
  1497. export $ac_envvar ;;
  1498. *)
  1499. # FIXME: should be removed in autoconf 3.0.
  1500. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1501. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1502. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1503. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1504. ;;
  1505. esac
  1506. done
  1507. if test -n "$ac_prev"; then
  1508. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1509. as_fn_error $? "missing argument to $ac_option"
  1510. fi
  1511. if test -n "$ac_unrecognized_opts"; then
  1512. case $enable_option_checking in
  1513. no) ;;
  1514. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1515. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1516. esac
  1517. fi
  1518. # Check all directory arguments for consistency.
  1519. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1520. datadir sysconfdir sharedstatedir localstatedir includedir \
  1521. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1522. libdir localedir mandir runstatedir
  1523. do
  1524. eval ac_val=\$$ac_var
  1525. # Remove trailing slashes.
  1526. case $ac_val in
  1527. */ )
  1528. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1529. eval $ac_var=\$ac_val;;
  1530. esac
  1531. # Be sure to have absolute directory names.
  1532. case $ac_val in
  1533. [\\/$]* | ?:[\\/]* ) continue;;
  1534. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1535. esac
  1536. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1537. done
  1538. # There might be people who depend on the old broken behavior: `$host'
  1539. # used to hold the argument of --host etc.
  1540. # FIXME: To remove some day.
  1541. build=$build_alias
  1542. host=$host_alias
  1543. target=$target_alias
  1544. # FIXME: To remove some day.
  1545. if test "x$host_alias" != x; then
  1546. if test "x$build_alias" = x; then
  1547. cross_compiling=maybe
  1548. elif test "x$build_alias" != "x$host_alias"; then
  1549. cross_compiling=yes
  1550. fi
  1551. fi
  1552. ac_tool_prefix=
  1553. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1554. test "$silent" = yes && exec 6>/dev/null
  1555. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1556. ac_ls_di=`ls -di .` &&
  1557. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1558. as_fn_error $? "working directory cannot be determined"
  1559. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1560. as_fn_error $? "pwd does not report name of working directory"
  1561. # Find the source files, if location was not specified.
  1562. if test -z "$srcdir"; then
  1563. ac_srcdir_defaulted=yes
  1564. # Try the directory containing this script, then the parent directory.
  1565. ac_confdir=`$as_dirname -- "$as_myself" ||
  1566. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1567. X"$as_myself" : 'X\(//\)[^/]' \| \
  1568. X"$as_myself" : 'X\(//\)$' \| \
  1569. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1570. $as_echo X"$as_myself" |
  1571. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1572. s//\1/
  1573. q
  1574. }
  1575. /^X\(\/\/\)[^/].*/{
  1576. s//\1/
  1577. q
  1578. }
  1579. /^X\(\/\/\)$/{
  1580. s//\1/
  1581. q
  1582. }
  1583. /^X\(\/\).*/{
  1584. s//\1/
  1585. q
  1586. }
  1587. s/.*/./; q'`
  1588. srcdir=$ac_confdir
  1589. if test ! -r "$srcdir/$ac_unique_file"; then
  1590. srcdir=..
  1591. fi
  1592. else
  1593. ac_srcdir_defaulted=no
  1594. fi
  1595. if test ! -r "$srcdir/$ac_unique_file"; then
  1596. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1597. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1598. fi
  1599. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1600. ac_abs_confdir=`(
  1601. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1602. pwd)`
  1603. # When building in place, set srcdir=.
  1604. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1605. srcdir=.
  1606. fi
  1607. # Remove unnecessary trailing slashes from srcdir.
  1608. # Double slashes in file names in object file debugging info
  1609. # mess up M-x gdb in Emacs.
  1610. case $srcdir in
  1611. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1612. esac
  1613. for ac_var in $ac_precious_vars; do
  1614. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1615. eval ac_env_${ac_var}_value=\$${ac_var}
  1616. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1617. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1618. done
  1619. #
  1620. # Report the --help message.
  1621. #
  1622. if test "$ac_init_help" = "long"; then
  1623. # Omit some internal or obsolete options to make the list less imposing.
  1624. # This message is too long to be a string in the A/UX 3.1 sh.
  1625. cat <<_ACEOF
  1626. \`configure' configures graphviz 12.2.1 to adapt to many kinds of systems.
  1627. Usage: $0 [OPTION]... [VAR=VALUE]...
  1628. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1629. VAR=VALUE. See below for descriptions of some of the useful variables.
  1630. Defaults for the options are specified in brackets.
  1631. Configuration:
  1632. -h, --help display this help and exit
  1633. --help=short display options specific to this package
  1634. --help=recursive display the short help of all the included packages
  1635. -V, --version display version information and exit
  1636. -q, --quiet, --silent do not print \`checking ...' messages
  1637. --cache-file=FILE cache test results in FILE [disabled]
  1638. -C, --config-cache alias for \`--cache-file=config.cache'
  1639. -n, --no-create do not create output files
  1640. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1641. Installation directories:
  1642. --prefix=PREFIX install architecture-independent files in PREFIX
  1643. [$ac_default_prefix]
  1644. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1645. [PREFIX]
  1646. By default, \`make install' will install all the files in
  1647. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1648. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1649. for instance \`--prefix=\$HOME'.
  1650. For better control, use the options below.
  1651. Fine tuning of the installation directories:
  1652. --bindir=DIR user executables [EPREFIX/bin]
  1653. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1654. --libexecdir=DIR program executables [EPREFIX/libexec]
  1655. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1656. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1657. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1658. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1659. --libdir=DIR object code libraries [EPREFIX/lib]
  1660. --includedir=DIR C header files [PREFIX/include]
  1661. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1662. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1663. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1664. --infodir=DIR info documentation [DATAROOTDIR/info]
  1665. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1666. --mandir=DIR man documentation [DATAROOTDIR/man]
  1667. --docdir=DIR documentation root [DATAROOTDIR/doc/graphviz]
  1668. --htmldir=DIR html documentation [DOCDIR]
  1669. --dvidir=DIR dvi documentation [DOCDIR]
  1670. --pdfdir=DIR pdf documentation [DOCDIR]
  1671. --psdir=DIR ps documentation [DOCDIR]
  1672. _ACEOF
  1673. cat <<\_ACEOF
  1674. Program names:
  1675. --program-prefix=PREFIX prepend PREFIX to installed program names
  1676. --program-suffix=SUFFIX append SUFFIX to installed program names
  1677. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1678. X features:
  1679. --x-includes=DIR X include files are in DIR
  1680. --x-libraries=DIR X library files are in DIR
  1681. System types:
  1682. --build=BUILD configure for building on BUILD [guessed]
  1683. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1684. _ACEOF
  1685. fi
  1686. if test -n "$ac_init_help"; then
  1687. case $ac_init_help in
  1688. short | recursive ) echo "Configuration of graphviz 12.2.1:";;
  1689. esac
  1690. cat <<\_ACEOF
  1691. Optional Features:
  1692. --disable-option-checking ignore unrecognized --enable/--with options
  1693. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1694. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1695. --enable-silent-rules less verbose build output (undo: "make V=1")
  1696. --disable-silent-rules verbose build output (undo: "make V=0")
  1697. --enable-static build static executable
  1698. --enable-static[=PKGS] build static libraries [default=yes]
  1699. --enable-shared build shared executable
  1700. --enable-shared[=PKGS] build shared libraries [default=yes]
  1701. --enable-dependency-tracking
  1702. do not reject slow dependency extractors
  1703. --disable-dependency-tracking
  1704. speeds up one-time build
  1705. --enable-fast-install[=PKGS]
  1706. optimize for fast installation [default=yes]
  1707. --disable-libtool-lock avoid locking (might break parallel builds)
  1708. --enable-man-pdfs Generate PDFs of man pages (default: auto)
  1709. --enable-debug Compile the debug version (default: disabled)
  1710. --enable-ltdl-install install libltdl
  1711. --enable-ltdl support on-demand plugin loading
  1712. --enable-swig=yes swig-generated language bindings
  1713. --enable-sharp=yes C# language bindings
  1714. --enable-d=no d language bindings
  1715. --enable-go=yes go language bindings
  1716. --enable-guile=yes guile language bindings
  1717. --enable-java=yes java language bindings
  1718. --enable-javascript=no Javascript language bindings
  1719. --enable-lua=yes lua language bindings
  1720. --enable-perl=yes perl language bindings
  1721. --enable-php=yes php language bindings
  1722. --enable-python=yes python language bindings
  1723. --enable-python3=yes python3 language bindings
  1724. --enable-r=yes R language bindings
  1725. --enable-ruby=yes ruby language bindings
  1726. --enable-tcl=yes tcl language bindings
  1727. Optional Packages:
  1728. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1729. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1730. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1731. both]
  1732. --with-aix-soname=aix|svr4|both
  1733. shared library versioning (aka "SONAME") variant to
  1734. provide on AIX, [default=aix].
  1735. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1736. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1737. compiler's sysroot if not specified).
  1738. --with-demos=DIR Install demos (default: $(pkgdatadir)/demo)
  1739. --with-pkgconfigdir pkg-config installation directory
  1740. ['${libdir}/pkgconfig']
  1741. --with-tclsh=PROG use a specific tclsh
  1742. --with-included-ltdl use the GNU ltdl sources included here
  1743. --with-ltdl-include=DIR use the ltdl headers installed in DIR
  1744. --with-ltdl-lib=DIR use the libltdl.la installed in DIR
  1745. --with-x use the X Window System
  1746. --with-javaincludedir=DIR
  1747. use JAVA includes from DIR
  1748. --with-javalibdir=DIR use JAVA libraries from DIR
  1749. --with-extraincludedir=DIR
  1750. use extra includes from DIR
  1751. --with-extralibdir=DIR use extra libraries from DIR
  1752. --with-expat=yes use expat
  1753. --with-devil=yes DevIL plugin
  1754. --with-devilincludedir=DIR
  1755. use DevIL includes from DIR
  1756. --with-devillibdir=DIR use DevIL libraries from DIR
  1757. --with-zincludedir=DIR use Z includes from DIR
  1758. --with-zlibdir=DIR use Z libraries from DIR
  1759. --with-webp=yes webp library
  1760. --with-poppler=yes poppler library
  1761. --with-rsvg=yes rsvg library
  1762. --with-ghostscript=yes ghostscript library
  1763. --with-pangocairo=yes pangocairo library
  1764. --with-lasi=yes lasi library
  1765. --with-freetype2=yes freetype2 library
  1766. --with-gdk=yes gdklibrary
  1767. --with-gdk-pixbuf=yes gdk-pixbuf library
  1768. --with-gtk=yes gtk+ library
  1769. --with-gtkgl=yes gtkgl library
  1770. --with-gtkglext=yes gtkglext library
  1771. --with-gts=yes gts library
  1772. --with-ann=yes ANN library
  1773. --with-glade=yes glade library
  1774. --with-qt=yes Qt features
  1775. --with-quartz=no Quartz framework (Mac OS X)
  1776. --with-platformsdkincludedir=DIR
  1777. use Platform SDK (Windows) includes from DIR
  1778. --with-platformsdklibdir=DIR
  1779. use Platform SDK (Windows) libraries from DIR
  1780. --with-gdiplus=no GDI+ framework (Windows)
  1781. --with-libgd=yes use gd library
  1782. --with-gdincludedir=DIR use GD includes from DIR
  1783. --with-gdlibdir=DIR use GD libraries from DIR
  1784. --with-glut=yes GLUT library
  1785. --with-glutincludedir=DIR
  1786. use GLUT includes from DIR
  1787. --with-glutlibdir=DIR use GLUT libraries from DIR
  1788. --with-sfdp=yes sfdp layout engine
  1789. --with-smyrna=yes SMYRNA large graph viewer
  1790. --with-ortho=yes ORTHO features in neato layout engine
  1791. --with-digcola=yes DIGCOLA features in neato layout engine
  1792. --with-ipsepcola=yes IPSEPCOLA features in neato layout engine
  1793. Some influential environment variables:
  1794. LIBPOSTFIX subscript to lib, e.g. "/64" for "/usr/lib/64" on Solaris
  1795. INTGOSIZE integer size for go, 32 or 64
  1796. RUBY_VER version number of the ruby package
  1797. CC C compiler command
  1798. CFLAGS C compiler flags
  1799. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1800. nonstandard directory <lib dir>
  1801. LIBS libraries to pass to the linker, e.g. -l<library>
  1802. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1803. you have headers in a nonstandard directory <include dir>
  1804. YACC The `Yet Another Compiler Compiler' implementation to use.
  1805. Defaults to the first program found out of: `bison -y', `byacc',
  1806. `yacc'.
  1807. YFLAGS The list of arguments that will be passed by default to $YACC.
  1808. This script will default YFLAGS to the empty string to avoid a
  1809. default value of `-d' given by some make applications.
  1810. LT_SYS_LIBRARY_PATH
  1811. User-defined run-time library search path.
  1812. CPP C preprocessor
  1813. PKG_CONFIG path to pkg-config utility
  1814. PKG_CONFIG_PATH
  1815. directories to add to pkg-config's search path
  1816. PKG_CONFIG_LIBDIR
  1817. path overriding pkg-config's built-in search path
  1818. CXX C++ compiler command
  1819. CXXFLAGS C++ compiler flags
  1820. CXXCPP C++ preprocessor
  1821. OBJC Objective C compiler command
  1822. OBJCFLAGS Objective C compiler flags
  1823. XMKMF Path to xmkmf, Makefile generator for X Window System
  1824. XRENDER_CFLAGS
  1825. C compiler flags for XRENDER, overriding pkg-config
  1826. XRENDER_LIBS
  1827. linker flags for XRENDER, overriding pkg-config
  1828. GUILE_CFLAGS
  1829. C compiler flags for GUILE, overriding pkg-config
  1830. GUILE_LIBS linker flags for GUILE, overriding pkg-config
  1831. R_CFLAGS C compiler flags for R, overriding pkg-config
  1832. R_LIBS linker flags for R, overriding pkg-config
  1833. RUBY_CFLAGS C compiler flags for RUBY, overriding pkg-config
  1834. RUBY_LIBS linker flags for RUBY, overriding pkg-config
  1835. EXPAT_CFLAGS
  1836. C compiler flags for EXPAT, overriding pkg-config
  1837. EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
  1838. WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
  1839. WEBP_LIBS linker flags for WEBP, overriding pkg-config
  1840. POPPLER_CFLAGS
  1841. C compiler flags for POPPLER, overriding pkg-config
  1842. POPPLER_LIBS
  1843. linker flags for POPPLER, overriding pkg-config
  1844. RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
  1845. RSVG_LIBS linker flags for RSVG, overriding pkg-config
  1846. PANGOCAIRO_CFLAGS
  1847. C compiler flags for PANGOCAIRO, overriding pkg-config
  1848. PANGOCAIRO_LIBS
  1849. linker flags for PANGOCAIRO, overriding pkg-config
  1850. PANGOFT2_CFLAGS
  1851. C compiler flags for PANGOFT2, overriding pkg-config
  1852. PANGOFT2_LIBS
  1853. linker flags for PANGOFT2, overriding pkg-config
  1854. LASI_CFLAGS C compiler flags for LASI, overriding pkg-config
  1855. LASI_LIBS linker flags for LASI, overriding pkg-config
  1856. FREETYPE2_CFLAGS
  1857. C compiler flags for FREETYPE2, overriding pkg-config
  1858. FREETYPE2_LIBS
  1859. linker flags for FREETYPE2, overriding pkg-config
  1860. GDK_CFLAGS C compiler flags for GDK, overriding pkg-config
  1861. GDK_LIBS linker flags for GDK, overriding pkg-config
  1862. GDK_PIXBUF_CFLAGS
  1863. C compiler flags for GDK_PIXBUF, overriding pkg-config
  1864. GDK_PIXBUF_LIBS
  1865. linker flags for GDK_PIXBUF, overriding pkg-config
  1866. GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
  1867. GTK_LIBS linker flags for GTK, overriding pkg-config
  1868. GTKGL_CFLAGS
  1869. C compiler flags for GTKGL, overriding pkg-config
  1870. GTKGL_LIBS linker flags for GTKGL, overriding pkg-config
  1871. GTKGLEXT_CFLAGS
  1872. C compiler flags for GTKGLEXT, overriding pkg-config
  1873. GTKGLEXT_LIBS
  1874. linker flags for GTKGLEXT, overriding pkg-config
  1875. GTS_CFLAGS C compiler flags for GTS, overriding pkg-config
  1876. GTS_LIBS linker flags for GTS, overriding pkg-config
  1877. ANN_CFLAGS C compiler flags for ANN, overriding pkg-config
  1878. ANN_LIBS linker flags for ANN, overriding pkg-config
  1879. GLADE_CFLAGS
  1880. C compiler flags for GLADE, overriding pkg-config
  1881. GLADE_LIBS linker flags for GLADE, overriding pkg-config
  1882. QTCORE_CFLAGS
  1883. C compiler flags for QTCORE, overriding pkg-config
  1884. QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
  1885. QTGUI_CFLAGS
  1886. C compiler flags for QTGUI, overriding pkg-config
  1887. QTGUI_LIBS linker flags for QTGUI, overriding pkg-config
  1888. GDLIB_CFLAGS
  1889. C compiler flags for GDLIB, overriding pkg-config
  1890. GDLIB_LIBS linker flags for GDLIB, overriding pkg-config
  1891. Use these variables to override the choices made by `configure' or to help
  1892. it to find libraries and programs with nonstandard names/locations.
  1893. Report bugs to <https://gitlab.com/graphviz/graphviz/-/issues>.
  1894. _ACEOF
  1895. ac_status=$?
  1896. fi
  1897. if test "$ac_init_help" = "recursive"; then
  1898. # If there are subdirs, report their specific --help.
  1899. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1900. test -d "$ac_dir" ||
  1901. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1902. continue
  1903. ac_builddir=.
  1904. case "$ac_dir" in
  1905. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1906. *)
  1907. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1908. # A ".." for each directory in $ac_dir_suffix.
  1909. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1910. case $ac_top_builddir_sub in
  1911. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1912. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1913. esac ;;
  1914. esac
  1915. ac_abs_top_builddir=$ac_pwd
  1916. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1917. # for backward compatibility:
  1918. ac_top_builddir=$ac_top_build_prefix
  1919. case $srcdir in
  1920. .) # We are building in place.
  1921. ac_srcdir=.
  1922. ac_top_srcdir=$ac_top_builddir_sub
  1923. ac_abs_top_srcdir=$ac_pwd ;;
  1924. [\\/]* | ?:[\\/]* ) # Absolute name.
  1925. ac_srcdir=$srcdir$ac_dir_suffix;
  1926. ac_top_srcdir=$srcdir
  1927. ac_abs_top_srcdir=$srcdir ;;
  1928. *) # Relative name.
  1929. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1930. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1931. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1932. esac
  1933. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1934. cd "$ac_dir" || { ac_status=$?; continue; }
  1935. # Check for guested configure.
  1936. if test -f "$ac_srcdir/configure.gnu"; then
  1937. echo &&
  1938. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1939. elif test -f "$ac_srcdir/configure"; then
  1940. echo &&
  1941. $SHELL "$ac_srcdir/configure" --help=recursive
  1942. else
  1943. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1944. fi || ac_status=$?
  1945. cd "$ac_pwd" || { ac_status=$?; break; }
  1946. done
  1947. fi
  1948. test -n "$ac_init_help" && exit $ac_status
  1949. if $ac_init_version; then
  1950. cat <<\_ACEOF
  1951. graphviz configure 12.2.1
  1952. generated by GNU Autoconf 2.69
  1953. Copyright (C) 2012 Free Software Foundation, Inc.
  1954. This configure script is free software; the Free Software Foundation
  1955. gives unlimited permission to copy, distribute and modify it.
  1956. _ACEOF
  1957. exit
  1958. fi
  1959. ## ------------------------ ##
  1960. ## Autoconf initialization. ##
  1961. ## ------------------------ ##
  1962. # ac_fn_c_try_compile LINENO
  1963. # --------------------------
  1964. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1965. ac_fn_c_try_compile ()
  1966. {
  1967. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1968. rm -f conftest.$ac_objext
  1969. if { { ac_try="$ac_compile"
  1970. case "(($ac_try" in
  1971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1972. *) ac_try_echo=$ac_try;;
  1973. esac
  1974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1975. $as_echo "$ac_try_echo"; } >&5
  1976. (eval "$ac_compile") 2>conftest.err
  1977. ac_status=$?
  1978. if test -s conftest.err; then
  1979. grep -v '^ *+' conftest.err >conftest.er1
  1980. cat conftest.er1 >&5
  1981. mv -f conftest.er1 conftest.err
  1982. fi
  1983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1984. test $ac_status = 0; } && {
  1985. test -z "$ac_c_werror_flag" ||
  1986. test ! -s conftest.err
  1987. } && test -s conftest.$ac_objext; then :
  1988. ac_retval=0
  1989. else
  1990. $as_echo "$as_me: failed program was:" >&5
  1991. sed 's/^/| /' conftest.$ac_ext >&5
  1992. ac_retval=1
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. as_fn_set_status $ac_retval
  1996. } # ac_fn_c_try_compile
  1997. # ac_fn_c_try_link LINENO
  1998. # -----------------------
  1999. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2000. ac_fn_c_try_link ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. rm -f conftest.$ac_objext conftest$ac_exeext
  2004. if { { ac_try="$ac_link"
  2005. case "(($ac_try" in
  2006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2007. *) ac_try_echo=$ac_try;;
  2008. esac
  2009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2010. $as_echo "$ac_try_echo"; } >&5
  2011. (eval "$ac_link") 2>conftest.err
  2012. ac_status=$?
  2013. if test -s conftest.err; then
  2014. grep -v '^ *+' conftest.err >conftest.er1
  2015. cat conftest.er1 >&5
  2016. mv -f conftest.er1 conftest.err
  2017. fi
  2018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2019. test $ac_status = 0; } && {
  2020. test -z "$ac_c_werror_flag" ||
  2021. test ! -s conftest.err
  2022. } && test -s conftest$ac_exeext && {
  2023. test "$cross_compiling" = yes ||
  2024. test -x conftest$ac_exeext
  2025. }; then :
  2026. ac_retval=0
  2027. else
  2028. $as_echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. ac_retval=1
  2031. fi
  2032. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2033. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2034. # interfere with the next link command; also delete a directory that is
  2035. # left behind by Apple's compiler. We do this before executing the actions.
  2036. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2037. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2038. as_fn_set_status $ac_retval
  2039. } # ac_fn_c_try_link
  2040. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2041. # -------------------------------------------------------
  2042. # Tests whether HEADER exists and can be compiled using the include files in
  2043. # INCLUDES, setting the cache variable VAR accordingly.
  2044. ac_fn_c_check_header_compile ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2048. $as_echo_n "checking for $2... " >&6; }
  2049. if eval \${$3+:} false; then :
  2050. $as_echo_n "(cached) " >&6
  2051. else
  2052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2053. /* end confdefs.h. */
  2054. $4
  2055. #include <$2>
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. eval "$3=yes"
  2059. else
  2060. eval "$3=no"
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. fi
  2064. eval ac_res=\$$3
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2066. $as_echo "$ac_res" >&6; }
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. } # ac_fn_c_check_header_compile
  2069. # ac_fn_c_try_cpp LINENO
  2070. # ----------------------
  2071. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2072. ac_fn_c_try_cpp ()
  2073. {
  2074. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2075. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2076. case "(($ac_try" in
  2077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2078. *) ac_try_echo=$ac_try;;
  2079. esac
  2080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2081. $as_echo "$ac_try_echo"; } >&5
  2082. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2083. ac_status=$?
  2084. if test -s conftest.err; then
  2085. grep -v '^ *+' conftest.err >conftest.er1
  2086. cat conftest.er1 >&5
  2087. mv -f conftest.er1 conftest.err
  2088. fi
  2089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2090. test $ac_status = 0; } > conftest.i && {
  2091. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2092. test ! -s conftest.err
  2093. }; then :
  2094. ac_retval=0
  2095. else
  2096. $as_echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. ac_retval=1
  2099. fi
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. as_fn_set_status $ac_retval
  2102. } # ac_fn_c_try_cpp
  2103. # ac_fn_c_try_run LINENO
  2104. # ----------------------
  2105. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2106. # that executables *can* be run.
  2107. ac_fn_c_try_run ()
  2108. {
  2109. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2110. if { { ac_try="$ac_link"
  2111. case "(($ac_try" in
  2112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2113. *) ac_try_echo=$ac_try;;
  2114. esac
  2115. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2116. $as_echo "$ac_try_echo"; } >&5
  2117. (eval "$ac_link") 2>&5
  2118. ac_status=$?
  2119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2120. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  2128. ac_status=$?
  2129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2130. test $ac_status = 0; }; }; then :
  2131. ac_retval=0
  2132. else
  2133. $as_echo "$as_me: program exited with status $ac_status" >&5
  2134. $as_echo "$as_me: failed program was:" >&5
  2135. sed 's/^/| /' conftest.$ac_ext >&5
  2136. ac_retval=$ac_status
  2137. fi
  2138. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2139. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2140. as_fn_set_status $ac_retval
  2141. } # ac_fn_c_try_run
  2142. # ac_fn_c_check_func LINENO FUNC VAR
  2143. # ----------------------------------
  2144. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2145. ac_fn_c_check_func ()
  2146. {
  2147. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2149. $as_echo_n "checking for $2... " >&6; }
  2150. if eval \${$3+:} false; then :
  2151. $as_echo_n "(cached) " >&6
  2152. else
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2157. #define $2 innocuous_$2
  2158. /* System header to define __stub macros and hopefully few prototypes,
  2159. which can conflict with char $2 (); below.
  2160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. <limits.h> exists even on freestanding compilers. */
  2162. #ifdef __STDC__
  2163. # include <limits.h>
  2164. #else
  2165. # include <assert.h>
  2166. #endif
  2167. #undef $2
  2168. /* Override any GCC internal prototype to avoid an error.
  2169. Use char because int might match the return type of a GCC
  2170. builtin and then its argument prototype would still apply. */
  2171. #ifdef __cplusplus
  2172. extern "C"
  2173. #endif
  2174. char $2 ();
  2175. /* The GNU C library defines this for functions which it implements
  2176. to always fail with ENOSYS. Some functions are actually named
  2177. something starting with __ and the normal name is an alias. */
  2178. #if defined __stub_$2 || defined __stub___$2
  2179. choke me
  2180. #endif
  2181. int
  2182. main ()
  2183. {
  2184. return $2 ();
  2185. ;
  2186. return 0;
  2187. }
  2188. _ACEOF
  2189. if ac_fn_c_try_link "$LINENO"; then :
  2190. eval "$3=yes"
  2191. else
  2192. eval "$3=no"
  2193. fi
  2194. rm -f core conftest.err conftest.$ac_objext \
  2195. conftest$ac_exeext conftest.$ac_ext
  2196. fi
  2197. eval ac_res=\$$3
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2199. $as_echo "$ac_res" >&6; }
  2200. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2201. } # ac_fn_c_check_func
  2202. # ac_fn_cxx_try_compile LINENO
  2203. # ----------------------------
  2204. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2205. ac_fn_cxx_try_compile ()
  2206. {
  2207. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2208. rm -f conftest.$ac_objext
  2209. if { { ac_try="$ac_compile"
  2210. case "(($ac_try" in
  2211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2212. *) ac_try_echo=$ac_try;;
  2213. esac
  2214. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2215. $as_echo "$ac_try_echo"; } >&5
  2216. (eval "$ac_compile") 2>conftest.err
  2217. ac_status=$?
  2218. if test -s conftest.err; then
  2219. grep -v '^ *+' conftest.err >conftest.er1
  2220. cat conftest.er1 >&5
  2221. mv -f conftest.er1 conftest.err
  2222. fi
  2223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2224. test $ac_status = 0; } && {
  2225. test -z "$ac_cxx_werror_flag" ||
  2226. test ! -s conftest.err
  2227. } && test -s conftest.$ac_objext; then :
  2228. ac_retval=0
  2229. else
  2230. $as_echo "$as_me: failed program was:" >&5
  2231. sed 's/^/| /' conftest.$ac_ext >&5
  2232. ac_retval=1
  2233. fi
  2234. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2235. as_fn_set_status $ac_retval
  2236. } # ac_fn_cxx_try_compile
  2237. # ac_fn_cxx_try_cpp LINENO
  2238. # ------------------------
  2239. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2240. ac_fn_cxx_try_cpp ()
  2241. {
  2242. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2243. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2244. case "(($ac_try" in
  2245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2246. *) ac_try_echo=$ac_try;;
  2247. esac
  2248. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2249. $as_echo "$ac_try_echo"; } >&5
  2250. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2251. ac_status=$?
  2252. if test -s conftest.err; then
  2253. grep -v '^ *+' conftest.err >conftest.er1
  2254. cat conftest.er1 >&5
  2255. mv -f conftest.er1 conftest.err
  2256. fi
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2258. test $ac_status = 0; } > conftest.i && {
  2259. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2260. test ! -s conftest.err
  2261. }; then :
  2262. ac_retval=0
  2263. else
  2264. $as_echo "$as_me: failed program was:" >&5
  2265. sed 's/^/| /' conftest.$ac_ext >&5
  2266. ac_retval=1
  2267. fi
  2268. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2269. as_fn_set_status $ac_retval
  2270. } # ac_fn_cxx_try_cpp
  2271. # ac_fn_cxx_try_link LINENO
  2272. # -------------------------
  2273. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2274. ac_fn_cxx_try_link ()
  2275. {
  2276. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2277. rm -f conftest.$ac_objext conftest$ac_exeext
  2278. if { { ac_try="$ac_link"
  2279. case "(($ac_try" in
  2280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2281. *) ac_try_echo=$ac_try;;
  2282. esac
  2283. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2284. $as_echo "$ac_try_echo"; } >&5
  2285. (eval "$ac_link") 2>conftest.err
  2286. ac_status=$?
  2287. if test -s conftest.err; then
  2288. grep -v '^ *+' conftest.err >conftest.er1
  2289. cat conftest.er1 >&5
  2290. mv -f conftest.er1 conftest.err
  2291. fi
  2292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2293. test $ac_status = 0; } && {
  2294. test -z "$ac_cxx_werror_flag" ||
  2295. test ! -s conftest.err
  2296. } && test -s conftest$ac_exeext && {
  2297. test "$cross_compiling" = yes ||
  2298. test -x conftest$ac_exeext
  2299. }; then :
  2300. ac_retval=0
  2301. else
  2302. $as_echo "$as_me: failed program was:" >&5
  2303. sed 's/^/| /' conftest.$ac_ext >&5
  2304. ac_retval=1
  2305. fi
  2306. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2307. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2308. # interfere with the next link command; also delete a directory that is
  2309. # left behind by Apple's compiler. We do this before executing the actions.
  2310. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2311. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2312. as_fn_set_status $ac_retval
  2313. } # ac_fn_cxx_try_link
  2314. # ac_fn_objc_try_compile LINENO
  2315. # -----------------------------
  2316. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2317. ac_fn_objc_try_compile ()
  2318. {
  2319. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2320. rm -f conftest.$ac_objext
  2321. if { { ac_try="$ac_compile"
  2322. case "(($ac_try" in
  2323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2324. *) ac_try_echo=$ac_try;;
  2325. esac
  2326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2327. $as_echo "$ac_try_echo"; } >&5
  2328. (eval "$ac_compile") 2>conftest.err
  2329. ac_status=$?
  2330. if test -s conftest.err; then
  2331. grep -v '^ *+' conftest.err >conftest.er1
  2332. cat conftest.er1 >&5
  2333. mv -f conftest.er1 conftest.err
  2334. fi
  2335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2336. test $ac_status = 0; } && {
  2337. test -z "$ac_objc_werror_flag" ||
  2338. test ! -s conftest.err
  2339. } && test -s conftest.$ac_objext; then :
  2340. ac_retval=0
  2341. else
  2342. $as_echo "$as_me: failed program was:" >&5
  2343. sed 's/^/| /' conftest.$ac_ext >&5
  2344. ac_retval=1
  2345. fi
  2346. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2347. as_fn_set_status $ac_retval
  2348. } # ac_fn_objc_try_compile
  2349. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2350. # -------------------------------------------
  2351. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2352. # variable VAR accordingly.
  2353. ac_fn_c_check_type ()
  2354. {
  2355. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2357. $as_echo_n "checking for $2... " >&6; }
  2358. if eval \${$3+:} false; then :
  2359. $as_echo_n "(cached) " >&6
  2360. else
  2361. eval "$3=no"
  2362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2363. /* end confdefs.h. */
  2364. $4
  2365. int
  2366. main ()
  2367. {
  2368. if (sizeof ($2))
  2369. return 0;
  2370. ;
  2371. return 0;
  2372. }
  2373. _ACEOF
  2374. if ac_fn_c_try_compile "$LINENO"; then :
  2375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2376. /* end confdefs.h. */
  2377. $4
  2378. int
  2379. main ()
  2380. {
  2381. if (sizeof (($2)))
  2382. return 0;
  2383. ;
  2384. return 0;
  2385. }
  2386. _ACEOF
  2387. if ac_fn_c_try_compile "$LINENO"; then :
  2388. else
  2389. eval "$3=yes"
  2390. fi
  2391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2392. fi
  2393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2394. fi
  2395. eval ac_res=\$$3
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2397. $as_echo "$ac_res" >&6; }
  2398. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2399. } # ac_fn_c_check_type
  2400. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2401. # -------------------------------------------------------
  2402. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2403. # the include files in INCLUDES and setting the cache variable VAR
  2404. # accordingly.
  2405. ac_fn_c_check_header_mongrel ()
  2406. {
  2407. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2408. if eval \${$3+:} false; then :
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2410. $as_echo_n "checking for $2... " >&6; }
  2411. if eval \${$3+:} false; then :
  2412. $as_echo_n "(cached) " >&6
  2413. fi
  2414. eval ac_res=\$$3
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2416. $as_echo "$ac_res" >&6; }
  2417. else
  2418. # Is the header compilable?
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2420. $as_echo_n "checking $2 usability... " >&6; }
  2421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2422. /* end confdefs.h. */
  2423. $4
  2424. #include <$2>
  2425. _ACEOF
  2426. if ac_fn_c_try_compile "$LINENO"; then :
  2427. ac_header_compiler=yes
  2428. else
  2429. ac_header_compiler=no
  2430. fi
  2431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2433. $as_echo "$ac_header_compiler" >&6; }
  2434. # Is the header present?
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2436. $as_echo_n "checking $2 presence... " >&6; }
  2437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2438. /* end confdefs.h. */
  2439. #include <$2>
  2440. _ACEOF
  2441. if ac_fn_c_try_cpp "$LINENO"; then :
  2442. ac_header_preproc=yes
  2443. else
  2444. ac_header_preproc=no
  2445. fi
  2446. rm -f conftest.err conftest.i conftest.$ac_ext
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2448. $as_echo "$ac_header_preproc" >&6; }
  2449. # So? What about this header?
  2450. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2451. yes:no: )
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2453. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2455. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2456. ;;
  2457. no:yes:* )
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2459. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2461. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2463. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2465. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2467. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2468. ( $as_echo "## ------------------------------------------------------------ ##
  2469. ## Report this to https://gitlab.com/graphviz/graphviz/-/issues ##
  2470. ## ------------------------------------------------------------ ##"
  2471. ) | sed "s/^/$as_me: WARNING: /" >&2
  2472. ;;
  2473. esac
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2475. $as_echo_n "checking for $2... " >&6; }
  2476. if eval \${$3+:} false; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. eval "$3=\$ac_header_compiler"
  2480. fi
  2481. eval ac_res=\$$3
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2483. $as_echo "$ac_res" >&6; }
  2484. fi
  2485. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2486. } # ac_fn_c_check_header_mongrel
  2487. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2488. # ---------------------------------------------
  2489. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2490. # accordingly.
  2491. ac_fn_c_check_decl ()
  2492. {
  2493. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2494. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2495. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2497. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2498. if eval \${$3+:} false; then :
  2499. $as_echo_n "(cached) " >&6
  2500. else
  2501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2502. /* end confdefs.h. */
  2503. $4
  2504. int
  2505. main ()
  2506. {
  2507. #ifndef $as_decl_name
  2508. #ifdef __cplusplus
  2509. (void) $as_decl_use;
  2510. #else
  2511. (void) $as_decl_name;
  2512. #endif
  2513. #endif
  2514. ;
  2515. return 0;
  2516. }
  2517. _ACEOF
  2518. if ac_fn_c_try_compile "$LINENO"; then :
  2519. eval "$3=yes"
  2520. else
  2521. eval "$3=no"
  2522. fi
  2523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2524. fi
  2525. eval ac_res=\$$3
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2527. $as_echo "$ac_res" >&6; }
  2528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2529. } # ac_fn_c_check_decl
  2530. cat >config.log <<_ACEOF
  2531. This file contains any messages produced by compilers while
  2532. running configure, to aid debugging if configure makes a mistake.
  2533. It was created by graphviz $as_me 12.2.1, which was
  2534. generated by GNU Autoconf 2.69. Invocation command line was
  2535. $ $0 $@
  2536. _ACEOF
  2537. exec 5>>config.log
  2538. {
  2539. cat <<_ASUNAME
  2540. ## --------- ##
  2541. ## Platform. ##
  2542. ## --------- ##
  2543. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2544. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2545. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2546. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2547. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2548. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2549. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2550. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2551. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2552. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2553. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2554. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2555. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2556. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2557. _ASUNAME
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. $as_echo "PATH: $as_dir"
  2564. done
  2565. IFS=$as_save_IFS
  2566. } >&5
  2567. cat >&5 <<_ACEOF
  2568. ## ----------- ##
  2569. ## Core tests. ##
  2570. ## ----------- ##
  2571. _ACEOF
  2572. # Keep a trace of the command line.
  2573. # Strip out --no-create and --no-recursion so they do not pile up.
  2574. # Strip out --silent because we don't want to record it for future runs.
  2575. # Also quote any args containing shell meta-characters.
  2576. # Make two passes to allow for proper duplicate-argument suppression.
  2577. ac_configure_args=
  2578. ac_configure_args0=
  2579. ac_configure_args1=
  2580. ac_must_keep_next=false
  2581. for ac_pass in 1 2
  2582. do
  2583. for ac_arg
  2584. do
  2585. case $ac_arg in
  2586. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2587. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2588. | -silent | --silent | --silen | --sile | --sil)
  2589. continue ;;
  2590. *\'*)
  2591. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2592. esac
  2593. case $ac_pass in
  2594. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2595. 2)
  2596. as_fn_append ac_configure_args1 " '$ac_arg'"
  2597. if test $ac_must_keep_next = true; then
  2598. ac_must_keep_next=false # Got value, back to normal.
  2599. else
  2600. case $ac_arg in
  2601. *=* | --config-cache | -C | -disable-* | --disable-* \
  2602. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2603. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2604. | -with-* | --with-* | -without-* | --without-* | --x)
  2605. case "$ac_configure_args0 " in
  2606. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2607. esac
  2608. ;;
  2609. -* ) ac_must_keep_next=true ;;
  2610. esac
  2611. fi
  2612. as_fn_append ac_configure_args " '$ac_arg'"
  2613. ;;
  2614. esac
  2615. done
  2616. done
  2617. { ac_configure_args0=; unset ac_configure_args0;}
  2618. { ac_configure_args1=; unset ac_configure_args1;}
  2619. # When interrupted or exit'd, cleanup temporary files, and complete
  2620. # config.log. We remove comments because anyway the quotes in there
  2621. # would cause problems or look ugly.
  2622. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2623. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2624. trap 'exit_status=$?
  2625. # Save into config.log some information that might help in debugging.
  2626. {
  2627. echo
  2628. $as_echo "## ---------------- ##
  2629. ## Cache variables. ##
  2630. ## ---------------- ##"
  2631. echo
  2632. # The following way of writing the cache mishandles newlines in values,
  2633. (
  2634. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2635. eval ac_val=\$$ac_var
  2636. case $ac_val in #(
  2637. *${as_nl}*)
  2638. case $ac_var in #(
  2639. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2640. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2641. esac
  2642. case $ac_var in #(
  2643. _ | IFS | as_nl) ;; #(
  2644. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2645. *) { eval $ac_var=; unset $ac_var;} ;;
  2646. esac ;;
  2647. esac
  2648. done
  2649. (set) 2>&1 |
  2650. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2651. *${as_nl}ac_space=\ *)
  2652. sed -n \
  2653. "s/'\''/'\''\\\\'\'''\''/g;
  2654. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2655. ;; #(
  2656. *)
  2657. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2658. ;;
  2659. esac |
  2660. sort
  2661. )
  2662. echo
  2663. $as_echo "## ----------------- ##
  2664. ## Output variables. ##
  2665. ## ----------------- ##"
  2666. echo
  2667. for ac_var in $ac_subst_vars
  2668. do
  2669. eval ac_val=\$$ac_var
  2670. case $ac_val in
  2671. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2672. esac
  2673. $as_echo "$ac_var='\''$ac_val'\''"
  2674. done | sort
  2675. echo
  2676. if test -n "$ac_subst_files"; then
  2677. $as_echo "## ------------------- ##
  2678. ## File substitutions. ##
  2679. ## ------------------- ##"
  2680. echo
  2681. for ac_var in $ac_subst_files
  2682. do
  2683. eval ac_val=\$$ac_var
  2684. case $ac_val in
  2685. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2686. esac
  2687. $as_echo "$ac_var='\''$ac_val'\''"
  2688. done | sort
  2689. echo
  2690. fi
  2691. if test -s confdefs.h; then
  2692. $as_echo "## ----------- ##
  2693. ## confdefs.h. ##
  2694. ## ----------- ##"
  2695. echo
  2696. cat confdefs.h
  2697. echo
  2698. fi
  2699. test "$ac_signal" != 0 &&
  2700. $as_echo "$as_me: caught signal $ac_signal"
  2701. $as_echo "$as_me: exit $exit_status"
  2702. } >&5
  2703. rm -f core *.core core.conftest.* &&
  2704. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2705. exit $exit_status
  2706. ' 0
  2707. for ac_signal in 1 2 13 15; do
  2708. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2709. done
  2710. ac_signal=0
  2711. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2712. rm -f -r conftest* confdefs.h
  2713. $as_echo "/* confdefs.h */" > confdefs.h
  2714. # Predefined preprocessor variables.
  2715. cat >>confdefs.h <<_ACEOF
  2716. #define PACKAGE_NAME "$PACKAGE_NAME"
  2717. _ACEOF
  2718. cat >>confdefs.h <<_ACEOF
  2719. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2720. _ACEOF
  2721. cat >>confdefs.h <<_ACEOF
  2722. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2723. _ACEOF
  2724. cat >>confdefs.h <<_ACEOF
  2725. #define PACKAGE_STRING "$PACKAGE_STRING"
  2726. _ACEOF
  2727. cat >>confdefs.h <<_ACEOF
  2728. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2729. _ACEOF
  2730. cat >>confdefs.h <<_ACEOF
  2731. #define PACKAGE_URL "$PACKAGE_URL"
  2732. _ACEOF
  2733. # Let the site file select an alternate cache file if it wants to.
  2734. # Prefer an explicitly selected file to automatically selected ones.
  2735. ac_site_file1=NONE
  2736. ac_site_file2=NONE
  2737. if test -n "$CONFIG_SITE"; then
  2738. # We do not want a PATH search for config.site.
  2739. case $CONFIG_SITE in #((
  2740. -*) ac_site_file1=./$CONFIG_SITE;;
  2741. */*) ac_site_file1=$CONFIG_SITE;;
  2742. *) ac_site_file1=./$CONFIG_SITE;;
  2743. esac
  2744. elif test "x$prefix" != xNONE; then
  2745. ac_site_file1=$prefix/share/config.site
  2746. ac_site_file2=$prefix/etc/config.site
  2747. else
  2748. ac_site_file1=$ac_default_prefix/share/config.site
  2749. ac_site_file2=$ac_default_prefix/etc/config.site
  2750. fi
  2751. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2752. do
  2753. test "x$ac_site_file" = xNONE && continue
  2754. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2756. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2757. sed 's/^/| /' "$ac_site_file" >&5
  2758. . "$ac_site_file" \
  2759. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2760. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2761. as_fn_error $? "failed to load site script $ac_site_file
  2762. See \`config.log' for more details" "$LINENO" 5; }
  2763. fi
  2764. done
  2765. if test -r "$cache_file"; then
  2766. # Some versions of bash will fail to source /dev/null (special files
  2767. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2768. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2770. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2771. case $cache_file in
  2772. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2773. *) . "./$cache_file";;
  2774. esac
  2775. fi
  2776. else
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2778. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2779. >$cache_file
  2780. fi
  2781. # Check that the precious variables saved in the cache have kept the same
  2782. # value.
  2783. ac_cache_corrupted=false
  2784. for ac_var in $ac_precious_vars; do
  2785. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2786. eval ac_new_set=\$ac_env_${ac_var}_set
  2787. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2788. eval ac_new_val=\$ac_env_${ac_var}_value
  2789. case $ac_old_set,$ac_new_set in
  2790. set,)
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2792. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2793. ac_cache_corrupted=: ;;
  2794. ,set)
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2796. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2797. ac_cache_corrupted=: ;;
  2798. ,);;
  2799. *)
  2800. if test "x$ac_old_val" != "x$ac_new_val"; then
  2801. # differences in whitespace do not lead to failure.
  2802. ac_old_val_w=`echo x $ac_old_val`
  2803. ac_new_val_w=`echo x $ac_new_val`
  2804. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2806. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2807. ac_cache_corrupted=:
  2808. else
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2810. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2811. eval $ac_var=\$ac_old_val
  2812. fi
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2814. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2816. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2817. fi;;
  2818. esac
  2819. # Pass precious variables to config.status.
  2820. if test "$ac_new_set" = set; then
  2821. case $ac_new_val in
  2822. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2823. *) ac_arg=$ac_var=$ac_new_val ;;
  2824. esac
  2825. case " $ac_configure_args " in
  2826. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2827. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2828. esac
  2829. fi
  2830. done
  2831. if $ac_cache_corrupted; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2835. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2836. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2837. fi
  2838. ## -------------------- ##
  2839. ## Main body of script. ##
  2840. ## -------------------- ##
  2841. ac_ext=c
  2842. ac_cpp='$CPP $CPPFLAGS'
  2843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2846. GRAPHVIZ_VERSION_MAJOR=12
  2847. GRAPHVIZ_VERSION_MINOR=2
  2848. GRAPHVIZ_VERSION_MICRO=1
  2849. # NB: date/time of last commit - or "0"
  2850. GRAPHVIZ_VERSION_DATE=20241206.2353
  2851. GRAPHVIZ_AUTHOR_NAME=""
  2852. GRAPHVIZ_AUTHOR_EMAIL=
  2853. GRAPHVIZ_CHANGE_DATE="Fri Dec 6 2024"
  2854. # libtool shared library version for plugins
  2855. # Increment if the interface has additions, changes, removals.
  2856. GVPLUGIN_CURRENT=6
  2857. # Increment any time the source changes; set to
  2858. # 0 if you increment CURRENT
  2859. GVPLUGIN_REVISION=0
  2860. # Increment if any interfaces have been added; set to 0
  2861. # if any interfaces have been removed. removal has
  2862. # precedence over adding, so set to 0 if both happened.
  2863. GVPLUGIN_AGE=0
  2864. GVPLUGIN_CONFIG_FILE="config$GVPLUGIN_CURRENT"
  2865. cat >>confdefs.h <<_ACEOF
  2866. #define GVPLUGIN_CONFIG_FILE "$GVPLUGIN_CONFIG_FILE"
  2867. _ACEOF
  2868. GVPLUGIN_VERSION_INFO="$GVPLUGIN_CURRENT:$GVPLUGIN_REVISION:$GVPLUGIN_AGE"
  2869. ac_aux_dir=
  2870. for ac_dir in config "$srcdir"/config; do
  2871. if test -f "$ac_dir/install-sh"; then
  2872. ac_aux_dir=$ac_dir
  2873. ac_install_sh="$ac_aux_dir/install-sh -c"
  2874. break
  2875. elif test -f "$ac_dir/install.sh"; then
  2876. ac_aux_dir=$ac_dir
  2877. ac_install_sh="$ac_aux_dir/install.sh -c"
  2878. break
  2879. elif test -f "$ac_dir/shtool"; then
  2880. ac_aux_dir=$ac_dir
  2881. ac_install_sh="$ac_aux_dir/shtool install -c"
  2882. break
  2883. fi
  2884. done
  2885. if test -z "$ac_aux_dir"; then
  2886. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2887. fi
  2888. # These three variables are undocumented and unsupported,
  2889. # and are intended to be withdrawn in a future Autoconf release.
  2890. # They can cause serious problems if a builder's source tree is in a directory
  2891. # whose full name contains unusual characters.
  2892. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2893. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2894. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2895. # Make sure we can run config.sub.
  2896. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2897. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2899. $as_echo_n "checking build system type... " >&6; }
  2900. if ${ac_cv_build+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. ac_build_alias=$build_alias
  2904. test "x$ac_build_alias" = x &&
  2905. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2906. test "x$ac_build_alias" = x &&
  2907. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2908. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2909. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2910. fi
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2912. $as_echo "$ac_cv_build" >&6; }
  2913. case $ac_cv_build in
  2914. *-*-*) ;;
  2915. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2916. esac
  2917. build=$ac_cv_build
  2918. ac_save_IFS=$IFS; IFS='-'
  2919. set x $ac_cv_build
  2920. shift
  2921. build_cpu=$1
  2922. build_vendor=$2
  2923. shift; shift
  2924. # Remember, the first character of IFS is used to create $*,
  2925. # except with old shells:
  2926. build_os=$*
  2927. IFS=$ac_save_IFS
  2928. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2930. $as_echo_n "checking host system type... " >&6; }
  2931. if ${ac_cv_host+:} false; then :
  2932. $as_echo_n "(cached) " >&6
  2933. else
  2934. if test "x$host_alias" = x; then
  2935. ac_cv_host=$ac_cv_build
  2936. else
  2937. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2938. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2939. fi
  2940. fi
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2942. $as_echo "$ac_cv_host" >&6; }
  2943. case $ac_cv_host in
  2944. *-*-*) ;;
  2945. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2946. esac
  2947. host=$ac_cv_host
  2948. ac_save_IFS=$IFS; IFS='-'
  2949. set x $ac_cv_host
  2950. shift
  2951. host_cpu=$1
  2952. host_vendor=$2
  2953. shift; shift
  2954. # Remember, the first character of IFS is used to create $*,
  2955. # except with old shells:
  2956. host_os=$*
  2957. IFS=$ac_save_IFS
  2958. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2959. # This nonsense drives me crazy!!
  2960. case "${host_os}" in
  2961. *irix* | *nonstopux* )
  2962. GVPLUGIN_VERSION=`expr $GVPLUGIN_CURRENT + 1`
  2963. ;;
  2964. * )
  2965. GVPLUGIN_VERSION=$GVPLUGIN_CURRENT
  2966. ;;
  2967. esac
  2968. cat >>confdefs.h <<_ACEOF
  2969. #define GVPLUGIN_VERSION $GVPLUGIN_VERSION
  2970. _ACEOF
  2971. INTGOSIZE=32
  2972. if test -z "${LIBPOSTFIX++}"; then
  2973. case "${host_os}" in
  2974. *linux* )
  2975. case "${host_cpu}" in
  2976. aarch64 | powerpc64 | powerpc64le | s390x | x86_64 | sparc64 | mips64* | riscv64 | e2k )
  2977. LIBPOSTFIX="64"
  2978. INTGOSIZE=64
  2979. ;;
  2980. esac
  2981. ;;
  2982. *solaris* )
  2983. case "${host_cpu}" in
  2984. x86_64 | sparc64 )
  2985. LIBPOSTFIX="/64"
  2986. INTGOSIZE=64
  2987. ;;
  2988. esac
  2989. ;;
  2990. esac
  2991. fi
  2992. UWIN=no
  2993. CYGWIN=no
  2994. MINGW32=no
  2995. case "${host_os}" in
  2996. *uwin* )
  2997. UWIN=yes
  2998. BROWSER="xdg-open"
  2999. JSHEXT=so
  3000. SHARED_LIBRARY_SUFFIX=.so
  3001. ;;
  3002. *cygwin* )
  3003. CYGWIN=yes
  3004. BROWSER="xdg-open"
  3005. JSHEXT=so
  3006. SHARED_LIBRARY_SUFFIX=.dll
  3007. ;;
  3008. *mingw32* )
  3009. MINGW32=yes
  3010. BROWSER="xdg-open"
  3011. JSHEXT=so
  3012. SHARED_LIBRARY_SUFFIX=.so
  3013. ;;
  3014. *darwin* )
  3015. DARWIN=yes
  3016. cat >>confdefs.h <<_ACEOF
  3017. #define DARWIN 1
  3018. _ACEOF
  3019. BROWSER="open"
  3020. JSHEXT=jnilib
  3021. SHARED_LIBRARY_SUFFIX=.dylib
  3022. cat >>confdefs.h <<_ACEOF
  3023. #define DARWIN_DYLIB "$DARWIN_DYLIB"
  3024. _ACEOF
  3025. ;;
  3026. hpux* )
  3027. BROWSER="xdg-open"
  3028. JSHEXT=so
  3029. SHARED_LIBRARY_SUFFIX=.sl
  3030. ;;
  3031. * )
  3032. BROWSER="xdg-open"
  3033. JSHEXT=so
  3034. SHARED_LIBRARY_SUFFIX=.so
  3035. ;;
  3036. esac
  3037. JNI_EXTRA_LDFLAGS="-shrext .$JSHEXT"
  3038. if test "$UWIN" = "yes" -o "$CYGWIN" = "yes" -o "$MINGW32" = "yes"; then
  3039. WITH_WIN32_TRUE=
  3040. WITH_WIN32_FALSE='#'
  3041. else
  3042. WITH_WIN32_TRUE='#'
  3043. WITH_WIN32_FALSE=
  3044. fi
  3045. if test "$CYGWIN" = "yes"; then
  3046. WITH_CYGWIN_TRUE=
  3047. WITH_CYGWIN_FALSE='#'
  3048. else
  3049. WITH_CYGWIN_TRUE='#'
  3050. WITH_CYGWIN_FALSE=
  3051. fi
  3052. if test "$MINGW32" = "yes"; then
  3053. WITH_MINGW_TRUE=
  3054. WITH_MINGW_FALSE='#'
  3055. else
  3056. WITH_MINGW_TRUE='#'
  3057. WITH_MINGW_FALSE=
  3058. fi
  3059. DEFAULT_DPI=96
  3060. cat >>confdefs.h <<_ACEOF
  3061. #define DEFAULT_DPI $DEFAULT_DPI
  3062. _ACEOF
  3063. cat >>confdefs.h <<_ACEOF
  3064. #define BROWSER "$BROWSER"
  3065. _ACEOF
  3066. am__api_version='1.16'
  3067. # Find a good install program. We prefer a C program (faster),
  3068. # so one script is as good as another. But avoid the broken or
  3069. # incompatible versions:
  3070. # SysV /etc/install, /usr/sbin/install
  3071. # SunOS /usr/etc/install
  3072. # IRIX /sbin/install
  3073. # AIX /bin/install
  3074. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3075. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3076. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3077. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3078. # OS/2's system install, which has a completely different semantic
  3079. # ./install, which can be erroneously created by make from ./install.sh.
  3080. # Reject install programs that cannot install multiple files.
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3082. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3083. if test -z "$INSTALL"; then
  3084. if ${ac_cv_path_install+:} false; then :
  3085. $as_echo_n "(cached) " >&6
  3086. else
  3087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3088. for as_dir in $PATH
  3089. do
  3090. IFS=$as_save_IFS
  3091. test -z "$as_dir" && as_dir=.
  3092. # Account for people who put trailing slashes in PATH elements.
  3093. case $as_dir/ in #((
  3094. ./ | .// | /[cC]/* | \
  3095. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3096. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3097. /usr/ucb/* ) ;;
  3098. *)
  3099. # OSF1 and SCO ODT 3.0 have their own names for install.
  3100. # Don't use installbsd from OSF since it installs stuff as root
  3101. # by default.
  3102. for ac_prog in ginstall scoinst install; do
  3103. for ac_exec_ext in '' $ac_executable_extensions; do
  3104. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3105. if test $ac_prog = install &&
  3106. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3107. # AIX install. It has an incompatible calling convention.
  3108. :
  3109. elif test $ac_prog = install &&
  3110. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3111. # program-specific install script used by HP pwplus--don't use.
  3112. :
  3113. else
  3114. rm -rf conftest.one conftest.two conftest.dir
  3115. echo one > conftest.one
  3116. echo two > conftest.two
  3117. mkdir conftest.dir
  3118. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3119. test -s conftest.one && test -s conftest.two &&
  3120. test -s conftest.dir/conftest.one &&
  3121. test -s conftest.dir/conftest.two
  3122. then
  3123. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3124. break 3
  3125. fi
  3126. fi
  3127. fi
  3128. done
  3129. done
  3130. ;;
  3131. esac
  3132. done
  3133. IFS=$as_save_IFS
  3134. rm -rf conftest.one conftest.two conftest.dir
  3135. fi
  3136. if test "${ac_cv_path_install+set}" = set; then
  3137. INSTALL=$ac_cv_path_install
  3138. else
  3139. # As a last resort, use the slow shell script. Don't cache a
  3140. # value for INSTALL within a source directory, because that will
  3141. # break other packages using the cache if that directory is
  3142. # removed, or if the value is a relative name.
  3143. INSTALL=$ac_install_sh
  3144. fi
  3145. fi
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3147. $as_echo "$INSTALL" >&6; }
  3148. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3149. # It thinks the first close brace ends the variable substitution.
  3150. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3151. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3152. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3154. $as_echo_n "checking whether build environment is sane... " >&6; }
  3155. # Reject unsafe characters in $srcdir or the absolute working directory
  3156. # name. Accept space and tab only in the latter.
  3157. am_lf='
  3158. '
  3159. case `pwd` in
  3160. *[\\\"\#\$\&\'\`$am_lf]*)
  3161. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3162. esac
  3163. case $srcdir in
  3164. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3165. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3166. esac
  3167. # Do 'set' in a subshell so we don't clobber the current shell's
  3168. # arguments. Must try -L first in case configure is actually a
  3169. # symlink; some systems play weird games with the mod time of symlinks
  3170. # (eg FreeBSD returns the mod time of the symlink's containing
  3171. # directory).
  3172. if (
  3173. am_has_slept=no
  3174. for am_try in 1 2; do
  3175. echo "timestamp, slept: $am_has_slept" > conftest.file
  3176. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3177. if test "$*" = "X"; then
  3178. # -L didn't work.
  3179. set X `ls -t "$srcdir/configure" conftest.file`
  3180. fi
  3181. if test "$*" != "X $srcdir/configure conftest.file" \
  3182. && test "$*" != "X conftest.file $srcdir/configure"; then
  3183. # If neither matched, then we have a broken ls. This can happen
  3184. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3185. # broken ls alias from the environment. This has actually
  3186. # happened. Such a system could not be considered "sane".
  3187. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3188. alias in your environment" "$LINENO" 5
  3189. fi
  3190. if test "$2" = conftest.file || test $am_try -eq 2; then
  3191. break
  3192. fi
  3193. # Just in case.
  3194. sleep 1
  3195. am_has_slept=yes
  3196. done
  3197. test "$2" = conftest.file
  3198. )
  3199. then
  3200. # Ok.
  3201. :
  3202. else
  3203. as_fn_error $? "newly created file is older than distributed files!
  3204. Check your system clock" "$LINENO" 5
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3207. $as_echo "yes" >&6; }
  3208. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3209. # generated files are strictly newer.
  3210. am_sleep_pid=
  3211. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3212. ( sleep 1 ) &
  3213. am_sleep_pid=$!
  3214. fi
  3215. rm -f conftest.file
  3216. test "$program_prefix" != NONE &&
  3217. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3218. # Use a double $ so make ignores it.
  3219. test "$program_suffix" != NONE &&
  3220. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3221. # Double any \ or $.
  3222. # By default was `s,x,x', remove it if useless.
  3223. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3224. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3225. # Expand $ac_aux_dir to an absolute path.
  3226. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3227. if test x"${MISSING+set}" != xset; then
  3228. case $am_aux_dir in
  3229. *\ * | *\ *)
  3230. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3231. *)
  3232. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3233. esac
  3234. fi
  3235. # Use eval to expand $SHELL
  3236. if eval "$MISSING --is-lightweight"; then
  3237. am_missing_run="$MISSING "
  3238. else
  3239. am_missing_run=
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3241. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3242. fi
  3243. if test x"${install_sh+set}" != xset; then
  3244. case $am_aux_dir in
  3245. *\ * | *\ *)
  3246. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3247. *)
  3248. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3249. esac
  3250. fi
  3251. # Installed binaries are usually stripped using 'strip' when the user
  3252. # run "make install-strip". However 'strip' might not be the right
  3253. # tool to use in cross-compilation environments, therefore Automake
  3254. # will honor the 'STRIP' environment variable to overrule this program.
  3255. if test "$cross_compiling" != no; then
  3256. if test -n "$ac_tool_prefix"; then
  3257. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3258. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3260. $as_echo_n "checking for $ac_word... " >&6; }
  3261. if ${ac_cv_prog_STRIP+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. if test -n "$STRIP"; then
  3265. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. test -z "$as_dir" && as_dir=.
  3272. for ac_exec_ext in '' $ac_executable_extensions; do
  3273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3274. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. fi
  3282. fi
  3283. STRIP=$ac_cv_prog_STRIP
  3284. if test -n "$STRIP"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3286. $as_echo "$STRIP" >&6; }
  3287. else
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. fi
  3292. if test -z "$ac_cv_prog_STRIP"; then
  3293. ac_ct_STRIP=$STRIP
  3294. # Extract the first word of "strip", so it can be a program name with args.
  3295. set dummy strip; ac_word=$2
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3297. $as_echo_n "checking for $ac_word... " >&6; }
  3298. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3299. $as_echo_n "(cached) " >&6
  3300. else
  3301. if test -n "$ac_ct_STRIP"; then
  3302. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3311. ac_cv_prog_ac_ct_STRIP="strip"
  3312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3321. if test -n "$ac_ct_STRIP"; then
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3323. $as_echo "$ac_ct_STRIP" >&6; }
  3324. else
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. $as_echo "no" >&6; }
  3327. fi
  3328. if test "x$ac_ct_STRIP" = x; then
  3329. STRIP=":"
  3330. else
  3331. case $cross_compiling:$ac_tool_warned in
  3332. yes:)
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3335. ac_tool_warned=yes ;;
  3336. esac
  3337. STRIP=$ac_ct_STRIP
  3338. fi
  3339. else
  3340. STRIP="$ac_cv_prog_STRIP"
  3341. fi
  3342. fi
  3343. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3345. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3346. if test -z "$MKDIR_P"; then
  3347. if ${ac_cv_path_mkdir+:} false; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3352. do
  3353. IFS=$as_save_IFS
  3354. test -z "$as_dir" && as_dir=.
  3355. for ac_prog in mkdir gmkdir; do
  3356. for ac_exec_ext in '' $ac_executable_extensions; do
  3357. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3358. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3359. 'mkdir (GNU coreutils) '* | \
  3360. 'mkdir (coreutils) '* | \
  3361. 'mkdir (fileutils) '4.1*)
  3362. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3363. break 3;;
  3364. esac
  3365. done
  3366. done
  3367. done
  3368. IFS=$as_save_IFS
  3369. fi
  3370. test -d ./--version && rmdir ./--version
  3371. if test "${ac_cv_path_mkdir+set}" = set; then
  3372. MKDIR_P="$ac_cv_path_mkdir -p"
  3373. else
  3374. # As a last resort, use the slow shell script. Don't cache a
  3375. # value for MKDIR_P within a source directory, because that will
  3376. # break other packages using the cache if that directory is
  3377. # removed, or if the value is a relative name.
  3378. MKDIR_P="$ac_install_sh -d"
  3379. fi
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3382. $as_echo "$MKDIR_P" >&6; }
  3383. for ac_prog in gawk mawk nawk awk
  3384. do
  3385. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3386. set dummy $ac_prog; ac_word=$2
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3388. $as_echo_n "checking for $ac_word... " >&6; }
  3389. if ${ac_cv_prog_AWK+:} false; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -n "$AWK"; then
  3393. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3402. ac_cv_prog_AWK="$ac_prog"
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. AWK=$ac_cv_prog_AWK
  3412. if test -n "$AWK"; then
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3414. $as_echo "$AWK" >&6; }
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. fi
  3419. test -n "$AWK" && break
  3420. done
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3422. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3423. set x ${MAKE-make}
  3424. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3425. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. cat >conftest.make <<\_ACEOF
  3429. SHELL = /bin/sh
  3430. all:
  3431. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3432. _ACEOF
  3433. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3434. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3435. *@@@%%%=?*=@@@%%%*)
  3436. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3437. *)
  3438. eval ac_cv_prog_make_${ac_make}_set=no;;
  3439. esac
  3440. rm -f conftest.make
  3441. fi
  3442. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3444. $as_echo "yes" >&6; }
  3445. SET_MAKE=
  3446. else
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3448. $as_echo "no" >&6; }
  3449. SET_MAKE="MAKE=${MAKE-make}"
  3450. fi
  3451. rm -rf .tst 2>/dev/null
  3452. mkdir .tst 2>/dev/null
  3453. if test -d .tst; then
  3454. am__leading_dot=.
  3455. else
  3456. am__leading_dot=_
  3457. fi
  3458. rmdir .tst 2>/dev/null
  3459. # Check whether --enable-silent-rules was given.
  3460. if test "${enable_silent_rules+set}" = set; then :
  3461. enableval=$enable_silent_rules;
  3462. fi
  3463. case $enable_silent_rules in # (((
  3464. yes) AM_DEFAULT_VERBOSITY=0;;
  3465. no) AM_DEFAULT_VERBOSITY=1;;
  3466. *) AM_DEFAULT_VERBOSITY=1;;
  3467. esac
  3468. am_make=${MAKE-make}
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3470. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3471. if ${am_cv_make_support_nested_variables+:} false; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. if $as_echo 'TRUE=$(BAR$(V))
  3475. BAR0=false
  3476. BAR1=true
  3477. V=1
  3478. am__doit:
  3479. @$(TRUE)
  3480. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3481. am_cv_make_support_nested_variables=yes
  3482. else
  3483. am_cv_make_support_nested_variables=no
  3484. fi
  3485. fi
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3487. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3488. if test $am_cv_make_support_nested_variables = yes; then
  3489. AM_V='$(V)'
  3490. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3491. else
  3492. AM_V=$AM_DEFAULT_VERBOSITY
  3493. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3494. fi
  3495. AM_BACKSLASH='\'
  3496. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3497. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3498. # is not polluted with repeated "-I."
  3499. am__isrc=' -I$(srcdir)'
  3500. # test to see if srcdir already configured
  3501. if test -f $srcdir/config.status; then
  3502. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3503. fi
  3504. fi
  3505. # test whether we have cygpath
  3506. if test -z "$CYGPATH_W"; then
  3507. if (cygpath --version) >/dev/null 2>/dev/null; then
  3508. CYGPATH_W='cygpath -w'
  3509. else
  3510. CYGPATH_W=echo
  3511. fi
  3512. fi
  3513. # Define the identity of the package.
  3514. PACKAGE='graphviz'
  3515. VERSION='12.2.1'
  3516. # Some tools Automake needs.
  3517. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3518. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3519. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3520. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3521. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3522. # For better backward compatibility. To be removed once Automake 1.9.x
  3523. # dies out for good. For more background, see:
  3524. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3525. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3526. mkdir_p='$(MKDIR_P)'
  3527. # We need awk for the "check" target (and possibly the TAP driver). The
  3528. # system "awk" is bad on some platforms.
  3529. # Always define AMTAR for backward compatibility. Yes, it's still used
  3530. # in the wild :-( We should find a proper way to deprecate it ...
  3531. AMTAR='$${TAR-tar}'
  3532. # We'll loop over all known methods to create a tar archive until one works.
  3533. _am_tools='gnutar plaintar pax cpio none'
  3534. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3535. # There is notably a 21 bits limit for the UID and the GID. In fact,
  3536. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3537. # and bug#13588).
  3538. am_max_uid=2097151 # 2^21 - 1
  3539. am_max_gid=$am_max_uid
  3540. # The $UID and $GID variables are not portable, so we need to resort
  3541. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  3542. # below are definitely unexpected, so allow the users to see them
  3543. # (that is, avoid stderr redirection).
  3544. am_uid=`id -u || echo unknown`
  3545. am_gid=`id -g || echo unknown`
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3547. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3548. if test $am_uid -le $am_max_uid; then
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3550. $as_echo "yes" >&6; }
  3551. else
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3553. $as_echo "no" >&6; }
  3554. _am_tools=none
  3555. fi
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3557. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3558. if test $am_gid -le $am_max_gid; then
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3560. $as_echo "yes" >&6; }
  3561. else
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3563. $as_echo "no" >&6; }
  3564. _am_tools=none
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3567. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3568. # Go ahead even if we have the value already cached. We do so because we
  3569. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3570. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3571. for _am_tool in $_am_tools; do
  3572. case $_am_tool in
  3573. gnutar)
  3574. for _am_tar in tar gnutar gtar; do
  3575. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3576. ($_am_tar --version) >&5 2>&5
  3577. ac_status=$?
  3578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3579. (exit $ac_status); } && break
  3580. done
  3581. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3582. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3583. am__untar="$_am_tar -xf -"
  3584. ;;
  3585. plaintar)
  3586. # Must skip GNU tar: if it does not support --format= it doesn't create
  3587. # ustar tarball either.
  3588. (tar --version) >/dev/null 2>&1 && continue
  3589. am__tar='tar chf - "$$tardir"'
  3590. am__tar_='tar chf - "$tardir"'
  3591. am__untar='tar xf -'
  3592. ;;
  3593. pax)
  3594. am__tar='pax -L -x ustar -w "$$tardir"'
  3595. am__tar_='pax -L -x ustar -w "$tardir"'
  3596. am__untar='pax -r'
  3597. ;;
  3598. cpio)
  3599. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3600. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3601. am__untar='cpio -i -H ustar -d'
  3602. ;;
  3603. none)
  3604. am__tar=false
  3605. am__tar_=false
  3606. am__untar=false
  3607. ;;
  3608. esac
  3609. # If the value was cached, stop now. We just wanted to have am__tar
  3610. # and am__untar set.
  3611. test -n "${am_cv_prog_tar_ustar}" && break
  3612. # tar/untar a dummy directory, and stop if the command works.
  3613. rm -rf conftest.dir
  3614. mkdir conftest.dir
  3615. echo GrepMe > conftest.dir/file
  3616. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3617. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3618. ac_status=$?
  3619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3620. (exit $ac_status); }
  3621. rm -rf conftest.dir
  3622. if test -s conftest.tar; then
  3623. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3624. ($am__untar <conftest.tar) >&5 2>&5
  3625. ac_status=$?
  3626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3627. (exit $ac_status); }
  3628. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3629. (cat conftest.dir/file) >&5 2>&5
  3630. ac_status=$?
  3631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3632. (exit $ac_status); }
  3633. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3634. fi
  3635. done
  3636. rm -rf conftest.dir
  3637. if ${am_cv_prog_tar_ustar+:} false; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. am_cv_prog_tar_ustar=$_am_tool
  3641. fi
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3643. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3644. # POSIX will say in a future version that running "rm -f" with no argument
  3645. # is OK; and we want to be able to make that assumption in our Makefile
  3646. # recipes. So use an aggressive probe to check that the usage we want is
  3647. # actually supported "in the wild" to an acceptable degree.
  3648. # See automake bug#10828.
  3649. # To make any issue more visible, cause the running configure to be aborted
  3650. # by default if the 'rm' program in use doesn't match our expectations; the
  3651. # user can still override this though.
  3652. if rm -f && rm -fr && rm -rf; then : OK; else
  3653. cat >&2 <<'END'
  3654. Oops!
  3655. Your 'rm' program seems unable to run without file operands specified
  3656. on the command line, even when the '-f' option is present. This is contrary
  3657. to the behaviour of most rm programs out there, and not conforming with
  3658. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3659. Please tell [email protected] about your system, including the value
  3660. of your $PATH and any error possibly output before this message. This
  3661. can help us improve future automake versions.
  3662. END
  3663. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3664. echo 'Configuration will proceed anyway, since you have set the' >&2
  3665. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3666. echo >&2
  3667. else
  3668. cat >&2 <<'END'
  3669. Aborting the configuration process, to ensure you take notice of the issue.
  3670. You can download and install GNU coreutils to get an 'rm' implementation
  3671. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3672. If you want to complete the configuration process using your problematic
  3673. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3674. to "yes", and re-run configure.
  3675. END
  3676. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3677. fi
  3678. fi
  3679. # Suppress verbose compile lines
  3680. # Check whether --enable-silent-rules was given.
  3681. if test "${enable_silent_rules+set}" = set; then :
  3682. enableval=$enable_silent_rules;
  3683. fi
  3684. case $enable_silent_rules in # (((
  3685. yes) AM_DEFAULT_VERBOSITY=0;;
  3686. no) AM_DEFAULT_VERBOSITY=1;;
  3687. *) AM_DEFAULT_VERBOSITY=0;;
  3688. esac
  3689. am_make=${MAKE-make}
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3691. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3692. if ${am_cv_make_support_nested_variables+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if $as_echo 'TRUE=$(BAR$(V))
  3696. BAR0=false
  3697. BAR1=true
  3698. V=1
  3699. am__doit:
  3700. @$(TRUE)
  3701. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3702. am_cv_make_support_nested_variables=yes
  3703. else
  3704. am_cv_make_support_nested_variables=no
  3705. fi
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3708. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3709. if test $am_cv_make_support_nested_variables = yes; then
  3710. AM_V='$(V)'
  3711. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3712. else
  3713. AM_V=$AM_DEFAULT_VERBOSITY
  3714. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3715. fi
  3716. AM_BACKSLASH='\'
  3717. ac_config_headers="$ac_config_headers config.h"
  3718. # put BUILDDATE in its own file so that only targets that use it get rebuilt
  3719. echo "#define BUILDDATE \"$GRAPHVIZ_VERSION_DATE\"" > builddate.h
  3720. if test "${prefix}" = "NONE"; then
  3721. prefix=${ac_default_prefix}
  3722. fi
  3723. # Static/Shared binaries
  3724. # Check whether --enable-static was given.
  3725. if test "${enable_static+set}" = set; then :
  3726. enableval=$enable_static;
  3727. fi
  3728. if test "$enable_static" = "yes"; then
  3729. # Check whether --enable-static was given.
  3730. if test "${enable_static+set}" = set; then :
  3731. enableval=$enable_static; p=${PACKAGE-default}
  3732. case $enableval in
  3733. yes) enable_static=yes ;;
  3734. no) enable_static=no ;;
  3735. *)
  3736. enable_static=no
  3737. # Look at the argument we got. We use all the common list separators.
  3738. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  3739. for pkg in $enableval; do
  3740. IFS=$lt_save_ifs
  3741. if test "X$pkg" = "X$p"; then
  3742. enable_static=yes
  3743. fi
  3744. done
  3745. IFS=$lt_save_ifs
  3746. ;;
  3747. esac
  3748. else
  3749. enable_static=yes
  3750. fi
  3751. use_static="Yes"
  3752. else
  3753. # Check whether --enable-static was given.
  3754. if test "${enable_static+set}" = set; then :
  3755. enableval=$enable_static; p=${PACKAGE-default}
  3756. case $enableval in
  3757. yes) enable_static=yes ;;
  3758. no) enable_static=no ;;
  3759. *)
  3760. enable_static=no
  3761. # Look at the argument we got. We use all the common list separators.
  3762. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  3763. for pkg in $enableval; do
  3764. IFS=$lt_save_ifs
  3765. if test "X$pkg" = "X$p"; then
  3766. enable_static=yes
  3767. fi
  3768. done
  3769. IFS=$lt_save_ifs
  3770. ;;
  3771. esac
  3772. else
  3773. enable_static=no
  3774. fi
  3775. use_static="No (disabled by default)"
  3776. fi
  3777. if test "$enable_static" = "yes"; then
  3778. ENABLE_STATIC_TRUE=
  3779. ENABLE_STATIC_FALSE='#'
  3780. else
  3781. ENABLE_STATIC_TRUE='#'
  3782. ENABLE_STATIC_FALSE=
  3783. fi
  3784. # Check whether --enable-shared was given.
  3785. if test "${enable_shared+set}" = set; then :
  3786. enableval=$enable_shared;
  3787. fi
  3788. if test "$enable_shared" != "no"; then
  3789. # Check whether --enable-shared was given.
  3790. if test "${enable_shared+set}" = set; then :
  3791. enableval=$enable_shared; p=${PACKAGE-default}
  3792. case $enableval in
  3793. yes) enable_shared=yes ;;
  3794. no) enable_shared=no ;;
  3795. *)
  3796. enable_shared=no
  3797. # Look at the argument we got. We use all the common list separators.
  3798. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  3799. for pkg in $enableval; do
  3800. IFS=$lt_save_ifs
  3801. if test "X$pkg" = "X$p"; then
  3802. enable_shared=yes
  3803. fi
  3804. done
  3805. IFS=$lt_save_ifs
  3806. ;;
  3807. esac
  3808. else
  3809. enable_shared=yes
  3810. fi
  3811. use_shared="Yes"
  3812. case "${host_os}" in
  3813. *uwin* | *cygwin* | *mingw32* )
  3814. cat >>confdefs.h <<_ACEOF
  3815. #define GVDLL 1
  3816. _ACEOF
  3817. ;;
  3818. esac
  3819. else
  3820. use_shared="No (disabled)"
  3821. # Check whether --enable-shared was given.
  3822. if test "${enable_shared+set}" = set; then :
  3823. enableval=$enable_shared; p=${PACKAGE-default}
  3824. case $enableval in
  3825. yes) enable_shared=yes ;;
  3826. no) enable_shared=no ;;
  3827. *)
  3828. enable_shared=no
  3829. # Look at the argument we got. We use all the common list separators.
  3830. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  3831. for pkg in $enableval; do
  3832. IFS=$lt_save_ifs
  3833. if test "X$pkg" = "X$p"; then
  3834. enable_shared=yes
  3835. fi
  3836. done
  3837. IFS=$lt_save_ifs
  3838. ;;
  3839. esac
  3840. else
  3841. enable_shared=no
  3842. fi
  3843. fi
  3844. if test "$enable_shared" = "yes"; then
  3845. ENABLE_SHARED_TRUE=
  3846. ENABLE_SHARED_FALSE='#'
  3847. else
  3848. ENABLE_SHARED_TRUE='#'
  3849. ENABLE_SHARED_FALSE=
  3850. fi
  3851. DEPDIR="${am__leading_dot}deps"
  3852. ac_config_commands="$ac_config_commands depfiles"
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3854. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3855. cat > confinc.mk << 'END'
  3856. am__doit:
  3857. @echo this is the am__doit target >confinc.out
  3858. .PHONY: am__doit
  3859. END
  3860. am__include="#"
  3861. am__quote=
  3862. # BSD make does it like this.
  3863. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3864. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3865. echo 'include confinc.mk # ignored' > confmf.GNU
  3866. _am_result=no
  3867. for s in GNU BSD; do
  3868. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3869. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3870. ac_status=$?
  3871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3872. (exit $ac_status); }
  3873. case $?:`cat confinc.out 2>/dev/null` in #(
  3874. '0:this is the am__doit target') :
  3875. case $s in #(
  3876. BSD) :
  3877. am__include='.include' am__quote='"' ;; #(
  3878. *) :
  3879. am__include='include' am__quote='' ;;
  3880. esac ;; #(
  3881. *) :
  3882. ;;
  3883. esac
  3884. if test "$am__include" != "#"; then
  3885. _am_result="yes ($s style)"
  3886. break
  3887. fi
  3888. done
  3889. rm -f confinc.* confmf.*
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3891. $as_echo "${_am_result}" >&6; }
  3892. # Check whether --enable-dependency-tracking was given.
  3893. if test "${enable_dependency_tracking+set}" = set; then :
  3894. enableval=$enable_dependency_tracking;
  3895. fi
  3896. if test "x$enable_dependency_tracking" != xno; then
  3897. am_depcomp="$ac_aux_dir/depcomp"
  3898. AMDEPBACKSLASH='\'
  3899. am__nodep='_no'
  3900. fi
  3901. if test "x$enable_dependency_tracking" != xno; then
  3902. AMDEP_TRUE=
  3903. AMDEP_FALSE='#'
  3904. else
  3905. AMDEP_TRUE='#'
  3906. AMDEP_FALSE=
  3907. fi
  3908. ac_ext=c
  3909. ac_cpp='$CPP $CPPFLAGS'
  3910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3913. if test -n "$ac_tool_prefix"; then
  3914. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3915. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3917. $as_echo_n "checking for $ac_word... " >&6; }
  3918. if ${ac_cv_prog_CC+:} false; then :
  3919. $as_echo_n "(cached) " >&6
  3920. else
  3921. if test -n "$CC"; then
  3922. ac_cv_prog_CC="$CC" # Let the user override the test.
  3923. else
  3924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3925. for as_dir in $PATH
  3926. do
  3927. IFS=$as_save_IFS
  3928. test -z "$as_dir" && as_dir=.
  3929. for ac_exec_ext in '' $ac_executable_extensions; do
  3930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3931. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3933. break 2
  3934. fi
  3935. done
  3936. done
  3937. IFS=$as_save_IFS
  3938. fi
  3939. fi
  3940. CC=$ac_cv_prog_CC
  3941. if test -n "$CC"; then
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3943. $as_echo "$CC" >&6; }
  3944. else
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3946. $as_echo "no" >&6; }
  3947. fi
  3948. fi
  3949. if test -z "$ac_cv_prog_CC"; then
  3950. ac_ct_CC=$CC
  3951. # Extract the first word of "gcc", so it can be a program name with args.
  3952. set dummy gcc; ac_word=$2
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3954. $as_echo_n "checking for $ac_word... " >&6; }
  3955. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. if test -n "$ac_ct_CC"; then
  3959. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3960. else
  3961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3962. for as_dir in $PATH
  3963. do
  3964. IFS=$as_save_IFS
  3965. test -z "$as_dir" && as_dir=.
  3966. for ac_exec_ext in '' $ac_executable_extensions; do
  3967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3968. ac_cv_prog_ac_ct_CC="gcc"
  3969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3970. break 2
  3971. fi
  3972. done
  3973. done
  3974. IFS=$as_save_IFS
  3975. fi
  3976. fi
  3977. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3978. if test -n "$ac_ct_CC"; then
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3980. $as_echo "$ac_ct_CC" >&6; }
  3981. else
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3983. $as_echo "no" >&6; }
  3984. fi
  3985. if test "x$ac_ct_CC" = x; then
  3986. CC=""
  3987. else
  3988. case $cross_compiling:$ac_tool_warned in
  3989. yes:)
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3992. ac_tool_warned=yes ;;
  3993. esac
  3994. CC=$ac_ct_CC
  3995. fi
  3996. else
  3997. CC="$ac_cv_prog_CC"
  3998. fi
  3999. if test -z "$CC"; then
  4000. if test -n "$ac_tool_prefix"; then
  4001. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4002. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4004. $as_echo_n "checking for $ac_word... " >&6; }
  4005. if ${ac_cv_prog_CC+:} false; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. if test -n "$CC"; then
  4009. ac_cv_prog_CC="$CC" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4018. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. CC=$ac_cv_prog_CC
  4028. if test -n "$CC"; then
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4030. $as_echo "$CC" >&6; }
  4031. else
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4033. $as_echo "no" >&6; }
  4034. fi
  4035. fi
  4036. fi
  4037. if test -z "$CC"; then
  4038. # Extract the first word of "cc", so it can be a program name with args.
  4039. set dummy cc; ac_word=$2
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4041. $as_echo_n "checking for $ac_word... " >&6; }
  4042. if ${ac_cv_prog_CC+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. if test -n "$CC"; then
  4046. ac_cv_prog_CC="$CC" # Let the user override the test.
  4047. else
  4048. ac_prog_rejected=no
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4056. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4057. ac_prog_rejected=yes
  4058. continue
  4059. fi
  4060. ac_cv_prog_CC="cc"
  4061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4062. break 2
  4063. fi
  4064. done
  4065. done
  4066. IFS=$as_save_IFS
  4067. if test $ac_prog_rejected = yes; then
  4068. # We found a bogon in the path, so make sure we never use it.
  4069. set dummy $ac_cv_prog_CC
  4070. shift
  4071. if test $# != 0; then
  4072. # We chose a different compiler from the bogus one.
  4073. # However, it has the same basename, so the bogon will be chosen
  4074. # first if we set CC to just the basename; use the full file name.
  4075. shift
  4076. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4077. fi
  4078. fi
  4079. fi
  4080. fi
  4081. CC=$ac_cv_prog_CC
  4082. if test -n "$CC"; then
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4084. $as_echo "$CC" >&6; }
  4085. else
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4087. $as_echo "no" >&6; }
  4088. fi
  4089. fi
  4090. if test -z "$CC"; then
  4091. if test -n "$ac_tool_prefix"; then
  4092. for ac_prog in cl.exe
  4093. do
  4094. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4095. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4097. $as_echo_n "checking for $ac_word... " >&6; }
  4098. if ${ac_cv_prog_CC+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. if test -n "$CC"; then
  4102. ac_cv_prog_CC="$CC" # Let the user override the test.
  4103. else
  4104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4105. for as_dir in $PATH
  4106. do
  4107. IFS=$as_save_IFS
  4108. test -z "$as_dir" && as_dir=.
  4109. for ac_exec_ext in '' $ac_executable_extensions; do
  4110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4111. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4113. break 2
  4114. fi
  4115. done
  4116. done
  4117. IFS=$as_save_IFS
  4118. fi
  4119. fi
  4120. CC=$ac_cv_prog_CC
  4121. if test -n "$CC"; then
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4123. $as_echo "$CC" >&6; }
  4124. else
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4126. $as_echo "no" >&6; }
  4127. fi
  4128. test -n "$CC" && break
  4129. done
  4130. fi
  4131. if test -z "$CC"; then
  4132. ac_ct_CC=$CC
  4133. for ac_prog in cl.exe
  4134. do
  4135. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4136. set dummy $ac_prog; ac_word=$2
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4138. $as_echo_n "checking for $ac_word... " >&6; }
  4139. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4140. $as_echo_n "(cached) " >&6
  4141. else
  4142. if test -n "$ac_ct_CC"; then
  4143. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4144. else
  4145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4146. for as_dir in $PATH
  4147. do
  4148. IFS=$as_save_IFS
  4149. test -z "$as_dir" && as_dir=.
  4150. for ac_exec_ext in '' $ac_executable_extensions; do
  4151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4152. ac_cv_prog_ac_ct_CC="$ac_prog"
  4153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4154. break 2
  4155. fi
  4156. done
  4157. done
  4158. IFS=$as_save_IFS
  4159. fi
  4160. fi
  4161. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4162. if test -n "$ac_ct_CC"; then
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4164. $as_echo "$ac_ct_CC" >&6; }
  4165. else
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4167. $as_echo "no" >&6; }
  4168. fi
  4169. test -n "$ac_ct_CC" && break
  4170. done
  4171. if test "x$ac_ct_CC" = x; then
  4172. CC=""
  4173. else
  4174. case $cross_compiling:$ac_tool_warned in
  4175. yes:)
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4177. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4178. ac_tool_warned=yes ;;
  4179. esac
  4180. CC=$ac_ct_CC
  4181. fi
  4182. fi
  4183. fi
  4184. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4186. as_fn_error $? "no acceptable C compiler found in \$PATH
  4187. See \`config.log' for more details" "$LINENO" 5; }
  4188. # Provide some information about the compiler.
  4189. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4190. set X $ac_compile
  4191. ac_compiler=$2
  4192. for ac_option in --version -v -V -qversion; do
  4193. { { ac_try="$ac_compiler $ac_option >&5"
  4194. case "(($ac_try" in
  4195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196. *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4199. $as_echo "$ac_try_echo"; } >&5
  4200. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4201. ac_status=$?
  4202. if test -s conftest.err; then
  4203. sed '10a\
  4204. ... rest of stderr output deleted ...
  4205. 10q' conftest.err >conftest.er1
  4206. cat conftest.er1 >&5
  4207. fi
  4208. rm -f conftest.er1 conftest.err
  4209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4210. test $ac_status = 0; }
  4211. done
  4212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4213. /* end confdefs.h. */
  4214. int
  4215. main ()
  4216. {
  4217. ;
  4218. return 0;
  4219. }
  4220. _ACEOF
  4221. ac_clean_files_save=$ac_clean_files
  4222. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4223. # Try to create an executable without -o first, disregard a.out.
  4224. # It will help us diagnose broken compilers, and finding out an intuition
  4225. # of exeext.
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4227. $as_echo_n "checking whether the C compiler works... " >&6; }
  4228. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4229. # The possible output files:
  4230. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4231. ac_rmfiles=
  4232. for ac_file in $ac_files
  4233. do
  4234. case $ac_file in
  4235. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4236. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4237. esac
  4238. done
  4239. rm -f $ac_rmfiles
  4240. if { { ac_try="$ac_link_default"
  4241. case "(($ac_try" in
  4242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4243. *) ac_try_echo=$ac_try;;
  4244. esac
  4245. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4246. $as_echo "$ac_try_echo"; } >&5
  4247. (eval "$ac_link_default") 2>&5
  4248. ac_status=$?
  4249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4250. test $ac_status = 0; }; then :
  4251. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4252. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4253. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4254. # so that the user can short-circuit this test for compilers unknown to
  4255. # Autoconf.
  4256. for ac_file in $ac_files ''
  4257. do
  4258. test -f "$ac_file" || continue
  4259. case $ac_file in
  4260. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4261. ;;
  4262. [ab].out )
  4263. # We found the default executable, but exeext='' is most
  4264. # certainly right.
  4265. break;;
  4266. *.* )
  4267. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4268. then :; else
  4269. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4270. fi
  4271. # We set ac_cv_exeext here because the later test for it is not
  4272. # safe: cross compilers may not add the suffix if given an `-o'
  4273. # argument, so we may need to know it at that point already.
  4274. # Even if this section looks crufty: it has the advantage of
  4275. # actually working.
  4276. break;;
  4277. * )
  4278. break;;
  4279. esac
  4280. done
  4281. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4282. else
  4283. ac_file=''
  4284. fi
  4285. if test -z "$ac_file"; then :
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4287. $as_echo "no" >&6; }
  4288. $as_echo "$as_me: failed program was:" >&5
  4289. sed 's/^/| /' conftest.$ac_ext >&5
  4290. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4291. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4292. as_fn_error 77 "C compiler cannot create executables
  4293. See \`config.log' for more details" "$LINENO" 5; }
  4294. else
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4296. $as_echo "yes" >&6; }
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4299. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4301. $as_echo "$ac_file" >&6; }
  4302. ac_exeext=$ac_cv_exeext
  4303. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4304. ac_clean_files=$ac_clean_files_save
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4306. $as_echo_n "checking for suffix of executables... " >&6; }
  4307. if { { ac_try="$ac_link"
  4308. case "(($ac_try" in
  4309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4310. *) ac_try_echo=$ac_try;;
  4311. esac
  4312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4313. $as_echo "$ac_try_echo"; } >&5
  4314. (eval "$ac_link") 2>&5
  4315. ac_status=$?
  4316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4317. test $ac_status = 0; }; then :
  4318. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4319. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4320. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4321. # `rm'.
  4322. for ac_file in conftest.exe conftest conftest.*; do
  4323. test -f "$ac_file" || continue
  4324. case $ac_file in
  4325. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4326. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4327. break;;
  4328. * ) break;;
  4329. esac
  4330. done
  4331. else
  4332. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4334. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4335. See \`config.log' for more details" "$LINENO" 5; }
  4336. fi
  4337. rm -f conftest conftest$ac_cv_exeext
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4339. $as_echo "$ac_cv_exeext" >&6; }
  4340. rm -f conftest.$ac_ext
  4341. EXEEXT=$ac_cv_exeext
  4342. ac_exeext=$EXEEXT
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. #include <stdio.h>
  4346. int
  4347. main ()
  4348. {
  4349. FILE *f = fopen ("conftest.out", "w");
  4350. return ferror (f) || fclose (f) != 0;
  4351. ;
  4352. return 0;
  4353. }
  4354. _ACEOF
  4355. ac_clean_files="$ac_clean_files conftest.out"
  4356. # Check that the compiler produces executables we can run. If not, either
  4357. # the compiler is broken, or we cross compile.
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4359. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4360. if test "$cross_compiling" != yes; then
  4361. { { ac_try="$ac_link"
  4362. case "(($ac_try" in
  4363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4364. *) ac_try_echo=$ac_try;;
  4365. esac
  4366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4367. $as_echo "$ac_try_echo"; } >&5
  4368. (eval "$ac_link") 2>&5
  4369. ac_status=$?
  4370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4371. test $ac_status = 0; }
  4372. if { ac_try='./conftest$ac_cv_exeext'
  4373. { { case "(($ac_try" in
  4374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4375. *) ac_try_echo=$ac_try;;
  4376. esac
  4377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4378. $as_echo "$ac_try_echo"; } >&5
  4379. (eval "$ac_try") 2>&5
  4380. ac_status=$?
  4381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4382. test $ac_status = 0; }; }; then
  4383. cross_compiling=no
  4384. else
  4385. if test "$cross_compiling" = maybe; then
  4386. cross_compiling=yes
  4387. else
  4388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4390. as_fn_error $? "cannot run C compiled programs.
  4391. If you meant to cross compile, use \`--host'.
  4392. See \`config.log' for more details" "$LINENO" 5; }
  4393. fi
  4394. fi
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4397. $as_echo "$cross_compiling" >&6; }
  4398. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4399. ac_clean_files=$ac_clean_files_save
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4401. $as_echo_n "checking for suffix of object files... " >&6; }
  4402. if ${ac_cv_objext+:} false; then :
  4403. $as_echo_n "(cached) " >&6
  4404. else
  4405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end confdefs.h. */
  4407. int
  4408. main ()
  4409. {
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. rm -f conftest.o conftest.obj
  4415. if { { ac_try="$ac_compile"
  4416. case "(($ac_try" in
  4417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4418. *) ac_try_echo=$ac_try;;
  4419. esac
  4420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4421. $as_echo "$ac_try_echo"; } >&5
  4422. (eval "$ac_compile") 2>&5
  4423. ac_status=$?
  4424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4425. test $ac_status = 0; }; then :
  4426. for ac_file in conftest.o conftest.obj conftest.*; do
  4427. test -f "$ac_file" || continue;
  4428. case $ac_file in
  4429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4431. break;;
  4432. esac
  4433. done
  4434. else
  4435. $as_echo "$as_me: failed program was:" >&5
  4436. sed 's/^/| /' conftest.$ac_ext >&5
  4437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4439. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4440. See \`config.log' for more details" "$LINENO" 5; }
  4441. fi
  4442. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4443. fi
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4445. $as_echo "$ac_cv_objext" >&6; }
  4446. OBJEXT=$ac_cv_objext
  4447. ac_objext=$OBJEXT
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4449. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4450. if ${ac_cv_c_compiler_gnu+:} false; then :
  4451. $as_echo_n "(cached) " >&6
  4452. else
  4453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4454. /* end confdefs.h. */
  4455. int
  4456. main ()
  4457. {
  4458. #ifndef __GNUC__
  4459. choke me
  4460. #endif
  4461. ;
  4462. return 0;
  4463. }
  4464. _ACEOF
  4465. if ac_fn_c_try_compile "$LINENO"; then :
  4466. ac_compiler_gnu=yes
  4467. else
  4468. ac_compiler_gnu=no
  4469. fi
  4470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4471. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4472. fi
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4474. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4475. if test $ac_compiler_gnu = yes; then
  4476. GCC=yes
  4477. else
  4478. GCC=
  4479. fi
  4480. ac_test_CFLAGS=${CFLAGS+set}
  4481. ac_save_CFLAGS=$CFLAGS
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4483. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4484. if ${ac_cv_prog_cc_g+:} false; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. ac_save_c_werror_flag=$ac_c_werror_flag
  4488. ac_c_werror_flag=yes
  4489. ac_cv_prog_cc_g=no
  4490. CFLAGS="-g"
  4491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4492. /* end confdefs.h. */
  4493. int
  4494. main ()
  4495. {
  4496. ;
  4497. return 0;
  4498. }
  4499. _ACEOF
  4500. if ac_fn_c_try_compile "$LINENO"; then :
  4501. ac_cv_prog_cc_g=yes
  4502. else
  4503. CFLAGS=""
  4504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4505. /* end confdefs.h. */
  4506. int
  4507. main ()
  4508. {
  4509. ;
  4510. return 0;
  4511. }
  4512. _ACEOF
  4513. if ac_fn_c_try_compile "$LINENO"; then :
  4514. else
  4515. ac_c_werror_flag=$ac_save_c_werror_flag
  4516. CFLAGS="-g"
  4517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4518. /* end confdefs.h. */
  4519. int
  4520. main ()
  4521. {
  4522. ;
  4523. return 0;
  4524. }
  4525. _ACEOF
  4526. if ac_fn_c_try_compile "$LINENO"; then :
  4527. ac_cv_prog_cc_g=yes
  4528. fi
  4529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4530. fi
  4531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4532. fi
  4533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4534. ac_c_werror_flag=$ac_save_c_werror_flag
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4537. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4538. if test "$ac_test_CFLAGS" = set; then
  4539. CFLAGS=$ac_save_CFLAGS
  4540. elif test $ac_cv_prog_cc_g = yes; then
  4541. if test "$GCC" = yes; then
  4542. CFLAGS="-g -O2"
  4543. else
  4544. CFLAGS="-g"
  4545. fi
  4546. else
  4547. if test "$GCC" = yes; then
  4548. CFLAGS="-O2"
  4549. else
  4550. CFLAGS=
  4551. fi
  4552. fi
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4554. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4555. if ${ac_cv_prog_cc_c89+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. ac_cv_prog_cc_c89=no
  4559. ac_save_CC=$CC
  4560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4561. /* end confdefs.h. */
  4562. #include <stdarg.h>
  4563. #include <stdio.h>
  4564. struct stat;
  4565. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4566. struct buf { int x; };
  4567. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4568. static char *e (p, i)
  4569. char **p;
  4570. int i;
  4571. {
  4572. return p[i];
  4573. }
  4574. static char *f (char * (*g) (char **, int), char **p, ...)
  4575. {
  4576. char *s;
  4577. va_list v;
  4578. va_start (v,p);
  4579. s = g (p, va_arg (v,int));
  4580. va_end (v);
  4581. return s;
  4582. }
  4583. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4584. function prototypes and stuff, but not '\xHH' hex character constants.
  4585. These don't provoke an error unfortunately, instead are silently treated
  4586. as 'x'. The following induces an error, until -std is added to get
  4587. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4588. array size at least. It's necessary to write '\x00'==0 to get something
  4589. that's true only with -std. */
  4590. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4591. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4592. inside strings and character constants. */
  4593. #define FOO(x) 'x'
  4594. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4595. int test (int i, double x);
  4596. struct s1 {int (*f) (int a);};
  4597. struct s2 {int (*f) (double a);};
  4598. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4599. int argc;
  4600. char **argv;
  4601. int
  4602. main ()
  4603. {
  4604. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4605. ;
  4606. return 0;
  4607. }
  4608. _ACEOF
  4609. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4610. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4611. do
  4612. CC="$ac_save_CC $ac_arg"
  4613. if ac_fn_c_try_compile "$LINENO"; then :
  4614. ac_cv_prog_cc_c89=$ac_arg
  4615. fi
  4616. rm -f core conftest.err conftest.$ac_objext
  4617. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4618. done
  4619. rm -f conftest.$ac_ext
  4620. CC=$ac_save_CC
  4621. fi
  4622. # AC_CACHE_VAL
  4623. case "x$ac_cv_prog_cc_c89" in
  4624. x)
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4626. $as_echo "none needed" >&6; } ;;
  4627. xno)
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4629. $as_echo "unsupported" >&6; } ;;
  4630. *)
  4631. CC="$CC $ac_cv_prog_cc_c89"
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4633. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4634. esac
  4635. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4636. fi
  4637. ac_ext=c
  4638. ac_cpp='$CPP $CPPFLAGS'
  4639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4642. ac_ext=c
  4643. ac_cpp='$CPP $CPPFLAGS'
  4644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4648. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4649. if ${am_cv_prog_cc_c_o+:} false; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4653. /* end confdefs.h. */
  4654. int
  4655. main ()
  4656. {
  4657. ;
  4658. return 0;
  4659. }
  4660. _ACEOF
  4661. # Make sure it works both with $CC and with simple cc.
  4662. # Following AC_PROG_CC_C_O, we do the test twice because some
  4663. # compilers refuse to overwrite an existing .o file with -o,
  4664. # though they will create one.
  4665. am_cv_prog_cc_c_o=yes
  4666. for am_i in 1 2; do
  4667. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4668. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4669. ac_status=$?
  4670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. (exit $ac_status); } \
  4672. && test -f conftest2.$ac_objext; then
  4673. : OK
  4674. else
  4675. am_cv_prog_cc_c_o=no
  4676. break
  4677. fi
  4678. done
  4679. rm -f core conftest*
  4680. unset am_i
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4683. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4684. if test "$am_cv_prog_cc_c_o" != yes; then
  4685. # Losing compiler, so override with the script.
  4686. # FIXME: It is wrong to rewrite CC.
  4687. # But if we don't then we get into trouble of one sort or another.
  4688. # A longer-term fix would be to have automake use am__CC in this case,
  4689. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4690. CC="$am_aux_dir/compile $CC"
  4691. fi
  4692. ac_ext=c
  4693. ac_cpp='$CPP $CPPFLAGS'
  4694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4697. depcc="$CC" am_compiler_list=
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4699. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4700. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4701. $as_echo_n "(cached) " >&6
  4702. else
  4703. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4704. # We make a subdir and do the tests there. Otherwise we can end up
  4705. # making bogus files that we don't know about and never remove. For
  4706. # instance it was reported that on HP-UX the gcc test will end up
  4707. # making a dummy file named 'D' -- because '-MD' means "put the output
  4708. # in D".
  4709. rm -rf conftest.dir
  4710. mkdir conftest.dir
  4711. # Copy depcomp to subdir because otherwise we won't find it if we're
  4712. # using a relative directory.
  4713. cp "$am_depcomp" conftest.dir
  4714. cd conftest.dir
  4715. # We will build objects and dependencies in a subdirectory because
  4716. # it helps to detect inapplicable dependency modes. For instance
  4717. # both Tru64's cc and ICC support -MD to output dependencies as a
  4718. # side effect of compilation, but ICC will put the dependencies in
  4719. # the current directory while Tru64 will put them in the object
  4720. # directory.
  4721. mkdir sub
  4722. am_cv_CC_dependencies_compiler_type=none
  4723. if test "$am_compiler_list" = ""; then
  4724. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4725. fi
  4726. am__universal=false
  4727. case " $depcc " in #(
  4728. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4729. esac
  4730. for depmode in $am_compiler_list; do
  4731. # Setup a source with many dependencies, because some compilers
  4732. # like to wrap large dependency lists on column 80 (with \), and
  4733. # we should not choose a depcomp mode which is confused by this.
  4734. #
  4735. # We need to recreate these files for each test, as the compiler may
  4736. # overwrite some of them when testing with obscure command lines.
  4737. # This happens at least with the AIX C compiler.
  4738. : > sub/conftest.c
  4739. for i in 1 2 3 4 5 6; do
  4740. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4741. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4742. # Solaris 10 /bin/sh.
  4743. echo '/* dummy */' > sub/conftst$i.h
  4744. done
  4745. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4746. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4747. # mode. It turns out that the SunPro C++ compiler does not properly
  4748. # handle '-M -o', and we need to detect this. Also, some Intel
  4749. # versions had trouble with output in subdirs.
  4750. am__obj=sub/conftest.${OBJEXT-o}
  4751. am__minus_obj="-o $am__obj"
  4752. case $depmode in
  4753. gcc)
  4754. # This depmode causes a compiler race in universal mode.
  4755. test "$am__universal" = false || continue
  4756. ;;
  4757. nosideeffect)
  4758. # After this tag, mechanisms are not by side-effect, so they'll
  4759. # only be used when explicitly requested.
  4760. if test "x$enable_dependency_tracking" = xyes; then
  4761. continue
  4762. else
  4763. break
  4764. fi
  4765. ;;
  4766. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4767. # This compiler won't grok '-c -o', but also, the minuso test has
  4768. # not run yet. These depmodes are late enough in the game, and
  4769. # so weak that their functioning should not be impacted.
  4770. am__obj=conftest.${OBJEXT-o}
  4771. am__minus_obj=
  4772. ;;
  4773. none) break ;;
  4774. esac
  4775. if depmode=$depmode \
  4776. source=sub/conftest.c object=$am__obj \
  4777. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4778. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4779. >/dev/null 2>conftest.err &&
  4780. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4781. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4782. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4783. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4784. # icc doesn't choke on unknown options, it will just issue warnings
  4785. # or remarks (even with -Werror). So we grep stderr for any message
  4786. # that says an option was ignored or not supported.
  4787. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4788. # icc: Command line warning: ignoring option '-M'; no argument required
  4789. # The diagnosis changed in icc 8.0:
  4790. # icc: Command line remark: option '-MP' not supported
  4791. if (grep 'ignoring option' conftest.err ||
  4792. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4793. am_cv_CC_dependencies_compiler_type=$depmode
  4794. break
  4795. fi
  4796. fi
  4797. done
  4798. cd ..
  4799. rm -rf conftest.dir
  4800. else
  4801. am_cv_CC_dependencies_compiler_type=none
  4802. fi
  4803. fi
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4805. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4806. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4807. if
  4808. test "x$enable_dependency_tracking" != xno \
  4809. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4810. am__fastdepCC_TRUE=
  4811. am__fastdepCC_FALSE='#'
  4812. else
  4813. am__fastdepCC_TRUE='#'
  4814. am__fastdepCC_FALSE=
  4815. fi
  4816. for ac_prog in flex lex
  4817. do
  4818. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4819. set dummy $ac_prog; ac_word=$2
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4821. $as_echo_n "checking for $ac_word... " >&6; }
  4822. if ${ac_cv_prog_LEX+:} false; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. if test -n "$LEX"; then
  4826. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4827. else
  4828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4829. for as_dir in $PATH
  4830. do
  4831. IFS=$as_save_IFS
  4832. test -z "$as_dir" && as_dir=.
  4833. for ac_exec_ext in '' $ac_executable_extensions; do
  4834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4835. ac_cv_prog_LEX="$ac_prog"
  4836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4837. break 2
  4838. fi
  4839. done
  4840. done
  4841. IFS=$as_save_IFS
  4842. fi
  4843. fi
  4844. LEX=$ac_cv_prog_LEX
  4845. if test -n "$LEX"; then
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  4847. $as_echo "$LEX" >&6; }
  4848. else
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4850. $as_echo "no" >&6; }
  4851. fi
  4852. test -n "$LEX" && break
  4853. done
  4854. test -n "$LEX" || LEX=":"
  4855. if test "x$LEX" != "x:"; then
  4856. cat >conftest.l <<_ACEOF
  4857. %%
  4858. a { ECHO; }
  4859. b { REJECT; }
  4860. c { yymore (); }
  4861. d { yyless (1); }
  4862. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4863. yyless ((input () != 0)); }
  4864. f { unput (yytext[0]); }
  4865. . { BEGIN INITIAL; }
  4866. %%
  4867. #ifdef YYTEXT_POINTER
  4868. extern char *yytext;
  4869. #endif
  4870. int
  4871. main (void)
  4872. {
  4873. return ! yylex () + ! yywrap ();
  4874. }
  4875. _ACEOF
  4876. { { ac_try="$LEX conftest.l"
  4877. case "(($ac_try" in
  4878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4879. *) ac_try_echo=$ac_try;;
  4880. esac
  4881. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4882. $as_echo "$ac_try_echo"; } >&5
  4883. (eval "$LEX conftest.l") 2>&5
  4884. ac_status=$?
  4885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4886. test $ac_status = 0; }
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  4888. $as_echo_n "checking lex output file root... " >&6; }
  4889. if ${ac_cv_prog_lex_root+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. if test -f lex.yy.c; then
  4893. ac_cv_prog_lex_root=lex.yy
  4894. elif test -f lexyy.c; then
  4895. ac_cv_prog_lex_root=lexyy
  4896. else
  4897. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  4898. fi
  4899. fi
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  4901. $as_echo "$ac_cv_prog_lex_root" >&6; }
  4902. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  4903. if test -z "${LEXLIB+set}"; then
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  4905. $as_echo_n "checking lex library... " >&6; }
  4906. if ${ac_cv_lib_lex+:} false; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. ac_save_LIBS=$LIBS
  4910. ac_cv_lib_lex='none needed'
  4911. for ac_lib in '' -lfl -ll; do
  4912. LIBS="$ac_lib $ac_save_LIBS"
  4913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4914. /* end confdefs.h. */
  4915. `cat $LEX_OUTPUT_ROOT.c`
  4916. _ACEOF
  4917. if ac_fn_c_try_link "$LINENO"; then :
  4918. ac_cv_lib_lex=$ac_lib
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext \
  4921. conftest$ac_exeext conftest.$ac_ext
  4922. test "$ac_cv_lib_lex" != 'none needed' && break
  4923. done
  4924. LIBS=$ac_save_LIBS
  4925. fi
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  4927. $as_echo "$ac_cv_lib_lex" >&6; }
  4928. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  4929. fi
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  4931. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  4932. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. # POSIX says lex can declare yytext either as a pointer or an array; the
  4936. # default is implementation-dependent. Figure out which it is, since
  4937. # not all implementations provide the %pointer and %array declarations.
  4938. ac_cv_prog_lex_yytext_pointer=no
  4939. ac_save_LIBS=$LIBS
  4940. LIBS="$LEXLIB $ac_save_LIBS"
  4941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4942. /* end confdefs.h. */
  4943. #define YYTEXT_POINTER 1
  4944. `cat $LEX_OUTPUT_ROOT.c`
  4945. _ACEOF
  4946. if ac_fn_c_try_link "$LINENO"; then :
  4947. ac_cv_prog_lex_yytext_pointer=yes
  4948. fi
  4949. rm -f core conftest.err conftest.$ac_objext \
  4950. conftest$ac_exeext conftest.$ac_ext
  4951. LIBS=$ac_save_LIBS
  4952. fi
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  4954. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  4955. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  4956. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  4957. fi
  4958. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  4959. fi
  4960. if test "$LEX" = :; then
  4961. LEX=${am_missing_run}flex
  4962. fi
  4963. for ac_prog in 'bison -y' byacc
  4964. do
  4965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4966. set dummy $ac_prog; ac_word=$2
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4968. $as_echo_n "checking for $ac_word... " >&6; }
  4969. if ${ac_cv_prog_YACC+:} false; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. if test -n "$YACC"; then
  4973. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4982. ac_cv_prog_YACC="$ac_prog"
  4983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. YACC=$ac_cv_prog_YACC
  4992. if test -n "$YACC"; then
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4994. $as_echo "$YACC" >&6; }
  4995. else
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4997. $as_echo "no" >&6; }
  4998. fi
  4999. test -n "$YACC" && break
  5000. done
  5001. test -n "$YACC" || YACC="yacc"
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5003. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5004. if ${ac_cv_path_GREP+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -z "$GREP"; then
  5008. ac_path_GREP_found=false
  5009. # Loop through the user's path and test for each of PROGNAME-LIST
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_prog in grep ggrep; do
  5016. for ac_exec_ext in '' $ac_executable_extensions; do
  5017. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5018. as_fn_executable_p "$ac_path_GREP" || continue
  5019. # Check for GNU ac_path_GREP and select it if it is found.
  5020. # Check for GNU $ac_path_GREP
  5021. case `"$ac_path_GREP" --version 2>&1` in
  5022. *GNU*)
  5023. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5024. *)
  5025. ac_count=0
  5026. $as_echo_n 0123456789 >"conftest.in"
  5027. while :
  5028. do
  5029. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5030. mv "conftest.tmp" "conftest.in"
  5031. cp "conftest.in" "conftest.nl"
  5032. $as_echo 'GREP' >> "conftest.nl"
  5033. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5034. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5035. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5036. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5037. # Best one so far, save it but keep looking for a better one
  5038. ac_cv_path_GREP="$ac_path_GREP"
  5039. ac_path_GREP_max=$ac_count
  5040. fi
  5041. # 10*(2^10) chars as input seems more than enough
  5042. test $ac_count -gt 10 && break
  5043. done
  5044. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5045. esac
  5046. $ac_path_GREP_found && break 3
  5047. done
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. if test -z "$ac_cv_path_GREP"; then
  5052. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5053. fi
  5054. else
  5055. ac_cv_path_GREP=$GREP
  5056. fi
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5059. $as_echo "$ac_cv_path_GREP" >&6; }
  5060. GREP="$ac_cv_path_GREP"
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5062. $as_echo_n "checking for egrep... " >&6; }
  5063. if ${ac_cv_path_EGREP+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5067. then ac_cv_path_EGREP="$GREP -E"
  5068. else
  5069. if test -z "$EGREP"; then
  5070. ac_path_EGREP_found=false
  5071. # Loop through the user's path and test for each of PROGNAME-LIST
  5072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5073. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5074. do
  5075. IFS=$as_save_IFS
  5076. test -z "$as_dir" && as_dir=.
  5077. for ac_prog in egrep; do
  5078. for ac_exec_ext in '' $ac_executable_extensions; do
  5079. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5080. as_fn_executable_p "$ac_path_EGREP" || continue
  5081. # Check for GNU ac_path_EGREP and select it if it is found.
  5082. # Check for GNU $ac_path_EGREP
  5083. case `"$ac_path_EGREP" --version 2>&1` in
  5084. *GNU*)
  5085. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5086. *)
  5087. ac_count=0
  5088. $as_echo_n 0123456789 >"conftest.in"
  5089. while :
  5090. do
  5091. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5092. mv "conftest.tmp" "conftest.in"
  5093. cp "conftest.in" "conftest.nl"
  5094. $as_echo 'EGREP' >> "conftest.nl"
  5095. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5096. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5097. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5098. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5099. # Best one so far, save it but keep looking for a better one
  5100. ac_cv_path_EGREP="$ac_path_EGREP"
  5101. ac_path_EGREP_max=$ac_count
  5102. fi
  5103. # 10*(2^10) chars as input seems more than enough
  5104. test $ac_count -gt 10 && break
  5105. done
  5106. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5107. esac
  5108. $ac_path_EGREP_found && break 3
  5109. done
  5110. done
  5111. done
  5112. IFS=$as_save_IFS
  5113. if test -z "$ac_cv_path_EGREP"; then
  5114. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5115. fi
  5116. else
  5117. ac_cv_path_EGREP=$EGREP
  5118. fi
  5119. fi
  5120. fi
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5122. $as_echo "$ac_cv_path_EGREP" >&6; }
  5123. EGREP="$ac_cv_path_EGREP"
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5125. $as_echo_n "checking whether ln -s works... " >&6; }
  5126. LN_S=$as_ln_s
  5127. if test "$LN_S" = "ln -s"; then
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5129. $as_echo "yes" >&6; }
  5130. else
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5132. $as_echo "no, using $LN_S" >&6; }
  5133. fi
  5134. case `pwd` in
  5135. *\ * | *\ *)
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5137. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5138. esac
  5139. macro_version='2.4.6'
  5140. macro_revision='2.4.6'
  5141. ltmain=$ac_aux_dir/ltmain.sh
  5142. # Backslashify metacharacters that are still active within
  5143. # double-quoted strings.
  5144. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5145. # Same as above, but do not quote variable references.
  5146. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5147. # Sed substitution to delay expansion of an escaped shell variable in a
  5148. # double_quote_subst'ed string.
  5149. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5150. # Sed substitution to delay expansion of an escaped single quote.
  5151. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5152. # Sed substitution to avoid accidental globbing in evaled expressions
  5153. no_glob_subst='s/\*/\\\*/g'
  5154. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5155. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5156. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5158. $as_echo_n "checking how to print strings... " >&6; }
  5159. # Test print first, because it will be a builtin if present.
  5160. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5161. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5162. ECHO='print -r --'
  5163. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5164. ECHO='printf %s\n'
  5165. else
  5166. # Use this function as a fallback that always works.
  5167. func_fallback_echo ()
  5168. {
  5169. eval 'cat <<_LTECHO_EOF
  5170. $1
  5171. _LTECHO_EOF'
  5172. }
  5173. ECHO='func_fallback_echo'
  5174. fi
  5175. # func_echo_all arg...
  5176. # Invoke $ECHO with all args, space-separated.
  5177. func_echo_all ()
  5178. {
  5179. $ECHO ""
  5180. }
  5181. case $ECHO in
  5182. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5183. $as_echo "printf" >&6; } ;;
  5184. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5185. $as_echo "print -r" >&6; } ;;
  5186. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5187. $as_echo "cat" >&6; } ;;
  5188. esac
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5190. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5191. if ${ac_cv_path_SED+:} false; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5195. for ac_i in 1 2 3 4 5 6 7; do
  5196. ac_script="$ac_script$as_nl$ac_script"
  5197. done
  5198. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5199. { ac_script=; unset ac_script;}
  5200. if test -z "$SED"; then
  5201. ac_path_SED_found=false
  5202. # Loop through the user's path and test for each of PROGNAME-LIST
  5203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5204. for as_dir in $PATH
  5205. do
  5206. IFS=$as_save_IFS
  5207. test -z "$as_dir" && as_dir=.
  5208. for ac_prog in sed gsed; do
  5209. for ac_exec_ext in '' $ac_executable_extensions; do
  5210. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5211. as_fn_executable_p "$ac_path_SED" || continue
  5212. # Check for GNU ac_path_SED and select it if it is found.
  5213. # Check for GNU $ac_path_SED
  5214. case `"$ac_path_SED" --version 2>&1` in
  5215. *GNU*)
  5216. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5217. *)
  5218. ac_count=0
  5219. $as_echo_n 0123456789 >"conftest.in"
  5220. while :
  5221. do
  5222. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5223. mv "conftest.tmp" "conftest.in"
  5224. cp "conftest.in" "conftest.nl"
  5225. $as_echo '' >> "conftest.nl"
  5226. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5227. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5228. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5229. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5230. # Best one so far, save it but keep looking for a better one
  5231. ac_cv_path_SED="$ac_path_SED"
  5232. ac_path_SED_max=$ac_count
  5233. fi
  5234. # 10*(2^10) chars as input seems more than enough
  5235. test $ac_count -gt 10 && break
  5236. done
  5237. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5238. esac
  5239. $ac_path_SED_found && break 3
  5240. done
  5241. done
  5242. done
  5243. IFS=$as_save_IFS
  5244. if test -z "$ac_cv_path_SED"; then
  5245. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5246. fi
  5247. else
  5248. ac_cv_path_SED=$SED
  5249. fi
  5250. fi
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5252. $as_echo "$ac_cv_path_SED" >&6; }
  5253. SED="$ac_cv_path_SED"
  5254. rm -f conftest.sed
  5255. test -z "$SED" && SED=sed
  5256. Xsed="$SED -e 1s/^X//"
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5258. $as_echo_n "checking for fgrep... " >&6; }
  5259. if ${ac_cv_path_FGREP+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5263. then ac_cv_path_FGREP="$GREP -F"
  5264. else
  5265. if test -z "$FGREP"; then
  5266. ac_path_FGREP_found=false
  5267. # Loop through the user's path and test for each of PROGNAME-LIST
  5268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5269. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5270. do
  5271. IFS=$as_save_IFS
  5272. test -z "$as_dir" && as_dir=.
  5273. for ac_prog in fgrep; do
  5274. for ac_exec_ext in '' $ac_executable_extensions; do
  5275. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5276. as_fn_executable_p "$ac_path_FGREP" || continue
  5277. # Check for GNU ac_path_FGREP and select it if it is found.
  5278. # Check for GNU $ac_path_FGREP
  5279. case `"$ac_path_FGREP" --version 2>&1` in
  5280. *GNU*)
  5281. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5282. *)
  5283. ac_count=0
  5284. $as_echo_n 0123456789 >"conftest.in"
  5285. while :
  5286. do
  5287. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5288. mv "conftest.tmp" "conftest.in"
  5289. cp "conftest.in" "conftest.nl"
  5290. $as_echo 'FGREP' >> "conftest.nl"
  5291. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5292. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5293. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5294. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5295. # Best one so far, save it but keep looking for a better one
  5296. ac_cv_path_FGREP="$ac_path_FGREP"
  5297. ac_path_FGREP_max=$ac_count
  5298. fi
  5299. # 10*(2^10) chars as input seems more than enough
  5300. test $ac_count -gt 10 && break
  5301. done
  5302. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5303. esac
  5304. $ac_path_FGREP_found && break 3
  5305. done
  5306. done
  5307. done
  5308. IFS=$as_save_IFS
  5309. if test -z "$ac_cv_path_FGREP"; then
  5310. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5311. fi
  5312. else
  5313. ac_cv_path_FGREP=$FGREP
  5314. fi
  5315. fi
  5316. fi
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5318. $as_echo "$ac_cv_path_FGREP" >&6; }
  5319. FGREP="$ac_cv_path_FGREP"
  5320. test -z "$GREP" && GREP=grep
  5321. # Check whether --with-gnu-ld was given.
  5322. if test "${with_gnu_ld+set}" = set; then :
  5323. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5324. else
  5325. with_gnu_ld=no
  5326. fi
  5327. ac_prog=ld
  5328. if test yes = "$GCC"; then
  5329. # Check if gcc -print-prog-name=ld gives a path.
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5331. $as_echo_n "checking for ld used by $CC... " >&6; }
  5332. case $host in
  5333. *-*-mingw*)
  5334. # gcc leaves a trailing carriage return, which upsets mingw
  5335. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5336. *)
  5337. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5338. esac
  5339. case $ac_prog in
  5340. # Accept absolute paths.
  5341. [\\/]* | ?:[\\/]*)
  5342. re_direlt='/[^/][^/]*/\.\./'
  5343. # Canonicalize the pathname of ld
  5344. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5345. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5346. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5347. done
  5348. test -z "$LD" && LD=$ac_prog
  5349. ;;
  5350. "")
  5351. # If it fails, then pretend we aren't using GCC.
  5352. ac_prog=ld
  5353. ;;
  5354. *)
  5355. # If it is relative, then search for the first ld in PATH.
  5356. with_gnu_ld=unknown
  5357. ;;
  5358. esac
  5359. elif test yes = "$with_gnu_ld"; then
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5361. $as_echo_n "checking for GNU ld... " >&6; }
  5362. else
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5364. $as_echo_n "checking for non-GNU ld... " >&6; }
  5365. fi
  5366. if ${lt_cv_path_LD+:} false; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. if test -z "$LD"; then
  5370. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5371. for ac_dir in $PATH; do
  5372. IFS=$lt_save_ifs
  5373. test -z "$ac_dir" && ac_dir=.
  5374. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5375. lt_cv_path_LD=$ac_dir/$ac_prog
  5376. # Check to see if the program is GNU ld. I'd rather use --version,
  5377. # but apparently some variants of GNU ld only accept -v.
  5378. # Break only if it was the GNU/non-GNU ld that we prefer.
  5379. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5380. *GNU* | *'with BFD'*)
  5381. test no != "$with_gnu_ld" && break
  5382. ;;
  5383. *)
  5384. test yes != "$with_gnu_ld" && break
  5385. ;;
  5386. esac
  5387. fi
  5388. done
  5389. IFS=$lt_save_ifs
  5390. else
  5391. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5392. fi
  5393. fi
  5394. LD=$lt_cv_path_LD
  5395. if test -n "$LD"; then
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5397. $as_echo "$LD" >&6; }
  5398. else
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5400. $as_echo "no" >&6; }
  5401. fi
  5402. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5404. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5405. if ${lt_cv_prog_gnu_ld+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5409. case `$LD -v 2>&1 </dev/null` in
  5410. *GNU* | *'with BFD'*)
  5411. lt_cv_prog_gnu_ld=yes
  5412. ;;
  5413. *)
  5414. lt_cv_prog_gnu_ld=no
  5415. ;;
  5416. esac
  5417. fi
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5419. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5420. with_gnu_ld=$lt_cv_prog_gnu_ld
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5422. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5423. if ${lt_cv_path_NM+:} false; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. if test -n "$NM"; then
  5427. # Let the user override the test.
  5428. lt_cv_path_NM=$NM
  5429. else
  5430. lt_nm_to_check=${ac_tool_prefix}nm
  5431. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5432. lt_nm_to_check="$lt_nm_to_check nm"
  5433. fi
  5434. for lt_tmp_nm in $lt_nm_to_check; do
  5435. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5436. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5437. IFS=$lt_save_ifs
  5438. test -z "$ac_dir" && ac_dir=.
  5439. tmp_nm=$ac_dir/$lt_tmp_nm
  5440. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5441. # Check to see if the nm accepts a BSD-compat flag.
  5442. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5443. # nm: unknown option "B" ignored
  5444. # Tru64's nm complains that /dev/null is an invalid object file
  5445. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5446. case $build_os in
  5447. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5448. *) lt_bad_file=/dev/null ;;
  5449. esac
  5450. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5451. *$lt_bad_file* | *'Invalid file or object type'*)
  5452. lt_cv_path_NM="$tmp_nm -B"
  5453. break 2
  5454. ;;
  5455. *)
  5456. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5457. */dev/null*)
  5458. lt_cv_path_NM="$tmp_nm -p"
  5459. break 2
  5460. ;;
  5461. *)
  5462. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5463. continue # so that we can try to find one that supports BSD flags
  5464. ;;
  5465. esac
  5466. ;;
  5467. esac
  5468. fi
  5469. done
  5470. IFS=$lt_save_ifs
  5471. done
  5472. : ${lt_cv_path_NM=no}
  5473. fi
  5474. fi
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5476. $as_echo "$lt_cv_path_NM" >&6; }
  5477. if test no != "$lt_cv_path_NM"; then
  5478. NM=$lt_cv_path_NM
  5479. else
  5480. # Didn't find any BSD compatible name lister, look for dumpbin.
  5481. if test -n "$DUMPBIN"; then :
  5482. # Let the user override the test.
  5483. else
  5484. if test -n "$ac_tool_prefix"; then
  5485. for ac_prog in dumpbin "link -dump"
  5486. do
  5487. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5488. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$DUMPBIN"; then
  5495. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. DUMPBIN=$ac_cv_prog_DUMPBIN
  5514. if test -n "$DUMPBIN"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5516. $as_echo "$DUMPBIN" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. test -n "$DUMPBIN" && break
  5522. done
  5523. fi
  5524. if test -z "$DUMPBIN"; then
  5525. ac_ct_DUMPBIN=$DUMPBIN
  5526. for ac_prog in dumpbin "link -dump"
  5527. do
  5528. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5529. set dummy $ac_prog; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$ac_ct_DUMPBIN"; then
  5536. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5545. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5555. if test -n "$ac_ct_DUMPBIN"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5557. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. test -n "$ac_ct_DUMPBIN" && break
  5563. done
  5564. if test "x$ac_ct_DUMPBIN" = x; then
  5565. DUMPBIN=":"
  5566. else
  5567. case $cross_compiling:$ac_tool_warned in
  5568. yes:)
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5571. ac_tool_warned=yes ;;
  5572. esac
  5573. DUMPBIN=$ac_ct_DUMPBIN
  5574. fi
  5575. fi
  5576. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5577. *COFF*)
  5578. DUMPBIN="$DUMPBIN -symbols -headers"
  5579. ;;
  5580. *)
  5581. DUMPBIN=:
  5582. ;;
  5583. esac
  5584. fi
  5585. if test : != "$DUMPBIN"; then
  5586. NM=$DUMPBIN
  5587. fi
  5588. fi
  5589. test -z "$NM" && NM=nm
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5591. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5592. if ${lt_cv_nm_interface+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. lt_cv_nm_interface="BSD nm"
  5596. echo "int some_variable = 0;" > conftest.$ac_ext
  5597. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5598. (eval "$ac_compile" 2>conftest.err)
  5599. cat conftest.err >&5
  5600. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5601. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5602. cat conftest.err >&5
  5603. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5604. cat conftest.out >&5
  5605. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5606. lt_cv_nm_interface="MS dumpbin"
  5607. fi
  5608. rm -f conftest*
  5609. fi
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5611. $as_echo "$lt_cv_nm_interface" >&6; }
  5612. # find the maximum length of command line arguments
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5614. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5615. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5616. $as_echo_n "(cached) " >&6
  5617. else
  5618. i=0
  5619. teststring=ABCD
  5620. case $build_os in
  5621. msdosdjgpp*)
  5622. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5623. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5624. # during glob expansion). Even if it were fixed, the result of this
  5625. # check would be larger than it should be.
  5626. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5627. ;;
  5628. gnu*)
  5629. # Under GNU Hurd, this test is not required because there is
  5630. # no limit to the length of command line arguments.
  5631. # Libtool will interpret -1 as no limit whatsoever
  5632. lt_cv_sys_max_cmd_len=-1;
  5633. ;;
  5634. cygwin* | mingw* | cegcc*)
  5635. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5636. # about 5 minutes as the teststring grows exponentially.
  5637. # Worse, since 9x/ME are not pre-emptively multitasking,
  5638. # you end up with a "frozen" computer, even though with patience
  5639. # the test eventually succeeds (with a max line length of 256k).
  5640. # Instead, let's just punt: use the minimum linelength reported by
  5641. # all of the supported platforms: 8192 (on NT/2K/XP).
  5642. lt_cv_sys_max_cmd_len=8192;
  5643. ;;
  5644. mint*)
  5645. # On MiNT this can take a long time and run out of memory.
  5646. lt_cv_sys_max_cmd_len=8192;
  5647. ;;
  5648. amigaos*)
  5649. # On AmigaOS with pdksh, this test takes hours, literally.
  5650. # So we just punt and use a minimum line length of 8192.
  5651. lt_cv_sys_max_cmd_len=8192;
  5652. ;;
  5653. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5654. # This has been around since 386BSD, at least. Likely further.
  5655. if test -x /sbin/sysctl; then
  5656. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5657. elif test -x /usr/sbin/sysctl; then
  5658. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5659. else
  5660. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5661. fi
  5662. # And add a safety zone
  5663. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5664. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5665. ;;
  5666. interix*)
  5667. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5668. lt_cv_sys_max_cmd_len=196608
  5669. ;;
  5670. os2*)
  5671. # The test takes a long time on OS/2.
  5672. lt_cv_sys_max_cmd_len=8192
  5673. ;;
  5674. osf*)
  5675. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5676. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5677. # nice to cause kernel panics so lets avoid the loop below.
  5678. # First set a reasonable default.
  5679. lt_cv_sys_max_cmd_len=16384
  5680. #
  5681. if test -x /sbin/sysconfig; then
  5682. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5683. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5684. esac
  5685. fi
  5686. ;;
  5687. sco3.2v5*)
  5688. lt_cv_sys_max_cmd_len=102400
  5689. ;;
  5690. sysv5* | sco5v6* | sysv4.2uw2*)
  5691. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5692. if test -n "$kargmax"; then
  5693. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5694. else
  5695. lt_cv_sys_max_cmd_len=32768
  5696. fi
  5697. ;;
  5698. *)
  5699. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5700. if test -n "$lt_cv_sys_max_cmd_len" && \
  5701. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5702. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5703. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5704. else
  5705. # Make teststring a little bigger before we do anything with it.
  5706. # a 1K string should be a reasonable start.
  5707. for i in 1 2 3 4 5 6 7 8; do
  5708. teststring=$teststring$teststring
  5709. done
  5710. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5711. # If test is not a shell built-in, we'll probably end up computing a
  5712. # maximum length that is only half of the actual maximum length, but
  5713. # we can't tell.
  5714. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5715. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5716. test 17 != "$i" # 1/2 MB should be enough
  5717. do
  5718. i=`expr $i + 1`
  5719. teststring=$teststring$teststring
  5720. done
  5721. # Only check the string length outside the loop.
  5722. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5723. teststring=
  5724. # Add a significant safety factor because C++ compilers can tack on
  5725. # massive amounts of additional arguments before passing them to the
  5726. # linker. It appears as though 1/2 is a usable value.
  5727. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5728. fi
  5729. ;;
  5730. esac
  5731. fi
  5732. if test -n "$lt_cv_sys_max_cmd_len"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5734. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5737. $as_echo "none" >&6; }
  5738. fi
  5739. max_cmd_len=$lt_cv_sys_max_cmd_len
  5740. : ${CP="cp -f"}
  5741. : ${MV="mv -f"}
  5742. : ${RM="rm -f"}
  5743. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5744. lt_unset=unset
  5745. else
  5746. lt_unset=false
  5747. fi
  5748. # test EBCDIC or ASCII
  5749. case `echo X|tr X '\101'` in
  5750. A) # ASCII based system
  5751. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5752. lt_SP2NL='tr \040 \012'
  5753. lt_NL2SP='tr \015\012 \040\040'
  5754. ;;
  5755. *) # EBCDIC based system
  5756. lt_SP2NL='tr \100 \n'
  5757. lt_NL2SP='tr \r\n \100\100'
  5758. ;;
  5759. esac
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5761. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5762. if ${lt_cv_to_host_file_cmd+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. case $host in
  5766. *-*-mingw* )
  5767. case $build in
  5768. *-*-mingw* ) # actually msys
  5769. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5770. ;;
  5771. *-*-cygwin* )
  5772. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5773. ;;
  5774. * ) # otherwise, assume *nix
  5775. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5776. ;;
  5777. esac
  5778. ;;
  5779. *-*-cygwin* )
  5780. case $build in
  5781. *-*-mingw* ) # actually msys
  5782. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5783. ;;
  5784. *-*-cygwin* )
  5785. lt_cv_to_host_file_cmd=func_convert_file_noop
  5786. ;;
  5787. * ) # otherwise, assume *nix
  5788. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5789. ;;
  5790. esac
  5791. ;;
  5792. * ) # unhandled hosts (and "normal" native builds)
  5793. lt_cv_to_host_file_cmd=func_convert_file_noop
  5794. ;;
  5795. esac
  5796. fi
  5797. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5799. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5801. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5802. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5803. $as_echo_n "(cached) " >&6
  5804. else
  5805. #assume ordinary cross tools, or native build.
  5806. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5807. case $host in
  5808. *-*-mingw* )
  5809. case $build in
  5810. *-*-mingw* ) # actually msys
  5811. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5812. ;;
  5813. esac
  5814. ;;
  5815. esac
  5816. fi
  5817. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5819. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5821. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5822. if ${lt_cv_ld_reload_flag+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. lt_cv_ld_reload_flag='-r'
  5826. fi
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5828. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5829. reload_flag=$lt_cv_ld_reload_flag
  5830. case $reload_flag in
  5831. "" | " "*) ;;
  5832. *) reload_flag=" $reload_flag" ;;
  5833. esac
  5834. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5835. case $host_os in
  5836. cygwin* | mingw* | pw32* | cegcc*)
  5837. if test yes != "$GCC"; then
  5838. reload_cmds=false
  5839. fi
  5840. ;;
  5841. darwin*)
  5842. if test yes = "$GCC"; then
  5843. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5844. else
  5845. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5846. fi
  5847. ;;
  5848. esac
  5849. if test -n "$ac_tool_prefix"; then
  5850. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5851. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5853. $as_echo_n "checking for $ac_word... " >&6; }
  5854. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5855. $as_echo_n "(cached) " >&6
  5856. else
  5857. if test -n "$OBJDUMP"; then
  5858. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5859. else
  5860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5861. for as_dir in $PATH
  5862. do
  5863. IFS=$as_save_IFS
  5864. test -z "$as_dir" && as_dir=.
  5865. for ac_exec_ext in '' $ac_executable_extensions; do
  5866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5867. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5869. break 2
  5870. fi
  5871. done
  5872. done
  5873. IFS=$as_save_IFS
  5874. fi
  5875. fi
  5876. OBJDUMP=$ac_cv_prog_OBJDUMP
  5877. if test -n "$OBJDUMP"; then
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5879. $as_echo "$OBJDUMP" >&6; }
  5880. else
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5882. $as_echo "no" >&6; }
  5883. fi
  5884. fi
  5885. if test -z "$ac_cv_prog_OBJDUMP"; then
  5886. ac_ct_OBJDUMP=$OBJDUMP
  5887. # Extract the first word of "objdump", so it can be a program name with args.
  5888. set dummy objdump; ac_word=$2
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5890. $as_echo_n "checking for $ac_word... " >&6; }
  5891. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. if test -n "$ac_ct_OBJDUMP"; then
  5895. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. test -z "$as_dir" && as_dir=.
  5902. for ac_exec_ext in '' $ac_executable_extensions; do
  5903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5904. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5906. break 2
  5907. fi
  5908. done
  5909. done
  5910. IFS=$as_save_IFS
  5911. fi
  5912. fi
  5913. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5914. if test -n "$ac_ct_OBJDUMP"; then
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5916. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5917. else
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5919. $as_echo "no" >&6; }
  5920. fi
  5921. if test "x$ac_ct_OBJDUMP" = x; then
  5922. OBJDUMP="false"
  5923. else
  5924. case $cross_compiling:$ac_tool_warned in
  5925. yes:)
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5927. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5928. ac_tool_warned=yes ;;
  5929. esac
  5930. OBJDUMP=$ac_ct_OBJDUMP
  5931. fi
  5932. else
  5933. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5934. fi
  5935. test -z "$OBJDUMP" && OBJDUMP=objdump
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5937. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5938. if ${lt_cv_deplibs_check_method+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5942. lt_cv_file_magic_test_file=
  5943. lt_cv_deplibs_check_method='unknown'
  5944. # Need to set the preceding variable on all platforms that support
  5945. # interlibrary dependencies.
  5946. # 'none' -- dependencies not supported.
  5947. # 'unknown' -- same as none, but documents that we really don't know.
  5948. # 'pass_all' -- all dependencies passed with no checks.
  5949. # 'test_compile' -- check by making test program.
  5950. # 'file_magic [[regex]]' -- check by looking for files in library path
  5951. # that responds to the $file_magic_cmd with a given extended regex.
  5952. # If you have 'file' or equivalent on your system and you're not sure
  5953. # whether 'pass_all' will *always* work, you probably want this one.
  5954. case $host_os in
  5955. aix[4-9]*)
  5956. lt_cv_deplibs_check_method=pass_all
  5957. ;;
  5958. beos*)
  5959. lt_cv_deplibs_check_method=pass_all
  5960. ;;
  5961. bsdi[45]*)
  5962. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5963. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5964. lt_cv_file_magic_test_file=/shlib/libc.so
  5965. ;;
  5966. cygwin*)
  5967. # func_win32_libid is a shell function defined in ltmain.sh
  5968. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5969. lt_cv_file_magic_cmd='func_win32_libid'
  5970. ;;
  5971. mingw* | pw32*)
  5972. # Base MSYS/MinGW do not provide the 'file' command needed by
  5973. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5974. # unless we find 'file', for example because we are cross-compiling.
  5975. if ( file / ) >/dev/null 2>&1; then
  5976. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5977. lt_cv_file_magic_cmd='func_win32_libid'
  5978. else
  5979. # Keep this pattern in sync with the one in func_win32_libid.
  5980. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5981. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5982. fi
  5983. ;;
  5984. cegcc*)
  5985. # use the weaker test based on 'objdump'. See mingw*.
  5986. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5987. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5988. ;;
  5989. darwin* | rhapsody*)
  5990. lt_cv_deplibs_check_method=pass_all
  5991. ;;
  5992. freebsd* | dragonfly*)
  5993. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5994. case $host_cpu in
  5995. i*86 )
  5996. # Not sure whether the presence of OpenBSD here was a mistake.
  5997. # Let's accept both of them until this is cleared up.
  5998. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5999. lt_cv_file_magic_cmd=/usr/bin/file
  6000. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6001. ;;
  6002. esac
  6003. else
  6004. lt_cv_deplibs_check_method=pass_all
  6005. fi
  6006. ;;
  6007. haiku*)
  6008. lt_cv_deplibs_check_method=pass_all
  6009. ;;
  6010. hpux10.20* | hpux11*)
  6011. lt_cv_file_magic_cmd=/usr/bin/file
  6012. case $host_cpu in
  6013. ia64*)
  6014. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6015. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6016. ;;
  6017. hppa*64*)
  6018. 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]'
  6019. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6020. ;;
  6021. *)
  6022. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6023. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6024. ;;
  6025. esac
  6026. ;;
  6027. interix[3-9]*)
  6028. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6029. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6030. ;;
  6031. irix5* | irix6* | nonstopux*)
  6032. case $LD in
  6033. *-32|*"-32 ") libmagic=32-bit;;
  6034. *-n32|*"-n32 ") libmagic=N32;;
  6035. *-64|*"-64 ") libmagic=64-bit;;
  6036. *) libmagic=never-match;;
  6037. esac
  6038. lt_cv_deplibs_check_method=pass_all
  6039. ;;
  6040. # This must be glibc/ELF.
  6041. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6042. lt_cv_deplibs_check_method=pass_all
  6043. ;;
  6044. netbsd* | netbsdelf*-gnu)
  6045. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6046. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6047. else
  6048. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6049. fi
  6050. ;;
  6051. newos6*)
  6052. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6053. lt_cv_file_magic_cmd=/usr/bin/file
  6054. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6055. ;;
  6056. *nto* | *qnx*)
  6057. lt_cv_deplibs_check_method=pass_all
  6058. ;;
  6059. openbsd* | bitrig*)
  6060. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6061. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6062. else
  6063. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6064. fi
  6065. ;;
  6066. osf3* | osf4* | osf5*)
  6067. lt_cv_deplibs_check_method=pass_all
  6068. ;;
  6069. rdos*)
  6070. lt_cv_deplibs_check_method=pass_all
  6071. ;;
  6072. solaris*)
  6073. lt_cv_deplibs_check_method=pass_all
  6074. ;;
  6075. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6076. lt_cv_deplibs_check_method=pass_all
  6077. ;;
  6078. sysv4 | sysv4.3*)
  6079. case $host_vendor in
  6080. motorola)
  6081. 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]'
  6082. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6083. ;;
  6084. ncr)
  6085. lt_cv_deplibs_check_method=pass_all
  6086. ;;
  6087. sequent)
  6088. lt_cv_file_magic_cmd='/bin/file'
  6089. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6090. ;;
  6091. sni)
  6092. lt_cv_file_magic_cmd='/bin/file'
  6093. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6094. lt_cv_file_magic_test_file=/lib/libc.so
  6095. ;;
  6096. siemens)
  6097. lt_cv_deplibs_check_method=pass_all
  6098. ;;
  6099. pc)
  6100. lt_cv_deplibs_check_method=pass_all
  6101. ;;
  6102. esac
  6103. ;;
  6104. tpf*)
  6105. lt_cv_deplibs_check_method=pass_all
  6106. ;;
  6107. os2*)
  6108. lt_cv_deplibs_check_method=pass_all
  6109. ;;
  6110. esac
  6111. fi
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6113. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6114. file_magic_glob=
  6115. want_nocaseglob=no
  6116. if test "$build" = "$host"; then
  6117. case $host_os in
  6118. mingw* | pw32*)
  6119. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6120. want_nocaseglob=yes
  6121. else
  6122. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6123. fi
  6124. ;;
  6125. esac
  6126. fi
  6127. file_magic_cmd=$lt_cv_file_magic_cmd
  6128. deplibs_check_method=$lt_cv_deplibs_check_method
  6129. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6130. if test -n "$ac_tool_prefix"; then
  6131. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6132. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6134. $as_echo_n "checking for $ac_word... " >&6; }
  6135. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6136. $as_echo_n "(cached) " >&6
  6137. else
  6138. if test -n "$DLLTOOL"; then
  6139. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6140. else
  6141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6142. for as_dir in $PATH
  6143. do
  6144. IFS=$as_save_IFS
  6145. test -z "$as_dir" && as_dir=.
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6148. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. DLLTOOL=$ac_cv_prog_DLLTOOL
  6158. if test -n "$DLLTOOL"; then
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6160. $as_echo "$DLLTOOL" >&6; }
  6161. else
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6163. $as_echo "no" >&6; }
  6164. fi
  6165. fi
  6166. if test -z "$ac_cv_prog_DLLTOOL"; then
  6167. ac_ct_DLLTOOL=$DLLTOOL
  6168. # Extract the first word of "dlltool", so it can be a program name with args.
  6169. set dummy dlltool; ac_word=$2
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if test -n "$ac_ct_DLLTOOL"; then
  6176. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6177. else
  6178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6179. for as_dir in $PATH
  6180. do
  6181. IFS=$as_save_IFS
  6182. test -z "$as_dir" && as_dir=.
  6183. for ac_exec_ext in '' $ac_executable_extensions; do
  6184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6185. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6187. break 2
  6188. fi
  6189. done
  6190. done
  6191. IFS=$as_save_IFS
  6192. fi
  6193. fi
  6194. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6195. if test -n "$ac_ct_DLLTOOL"; then
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6197. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6198. else
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6200. $as_echo "no" >&6; }
  6201. fi
  6202. if test "x$ac_ct_DLLTOOL" = x; then
  6203. DLLTOOL="false"
  6204. else
  6205. case $cross_compiling:$ac_tool_warned in
  6206. yes:)
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6209. ac_tool_warned=yes ;;
  6210. esac
  6211. DLLTOOL=$ac_ct_DLLTOOL
  6212. fi
  6213. else
  6214. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6215. fi
  6216. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6218. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6219. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6220. $as_echo_n "(cached) " >&6
  6221. else
  6222. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6223. case $host_os in
  6224. cygwin* | mingw* | pw32* | cegcc*)
  6225. # two different shell functions defined in ltmain.sh;
  6226. # decide which one to use based on capabilities of $DLLTOOL
  6227. case `$DLLTOOL --help 2>&1` in
  6228. *--identify-strict*)
  6229. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6230. ;;
  6231. *)
  6232. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6233. ;;
  6234. esac
  6235. ;;
  6236. *)
  6237. # fallback: assume linklib IS sharedlib
  6238. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6239. ;;
  6240. esac
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6243. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6244. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6245. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6246. if test -n "$ac_tool_prefix"; then
  6247. for ac_prog in ar
  6248. do
  6249. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6250. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6252. $as_echo_n "checking for $ac_word... " >&6; }
  6253. if ${ac_cv_prog_AR+:} false; then :
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if test -n "$AR"; then
  6257. ac_cv_prog_AR="$AR" # Let the user override the test.
  6258. else
  6259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6260. for as_dir in $PATH
  6261. do
  6262. IFS=$as_save_IFS
  6263. test -z "$as_dir" && as_dir=.
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6266. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. fi
  6274. fi
  6275. AR=$ac_cv_prog_AR
  6276. if test -n "$AR"; then
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6278. $as_echo "$AR" >&6; }
  6279. else
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6281. $as_echo "no" >&6; }
  6282. fi
  6283. test -n "$AR" && break
  6284. done
  6285. fi
  6286. if test -z "$AR"; then
  6287. ac_ct_AR=$AR
  6288. for ac_prog in ar
  6289. do
  6290. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6291. set dummy $ac_prog; ac_word=$2
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6293. $as_echo_n "checking for $ac_word... " >&6; }
  6294. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. if test -n "$ac_ct_AR"; then
  6298. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6307. ac_cv_prog_ac_ct_AR="$ac_prog"
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6317. if test -n "$ac_ct_AR"; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6319. $as_echo "$ac_ct_AR" >&6; }
  6320. else
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6322. $as_echo "no" >&6; }
  6323. fi
  6324. test -n "$ac_ct_AR" && break
  6325. done
  6326. if test "x$ac_ct_AR" = x; then
  6327. AR="false"
  6328. else
  6329. case $cross_compiling:$ac_tool_warned in
  6330. yes:)
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6333. ac_tool_warned=yes ;;
  6334. esac
  6335. AR=$ac_ct_AR
  6336. fi
  6337. fi
  6338. : ${AR=ar}
  6339. : ${AR_FLAGS=cr}
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6341. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6342. if ${lt_cv_ar_at_file+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. lt_cv_ar_at_file=no
  6346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6347. /* end confdefs.h. */
  6348. int
  6349. main ()
  6350. {
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_c_try_compile "$LINENO"; then :
  6356. echo conftest.$ac_objext > conftest.lst
  6357. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6358. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6359. (eval $lt_ar_try) 2>&5
  6360. ac_status=$?
  6361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6362. test $ac_status = 0; }
  6363. if test 0 -eq "$ac_status"; then
  6364. # Ensure the archiver fails upon bogus file names.
  6365. rm -f conftest.$ac_objext libconftest.a
  6366. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6367. (eval $lt_ar_try) 2>&5
  6368. ac_status=$?
  6369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6370. test $ac_status = 0; }
  6371. if test 0 -ne "$ac_status"; then
  6372. lt_cv_ar_at_file=@
  6373. fi
  6374. fi
  6375. rm -f conftest.* libconftest.a
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6378. fi
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6380. $as_echo "$lt_cv_ar_at_file" >&6; }
  6381. if test no = "$lt_cv_ar_at_file"; then
  6382. archiver_list_spec=
  6383. else
  6384. archiver_list_spec=$lt_cv_ar_at_file
  6385. fi
  6386. if test -n "$ac_tool_prefix"; then
  6387. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6388. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_STRIP+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$STRIP"; then
  6395. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. STRIP=$ac_cv_prog_STRIP
  6414. if test -n "$STRIP"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6416. $as_echo "$STRIP" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. fi
  6422. if test -z "$ac_cv_prog_STRIP"; then
  6423. ac_ct_STRIP=$STRIP
  6424. # Extract the first word of "strip", so it can be a program name with args.
  6425. set dummy strip; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$ac_ct_STRIP"; then
  6432. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_ac_ct_STRIP="strip"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6451. if test -n "$ac_ct_STRIP"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6453. $as_echo "$ac_ct_STRIP" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. if test "x$ac_ct_STRIP" = x; then
  6459. STRIP=":"
  6460. else
  6461. case $cross_compiling:$ac_tool_warned in
  6462. yes:)
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6465. ac_tool_warned=yes ;;
  6466. esac
  6467. STRIP=$ac_ct_STRIP
  6468. fi
  6469. else
  6470. STRIP="$ac_cv_prog_STRIP"
  6471. fi
  6472. test -z "$STRIP" && STRIP=:
  6473. if test -n "$ac_tool_prefix"; then
  6474. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6475. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6477. $as_echo_n "checking for $ac_word... " >&6; }
  6478. if ${ac_cv_prog_RANLIB+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. if test -n "$RANLIB"; then
  6482. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6483. else
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. test -z "$as_dir" && as_dir=.
  6489. for ac_exec_ext in '' $ac_executable_extensions; do
  6490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6491. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6493. break 2
  6494. fi
  6495. done
  6496. done
  6497. IFS=$as_save_IFS
  6498. fi
  6499. fi
  6500. RANLIB=$ac_cv_prog_RANLIB
  6501. if test -n "$RANLIB"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6503. $as_echo "$RANLIB" >&6; }
  6504. else
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6506. $as_echo "no" >&6; }
  6507. fi
  6508. fi
  6509. if test -z "$ac_cv_prog_RANLIB"; then
  6510. ac_ct_RANLIB=$RANLIB
  6511. # Extract the first word of "ranlib", so it can be a program name with args.
  6512. set dummy ranlib; ac_word=$2
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6514. $as_echo_n "checking for $ac_word... " >&6; }
  6515. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. if test -n "$ac_ct_RANLIB"; then
  6519. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6520. else
  6521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6522. for as_dir in $PATH
  6523. do
  6524. IFS=$as_save_IFS
  6525. test -z "$as_dir" && as_dir=.
  6526. for ac_exec_ext in '' $ac_executable_extensions; do
  6527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6528. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6530. break 2
  6531. fi
  6532. done
  6533. done
  6534. IFS=$as_save_IFS
  6535. fi
  6536. fi
  6537. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6538. if test -n "$ac_ct_RANLIB"; then
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6540. $as_echo "$ac_ct_RANLIB" >&6; }
  6541. else
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6543. $as_echo "no" >&6; }
  6544. fi
  6545. if test "x$ac_ct_RANLIB" = x; then
  6546. RANLIB=":"
  6547. else
  6548. case $cross_compiling:$ac_tool_warned in
  6549. yes:)
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6552. ac_tool_warned=yes ;;
  6553. esac
  6554. RANLIB=$ac_ct_RANLIB
  6555. fi
  6556. else
  6557. RANLIB="$ac_cv_prog_RANLIB"
  6558. fi
  6559. test -z "$RANLIB" && RANLIB=:
  6560. # Determine commands to create old-style static archives.
  6561. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6562. old_postinstall_cmds='chmod 644 $oldlib'
  6563. old_postuninstall_cmds=
  6564. if test -n "$RANLIB"; then
  6565. case $host_os in
  6566. bitrig* | openbsd*)
  6567. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6568. ;;
  6569. *)
  6570. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6571. ;;
  6572. esac
  6573. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6574. fi
  6575. case $host_os in
  6576. darwin*)
  6577. lock_old_archive_extraction=yes ;;
  6578. *)
  6579. lock_old_archive_extraction=no ;;
  6580. esac
  6581. # If no C compiler was specified, use CC.
  6582. LTCC=${LTCC-"$CC"}
  6583. # If no C compiler flags were specified, use CFLAGS.
  6584. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6585. # Allow CC to be a program name with arguments.
  6586. compiler=$CC
  6587. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6589. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6590. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. # These are sane defaults that work on at least a few old systems.
  6594. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6595. # Character class describing NM global symbol codes.
  6596. symcode='[BCDEGRST]'
  6597. # Regexp to match symbols that can be accessed directly from C.
  6598. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6599. # Define system-specific variables.
  6600. case $host_os in
  6601. aix*)
  6602. symcode='[BCDT]'
  6603. ;;
  6604. cygwin* | mingw* | pw32* | cegcc*)
  6605. symcode='[ABCDGISTW]'
  6606. ;;
  6607. hpux*)
  6608. if test ia64 = "$host_cpu"; then
  6609. symcode='[ABCDEGRST]'
  6610. fi
  6611. ;;
  6612. irix* | nonstopux*)
  6613. symcode='[BCDEGRST]'
  6614. ;;
  6615. osf*)
  6616. symcode='[BCDEGQRST]'
  6617. ;;
  6618. solaris*)
  6619. symcode='[BDRT]'
  6620. ;;
  6621. sco3.2v5*)
  6622. symcode='[DT]'
  6623. ;;
  6624. sysv4.2uw2*)
  6625. symcode='[DT]'
  6626. ;;
  6627. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6628. symcode='[ABDT]'
  6629. ;;
  6630. sysv4)
  6631. symcode='[DFNSTU]'
  6632. ;;
  6633. esac
  6634. # If we're using GNU nm, then use its standard symbol codes.
  6635. case `$NM -V 2>&1` in
  6636. *GNU* | *'with BFD'*)
  6637. symcode='[ABCDGIRSTW]' ;;
  6638. esac
  6639. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6640. # Gets list of data symbols to import.
  6641. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6642. # Adjust the below global symbol transforms to fixup imported variables.
  6643. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6644. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6645. lt_c_name_lib_hook="\
  6646. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6647. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6648. else
  6649. # Disable hooks by default.
  6650. lt_cv_sys_global_symbol_to_import=
  6651. lt_cdecl_hook=
  6652. lt_c_name_hook=
  6653. lt_c_name_lib_hook=
  6654. fi
  6655. # Transform an extracted symbol line into a proper C declaration.
  6656. # Some systems (esp. on ia64) link data and code symbols differently,
  6657. # so use this general approach.
  6658. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6659. $lt_cdecl_hook\
  6660. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6661. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6662. # Transform an extracted symbol line into symbol name and symbol address
  6663. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6664. $lt_c_name_hook\
  6665. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6666. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6667. # Transform an extracted symbol line into symbol name with lib prefix and
  6668. # symbol address.
  6669. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6670. $lt_c_name_lib_hook\
  6671. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6672. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6673. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6674. # Handle CRLF in mingw tool chain
  6675. opt_cr=
  6676. case $build_os in
  6677. mingw*)
  6678. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6679. ;;
  6680. esac
  6681. # Try without a prefix underscore, then with it.
  6682. for ac_symprfx in "" "_"; do
  6683. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6684. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6685. # Write the raw and C identifiers.
  6686. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6687. # Fake it for dumpbin and say T for any non-static function,
  6688. # D for any global variable and I for any imported variable.
  6689. # Also find C++ and __fastcall symbols from MSVC++,
  6690. # which start with @ or ?.
  6691. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6692. " {last_section=section; section=\$ 3};"\
  6693. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6694. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6695. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6696. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6697. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6698. " \$ 0!~/External *\|/{next};"\
  6699. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6700. " {if(hide[section]) next};"\
  6701. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6702. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6703. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6704. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6705. " ' prfx=^$ac_symprfx"
  6706. else
  6707. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6708. fi
  6709. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6710. # Check to see that the pipe works correctly.
  6711. pipe_works=no
  6712. rm -f conftest*
  6713. cat > conftest.$ac_ext <<_LT_EOF
  6714. #ifdef __cplusplus
  6715. extern "C" {
  6716. #endif
  6717. char nm_test_var;
  6718. void nm_test_func(void);
  6719. void nm_test_func(void){}
  6720. #ifdef __cplusplus
  6721. }
  6722. #endif
  6723. int main(){nm_test_var='a';nm_test_func();return(0);}
  6724. _LT_EOF
  6725. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6726. (eval $ac_compile) 2>&5
  6727. ac_status=$?
  6728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6729. test $ac_status = 0; }; then
  6730. # Now try to grab the symbols.
  6731. nlist=conftest.nm
  6732. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6733. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6734. # Try sorting and uniquifying the output.
  6735. if sort "$nlist" | uniq > "$nlist"T; then
  6736. mv -f "$nlist"T "$nlist"
  6737. else
  6738. rm -f "$nlist"T
  6739. fi
  6740. # Make sure that we snagged all the symbols we need.
  6741. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6742. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6743. cat <<_LT_EOF > conftest.$ac_ext
  6744. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6745. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6746. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6747. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6748. # define LT_DLSYM_CONST
  6749. #elif defined __osf__
  6750. /* This system does not cope well with relocations in const data. */
  6751. # define LT_DLSYM_CONST
  6752. #else
  6753. # define LT_DLSYM_CONST const
  6754. #endif
  6755. #ifdef __cplusplus
  6756. extern "C" {
  6757. #endif
  6758. _LT_EOF
  6759. # Now generate the symbol file.
  6760. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6761. cat <<_LT_EOF >> conftest.$ac_ext
  6762. /* The mapping between symbol names and symbols. */
  6763. LT_DLSYM_CONST struct {
  6764. const char *name;
  6765. void *address;
  6766. }
  6767. lt__PROGRAM__LTX_preloaded_symbols[] =
  6768. {
  6769. { "@PROGRAM@", (void *) 0 },
  6770. _LT_EOF
  6771. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6772. cat <<\_LT_EOF >> conftest.$ac_ext
  6773. {0, (void *) 0}
  6774. };
  6775. /* This works around a problem in FreeBSD linker */
  6776. #ifdef FREEBSD_WORKAROUND
  6777. static const void *lt_preloaded_setup() {
  6778. return lt__PROGRAM__LTX_preloaded_symbols;
  6779. }
  6780. #endif
  6781. #ifdef __cplusplus
  6782. }
  6783. #endif
  6784. _LT_EOF
  6785. # Now try linking the two files.
  6786. mv conftest.$ac_objext conftstm.$ac_objext
  6787. lt_globsym_save_LIBS=$LIBS
  6788. lt_globsym_save_CFLAGS=$CFLAGS
  6789. LIBS=conftstm.$ac_objext
  6790. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6792. (eval $ac_link) 2>&5
  6793. ac_status=$?
  6794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6795. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6796. pipe_works=yes
  6797. fi
  6798. LIBS=$lt_globsym_save_LIBS
  6799. CFLAGS=$lt_globsym_save_CFLAGS
  6800. else
  6801. echo "cannot find nm_test_func in $nlist" >&5
  6802. fi
  6803. else
  6804. echo "cannot find nm_test_var in $nlist" >&5
  6805. fi
  6806. else
  6807. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6808. fi
  6809. else
  6810. echo "$progname: failed program was:" >&5
  6811. cat conftest.$ac_ext >&5
  6812. fi
  6813. rm -rf conftest* conftst*
  6814. # Do not use the global_symbol_pipe unless it works.
  6815. if test yes = "$pipe_works"; then
  6816. break
  6817. else
  6818. lt_cv_sys_global_symbol_pipe=
  6819. fi
  6820. done
  6821. fi
  6822. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6823. lt_cv_sys_global_symbol_to_cdecl=
  6824. fi
  6825. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6827. $as_echo "failed" >&6; }
  6828. else
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6830. $as_echo "ok" >&6; }
  6831. fi
  6832. # Response file support.
  6833. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6834. nm_file_list_spec='@'
  6835. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6836. nm_file_list_spec='@'
  6837. fi
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6839. $as_echo_n "checking for sysroot... " >&6; }
  6840. # Check whether --with-sysroot was given.
  6841. if test "${with_sysroot+set}" = set; then :
  6842. withval=$with_sysroot;
  6843. else
  6844. with_sysroot=no
  6845. fi
  6846. lt_sysroot=
  6847. case $with_sysroot in #(
  6848. yes)
  6849. if test yes = "$GCC"; then
  6850. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6851. fi
  6852. ;; #(
  6853. /*)
  6854. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6855. ;; #(
  6856. no|'')
  6857. ;; #(
  6858. *)
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6860. $as_echo "$with_sysroot" >&6; }
  6861. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6862. ;;
  6863. esac
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6865. $as_echo "${lt_sysroot:-no}" >&6; }
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6867. $as_echo_n "checking for a working dd... " >&6; }
  6868. if ${ac_cv_path_lt_DD+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. printf 0123456789abcdef0123456789abcdef >conftest.i
  6872. cat conftest.i conftest.i >conftest2.i
  6873. : ${lt_DD:=$DD}
  6874. if test -z "$lt_DD"; then
  6875. ac_path_lt_DD_found=false
  6876. # Loop through the user's path and test for each of PROGNAME-LIST
  6877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6878. for as_dir in $PATH
  6879. do
  6880. IFS=$as_save_IFS
  6881. test -z "$as_dir" && as_dir=.
  6882. for ac_prog in dd; do
  6883. for ac_exec_ext in '' $ac_executable_extensions; do
  6884. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6885. as_fn_executable_p "$ac_path_lt_DD" || continue
  6886. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6887. cmp -s conftest.i conftest.out \
  6888. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6889. fi
  6890. $ac_path_lt_DD_found && break 3
  6891. done
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. if test -z "$ac_cv_path_lt_DD"; then
  6896. :
  6897. fi
  6898. else
  6899. ac_cv_path_lt_DD=$lt_DD
  6900. fi
  6901. rm -f conftest.i conftest2.i conftest.out
  6902. fi
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6904. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6906. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6907. if ${lt_cv_truncate_bin+:} false; then :
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. printf 0123456789abcdef0123456789abcdef >conftest.i
  6911. cat conftest.i conftest.i >conftest2.i
  6912. lt_cv_truncate_bin=
  6913. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6914. cmp -s conftest.i conftest.out \
  6915. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6916. fi
  6917. rm -f conftest.i conftest2.i conftest.out
  6918. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6919. fi
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6921. $as_echo "$lt_cv_truncate_bin" >&6; }
  6922. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6923. func_cc_basename ()
  6924. {
  6925. for cc_temp in $*""; do
  6926. case $cc_temp in
  6927. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6928. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6929. \-*) ;;
  6930. *) break;;
  6931. esac
  6932. done
  6933. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6934. }
  6935. # Check whether --enable-libtool-lock was given.
  6936. if test "${enable_libtool_lock+set}" = set; then :
  6937. enableval=$enable_libtool_lock;
  6938. fi
  6939. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6940. # Some flags need to be propagated to the compiler or linker for good
  6941. # libtool support.
  6942. case $host in
  6943. ia64-*-hpux*)
  6944. # Find out what ABI is being produced by ac_compile, and set mode
  6945. # options accordingly.
  6946. echo 'int i;' > conftest.$ac_ext
  6947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6948. (eval $ac_compile) 2>&5
  6949. ac_status=$?
  6950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6951. test $ac_status = 0; }; then
  6952. case `/usr/bin/file conftest.$ac_objext` in
  6953. *ELF-32*)
  6954. HPUX_IA64_MODE=32
  6955. ;;
  6956. *ELF-64*)
  6957. HPUX_IA64_MODE=64
  6958. ;;
  6959. esac
  6960. fi
  6961. rm -rf conftest*
  6962. ;;
  6963. *-*-irix6*)
  6964. # Find out what ABI is being produced by ac_compile, and set linker
  6965. # options accordingly.
  6966. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6967. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6968. (eval $ac_compile) 2>&5
  6969. ac_status=$?
  6970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6971. test $ac_status = 0; }; then
  6972. if test yes = "$lt_cv_prog_gnu_ld"; then
  6973. case `/usr/bin/file conftest.$ac_objext` in
  6974. *32-bit*)
  6975. LD="${LD-ld} -melf32bsmip"
  6976. ;;
  6977. *N32*)
  6978. LD="${LD-ld} -melf32bmipn32"
  6979. ;;
  6980. *64-bit*)
  6981. LD="${LD-ld} -melf64bmip"
  6982. ;;
  6983. esac
  6984. else
  6985. case `/usr/bin/file conftest.$ac_objext` in
  6986. *32-bit*)
  6987. LD="${LD-ld} -32"
  6988. ;;
  6989. *N32*)
  6990. LD="${LD-ld} -n32"
  6991. ;;
  6992. *64-bit*)
  6993. LD="${LD-ld} -64"
  6994. ;;
  6995. esac
  6996. fi
  6997. fi
  6998. rm -rf conftest*
  6999. ;;
  7000. mips64*-*linux*)
  7001. # Find out what ABI is being produced by ac_compile, and set linker
  7002. # options accordingly.
  7003. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7004. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7005. (eval $ac_compile) 2>&5
  7006. ac_status=$?
  7007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7008. test $ac_status = 0; }; then
  7009. emul=elf
  7010. case `/usr/bin/file conftest.$ac_objext` in
  7011. *32-bit*)
  7012. emul="${emul}32"
  7013. ;;
  7014. *64-bit*)
  7015. emul="${emul}64"
  7016. ;;
  7017. esac
  7018. case `/usr/bin/file conftest.$ac_objext` in
  7019. *MSB*)
  7020. emul="${emul}btsmip"
  7021. ;;
  7022. *LSB*)
  7023. emul="${emul}ltsmip"
  7024. ;;
  7025. esac
  7026. case `/usr/bin/file conftest.$ac_objext` in
  7027. *N32*)
  7028. emul="${emul}n32"
  7029. ;;
  7030. esac
  7031. LD="${LD-ld} -m $emul"
  7032. fi
  7033. rm -rf conftest*
  7034. ;;
  7035. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7036. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7037. # Find out what ABI is being produced by ac_compile, and set linker
  7038. # options accordingly. Note that the listed cases only cover the
  7039. # situations where additional linker options are needed (such as when
  7040. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7041. # vice versa); the common cases where no linker options are needed do
  7042. # not appear in the list.
  7043. echo 'int i;' > conftest.$ac_ext
  7044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7045. (eval $ac_compile) 2>&5
  7046. ac_status=$?
  7047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7048. test $ac_status = 0; }; then
  7049. case `/usr/bin/file conftest.o` in
  7050. *32-bit*)
  7051. case $host in
  7052. x86_64-*kfreebsd*-gnu)
  7053. LD="${LD-ld} -m elf_i386_fbsd"
  7054. ;;
  7055. x86_64-*linux*)
  7056. case `/usr/bin/file conftest.o` in
  7057. *x86-64*)
  7058. LD="${LD-ld} -m elf32_x86_64"
  7059. ;;
  7060. *)
  7061. LD="${LD-ld} -m elf_i386"
  7062. ;;
  7063. esac
  7064. ;;
  7065. powerpc64le-*linux*)
  7066. LD="${LD-ld} -m elf32lppclinux"
  7067. ;;
  7068. powerpc64-*linux*)
  7069. LD="${LD-ld} -m elf32ppclinux"
  7070. ;;
  7071. s390x-*linux*)
  7072. LD="${LD-ld} -m elf_s390"
  7073. ;;
  7074. sparc64-*linux*)
  7075. LD="${LD-ld} -m elf32_sparc"
  7076. ;;
  7077. esac
  7078. ;;
  7079. *64-bit*)
  7080. case $host in
  7081. x86_64-*kfreebsd*-gnu)
  7082. LD="${LD-ld} -m elf_x86_64_fbsd"
  7083. ;;
  7084. x86_64-*linux*)
  7085. LD="${LD-ld} -m elf_x86_64"
  7086. ;;
  7087. powerpcle-*linux*)
  7088. LD="${LD-ld} -m elf64lppc"
  7089. ;;
  7090. powerpc-*linux*)
  7091. LD="${LD-ld} -m elf64ppc"
  7092. ;;
  7093. s390*-*linux*|s390*-*tpf*)
  7094. LD="${LD-ld} -m elf64_s390"
  7095. ;;
  7096. sparc*-*linux*)
  7097. LD="${LD-ld} -m elf64_sparc"
  7098. ;;
  7099. esac
  7100. ;;
  7101. esac
  7102. fi
  7103. rm -rf conftest*
  7104. ;;
  7105. *-*-sco3.2v5*)
  7106. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7107. SAVE_CFLAGS=$CFLAGS
  7108. CFLAGS="$CFLAGS -belf"
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7110. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7111. if ${lt_cv_cc_needs_belf+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. ac_ext=c
  7115. ac_cpp='$CPP $CPPFLAGS'
  7116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7120. /* end confdefs.h. */
  7121. int
  7122. main ()
  7123. {
  7124. ;
  7125. return 0;
  7126. }
  7127. _ACEOF
  7128. if ac_fn_c_try_link "$LINENO"; then :
  7129. lt_cv_cc_needs_belf=yes
  7130. else
  7131. lt_cv_cc_needs_belf=no
  7132. fi
  7133. rm -f core conftest.err conftest.$ac_objext \
  7134. conftest$ac_exeext conftest.$ac_ext
  7135. ac_ext=c
  7136. ac_cpp='$CPP $CPPFLAGS'
  7137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7142. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7143. if test yes != "$lt_cv_cc_needs_belf"; then
  7144. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7145. CFLAGS=$SAVE_CFLAGS
  7146. fi
  7147. ;;
  7148. *-*solaris*)
  7149. # Find out what ABI is being produced by ac_compile, and set linker
  7150. # options accordingly.
  7151. echo 'int i;' > conftest.$ac_ext
  7152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7153. (eval $ac_compile) 2>&5
  7154. ac_status=$?
  7155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7156. test $ac_status = 0; }; then
  7157. case `/usr/bin/file conftest.o` in
  7158. *64-bit*)
  7159. case $lt_cv_prog_gnu_ld in
  7160. yes*)
  7161. case $host in
  7162. i?86-*-solaris*|x86_64-*-solaris*)
  7163. LD="${LD-ld} -m elf_x86_64"
  7164. ;;
  7165. sparc*-*-solaris*)
  7166. LD="${LD-ld} -m elf64_sparc"
  7167. ;;
  7168. esac
  7169. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7170. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7171. LD=${LD-ld}_sol2
  7172. fi
  7173. ;;
  7174. *)
  7175. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7176. LD="${LD-ld} -64"
  7177. fi
  7178. ;;
  7179. esac
  7180. ;;
  7181. esac
  7182. fi
  7183. rm -rf conftest*
  7184. ;;
  7185. esac
  7186. need_locks=$enable_libtool_lock
  7187. if test -n "$ac_tool_prefix"; then
  7188. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7189. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7191. $as_echo_n "checking for $ac_word... " >&6; }
  7192. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7193. $as_echo_n "(cached) " >&6
  7194. else
  7195. if test -n "$MANIFEST_TOOL"; then
  7196. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7197. else
  7198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7199. for as_dir in $PATH
  7200. do
  7201. IFS=$as_save_IFS
  7202. test -z "$as_dir" && as_dir=.
  7203. for ac_exec_ext in '' $ac_executable_extensions; do
  7204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7205. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7207. break 2
  7208. fi
  7209. done
  7210. done
  7211. IFS=$as_save_IFS
  7212. fi
  7213. fi
  7214. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7215. if test -n "$MANIFEST_TOOL"; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7217. $as_echo "$MANIFEST_TOOL" >&6; }
  7218. else
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7220. $as_echo "no" >&6; }
  7221. fi
  7222. fi
  7223. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7224. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7225. # Extract the first word of "mt", so it can be a program name with args.
  7226. set dummy mt; ac_word=$2
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7228. $as_echo_n "checking for $ac_word... " >&6; }
  7229. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7230. $as_echo_n "(cached) " >&6
  7231. else
  7232. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7233. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7234. else
  7235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7236. for as_dir in $PATH
  7237. do
  7238. IFS=$as_save_IFS
  7239. test -z "$as_dir" && as_dir=.
  7240. for ac_exec_ext in '' $ac_executable_extensions; do
  7241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7242. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7244. break 2
  7245. fi
  7246. done
  7247. done
  7248. IFS=$as_save_IFS
  7249. fi
  7250. fi
  7251. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7252. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7254. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7255. else
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7257. $as_echo "no" >&6; }
  7258. fi
  7259. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7260. MANIFEST_TOOL=":"
  7261. else
  7262. case $cross_compiling:$ac_tool_warned in
  7263. yes:)
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7266. ac_tool_warned=yes ;;
  7267. esac
  7268. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7269. fi
  7270. else
  7271. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7272. fi
  7273. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7275. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7276. if ${lt_cv_path_mainfest_tool+:} false; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. lt_cv_path_mainfest_tool=no
  7280. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7281. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7282. cat conftest.err >&5
  7283. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7284. lt_cv_path_mainfest_tool=yes
  7285. fi
  7286. rm -f conftest*
  7287. fi
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7289. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7290. if test yes != "$lt_cv_path_mainfest_tool"; then
  7291. MANIFEST_TOOL=:
  7292. fi
  7293. case $host_os in
  7294. rhapsody* | darwin*)
  7295. if test -n "$ac_tool_prefix"; then
  7296. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7297. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7299. $as_echo_n "checking for $ac_word... " >&6; }
  7300. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7301. $as_echo_n "(cached) " >&6
  7302. else
  7303. if test -n "$DSYMUTIL"; then
  7304. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7305. else
  7306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7307. for as_dir in $PATH
  7308. do
  7309. IFS=$as_save_IFS
  7310. test -z "$as_dir" && as_dir=.
  7311. for ac_exec_ext in '' $ac_executable_extensions; do
  7312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7313. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7315. break 2
  7316. fi
  7317. done
  7318. done
  7319. IFS=$as_save_IFS
  7320. fi
  7321. fi
  7322. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7323. if test -n "$DSYMUTIL"; then
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7325. $as_echo "$DSYMUTIL" >&6; }
  7326. else
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7328. $as_echo "no" >&6; }
  7329. fi
  7330. fi
  7331. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7332. ac_ct_DSYMUTIL=$DSYMUTIL
  7333. # Extract the first word of "dsymutil", so it can be a program name with args.
  7334. set dummy dsymutil; ac_word=$2
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7336. $as_echo_n "checking for $ac_word... " >&6; }
  7337. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. if test -n "$ac_ct_DSYMUTIL"; then
  7341. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7342. else
  7343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7344. for as_dir in $PATH
  7345. do
  7346. IFS=$as_save_IFS
  7347. test -z "$as_dir" && as_dir=.
  7348. for ac_exec_ext in '' $ac_executable_extensions; do
  7349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7350. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7352. break 2
  7353. fi
  7354. done
  7355. done
  7356. IFS=$as_save_IFS
  7357. fi
  7358. fi
  7359. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7360. if test -n "$ac_ct_DSYMUTIL"; then
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7362. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7363. else
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7365. $as_echo "no" >&6; }
  7366. fi
  7367. if test "x$ac_ct_DSYMUTIL" = x; then
  7368. DSYMUTIL=":"
  7369. else
  7370. case $cross_compiling:$ac_tool_warned in
  7371. yes:)
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7374. ac_tool_warned=yes ;;
  7375. esac
  7376. DSYMUTIL=$ac_ct_DSYMUTIL
  7377. fi
  7378. else
  7379. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7380. fi
  7381. if test -n "$ac_tool_prefix"; then
  7382. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7383. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7385. $as_echo_n "checking for $ac_word... " >&6; }
  7386. if ${ac_cv_prog_NMEDIT+:} false; then :
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. if test -n "$NMEDIT"; then
  7390. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7391. else
  7392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7393. for as_dir in $PATH
  7394. do
  7395. IFS=$as_save_IFS
  7396. test -z "$as_dir" && as_dir=.
  7397. for ac_exec_ext in '' $ac_executable_extensions; do
  7398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7399. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7401. break 2
  7402. fi
  7403. done
  7404. done
  7405. IFS=$as_save_IFS
  7406. fi
  7407. fi
  7408. NMEDIT=$ac_cv_prog_NMEDIT
  7409. if test -n "$NMEDIT"; then
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7411. $as_echo "$NMEDIT" >&6; }
  7412. else
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7414. $as_echo "no" >&6; }
  7415. fi
  7416. fi
  7417. if test -z "$ac_cv_prog_NMEDIT"; then
  7418. ac_ct_NMEDIT=$NMEDIT
  7419. # Extract the first word of "nmedit", so it can be a program name with args.
  7420. set dummy nmedit; ac_word=$2
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7422. $as_echo_n "checking for $ac_word... " >&6; }
  7423. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7424. $as_echo_n "(cached) " >&6
  7425. else
  7426. if test -n "$ac_ct_NMEDIT"; then
  7427. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7428. else
  7429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7430. for as_dir in $PATH
  7431. do
  7432. IFS=$as_save_IFS
  7433. test -z "$as_dir" && as_dir=.
  7434. for ac_exec_ext in '' $ac_executable_extensions; do
  7435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7436. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7438. break 2
  7439. fi
  7440. done
  7441. done
  7442. IFS=$as_save_IFS
  7443. fi
  7444. fi
  7445. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7446. if test -n "$ac_ct_NMEDIT"; then
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7448. $as_echo "$ac_ct_NMEDIT" >&6; }
  7449. else
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. $as_echo "no" >&6; }
  7452. fi
  7453. if test "x$ac_ct_NMEDIT" = x; then
  7454. NMEDIT=":"
  7455. else
  7456. case $cross_compiling:$ac_tool_warned in
  7457. yes:)
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7460. ac_tool_warned=yes ;;
  7461. esac
  7462. NMEDIT=$ac_ct_NMEDIT
  7463. fi
  7464. else
  7465. NMEDIT="$ac_cv_prog_NMEDIT"
  7466. fi
  7467. if test -n "$ac_tool_prefix"; then
  7468. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7469. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7471. $as_echo_n "checking for $ac_word... " >&6; }
  7472. if ${ac_cv_prog_LIPO+:} false; then :
  7473. $as_echo_n "(cached) " >&6
  7474. else
  7475. if test -n "$LIPO"; then
  7476. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7477. else
  7478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7479. for as_dir in $PATH
  7480. do
  7481. IFS=$as_save_IFS
  7482. test -z "$as_dir" && as_dir=.
  7483. for ac_exec_ext in '' $ac_executable_extensions; do
  7484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7485. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7487. break 2
  7488. fi
  7489. done
  7490. done
  7491. IFS=$as_save_IFS
  7492. fi
  7493. fi
  7494. LIPO=$ac_cv_prog_LIPO
  7495. if test -n "$LIPO"; then
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7497. $as_echo "$LIPO" >&6; }
  7498. else
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7500. $as_echo "no" >&6; }
  7501. fi
  7502. fi
  7503. if test -z "$ac_cv_prog_LIPO"; then
  7504. ac_ct_LIPO=$LIPO
  7505. # Extract the first word of "lipo", so it can be a program name with args.
  7506. set dummy lipo; ac_word=$2
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7508. $as_echo_n "checking for $ac_word... " >&6; }
  7509. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7510. $as_echo_n "(cached) " >&6
  7511. else
  7512. if test -n "$ac_ct_LIPO"; then
  7513. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7514. else
  7515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7516. for as_dir in $PATH
  7517. do
  7518. IFS=$as_save_IFS
  7519. test -z "$as_dir" && as_dir=.
  7520. for ac_exec_ext in '' $ac_executable_extensions; do
  7521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7522. ac_cv_prog_ac_ct_LIPO="lipo"
  7523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7524. break 2
  7525. fi
  7526. done
  7527. done
  7528. IFS=$as_save_IFS
  7529. fi
  7530. fi
  7531. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7532. if test -n "$ac_ct_LIPO"; then
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7534. $as_echo "$ac_ct_LIPO" >&6; }
  7535. else
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7537. $as_echo "no" >&6; }
  7538. fi
  7539. if test "x$ac_ct_LIPO" = x; then
  7540. LIPO=":"
  7541. else
  7542. case $cross_compiling:$ac_tool_warned in
  7543. yes:)
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7546. ac_tool_warned=yes ;;
  7547. esac
  7548. LIPO=$ac_ct_LIPO
  7549. fi
  7550. else
  7551. LIPO="$ac_cv_prog_LIPO"
  7552. fi
  7553. if test -n "$ac_tool_prefix"; then
  7554. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7555. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7557. $as_echo_n "checking for $ac_word... " >&6; }
  7558. if ${ac_cv_prog_OTOOL+:} false; then :
  7559. $as_echo_n "(cached) " >&6
  7560. else
  7561. if test -n "$OTOOL"; then
  7562. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7563. else
  7564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7565. for as_dir in $PATH
  7566. do
  7567. IFS=$as_save_IFS
  7568. test -z "$as_dir" && as_dir=.
  7569. for ac_exec_ext in '' $ac_executable_extensions; do
  7570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7571. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7573. break 2
  7574. fi
  7575. done
  7576. done
  7577. IFS=$as_save_IFS
  7578. fi
  7579. fi
  7580. OTOOL=$ac_cv_prog_OTOOL
  7581. if test -n "$OTOOL"; then
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7583. $as_echo "$OTOOL" >&6; }
  7584. else
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7586. $as_echo "no" >&6; }
  7587. fi
  7588. fi
  7589. if test -z "$ac_cv_prog_OTOOL"; then
  7590. ac_ct_OTOOL=$OTOOL
  7591. # Extract the first word of "otool", so it can be a program name with args.
  7592. set dummy otool; ac_word=$2
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7594. $as_echo_n "checking for $ac_word... " >&6; }
  7595. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7596. $as_echo_n "(cached) " >&6
  7597. else
  7598. if test -n "$ac_ct_OTOOL"; then
  7599. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7600. else
  7601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7602. for as_dir in $PATH
  7603. do
  7604. IFS=$as_save_IFS
  7605. test -z "$as_dir" && as_dir=.
  7606. for ac_exec_ext in '' $ac_executable_extensions; do
  7607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7608. ac_cv_prog_ac_ct_OTOOL="otool"
  7609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7610. break 2
  7611. fi
  7612. done
  7613. done
  7614. IFS=$as_save_IFS
  7615. fi
  7616. fi
  7617. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7618. if test -n "$ac_ct_OTOOL"; then
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7620. $as_echo "$ac_ct_OTOOL" >&6; }
  7621. else
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7623. $as_echo "no" >&6; }
  7624. fi
  7625. if test "x$ac_ct_OTOOL" = x; then
  7626. OTOOL=":"
  7627. else
  7628. case $cross_compiling:$ac_tool_warned in
  7629. yes:)
  7630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7632. ac_tool_warned=yes ;;
  7633. esac
  7634. OTOOL=$ac_ct_OTOOL
  7635. fi
  7636. else
  7637. OTOOL="$ac_cv_prog_OTOOL"
  7638. fi
  7639. if test -n "$ac_tool_prefix"; then
  7640. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7641. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7643. $as_echo_n "checking for $ac_word... " >&6; }
  7644. if ${ac_cv_prog_OTOOL64+:} false; then :
  7645. $as_echo_n "(cached) " >&6
  7646. else
  7647. if test -n "$OTOOL64"; then
  7648. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7649. else
  7650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7651. for as_dir in $PATH
  7652. do
  7653. IFS=$as_save_IFS
  7654. test -z "$as_dir" && as_dir=.
  7655. for ac_exec_ext in '' $ac_executable_extensions; do
  7656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7657. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7659. break 2
  7660. fi
  7661. done
  7662. done
  7663. IFS=$as_save_IFS
  7664. fi
  7665. fi
  7666. OTOOL64=$ac_cv_prog_OTOOL64
  7667. if test -n "$OTOOL64"; then
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7669. $as_echo "$OTOOL64" >&6; }
  7670. else
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7672. $as_echo "no" >&6; }
  7673. fi
  7674. fi
  7675. if test -z "$ac_cv_prog_OTOOL64"; then
  7676. ac_ct_OTOOL64=$OTOOL64
  7677. # Extract the first word of "otool64", so it can be a program name with args.
  7678. set dummy otool64; ac_word=$2
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7680. $as_echo_n "checking for $ac_word... " >&6; }
  7681. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. if test -n "$ac_ct_OTOOL64"; then
  7685. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7686. else
  7687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7688. for as_dir in $PATH
  7689. do
  7690. IFS=$as_save_IFS
  7691. test -z "$as_dir" && as_dir=.
  7692. for ac_exec_ext in '' $ac_executable_extensions; do
  7693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7694. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7696. break 2
  7697. fi
  7698. done
  7699. done
  7700. IFS=$as_save_IFS
  7701. fi
  7702. fi
  7703. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7704. if test -n "$ac_ct_OTOOL64"; then
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7706. $as_echo "$ac_ct_OTOOL64" >&6; }
  7707. else
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7709. $as_echo "no" >&6; }
  7710. fi
  7711. if test "x$ac_ct_OTOOL64" = x; then
  7712. OTOOL64=":"
  7713. else
  7714. case $cross_compiling:$ac_tool_warned in
  7715. yes:)
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7718. ac_tool_warned=yes ;;
  7719. esac
  7720. OTOOL64=$ac_ct_OTOOL64
  7721. fi
  7722. else
  7723. OTOOL64="$ac_cv_prog_OTOOL64"
  7724. fi
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7726. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7727. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. lt_cv_apple_cc_single_mod=no
  7731. if test -z "$LT_MULTI_MODULE"; then
  7732. # By default we will add the -single_module flag. You can override
  7733. # by either setting the environment variable LT_MULTI_MODULE
  7734. # non-empty at configure time, or by adding -multi_module to the
  7735. # link flags.
  7736. rm -rf libconftest.dylib*
  7737. echo "int foo(void){return 1;}" > conftest.c
  7738. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7739. -dynamiclib -Wl,-single_module conftest.c" >&5
  7740. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7741. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7742. _lt_result=$?
  7743. # If there is a non-empty error log, and "single_module"
  7744. # appears in it, assume the flag caused a linker warning
  7745. if test -s conftest.err && $GREP single_module conftest.err; then
  7746. cat conftest.err >&5
  7747. # Otherwise, if the output was created with a 0 exit code from
  7748. # the compiler, it worked.
  7749. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7750. lt_cv_apple_cc_single_mod=yes
  7751. else
  7752. cat conftest.err >&5
  7753. fi
  7754. rm -rf libconftest.dylib*
  7755. rm -f conftest.*
  7756. fi
  7757. fi
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7759. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7761. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7762. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. lt_cv_ld_exported_symbols_list=no
  7766. save_LDFLAGS=$LDFLAGS
  7767. echo "_main" > conftest.sym
  7768. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7770. /* end confdefs.h. */
  7771. int
  7772. main ()
  7773. {
  7774. ;
  7775. return 0;
  7776. }
  7777. _ACEOF
  7778. if ac_fn_c_try_link "$LINENO"; then :
  7779. lt_cv_ld_exported_symbols_list=yes
  7780. else
  7781. lt_cv_ld_exported_symbols_list=no
  7782. fi
  7783. rm -f core conftest.err conftest.$ac_objext \
  7784. conftest$ac_exeext conftest.$ac_ext
  7785. LDFLAGS=$save_LDFLAGS
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7788. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7790. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7791. if ${lt_cv_ld_force_load+:} false; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. lt_cv_ld_force_load=no
  7795. cat > conftest.c << _LT_EOF
  7796. int forced_loaded() { return 2;}
  7797. _LT_EOF
  7798. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7799. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7800. echo "$AR cr libconftest.a conftest.o" >&5
  7801. $AR cr libconftest.a conftest.o 2>&5
  7802. echo "$RANLIB libconftest.a" >&5
  7803. $RANLIB libconftest.a 2>&5
  7804. cat > conftest.c << _LT_EOF
  7805. int main() { return 0;}
  7806. _LT_EOF
  7807. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7808. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7809. _lt_result=$?
  7810. if test -s conftest.err && $GREP force_load conftest.err; then
  7811. cat conftest.err >&5
  7812. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7813. lt_cv_ld_force_load=yes
  7814. else
  7815. cat conftest.err >&5
  7816. fi
  7817. rm -f conftest.err libconftest.a conftest conftest.c
  7818. rm -rf conftest.dSYM
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7821. $as_echo "$lt_cv_ld_force_load" >&6; }
  7822. case $host_os in
  7823. rhapsody* | darwin1.[012])
  7824. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7825. darwin1.*)
  7826. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7827. darwin*) # darwin 5.x on
  7828. # if running on 10.5 or later, the deployment target defaults
  7829. # to the OS version, if on x86, and 10.4, the deployment
  7830. # target defaults to 10.4. Don't you love it?
  7831. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7832. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7833. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7834. 10.[012][,.]*)
  7835. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7836. 10.*)
  7837. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7838. esac
  7839. ;;
  7840. esac
  7841. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7842. _lt_dar_single_mod='$single_module'
  7843. fi
  7844. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7845. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7846. else
  7847. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7848. fi
  7849. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7850. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7851. else
  7852. _lt_dsymutil=
  7853. fi
  7854. ;;
  7855. esac
  7856. # func_munge_path_list VARIABLE PATH
  7857. # -----------------------------------
  7858. # VARIABLE is name of variable containing _space_ separated list of
  7859. # directories to be munged by the contents of PATH, which is string
  7860. # having a format:
  7861. # "DIR[:DIR]:"
  7862. # string "DIR[ DIR]" will be prepended to VARIABLE
  7863. # ":DIR[:DIR]"
  7864. # string "DIR[ DIR]" will be appended to VARIABLE
  7865. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7866. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7867. # "DIRA[ DIRA]" will be appended to VARIABLE
  7868. # "DIR[:DIR]"
  7869. # VARIABLE will be replaced by "DIR[ DIR]"
  7870. func_munge_path_list ()
  7871. {
  7872. case x$2 in
  7873. x)
  7874. ;;
  7875. *:)
  7876. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7877. ;;
  7878. x:*)
  7879. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7880. ;;
  7881. *::*)
  7882. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7883. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7884. ;;
  7885. *)
  7886. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7887. ;;
  7888. esac
  7889. }
  7890. ac_ext=c
  7891. ac_cpp='$CPP $CPPFLAGS'
  7892. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7893. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7894. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7896. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7897. # On Suns, sometimes $CPP names a directory.
  7898. if test -n "$CPP" && test -d "$CPP"; then
  7899. CPP=
  7900. fi
  7901. if test -z "$CPP"; then
  7902. if ${ac_cv_prog_CPP+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. # Double quotes because CPP needs to be expanded
  7906. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7907. do
  7908. ac_preproc_ok=false
  7909. for ac_c_preproc_warn_flag in '' yes
  7910. do
  7911. # Use a header file that comes with gcc, so configuring glibc
  7912. # with a fresh cross-compiler works.
  7913. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7914. # <limits.h> exists even on freestanding compilers.
  7915. # On the NeXT, cc -E runs the code through the compiler's parser,
  7916. # not just through cpp. "Syntax error" is here to catch this case.
  7917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7918. /* end confdefs.h. */
  7919. #ifdef __STDC__
  7920. # include <limits.h>
  7921. #else
  7922. # include <assert.h>
  7923. #endif
  7924. Syntax error
  7925. _ACEOF
  7926. if ac_fn_c_try_cpp "$LINENO"; then :
  7927. else
  7928. # Broken: fails on valid input.
  7929. continue
  7930. fi
  7931. rm -f conftest.err conftest.i conftest.$ac_ext
  7932. # OK, works on sane cases. Now check whether nonexistent headers
  7933. # can be detected and how.
  7934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7935. /* end confdefs.h. */
  7936. #include <ac_nonexistent.h>
  7937. _ACEOF
  7938. if ac_fn_c_try_cpp "$LINENO"; then :
  7939. # Broken: success on invalid input.
  7940. continue
  7941. else
  7942. # Passes both tests.
  7943. ac_preproc_ok=:
  7944. break
  7945. fi
  7946. rm -f conftest.err conftest.i conftest.$ac_ext
  7947. done
  7948. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7949. rm -f conftest.i conftest.err conftest.$ac_ext
  7950. if $ac_preproc_ok; then :
  7951. break
  7952. fi
  7953. done
  7954. ac_cv_prog_CPP=$CPP
  7955. fi
  7956. CPP=$ac_cv_prog_CPP
  7957. else
  7958. ac_cv_prog_CPP=$CPP
  7959. fi
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7961. $as_echo "$CPP" >&6; }
  7962. ac_preproc_ok=false
  7963. for ac_c_preproc_warn_flag in '' yes
  7964. do
  7965. # Use a header file that comes with gcc, so configuring glibc
  7966. # with a fresh cross-compiler works.
  7967. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7968. # <limits.h> exists even on freestanding compilers.
  7969. # On the NeXT, cc -E runs the code through the compiler's parser,
  7970. # not just through cpp. "Syntax error" is here to catch this case.
  7971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7972. /* end confdefs.h. */
  7973. #ifdef __STDC__
  7974. # include <limits.h>
  7975. #else
  7976. # include <assert.h>
  7977. #endif
  7978. Syntax error
  7979. _ACEOF
  7980. if ac_fn_c_try_cpp "$LINENO"; then :
  7981. else
  7982. # Broken: fails on valid input.
  7983. continue
  7984. fi
  7985. rm -f conftest.err conftest.i conftest.$ac_ext
  7986. # OK, works on sane cases. Now check whether nonexistent headers
  7987. # can be detected and how.
  7988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7989. /* end confdefs.h. */
  7990. #include <ac_nonexistent.h>
  7991. _ACEOF
  7992. if ac_fn_c_try_cpp "$LINENO"; then :
  7993. # Broken: success on invalid input.
  7994. continue
  7995. else
  7996. # Passes both tests.
  7997. ac_preproc_ok=:
  7998. break
  7999. fi
  8000. rm -f conftest.err conftest.i conftest.$ac_ext
  8001. done
  8002. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8003. rm -f conftest.i conftest.err conftest.$ac_ext
  8004. if $ac_preproc_ok; then :
  8005. else
  8006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8008. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  8009. See \`config.log' for more details" "$LINENO" 5; }
  8010. fi
  8011. ac_ext=c
  8012. ac_cpp='$CPP $CPPFLAGS'
  8013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8017. $as_echo_n "checking for ANSI C header files... " >&6; }
  8018. if ${ac_cv_header_stdc+:} false; then :
  8019. $as_echo_n "(cached) " >&6
  8020. else
  8021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8022. /* end confdefs.h. */
  8023. #include <stdlib.h>
  8024. #include <stdarg.h>
  8025. #include <string.h>
  8026. #include <float.h>
  8027. int
  8028. main ()
  8029. {
  8030. ;
  8031. return 0;
  8032. }
  8033. _ACEOF
  8034. if ac_fn_c_try_compile "$LINENO"; then :
  8035. ac_cv_header_stdc=yes
  8036. else
  8037. ac_cv_header_stdc=no
  8038. fi
  8039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8040. if test $ac_cv_header_stdc = yes; then
  8041. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8043. /* end confdefs.h. */
  8044. #include <string.h>
  8045. _ACEOF
  8046. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8047. $EGREP "memchr" >/dev/null 2>&1; then :
  8048. else
  8049. ac_cv_header_stdc=no
  8050. fi
  8051. rm -f conftest*
  8052. fi
  8053. if test $ac_cv_header_stdc = yes; then
  8054. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8056. /* end confdefs.h. */
  8057. #include <stdlib.h>
  8058. _ACEOF
  8059. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8060. $EGREP "free" >/dev/null 2>&1; then :
  8061. else
  8062. ac_cv_header_stdc=no
  8063. fi
  8064. rm -f conftest*
  8065. fi
  8066. if test $ac_cv_header_stdc = yes; then
  8067. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8068. if test "$cross_compiling" = yes; then :
  8069. :
  8070. else
  8071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8072. /* end confdefs.h. */
  8073. #include <ctype.h>
  8074. #include <stdlib.h>
  8075. #if ((' ' & 0x0FF) == 0x020)
  8076. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8077. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8078. #else
  8079. # define ISLOWER(c) \
  8080. (('a' <= (c) && (c) <= 'i') \
  8081. || ('j' <= (c) && (c) <= 'r') \
  8082. || ('s' <= (c) && (c) <= 'z'))
  8083. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8084. #endif
  8085. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8086. int
  8087. main ()
  8088. {
  8089. int i;
  8090. for (i = 0; i < 256; i++)
  8091. if (XOR (islower (i), ISLOWER (i))
  8092. || toupper (i) != TOUPPER (i))
  8093. return 2;
  8094. return 0;
  8095. }
  8096. _ACEOF
  8097. if ac_fn_c_try_run "$LINENO"; then :
  8098. else
  8099. ac_cv_header_stdc=no
  8100. fi
  8101. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8102. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8103. fi
  8104. fi
  8105. fi
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8107. $as_echo "$ac_cv_header_stdc" >&6; }
  8108. if test $ac_cv_header_stdc = yes; then
  8109. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8110. fi
  8111. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8112. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8113. inttypes.h stdint.h unistd.h
  8114. do :
  8115. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8116. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8117. "
  8118. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8119. cat >>confdefs.h <<_ACEOF
  8120. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8121. _ACEOF
  8122. fi
  8123. done
  8124. for ac_header in dlfcn.h
  8125. do :
  8126. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8127. "
  8128. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8129. cat >>confdefs.h <<_ACEOF
  8130. #define HAVE_DLFCN_H 1
  8131. _ACEOF
  8132. fi
  8133. done
  8134. # Set options
  8135. enable_dlopen=no
  8136. enable_win32_dll=no
  8137. # Check whether --with-pic was given.
  8138. if test "${with_pic+set}" = set; then :
  8139. withval=$with_pic; lt_p=${PACKAGE-default}
  8140. case $withval in
  8141. yes|no) pic_mode=$withval ;;
  8142. *)
  8143. pic_mode=default
  8144. # Look at the argument we got. We use all the common list separators.
  8145. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8146. for lt_pkg in $withval; do
  8147. IFS=$lt_save_ifs
  8148. if test "X$lt_pkg" = "X$lt_p"; then
  8149. pic_mode=yes
  8150. fi
  8151. done
  8152. IFS=$lt_save_ifs
  8153. ;;
  8154. esac
  8155. else
  8156. pic_mode=default
  8157. fi
  8158. # Check whether --enable-fast-install was given.
  8159. if test "${enable_fast_install+set}" = set; then :
  8160. enableval=$enable_fast_install; p=${PACKAGE-default}
  8161. case $enableval in
  8162. yes) enable_fast_install=yes ;;
  8163. no) enable_fast_install=no ;;
  8164. *)
  8165. enable_fast_install=no
  8166. # Look at the argument we got. We use all the common list separators.
  8167. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8168. for pkg in $enableval; do
  8169. IFS=$lt_save_ifs
  8170. if test "X$pkg" = "X$p"; then
  8171. enable_fast_install=yes
  8172. fi
  8173. done
  8174. IFS=$lt_save_ifs
  8175. ;;
  8176. esac
  8177. else
  8178. enable_fast_install=yes
  8179. fi
  8180. shared_archive_member_spec=
  8181. case $host,$enable_shared in
  8182. power*-*-aix[5-9]*,yes)
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8184. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8185. # Check whether --with-aix-soname was given.
  8186. if test "${with_aix_soname+set}" = set; then :
  8187. withval=$with_aix_soname; case $withval in
  8188. aix|svr4|both)
  8189. ;;
  8190. *)
  8191. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8192. ;;
  8193. esac
  8194. lt_cv_with_aix_soname=$with_aix_soname
  8195. else
  8196. if ${lt_cv_with_aix_soname+:} false; then :
  8197. $as_echo_n "(cached) " >&6
  8198. else
  8199. lt_cv_with_aix_soname=aix
  8200. fi
  8201. with_aix_soname=$lt_cv_with_aix_soname
  8202. fi
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8204. $as_echo "$with_aix_soname" >&6; }
  8205. if test aix != "$with_aix_soname"; then
  8206. # For the AIX way of multilib, we name the shared archive member
  8207. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8208. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8209. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8210. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8211. if test 64 = "${OBJECT_MODE-32}"; then
  8212. shared_archive_member_spec=shr_64
  8213. else
  8214. shared_archive_member_spec=shr
  8215. fi
  8216. fi
  8217. ;;
  8218. *)
  8219. with_aix_soname=aix
  8220. ;;
  8221. esac
  8222. # This can be used to rebuild libtool when needed
  8223. LIBTOOL_DEPS=$ltmain
  8224. # Always use our own libtool.
  8225. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8226. test -z "$LN_S" && LN_S="ln -s"
  8227. if test -n "${ZSH_VERSION+set}"; then
  8228. setopt NO_GLOB_SUBST
  8229. fi
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8231. $as_echo_n "checking for objdir... " >&6; }
  8232. if ${lt_cv_objdir+:} false; then :
  8233. $as_echo_n "(cached) " >&6
  8234. else
  8235. rm -f .libs 2>/dev/null
  8236. mkdir .libs 2>/dev/null
  8237. if test -d .libs; then
  8238. lt_cv_objdir=.libs
  8239. else
  8240. # MS-DOS does not allow filenames that begin with a dot.
  8241. lt_cv_objdir=_libs
  8242. fi
  8243. rmdir .libs 2>/dev/null
  8244. fi
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8246. $as_echo "$lt_cv_objdir" >&6; }
  8247. objdir=$lt_cv_objdir
  8248. cat >>confdefs.h <<_ACEOF
  8249. #define LT_OBJDIR "$lt_cv_objdir/"
  8250. _ACEOF
  8251. case $host_os in
  8252. aix3*)
  8253. # AIX sometimes has problems with the GCC collect2 program. For some
  8254. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8255. # vanish in a puff of smoke.
  8256. if test set != "${COLLECT_NAMES+set}"; then
  8257. COLLECT_NAMES=
  8258. export COLLECT_NAMES
  8259. fi
  8260. ;;
  8261. esac
  8262. # Global variables:
  8263. ofile=libtool
  8264. can_build_shared=yes
  8265. # All known linkers require a '.a' archive for static linking (except MSVC,
  8266. # which needs '.lib').
  8267. libext=a
  8268. with_gnu_ld=$lt_cv_prog_gnu_ld
  8269. old_CC=$CC
  8270. old_CFLAGS=$CFLAGS
  8271. # Set sane defaults for various variables
  8272. test -z "$CC" && CC=cc
  8273. test -z "$LTCC" && LTCC=$CC
  8274. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8275. test -z "$LD" && LD=ld
  8276. test -z "$ac_objext" && ac_objext=o
  8277. func_cc_basename $compiler
  8278. cc_basename=$func_cc_basename_result
  8279. # Only perform the check for file, if the check method requires it
  8280. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8281. case $deplibs_check_method in
  8282. file_magic*)
  8283. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8285. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8286. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8287. $as_echo_n "(cached) " >&6
  8288. else
  8289. case $MAGIC_CMD in
  8290. [\\/*] | ?:[\\/]*)
  8291. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8292. ;;
  8293. *)
  8294. lt_save_MAGIC_CMD=$MAGIC_CMD
  8295. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8296. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8297. for ac_dir in $ac_dummy; do
  8298. IFS=$lt_save_ifs
  8299. test -z "$ac_dir" && ac_dir=.
  8300. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8301. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8302. if test -n "$file_magic_test_file"; then
  8303. case $deplibs_check_method in
  8304. "file_magic "*)
  8305. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8306. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8307. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8308. $EGREP "$file_magic_regex" > /dev/null; then
  8309. :
  8310. else
  8311. cat <<_LT_EOF 1>&2
  8312. *** Warning: the command libtool uses to detect shared libraries,
  8313. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8314. *** The result is that libtool may fail to recognize shared libraries
  8315. *** as such. This will affect the creation of libtool libraries that
  8316. *** depend on shared libraries, but programs linked with such libtool
  8317. *** libraries will work regardless of this problem. Nevertheless, you
  8318. *** may want to report the problem to your system manager and/or to
  8319. *** [email protected]
  8320. _LT_EOF
  8321. fi ;;
  8322. esac
  8323. fi
  8324. break
  8325. fi
  8326. done
  8327. IFS=$lt_save_ifs
  8328. MAGIC_CMD=$lt_save_MAGIC_CMD
  8329. ;;
  8330. esac
  8331. fi
  8332. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8333. if test -n "$MAGIC_CMD"; then
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8335. $as_echo "$MAGIC_CMD" >&6; }
  8336. else
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8338. $as_echo "no" >&6; }
  8339. fi
  8340. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8341. if test -n "$ac_tool_prefix"; then
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8343. $as_echo_n "checking for file... " >&6; }
  8344. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8345. $as_echo_n "(cached) " >&6
  8346. else
  8347. case $MAGIC_CMD in
  8348. [\\/*] | ?:[\\/]*)
  8349. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8350. ;;
  8351. *)
  8352. lt_save_MAGIC_CMD=$MAGIC_CMD
  8353. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8354. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8355. for ac_dir in $ac_dummy; do
  8356. IFS=$lt_save_ifs
  8357. test -z "$ac_dir" && ac_dir=.
  8358. if test -f "$ac_dir/file"; then
  8359. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8360. if test -n "$file_magic_test_file"; then
  8361. case $deplibs_check_method in
  8362. "file_magic "*)
  8363. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8364. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8365. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8366. $EGREP "$file_magic_regex" > /dev/null; then
  8367. :
  8368. else
  8369. cat <<_LT_EOF 1>&2
  8370. *** Warning: the command libtool uses to detect shared libraries,
  8371. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8372. *** The result is that libtool may fail to recognize shared libraries
  8373. *** as such. This will affect the creation of libtool libraries that
  8374. *** depend on shared libraries, but programs linked with such libtool
  8375. *** libraries will work regardless of this problem. Nevertheless, you
  8376. *** may want to report the problem to your system manager and/or to
  8377. *** [email protected]
  8378. _LT_EOF
  8379. fi ;;
  8380. esac
  8381. fi
  8382. break
  8383. fi
  8384. done
  8385. IFS=$lt_save_ifs
  8386. MAGIC_CMD=$lt_save_MAGIC_CMD
  8387. ;;
  8388. esac
  8389. fi
  8390. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8391. if test -n "$MAGIC_CMD"; then
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8393. $as_echo "$MAGIC_CMD" >&6; }
  8394. else
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8396. $as_echo "no" >&6; }
  8397. fi
  8398. else
  8399. MAGIC_CMD=:
  8400. fi
  8401. fi
  8402. fi
  8403. ;;
  8404. esac
  8405. # Use C for the default configuration in the libtool script
  8406. lt_save_CC=$CC
  8407. ac_ext=c
  8408. ac_cpp='$CPP $CPPFLAGS'
  8409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8412. # Source file extension for C test sources.
  8413. ac_ext=c
  8414. # Object file extension for compiled C test sources.
  8415. objext=o
  8416. objext=$objext
  8417. # Code to be used in simple compile tests
  8418. lt_simple_compile_test_code="int some_variable = 0;"
  8419. # Code to be used in simple link tests
  8420. lt_simple_link_test_code='int main(){return(0);}'
  8421. # If no C compiler was specified, use CC.
  8422. LTCC=${LTCC-"$CC"}
  8423. # If no C compiler flags were specified, use CFLAGS.
  8424. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8425. # Allow CC to be a program name with arguments.
  8426. compiler=$CC
  8427. # Save the default compiler, since it gets overwritten when the other
  8428. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8429. compiler_DEFAULT=$CC
  8430. # save warnings/boilerplate of simple test code
  8431. ac_outfile=conftest.$ac_objext
  8432. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8433. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8434. _lt_compiler_boilerplate=`cat conftest.err`
  8435. $RM conftest*
  8436. ac_outfile=conftest.$ac_objext
  8437. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8438. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8439. _lt_linker_boilerplate=`cat conftest.err`
  8440. $RM -r conftest*
  8441. ## CAVEAT EMPTOR:
  8442. ## There is no encapsulation within the following macros, do not change
  8443. ## the running order or otherwise move them around unless you know exactly
  8444. ## what you are doing...
  8445. if test -n "$compiler"; then
  8446. lt_prog_compiler_no_builtin_flag=
  8447. if test yes = "$GCC"; then
  8448. case $cc_basename in
  8449. nvcc*)
  8450. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8451. *)
  8452. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8453. esac
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8455. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8456. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8457. $as_echo_n "(cached) " >&6
  8458. else
  8459. lt_cv_prog_compiler_rtti_exceptions=no
  8460. ac_outfile=conftest.$ac_objext
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. # The option is referenced via a variable to avoid confusing sed.
  8468. lt_compile=`echo "$ac_compile" | $SED \
  8469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8471. -e 's:$: $lt_compiler_flag:'`
  8472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8473. (eval "$lt_compile" 2>conftest.err)
  8474. ac_status=$?
  8475. cat conftest.err >&5
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. if (exit $ac_status) && test -s "$ac_outfile"; then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings other than the usual output.
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8481. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8482. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_rtti_exceptions=yes
  8484. fi
  8485. fi
  8486. $RM conftest*
  8487. fi
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8489. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8490. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8491. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8492. else
  8493. :
  8494. fi
  8495. fi
  8496. lt_prog_compiler_wl=
  8497. lt_prog_compiler_pic=
  8498. lt_prog_compiler_static=
  8499. if test yes = "$GCC"; then
  8500. lt_prog_compiler_wl='-Wl,'
  8501. lt_prog_compiler_static='-static'
  8502. case $host_os in
  8503. aix*)
  8504. # All AIX code is PIC.
  8505. if test ia64 = "$host_cpu"; then
  8506. # AIX 5 now supports IA64 processor
  8507. lt_prog_compiler_static='-Bstatic'
  8508. fi
  8509. lt_prog_compiler_pic='-fPIC'
  8510. ;;
  8511. amigaos*)
  8512. case $host_cpu in
  8513. powerpc)
  8514. # see comment about AmigaOS4 .so support
  8515. lt_prog_compiler_pic='-fPIC'
  8516. ;;
  8517. m68k)
  8518. # FIXME: we need at least 68020 code to build shared libraries, but
  8519. # adding the '-m68020' flag to GCC prevents building anything better,
  8520. # like '-m68040'.
  8521. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8522. ;;
  8523. esac
  8524. ;;
  8525. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8526. # PIC is the default for these OSes.
  8527. ;;
  8528. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8529. # This hack is so that the source file can tell whether it is being
  8530. # built for inclusion in a dll (and should export symbols for example).
  8531. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8532. # (--disable-auto-import) libraries
  8533. lt_prog_compiler_pic='-DDLL_EXPORT'
  8534. case $host_os in
  8535. os2*)
  8536. lt_prog_compiler_static='$wl-static'
  8537. ;;
  8538. esac
  8539. ;;
  8540. darwin* | rhapsody*)
  8541. # PIC is the default on this platform
  8542. # Common symbols not allowed in MH_DYLIB files
  8543. lt_prog_compiler_pic='-fno-common'
  8544. ;;
  8545. haiku*)
  8546. # PIC is the default for Haiku.
  8547. # The "-static" flag exists, but is broken.
  8548. lt_prog_compiler_static=
  8549. ;;
  8550. hpux*)
  8551. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8552. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8553. # sets the default TLS model and affects inlining.
  8554. case $host_cpu in
  8555. hppa*64*)
  8556. # +Z the default
  8557. ;;
  8558. *)
  8559. lt_prog_compiler_pic='-fPIC'
  8560. ;;
  8561. esac
  8562. ;;
  8563. interix[3-9]*)
  8564. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8565. # Instead, we relocate shared libraries at runtime.
  8566. ;;
  8567. msdosdjgpp*)
  8568. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8569. # on systems that don't support them.
  8570. lt_prog_compiler_can_build_shared=no
  8571. enable_shared=no
  8572. ;;
  8573. *nto* | *qnx*)
  8574. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8575. # it will coredump.
  8576. lt_prog_compiler_pic='-fPIC -shared'
  8577. ;;
  8578. sysv4*MP*)
  8579. if test -d /usr/nec; then
  8580. lt_prog_compiler_pic=-Kconform_pic
  8581. fi
  8582. ;;
  8583. *)
  8584. lt_prog_compiler_pic='-fPIC'
  8585. ;;
  8586. esac
  8587. case $cc_basename in
  8588. nvcc*) # Cuda Compiler Driver 2.2
  8589. lt_prog_compiler_wl='-Xlinker '
  8590. if test -n "$lt_prog_compiler_pic"; then
  8591. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8592. fi
  8593. ;;
  8594. esac
  8595. else
  8596. # PORTME Check for flag to pass linker flags through the system compiler.
  8597. case $host_os in
  8598. aix*)
  8599. lt_prog_compiler_wl='-Wl,'
  8600. if test ia64 = "$host_cpu"; then
  8601. # AIX 5 now supports IA64 processor
  8602. lt_prog_compiler_static='-Bstatic'
  8603. else
  8604. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8605. fi
  8606. ;;
  8607. darwin* | rhapsody*)
  8608. # PIC is the default on this platform
  8609. # Common symbols not allowed in MH_DYLIB files
  8610. lt_prog_compiler_pic='-fno-common'
  8611. case $cc_basename in
  8612. nagfor*)
  8613. # NAG Fortran compiler
  8614. lt_prog_compiler_wl='-Wl,-Wl,,'
  8615. lt_prog_compiler_pic='-PIC'
  8616. lt_prog_compiler_static='-Bstatic'
  8617. ;;
  8618. esac
  8619. ;;
  8620. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8621. # This hack is so that the source file can tell whether it is being
  8622. # built for inclusion in a dll (and should export symbols for example).
  8623. lt_prog_compiler_pic='-DDLL_EXPORT'
  8624. case $host_os in
  8625. os2*)
  8626. lt_prog_compiler_static='$wl-static'
  8627. ;;
  8628. esac
  8629. ;;
  8630. hpux9* | hpux10* | hpux11*)
  8631. lt_prog_compiler_wl='-Wl,'
  8632. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8633. # not for PA HP-UX.
  8634. case $host_cpu in
  8635. hppa*64*|ia64*)
  8636. # +Z the default
  8637. ;;
  8638. *)
  8639. lt_prog_compiler_pic='+Z'
  8640. ;;
  8641. esac
  8642. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8643. lt_prog_compiler_static='$wl-a ${wl}archive'
  8644. ;;
  8645. irix5* | irix6* | nonstopux*)
  8646. lt_prog_compiler_wl='-Wl,'
  8647. # PIC (with -KPIC) is the default.
  8648. lt_prog_compiler_static='-non_shared'
  8649. ;;
  8650. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8651. case $cc_basename in
  8652. # old Intel for x86_64, which still supported -KPIC.
  8653. ecc*)
  8654. lt_prog_compiler_wl='-Wl,'
  8655. lt_prog_compiler_pic='-KPIC'
  8656. lt_prog_compiler_static='-static'
  8657. ;;
  8658. # flang / f18. f95 an alias for gfortran or flang on Debian
  8659. flang* | f18* | f95*)
  8660. lt_prog_compiler_wl='-Wl,'
  8661. lt_prog_compiler_pic='-fPIC'
  8662. lt_prog_compiler_static='-static'
  8663. ;;
  8664. # icc used to be incompatible with GCC.
  8665. # ICC 10 doesn't accept -KPIC any more.
  8666. icc* | ifort*)
  8667. lt_prog_compiler_wl='-Wl,'
  8668. lt_prog_compiler_pic='-fPIC'
  8669. lt_prog_compiler_static='-static'
  8670. ;;
  8671. # Lahey Fortran 8.1.
  8672. lf95*)
  8673. lt_prog_compiler_wl='-Wl,'
  8674. lt_prog_compiler_pic='--shared'
  8675. lt_prog_compiler_static='--static'
  8676. ;;
  8677. nagfor*)
  8678. # NAG Fortran compiler
  8679. lt_prog_compiler_wl='-Wl,-Wl,,'
  8680. lt_prog_compiler_pic='-PIC'
  8681. lt_prog_compiler_static='-Bstatic'
  8682. ;;
  8683. tcc*)
  8684. # Fabrice Bellard et al's Tiny C Compiler
  8685. lt_prog_compiler_wl='-Wl,'
  8686. lt_prog_compiler_pic='-fPIC'
  8687. lt_prog_compiler_static='-static'
  8688. ;;
  8689. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8690. # Portland Group compilers (*not* the Pentium gcc compiler,
  8691. # which looks to be a dead project)
  8692. lt_prog_compiler_wl='-Wl,'
  8693. lt_prog_compiler_pic='-fpic'
  8694. lt_prog_compiler_static='-Bstatic'
  8695. ;;
  8696. ccc*)
  8697. lt_prog_compiler_wl='-Wl,'
  8698. # All Alpha code is PIC.
  8699. lt_prog_compiler_static='-non_shared'
  8700. ;;
  8701. xl* | bgxl* | bgf* | mpixl*)
  8702. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8703. lt_prog_compiler_wl='-Wl,'
  8704. lt_prog_compiler_pic='-qpic'
  8705. lt_prog_compiler_static='-qstaticlink'
  8706. ;;
  8707. *)
  8708. case `$CC -V 2>&1 | sed 5q` in
  8709. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8710. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8711. lt_prog_compiler_pic='-KPIC'
  8712. lt_prog_compiler_static='-Bstatic'
  8713. lt_prog_compiler_wl=''
  8714. ;;
  8715. *Sun\ F* | *Sun*Fortran*)
  8716. lt_prog_compiler_pic='-KPIC'
  8717. lt_prog_compiler_static='-Bstatic'
  8718. lt_prog_compiler_wl='-Qoption ld '
  8719. ;;
  8720. *Sun\ C*)
  8721. # Sun C 5.9
  8722. lt_prog_compiler_pic='-KPIC'
  8723. lt_prog_compiler_static='-Bstatic'
  8724. lt_prog_compiler_wl='-Wl,'
  8725. ;;
  8726. *Intel*\ [CF]*Compiler*)
  8727. lt_prog_compiler_wl='-Wl,'
  8728. lt_prog_compiler_pic='-fPIC'
  8729. lt_prog_compiler_static='-static'
  8730. ;;
  8731. *Portland\ Group*)
  8732. lt_prog_compiler_wl='-Wl,'
  8733. lt_prog_compiler_pic='-fpic'
  8734. lt_prog_compiler_static='-Bstatic'
  8735. ;;
  8736. esac
  8737. ;;
  8738. esac
  8739. ;;
  8740. newsos6)
  8741. lt_prog_compiler_pic='-KPIC'
  8742. lt_prog_compiler_static='-Bstatic'
  8743. ;;
  8744. *nto* | *qnx*)
  8745. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8746. # it will coredump.
  8747. lt_prog_compiler_pic='-fPIC -shared'
  8748. ;;
  8749. osf3* | osf4* | osf5*)
  8750. lt_prog_compiler_wl='-Wl,'
  8751. # All OSF/1 code is PIC.
  8752. lt_prog_compiler_static='-non_shared'
  8753. ;;
  8754. rdos*)
  8755. lt_prog_compiler_static='-non_shared'
  8756. ;;
  8757. solaris*)
  8758. lt_prog_compiler_pic='-KPIC'
  8759. lt_prog_compiler_static='-Bstatic'
  8760. case $cc_basename in
  8761. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8762. lt_prog_compiler_wl='-Qoption ld ';;
  8763. *)
  8764. lt_prog_compiler_wl='-Wl,';;
  8765. esac
  8766. ;;
  8767. sunos4*)
  8768. lt_prog_compiler_wl='-Qoption ld '
  8769. lt_prog_compiler_pic='-PIC'
  8770. lt_prog_compiler_static='-Bstatic'
  8771. ;;
  8772. sysv4 | sysv4.2uw2* | sysv4.3*)
  8773. lt_prog_compiler_wl='-Wl,'
  8774. lt_prog_compiler_pic='-KPIC'
  8775. lt_prog_compiler_static='-Bstatic'
  8776. ;;
  8777. sysv4*MP*)
  8778. if test -d /usr/nec; then
  8779. lt_prog_compiler_pic='-Kconform_pic'
  8780. lt_prog_compiler_static='-Bstatic'
  8781. fi
  8782. ;;
  8783. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8784. lt_prog_compiler_wl='-Wl,'
  8785. lt_prog_compiler_pic='-KPIC'
  8786. lt_prog_compiler_static='-Bstatic'
  8787. ;;
  8788. unicos*)
  8789. lt_prog_compiler_wl='-Wl,'
  8790. lt_prog_compiler_can_build_shared=no
  8791. ;;
  8792. uts4*)
  8793. lt_prog_compiler_pic='-pic'
  8794. lt_prog_compiler_static='-Bstatic'
  8795. ;;
  8796. *)
  8797. lt_prog_compiler_can_build_shared=no
  8798. ;;
  8799. esac
  8800. fi
  8801. case $host_os in
  8802. # For platforms that do not support PIC, -DPIC is meaningless:
  8803. *djgpp*)
  8804. lt_prog_compiler_pic=
  8805. ;;
  8806. *)
  8807. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8808. ;;
  8809. esac
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8811. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8812. if ${lt_cv_prog_compiler_pic+:} false; then :
  8813. $as_echo_n "(cached) " >&6
  8814. else
  8815. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8816. fi
  8817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8818. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8819. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8820. #
  8821. # Check to make sure the PIC flag actually works.
  8822. #
  8823. if test -n "$lt_prog_compiler_pic"; then
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8825. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8826. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8827. $as_echo_n "(cached) " >&6
  8828. else
  8829. lt_cv_prog_compiler_pic_works=no
  8830. ac_outfile=conftest.$ac_objext
  8831. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8832. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8833. # Insert the option either (1) after the last *FLAGS variable, or
  8834. # (2) before a word containing "conftest.", or (3) at the end.
  8835. # Note that $ac_compile itself does not contain backslashes and begins
  8836. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8837. # The option is referenced via a variable to avoid confusing sed.
  8838. lt_compile=`echo "$ac_compile" | $SED \
  8839. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8840. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8841. -e 's:$: $lt_compiler_flag:'`
  8842. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8843. (eval "$lt_compile" 2>conftest.err)
  8844. ac_status=$?
  8845. cat conftest.err >&5
  8846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8847. if (exit $ac_status) && test -s "$ac_outfile"; then
  8848. # The compiler can only warn and ignore the option if not recognized
  8849. # So say no if there are warnings other than the usual output.
  8850. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8851. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8852. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8853. lt_cv_prog_compiler_pic_works=yes
  8854. fi
  8855. fi
  8856. $RM conftest*
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8859. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8860. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8861. case $lt_prog_compiler_pic in
  8862. "" | " "*) ;;
  8863. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8864. esac
  8865. else
  8866. lt_prog_compiler_pic=
  8867. lt_prog_compiler_can_build_shared=no
  8868. fi
  8869. fi
  8870. #
  8871. # Check to make sure the static flag actually works.
  8872. #
  8873. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8875. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8876. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8877. $as_echo_n "(cached) " >&6
  8878. else
  8879. lt_cv_prog_compiler_static_works=no
  8880. save_LDFLAGS=$LDFLAGS
  8881. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8882. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8883. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8884. # The linker can only warn and ignore the option if not recognized
  8885. # So say no if there are warnings
  8886. if test -s conftest.err; then
  8887. # Append any errors to the config.log.
  8888. cat conftest.err 1>&5
  8889. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8890. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8891. if diff conftest.exp conftest.er2 >/dev/null; then
  8892. lt_cv_prog_compiler_static_works=yes
  8893. fi
  8894. else
  8895. lt_cv_prog_compiler_static_works=yes
  8896. fi
  8897. fi
  8898. $RM -r conftest*
  8899. LDFLAGS=$save_LDFLAGS
  8900. fi
  8901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8902. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8903. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8904. :
  8905. else
  8906. lt_prog_compiler_static=
  8907. fi
  8908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8909. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8910. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8911. $as_echo_n "(cached) " >&6
  8912. else
  8913. lt_cv_prog_compiler_c_o=no
  8914. $RM -r conftest 2>/dev/null
  8915. mkdir conftest
  8916. cd conftest
  8917. mkdir out
  8918. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8919. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8920. # Insert the option either (1) after the last *FLAGS variable, or
  8921. # (2) before a word containing "conftest.", or (3) at the end.
  8922. # Note that $ac_compile itself does not contain backslashes and begins
  8923. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8924. lt_compile=`echo "$ac_compile" | $SED \
  8925. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8926. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8927. -e 's:$: $lt_compiler_flag:'`
  8928. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8929. (eval "$lt_compile" 2>out/conftest.err)
  8930. ac_status=$?
  8931. cat out/conftest.err >&5
  8932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8933. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8934. then
  8935. # The compiler can only warn and ignore the option if not recognized
  8936. # So say no if there are warnings
  8937. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8938. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8939. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8940. lt_cv_prog_compiler_c_o=yes
  8941. fi
  8942. fi
  8943. chmod u+w . 2>&5
  8944. $RM conftest*
  8945. # SGI C++ compiler will create directory out/ii_files/ for
  8946. # template instantiation
  8947. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8948. $RM out/* && rmdir out
  8949. cd ..
  8950. $RM -r conftest
  8951. $RM conftest*
  8952. fi
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8954. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8956. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8957. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8958. $as_echo_n "(cached) " >&6
  8959. else
  8960. lt_cv_prog_compiler_c_o=no
  8961. $RM -r conftest 2>/dev/null
  8962. mkdir conftest
  8963. cd conftest
  8964. mkdir out
  8965. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8966. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8967. # Insert the option either (1) after the last *FLAGS variable, or
  8968. # (2) before a word containing "conftest.", or (3) at the end.
  8969. # Note that $ac_compile itself does not contain backslashes and begins
  8970. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8971. lt_compile=`echo "$ac_compile" | $SED \
  8972. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8973. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8974. -e 's:$: $lt_compiler_flag:'`
  8975. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8976. (eval "$lt_compile" 2>out/conftest.err)
  8977. ac_status=$?
  8978. cat out/conftest.err >&5
  8979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8980. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8981. then
  8982. # The compiler can only warn and ignore the option if not recognized
  8983. # So say no if there are warnings
  8984. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8985. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8986. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8987. lt_cv_prog_compiler_c_o=yes
  8988. fi
  8989. fi
  8990. chmod u+w . 2>&5
  8991. $RM conftest*
  8992. # SGI C++ compiler will create directory out/ii_files/ for
  8993. # template instantiation
  8994. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8995. $RM out/* && rmdir out
  8996. cd ..
  8997. $RM -r conftest
  8998. $RM conftest*
  8999. fi
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9001. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9002. hard_links=nottested
  9003. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9004. # do not overwrite the value of need_locks provided by the user
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9006. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9007. hard_links=yes
  9008. $RM conftest*
  9009. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9010. touch conftest.a
  9011. ln conftest.a conftest.b 2>&5 || hard_links=no
  9012. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9014. $as_echo "$hard_links" >&6; }
  9015. if test no = "$hard_links"; then
  9016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9017. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9018. need_locks=warn
  9019. fi
  9020. else
  9021. need_locks=no
  9022. fi
  9023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9024. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9025. runpath_var=
  9026. allow_undefined_flag=
  9027. always_export_symbols=no
  9028. archive_cmds=
  9029. archive_expsym_cmds=
  9030. compiler_needs_object=no
  9031. enable_shared_with_static_runtimes=no
  9032. export_dynamic_flag_spec=
  9033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9034. hardcode_automatic=no
  9035. hardcode_direct=no
  9036. hardcode_direct_absolute=no
  9037. hardcode_libdir_flag_spec=
  9038. hardcode_libdir_separator=
  9039. hardcode_minus_L=no
  9040. hardcode_shlibpath_var=unsupported
  9041. inherit_rpath=no
  9042. link_all_deplibs=unknown
  9043. module_cmds=
  9044. module_expsym_cmds=
  9045. old_archive_from_new_cmds=
  9046. old_archive_from_expsyms_cmds=
  9047. thread_safe_flag_spec=
  9048. whole_archive_flag_spec=
  9049. # include_expsyms should be a list of space-separated symbols to be *always*
  9050. # included in the symbol list
  9051. include_expsyms=
  9052. # exclude_expsyms can be an extended regexp of symbols to exclude
  9053. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9054. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9055. # as well as any symbol that contains 'd'.
  9056. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9057. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9058. # platforms (ab)use it in PIC code, but their linkers get confused if
  9059. # the symbol is explicitly referenced. Since portable code cannot
  9060. # rely on this symbol name, it's probably fine to never include it in
  9061. # preloaded symbol tables.
  9062. # Exclude shared library initialization/finalization symbols.
  9063. extract_expsyms_cmds=
  9064. case $host_os in
  9065. cygwin* | mingw* | pw32* | cegcc*)
  9066. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9067. # When not using gcc, we currently assume that we are using
  9068. # Microsoft Visual C++.
  9069. if test yes != "$GCC"; then
  9070. with_gnu_ld=no
  9071. fi
  9072. ;;
  9073. interix*)
  9074. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9075. with_gnu_ld=yes
  9076. ;;
  9077. openbsd* | bitrig*)
  9078. with_gnu_ld=no
  9079. ;;
  9080. linux* | k*bsd*-gnu | gnu*)
  9081. link_all_deplibs=no
  9082. ;;
  9083. esac
  9084. ld_shlibs=yes
  9085. # On some targets, GNU ld is compatible enough with the native linker
  9086. # that we're better off using the native interface for both.
  9087. lt_use_gnu_ld_interface=no
  9088. if test yes = "$with_gnu_ld"; then
  9089. case $host_os in
  9090. aix*)
  9091. # The AIX port of GNU ld has always aspired to compatibility
  9092. # with the native linker. However, as the warning in the GNU ld
  9093. # block says, versions before 2.19.5* couldn't really create working
  9094. # shared libraries, regardless of the interface used.
  9095. case `$LD -v 2>&1` in
  9096. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9097. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9098. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9099. *)
  9100. lt_use_gnu_ld_interface=yes
  9101. ;;
  9102. esac
  9103. ;;
  9104. *)
  9105. lt_use_gnu_ld_interface=yes
  9106. ;;
  9107. esac
  9108. fi
  9109. if test yes = "$lt_use_gnu_ld_interface"; then
  9110. # If archive_cmds runs LD, not CC, wlarc should be empty
  9111. wlarc='$wl'
  9112. # Set some defaults for GNU ld with shared library support. These
  9113. # are reset later if shared libraries are not supported. Putting them
  9114. # here allows them to be overridden if necessary.
  9115. runpath_var=LD_RUN_PATH
  9116. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9117. export_dynamic_flag_spec='$wl--export-dynamic'
  9118. # ancient GNU ld didn't support --whole-archive et. al.
  9119. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9120. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9121. else
  9122. whole_archive_flag_spec=
  9123. fi
  9124. supports_anon_versioning=no
  9125. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9126. *GNU\ gold*) supports_anon_versioning=yes ;;
  9127. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9128. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9129. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9130. *\ 2.11.*) ;; # other 2.11 versions
  9131. *) supports_anon_versioning=yes ;;
  9132. esac
  9133. # See if GNU ld supports shared libraries.
  9134. case $host_os in
  9135. aix[3-9]*)
  9136. # On AIX/PPC, the GNU linker is very broken
  9137. if test ia64 != "$host_cpu"; then
  9138. ld_shlibs=no
  9139. cat <<_LT_EOF 1>&2
  9140. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9141. *** to be unable to reliably create shared libraries on AIX.
  9142. *** Therefore, libtool is disabling shared libraries support. If you
  9143. *** really care for shared libraries, you may want to install binutils
  9144. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9145. *** You will then need to restart the configuration process.
  9146. _LT_EOF
  9147. fi
  9148. ;;
  9149. amigaos*)
  9150. case $host_cpu in
  9151. powerpc)
  9152. # see comment about AmigaOS4 .so support
  9153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9154. archive_expsym_cmds=''
  9155. ;;
  9156. m68k)
  9157. 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)'
  9158. hardcode_libdir_flag_spec='-L$libdir'
  9159. hardcode_minus_L=yes
  9160. ;;
  9161. esac
  9162. ;;
  9163. beos*)
  9164. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9165. allow_undefined_flag=unsupported
  9166. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9167. # support --undefined. This deserves some investigation. FIXME
  9168. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9169. else
  9170. ld_shlibs=no
  9171. fi
  9172. ;;
  9173. cygwin* | mingw* | pw32* | cegcc*)
  9174. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9175. # as there is no search path for DLLs.
  9176. hardcode_libdir_flag_spec='-L$libdir'
  9177. export_dynamic_flag_spec='$wl--export-all-symbols'
  9178. allow_undefined_flag=unsupported
  9179. always_export_symbols=no
  9180. enable_shared_with_static_runtimes=yes
  9181. 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'
  9182. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9183. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9184. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9185. # If the export-symbols file already is a .def file, use it as
  9186. # is; otherwise, prepend EXPORTS...
  9187. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9188. cp $export_symbols $output_objdir/$soname.def;
  9189. else
  9190. echo EXPORTS > $output_objdir/$soname.def;
  9191. cat $export_symbols >> $output_objdir/$soname.def;
  9192. fi~
  9193. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9194. else
  9195. ld_shlibs=no
  9196. fi
  9197. ;;
  9198. haiku*)
  9199. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9200. link_all_deplibs=yes
  9201. ;;
  9202. os2*)
  9203. hardcode_libdir_flag_spec='-L$libdir'
  9204. hardcode_minus_L=yes
  9205. allow_undefined_flag=unsupported
  9206. shrext_cmds=.dll
  9207. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9208. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9209. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9210. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9211. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9212. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9213. emximp -o $lib $output_objdir/$libname.def'
  9214. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9215. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9216. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9217. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9218. prefix_cmds="$SED"~
  9219. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9220. prefix_cmds="$prefix_cmds -e 1d";
  9221. fi~
  9222. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9223. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9224. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9225. emximp -o $lib $output_objdir/$libname.def'
  9226. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9227. enable_shared_with_static_runtimes=yes
  9228. ;;
  9229. interix[3-9]*)
  9230. hardcode_direct=no
  9231. hardcode_shlibpath_var=no
  9232. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9233. export_dynamic_flag_spec='$wl-E'
  9234. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9235. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9236. # default) and relocated if they conflict, which is a slow very memory
  9237. # consuming and fragmenting process. To avoid this, we pick a random,
  9238. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9239. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9240. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9241. 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'
  9242. ;;
  9243. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9244. tmp_diet=no
  9245. if test linux-dietlibc = "$host_os"; then
  9246. case $cc_basename in
  9247. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9248. esac
  9249. fi
  9250. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9251. && test no = "$tmp_diet"
  9252. then
  9253. tmp_addflag=' $pic_flag'
  9254. tmp_sharedflag='-shared'
  9255. case $cc_basename,$host_cpu in
  9256. pgcc*) # Portland Group C compiler
  9257. 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'
  9258. tmp_addflag=' $pic_flag'
  9259. ;;
  9260. pgf77* | pgf90* | pgf95* | pgfortran*)
  9261. # Portland Group f77 and f90 compilers
  9262. 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'
  9263. tmp_addflag=' $pic_flag -Mnomain' ;;
  9264. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9265. tmp_addflag=' -i_dynamic' ;;
  9266. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9267. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9268. ifc* | ifort*) # Intel Fortran compiler
  9269. tmp_addflag=' -nofor_main' ;;
  9270. lf95*) # Lahey Fortran 8.1
  9271. whole_archive_flag_spec=
  9272. tmp_sharedflag='--shared' ;;
  9273. nagfor*) # NAGFOR 5.3
  9274. tmp_sharedflag='-Wl,-shared' ;;
  9275. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9276. tmp_sharedflag='-qmkshrobj'
  9277. tmp_addflag= ;;
  9278. nvcc*) # Cuda Compiler Driver 2.2
  9279. 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'
  9280. compiler_needs_object=yes
  9281. ;;
  9282. esac
  9283. case `$CC -V 2>&1 | sed 5q` in
  9284. *Sun\ C*) # Sun C 5.9
  9285. 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'
  9286. compiler_needs_object=yes
  9287. tmp_sharedflag='-G' ;;
  9288. *Sun\ F*) # Sun Fortran 8.3
  9289. tmp_sharedflag='-G' ;;
  9290. esac
  9291. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9292. if test yes = "$supports_anon_versioning"; then
  9293. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9294. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9295. echo "local: *; };" >> $output_objdir/$libname.ver~
  9296. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9297. fi
  9298. case $cc_basename in
  9299. tcc*)
  9300. export_dynamic_flag_spec='-rdynamic'
  9301. ;;
  9302. xlf* | bgf* | bgxlf* | mpixlf*)
  9303. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9304. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9305. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9306. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9307. if test yes = "$supports_anon_versioning"; then
  9308. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9309. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9310. echo "local: *; };" >> $output_objdir/$libname.ver~
  9311. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9312. fi
  9313. ;;
  9314. esac
  9315. else
  9316. ld_shlibs=no
  9317. fi
  9318. ;;
  9319. netbsd* | netbsdelf*-gnu)
  9320. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9321. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9322. wlarc=
  9323. else
  9324. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9325. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9326. fi
  9327. ;;
  9328. solaris*)
  9329. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9330. ld_shlibs=no
  9331. cat <<_LT_EOF 1>&2
  9332. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9333. *** create shared libraries on Solaris systems. Therefore, libtool
  9334. *** is disabling shared libraries support. We urge you to upgrade GNU
  9335. *** binutils to release 2.9.1 or newer. Another option is to modify
  9336. *** your PATH or compiler configuration so that the native linker is
  9337. *** used, and then restart.
  9338. _LT_EOF
  9339. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9340. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9341. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9342. else
  9343. ld_shlibs=no
  9344. fi
  9345. ;;
  9346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9347. case `$LD -v 2>&1` in
  9348. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9349. ld_shlibs=no
  9350. cat <<_LT_EOF 1>&2
  9351. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9352. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9353. *** is disabling shared libraries support. We urge you to upgrade GNU
  9354. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9355. *** your PATH or compiler configuration so that the native linker is
  9356. *** used, and then restart.
  9357. _LT_EOF
  9358. ;;
  9359. *)
  9360. # For security reasons, it is highly recommended that you always
  9361. # use absolute paths for naming shared libraries, and exclude the
  9362. # DT_RUNPATH tag from executables and libraries. But doing so
  9363. # requires that you compile everything twice, which is a pain.
  9364. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9365. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9366. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9367. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9368. else
  9369. ld_shlibs=no
  9370. fi
  9371. ;;
  9372. esac
  9373. ;;
  9374. sunos4*)
  9375. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9376. wlarc=
  9377. hardcode_direct=yes
  9378. hardcode_shlibpath_var=no
  9379. ;;
  9380. *)
  9381. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9382. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9383. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9384. else
  9385. ld_shlibs=no
  9386. fi
  9387. ;;
  9388. esac
  9389. if test no = "$ld_shlibs"; then
  9390. runpath_var=
  9391. hardcode_libdir_flag_spec=
  9392. export_dynamic_flag_spec=
  9393. whole_archive_flag_spec=
  9394. fi
  9395. else
  9396. # PORTME fill in a description of your system's linker (not GNU ld)
  9397. case $host_os in
  9398. aix3*)
  9399. allow_undefined_flag=unsupported
  9400. always_export_symbols=yes
  9401. 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'
  9402. # Note: this linker hardcodes the directories in LIBPATH if there
  9403. # are no directories specified by -L.
  9404. hardcode_minus_L=yes
  9405. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9406. # Neither direct hardcoding nor static linking is supported with a
  9407. # broken collect2.
  9408. hardcode_direct=unsupported
  9409. fi
  9410. ;;
  9411. aix[4-9]*)
  9412. if test ia64 = "$host_cpu"; then
  9413. # On IA64, the linker does run time linking by default, so we don't
  9414. # have to do anything special.
  9415. aix_use_runtimelinking=no
  9416. exp_sym_flag='-Bexport'
  9417. no_entry_flag=
  9418. else
  9419. # If we're using GNU nm, then we don't want the "-C" option.
  9420. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9421. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9422. # weak defined symbols like other global defined symbols, whereas
  9423. # GNU nm marks them as "W".
  9424. # While the 'weak' keyword is ignored in the Export File, we need
  9425. # it in the Import File for the 'aix-soname' feature, so we have
  9426. # to replace the "-B" option with "-P" for AIX nm.
  9427. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9428. 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'
  9429. else
  9430. 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'
  9431. fi
  9432. aix_use_runtimelinking=no
  9433. # Test if we are trying to use run time linking or normal
  9434. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9435. # have runtime linking enabled, and use it for executables.
  9436. # For shared libraries, we enable/disable runtime linking
  9437. # depending on the kind of the shared library created -
  9438. # when "with_aix_soname,aix_use_runtimelinking" is:
  9439. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9440. # "aix,yes" lib.so shared, rtl:yes, for executables
  9441. # lib.a static archive
  9442. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9443. # lib.a(lib.so.V) shared, rtl:no, for executables
  9444. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9445. # lib.a(lib.so.V) shared, rtl:no
  9446. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9447. # lib.a static archive
  9448. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9449. for ld_flag in $LDFLAGS; do
  9450. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9451. aix_use_runtimelinking=yes
  9452. break
  9453. fi
  9454. done
  9455. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9456. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9457. # so we don't have lib.a shared libs to link our executables.
  9458. # We have to force runtime linking in this case.
  9459. aix_use_runtimelinking=yes
  9460. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9461. fi
  9462. ;;
  9463. esac
  9464. exp_sym_flag='-bexport'
  9465. no_entry_flag='-bnoentry'
  9466. fi
  9467. # When large executables or shared objects are built, AIX ld can
  9468. # have problems creating the table of contents. If linking a library
  9469. # or program results in "error TOC overflow" add -mminimal-toc to
  9470. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9471. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9472. archive_cmds=''
  9473. hardcode_direct=yes
  9474. hardcode_direct_absolute=yes
  9475. hardcode_libdir_separator=':'
  9476. link_all_deplibs=yes
  9477. file_list_spec='$wl-f,'
  9478. case $with_aix_soname,$aix_use_runtimelinking in
  9479. aix,*) ;; # traditional, no import file
  9480. svr4,* | *,yes) # use import file
  9481. # The Import File defines what to hardcode.
  9482. hardcode_direct=no
  9483. hardcode_direct_absolute=no
  9484. ;;
  9485. esac
  9486. if test yes = "$GCC"; then
  9487. case $host_os in aix4.[012]|aix4.[012].*)
  9488. # We only want to do this on AIX 4.2 and lower, the check
  9489. # below for broken collect2 doesn't work under 4.3+
  9490. collect2name=`$CC -print-prog-name=collect2`
  9491. if test -f "$collect2name" &&
  9492. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9493. then
  9494. # We have reworked collect2
  9495. :
  9496. else
  9497. # We have old collect2
  9498. hardcode_direct=unsupported
  9499. # It fails to find uninstalled libraries when the uninstalled
  9500. # path is not listed in the libpath. Setting hardcode_minus_L
  9501. # to unsupported forces relinking
  9502. hardcode_minus_L=yes
  9503. hardcode_libdir_flag_spec='-L$libdir'
  9504. hardcode_libdir_separator=
  9505. fi
  9506. ;;
  9507. esac
  9508. shared_flag='-shared'
  9509. if test yes = "$aix_use_runtimelinking"; then
  9510. shared_flag="$shared_flag "'$wl-G'
  9511. fi
  9512. # Need to ensure runtime linking is disabled for the traditional
  9513. # shared library, or the linker may eventually find shared libraries
  9514. # /with/ Import File - we do not want to mix them.
  9515. shared_flag_aix='-shared'
  9516. shared_flag_svr4='-shared $wl-G'
  9517. else
  9518. # not using gcc
  9519. if test ia64 = "$host_cpu"; then
  9520. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9521. # chokes on -Wl,-G. The following line is correct:
  9522. shared_flag='-G'
  9523. else
  9524. if test yes = "$aix_use_runtimelinking"; then
  9525. shared_flag='$wl-G'
  9526. else
  9527. shared_flag='$wl-bM:SRE'
  9528. fi
  9529. shared_flag_aix='$wl-bM:SRE'
  9530. shared_flag_svr4='$wl-G'
  9531. fi
  9532. fi
  9533. export_dynamic_flag_spec='$wl-bexpall'
  9534. # It seems that -bexpall does not export symbols beginning with
  9535. # underscore (_), so it is better to generate a list of symbols to export.
  9536. always_export_symbols=yes
  9537. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9538. # Warning - without using the other runtime loading flags (-brtl),
  9539. # -berok will link without error, but may produce a broken library.
  9540. allow_undefined_flag='-berok'
  9541. # Determine the default libpath from the value encoded in an
  9542. # empty executable.
  9543. if test set = "${lt_cv_aix_libpath+set}"; then
  9544. aix_libpath=$lt_cv_aix_libpath
  9545. else
  9546. if ${lt_cv_aix_libpath_+:} false; then :
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9550. /* end confdefs.h. */
  9551. int
  9552. main ()
  9553. {
  9554. ;
  9555. return 0;
  9556. }
  9557. _ACEOF
  9558. if ac_fn_c_try_link "$LINENO"; then :
  9559. lt_aix_libpath_sed='
  9560. /Import File Strings/,/^$/ {
  9561. /^0/ {
  9562. s/^0 *\([^ ]*\) *$/\1/
  9563. p
  9564. }
  9565. }'
  9566. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9567. # Check for a 64-bit object if we didn't find anything.
  9568. if test -z "$lt_cv_aix_libpath_"; then
  9569. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9570. fi
  9571. fi
  9572. rm -f core conftest.err conftest.$ac_objext \
  9573. conftest$ac_exeext conftest.$ac_ext
  9574. if test -z "$lt_cv_aix_libpath_"; then
  9575. lt_cv_aix_libpath_=/usr/lib:/lib
  9576. fi
  9577. fi
  9578. aix_libpath=$lt_cv_aix_libpath_
  9579. fi
  9580. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9581. 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
  9582. else
  9583. if test ia64 = "$host_cpu"; then
  9584. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9585. allow_undefined_flag="-z nodefs"
  9586. 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"
  9587. else
  9588. # Determine the default libpath from the value encoded in an
  9589. # empty executable.
  9590. if test set = "${lt_cv_aix_libpath+set}"; then
  9591. aix_libpath=$lt_cv_aix_libpath
  9592. else
  9593. if ${lt_cv_aix_libpath_+:} false; then :
  9594. $as_echo_n "(cached) " >&6
  9595. else
  9596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9597. /* end confdefs.h. */
  9598. int
  9599. main ()
  9600. {
  9601. ;
  9602. return 0;
  9603. }
  9604. _ACEOF
  9605. if ac_fn_c_try_link "$LINENO"; then :
  9606. lt_aix_libpath_sed='
  9607. /Import File Strings/,/^$/ {
  9608. /^0/ {
  9609. s/^0 *\([^ ]*\) *$/\1/
  9610. p
  9611. }
  9612. }'
  9613. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9614. # Check for a 64-bit object if we didn't find anything.
  9615. if test -z "$lt_cv_aix_libpath_"; then
  9616. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9617. fi
  9618. fi
  9619. rm -f core conftest.err conftest.$ac_objext \
  9620. conftest$ac_exeext conftest.$ac_ext
  9621. if test -z "$lt_cv_aix_libpath_"; then
  9622. lt_cv_aix_libpath_=/usr/lib:/lib
  9623. fi
  9624. fi
  9625. aix_libpath=$lt_cv_aix_libpath_
  9626. fi
  9627. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9628. # Warning - without using the other run time loading flags,
  9629. # -berok will link without error, but may produce a broken library.
  9630. no_undefined_flag=' $wl-bernotok'
  9631. allow_undefined_flag=' $wl-berok'
  9632. if test yes = "$with_gnu_ld"; then
  9633. # We only use this code for GNU lds that support --whole-archive.
  9634. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9635. else
  9636. # Exported symbols can be pulled into shared objects from archives
  9637. whole_archive_flag_spec='$convenience'
  9638. fi
  9639. archive_cmds_need_lc=yes
  9640. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9641. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9642. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9643. if test svr4 != "$with_aix_soname"; then
  9644. # This is similar to how AIX traditionally builds its shared libraries.
  9645. 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'
  9646. fi
  9647. if test aix != "$with_aix_soname"; then
  9648. 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'
  9649. else
  9650. # used by -dlpreopen to get the symbols
  9651. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9652. fi
  9653. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9654. fi
  9655. fi
  9656. ;;
  9657. amigaos*)
  9658. case $host_cpu in
  9659. powerpc)
  9660. # see comment about AmigaOS4 .so support
  9661. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9662. archive_expsym_cmds=''
  9663. ;;
  9664. m68k)
  9665. 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)'
  9666. hardcode_libdir_flag_spec='-L$libdir'
  9667. hardcode_minus_L=yes
  9668. ;;
  9669. esac
  9670. ;;
  9671. bsdi[45]*)
  9672. export_dynamic_flag_spec=-rdynamic
  9673. ;;
  9674. cygwin* | mingw* | pw32* | cegcc*)
  9675. # When not using gcc, we currently assume that we are using
  9676. # Microsoft Visual C++.
  9677. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9678. # no search path for DLLs.
  9679. case $cc_basename in
  9680. cl*)
  9681. # Native MSVC
  9682. hardcode_libdir_flag_spec=' '
  9683. allow_undefined_flag=unsupported
  9684. always_export_symbols=yes
  9685. file_list_spec='@'
  9686. # Tell ltmain to make .lib files, not .a files.
  9687. libext=lib
  9688. # Tell ltmain to make .dll files, not .so files.
  9689. shrext_cmds=.dll
  9690. # FIXME: Setting linknames here is a bad hack.
  9691. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9692. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9693. cp "$export_symbols" "$output_objdir/$soname.def";
  9694. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9695. else
  9696. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9697. fi~
  9698. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9699. linknames='
  9700. # The linker will not automatically build a static lib if we build a DLL.
  9701. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9702. enable_shared_with_static_runtimes=yes
  9703. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9704. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9705. # Don't use ranlib
  9706. old_postinstall_cmds='chmod 644 $oldlib'
  9707. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9708. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9709. case $lt_outputfile in
  9710. *.exe|*.EXE) ;;
  9711. *)
  9712. lt_outputfile=$lt_outputfile.exe
  9713. lt_tool_outputfile=$lt_tool_outputfile.exe
  9714. ;;
  9715. esac~
  9716. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9717. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9718. $RM "$lt_outputfile.manifest";
  9719. fi'
  9720. ;;
  9721. *)
  9722. # Assume MSVC wrapper
  9723. hardcode_libdir_flag_spec=' '
  9724. allow_undefined_flag=unsupported
  9725. # Tell ltmain to make .lib files, not .a files.
  9726. libext=lib
  9727. # Tell ltmain to make .dll files, not .so files.
  9728. shrext_cmds=.dll
  9729. # FIXME: Setting linknames here is a bad hack.
  9730. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9731. # The linker will automatically build a .lib file if we build a DLL.
  9732. old_archive_from_new_cmds='true'
  9733. # FIXME: Should let the user specify the lib program.
  9734. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9735. enable_shared_with_static_runtimes=yes
  9736. ;;
  9737. esac
  9738. ;;
  9739. darwin* | rhapsody*)
  9740. archive_cmds_need_lc=no
  9741. hardcode_direct=no
  9742. hardcode_automatic=yes
  9743. hardcode_shlibpath_var=unsupported
  9744. if test yes = "$lt_cv_ld_force_load"; then
  9745. 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\"`'
  9746. else
  9747. whole_archive_flag_spec=''
  9748. fi
  9749. link_all_deplibs=yes
  9750. allow_undefined_flag=$_lt_dar_allow_undefined
  9751. case $cc_basename in
  9752. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9753. *) _lt_dar_can_shared=$GCC ;;
  9754. esac
  9755. if test yes = "$_lt_dar_can_shared"; then
  9756. output_verbose_link_cmd=func_echo_all
  9757. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9758. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9759. 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"
  9760. 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"
  9761. else
  9762. ld_shlibs=no
  9763. fi
  9764. ;;
  9765. dgux*)
  9766. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9767. hardcode_libdir_flag_spec='-L$libdir'
  9768. hardcode_shlibpath_var=no
  9769. ;;
  9770. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9771. # support. Future versions do this automatically, but an explicit c++rt0.o
  9772. # does not break anything, and helps significantly (at the cost of a little
  9773. # extra space).
  9774. freebsd2.2*)
  9775. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9776. hardcode_libdir_flag_spec='-R$libdir'
  9777. hardcode_direct=yes
  9778. hardcode_shlibpath_var=no
  9779. ;;
  9780. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9781. freebsd2.*)
  9782. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9783. hardcode_direct=yes
  9784. hardcode_minus_L=yes
  9785. hardcode_shlibpath_var=no
  9786. ;;
  9787. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9788. freebsd* | dragonfly*)
  9789. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9790. hardcode_libdir_flag_spec='-R$libdir'
  9791. hardcode_direct=yes
  9792. hardcode_shlibpath_var=no
  9793. ;;
  9794. hpux9*)
  9795. if test yes = "$GCC"; then
  9796. 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'
  9797. else
  9798. 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'
  9799. fi
  9800. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9801. hardcode_libdir_separator=:
  9802. hardcode_direct=yes
  9803. # hardcode_minus_L: Not really in the search PATH,
  9804. # but as the default location of the library.
  9805. hardcode_minus_L=yes
  9806. export_dynamic_flag_spec='$wl-E'
  9807. ;;
  9808. hpux10*)
  9809. if test yes,no = "$GCC,$with_gnu_ld"; then
  9810. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9811. else
  9812. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9813. fi
  9814. if test no = "$with_gnu_ld"; then
  9815. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9816. hardcode_libdir_separator=:
  9817. hardcode_direct=yes
  9818. hardcode_direct_absolute=yes
  9819. export_dynamic_flag_spec='$wl-E'
  9820. # hardcode_minus_L: Not really in the search PATH,
  9821. # but as the default location of the library.
  9822. hardcode_minus_L=yes
  9823. fi
  9824. ;;
  9825. hpux11*)
  9826. if test yes,no = "$GCC,$with_gnu_ld"; then
  9827. case $host_cpu in
  9828. hppa*64*)
  9829. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9830. ;;
  9831. ia64*)
  9832. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9833. ;;
  9834. *)
  9835. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9836. ;;
  9837. esac
  9838. else
  9839. case $host_cpu in
  9840. hppa*64*)
  9841. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9842. ;;
  9843. ia64*)
  9844. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9845. ;;
  9846. *)
  9847. # Older versions of the 11.00 compiler do not understand -b yet
  9848. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9850. $as_echo_n "checking if $CC understands -b... " >&6; }
  9851. if ${lt_cv_prog_compiler__b+:} false; then :
  9852. $as_echo_n "(cached) " >&6
  9853. else
  9854. lt_cv_prog_compiler__b=no
  9855. save_LDFLAGS=$LDFLAGS
  9856. LDFLAGS="$LDFLAGS -b"
  9857. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9858. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9859. # The linker can only warn and ignore the option if not recognized
  9860. # So say no if there are warnings
  9861. if test -s conftest.err; then
  9862. # Append any errors to the config.log.
  9863. cat conftest.err 1>&5
  9864. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9865. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9866. if diff conftest.exp conftest.er2 >/dev/null; then
  9867. lt_cv_prog_compiler__b=yes
  9868. fi
  9869. else
  9870. lt_cv_prog_compiler__b=yes
  9871. fi
  9872. fi
  9873. $RM -r conftest*
  9874. LDFLAGS=$save_LDFLAGS
  9875. fi
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9877. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9878. if test yes = "$lt_cv_prog_compiler__b"; then
  9879. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9880. else
  9881. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9882. fi
  9883. ;;
  9884. esac
  9885. fi
  9886. if test no = "$with_gnu_ld"; then
  9887. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9888. hardcode_libdir_separator=:
  9889. case $host_cpu in
  9890. hppa*64*|ia64*)
  9891. hardcode_direct=no
  9892. hardcode_shlibpath_var=no
  9893. ;;
  9894. *)
  9895. hardcode_direct=yes
  9896. hardcode_direct_absolute=yes
  9897. export_dynamic_flag_spec='$wl-E'
  9898. # hardcode_minus_L: Not really in the search PATH,
  9899. # but as the default location of the library.
  9900. hardcode_minus_L=yes
  9901. ;;
  9902. esac
  9903. fi
  9904. ;;
  9905. irix5* | irix6* | nonstopux*)
  9906. if test yes = "$GCC"; then
  9907. 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'
  9908. # Try to use the -exported_symbol ld option, if it does not
  9909. # work, assume that -exports_file does not work either and
  9910. # implicitly export all symbols.
  9911. # This should be the same for all languages, so no per-tag cache variable.
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9913. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9914. if ${lt_cv_irix_exported_symbol+:} false; then :
  9915. $as_echo_n "(cached) " >&6
  9916. else
  9917. save_LDFLAGS=$LDFLAGS
  9918. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9920. /* end confdefs.h. */
  9921. int foo (void) { return 0; }
  9922. _ACEOF
  9923. if ac_fn_c_try_link "$LINENO"; then :
  9924. lt_cv_irix_exported_symbol=yes
  9925. else
  9926. lt_cv_irix_exported_symbol=no
  9927. fi
  9928. rm -f core conftest.err conftest.$ac_objext \
  9929. conftest$ac_exeext conftest.$ac_ext
  9930. LDFLAGS=$save_LDFLAGS
  9931. fi
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9933. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9934. if test yes = "$lt_cv_irix_exported_symbol"; then
  9935. 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'
  9936. fi
  9937. link_all_deplibs=no
  9938. else
  9939. 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'
  9940. 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'
  9941. fi
  9942. archive_cmds_need_lc='no'
  9943. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9944. hardcode_libdir_separator=:
  9945. inherit_rpath=yes
  9946. link_all_deplibs=yes
  9947. ;;
  9948. linux*)
  9949. case $cc_basename in
  9950. tcc*)
  9951. # Fabrice Bellard et al's Tiny C Compiler
  9952. ld_shlibs=yes
  9953. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9954. ;;
  9955. esac
  9956. ;;
  9957. netbsd* | netbsdelf*-gnu)
  9958. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9959. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9960. else
  9961. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9962. fi
  9963. hardcode_libdir_flag_spec='-R$libdir'
  9964. hardcode_direct=yes
  9965. hardcode_shlibpath_var=no
  9966. ;;
  9967. newsos6)
  9968. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9969. hardcode_direct=yes
  9970. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9971. hardcode_libdir_separator=:
  9972. hardcode_shlibpath_var=no
  9973. ;;
  9974. *nto* | *qnx*)
  9975. ;;
  9976. openbsd* | bitrig*)
  9977. if test -f /usr/libexec/ld.so; then
  9978. hardcode_direct=yes
  9979. hardcode_shlibpath_var=no
  9980. hardcode_direct_absolute=yes
  9981. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9982. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9983. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9984. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9985. export_dynamic_flag_spec='$wl-E'
  9986. else
  9987. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9988. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9989. fi
  9990. else
  9991. ld_shlibs=no
  9992. fi
  9993. ;;
  9994. os2*)
  9995. hardcode_libdir_flag_spec='-L$libdir'
  9996. hardcode_minus_L=yes
  9997. allow_undefined_flag=unsupported
  9998. shrext_cmds=.dll
  9999. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10000. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10001. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10002. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10003. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10004. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10005. emximp -o $lib $output_objdir/$libname.def'
  10006. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10007. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10008. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10009. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10010. prefix_cmds="$SED"~
  10011. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10012. prefix_cmds="$prefix_cmds -e 1d";
  10013. fi~
  10014. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10015. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10016. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10017. emximp -o $lib $output_objdir/$libname.def'
  10018. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10019. enable_shared_with_static_runtimes=yes
  10020. ;;
  10021. osf3*)
  10022. if test yes = "$GCC"; then
  10023. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10024. 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'
  10025. else
  10026. allow_undefined_flag=' -expect_unresolved \*'
  10027. 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'
  10028. fi
  10029. archive_cmds_need_lc='no'
  10030. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10031. hardcode_libdir_separator=:
  10032. ;;
  10033. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10034. if test yes = "$GCC"; then
  10035. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10036. 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'
  10037. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10038. else
  10039. allow_undefined_flag=' -expect_unresolved \*'
  10040. 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'
  10041. 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~
  10042. $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'
  10043. # Both c and cxx compiler support -rpath directly
  10044. hardcode_libdir_flag_spec='-rpath $libdir'
  10045. fi
  10046. archive_cmds_need_lc='no'
  10047. hardcode_libdir_separator=:
  10048. ;;
  10049. solaris*)
  10050. no_undefined_flag=' -z defs'
  10051. if test yes = "$GCC"; then
  10052. wlarc='$wl'
  10053. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10054. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10055. $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'
  10056. else
  10057. case `$CC -V 2>&1` in
  10058. *"Compilers 5.0"*)
  10059. wlarc=''
  10060. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10061. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10062. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10063. ;;
  10064. *)
  10065. wlarc='$wl'
  10066. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10067. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10068. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10069. ;;
  10070. esac
  10071. fi
  10072. hardcode_libdir_flag_spec='-R$libdir'
  10073. hardcode_shlibpath_var=no
  10074. case $host_os in
  10075. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10076. *)
  10077. # The compiler driver will combine and reorder linker options,
  10078. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10079. # but is careful enough not to reorder.
  10080. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10081. if test yes = "$GCC"; then
  10082. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10083. else
  10084. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10085. fi
  10086. ;;
  10087. esac
  10088. link_all_deplibs=yes
  10089. ;;
  10090. sunos4*)
  10091. if test sequent = "$host_vendor"; then
  10092. # Use $CC to link under sequent, because it throws in some extra .o
  10093. # files that make .init and .fini sections work.
  10094. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10095. else
  10096. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10097. fi
  10098. hardcode_libdir_flag_spec='-L$libdir'
  10099. hardcode_direct=yes
  10100. hardcode_minus_L=yes
  10101. hardcode_shlibpath_var=no
  10102. ;;
  10103. sysv4)
  10104. case $host_vendor in
  10105. sni)
  10106. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10107. hardcode_direct=yes # is this really true???
  10108. ;;
  10109. siemens)
  10110. ## LD is ld it makes a PLAMLIB
  10111. ## CC just makes a GrossModule.
  10112. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10113. reload_cmds='$CC -r -o $output$reload_objs'
  10114. hardcode_direct=no
  10115. ;;
  10116. motorola)
  10117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10118. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10119. ;;
  10120. esac
  10121. runpath_var='LD_RUN_PATH'
  10122. hardcode_shlibpath_var=no
  10123. ;;
  10124. sysv4.3*)
  10125. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10126. hardcode_shlibpath_var=no
  10127. export_dynamic_flag_spec='-Bexport'
  10128. ;;
  10129. sysv4*MP*)
  10130. if test -d /usr/nec; then
  10131. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10132. hardcode_shlibpath_var=no
  10133. runpath_var=LD_RUN_PATH
  10134. hardcode_runpath_var=yes
  10135. ld_shlibs=yes
  10136. fi
  10137. ;;
  10138. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10139. no_undefined_flag='$wl-z,text'
  10140. archive_cmds_need_lc=no
  10141. hardcode_shlibpath_var=no
  10142. runpath_var='LD_RUN_PATH'
  10143. if test yes = "$GCC"; then
  10144. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10145. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10146. else
  10147. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10148. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10149. fi
  10150. ;;
  10151. sysv5* | sco3.2v5* | sco5v6*)
  10152. # Note: We CANNOT use -z defs as we might desire, because we do not
  10153. # link with -lc, and that would cause any symbols used from libc to
  10154. # always be unresolved, which means just about no library would
  10155. # ever link correctly. If we're not using GNU ld we use -z text
  10156. # though, which does catch some bad symbols but isn't as heavy-handed
  10157. # as -z defs.
  10158. no_undefined_flag='$wl-z,text'
  10159. allow_undefined_flag='$wl-z,nodefs'
  10160. archive_cmds_need_lc=no
  10161. hardcode_shlibpath_var=no
  10162. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10163. hardcode_libdir_separator=':'
  10164. link_all_deplibs=yes
  10165. export_dynamic_flag_spec='$wl-Bexport'
  10166. runpath_var='LD_RUN_PATH'
  10167. if test yes = "$GCC"; then
  10168. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10169. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10170. else
  10171. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10172. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10173. fi
  10174. ;;
  10175. uts4*)
  10176. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10177. hardcode_libdir_flag_spec='-L$libdir'
  10178. hardcode_shlibpath_var=no
  10179. ;;
  10180. *)
  10181. ld_shlibs=no
  10182. ;;
  10183. esac
  10184. if test sni = "$host_vendor"; then
  10185. case $host in
  10186. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10187. export_dynamic_flag_spec='$wl-Blargedynsym'
  10188. ;;
  10189. esac
  10190. fi
  10191. fi
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10193. $as_echo "$ld_shlibs" >&6; }
  10194. test no = "$ld_shlibs" && can_build_shared=no
  10195. with_gnu_ld=$with_gnu_ld
  10196. #
  10197. # Do we need to explicitly link libc?
  10198. #
  10199. case "x$archive_cmds_need_lc" in
  10200. x|xyes)
  10201. # Assume -lc should be added
  10202. archive_cmds_need_lc=yes
  10203. if test yes,yes = "$GCC,$enable_shared"; then
  10204. case $archive_cmds in
  10205. *'~'*)
  10206. # FIXME: we may have to deal with multi-command sequences.
  10207. ;;
  10208. '$CC '*)
  10209. # Test whether the compiler implicitly links with -lc since on some
  10210. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10211. # to ld, don't add -lc before -lgcc.
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10213. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10214. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10215. $as_echo_n "(cached) " >&6
  10216. else
  10217. $RM conftest*
  10218. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10220. (eval $ac_compile) 2>&5
  10221. ac_status=$?
  10222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10223. test $ac_status = 0; } 2>conftest.err; then
  10224. soname=conftest
  10225. lib=conftest
  10226. libobjs=conftest.$ac_objext
  10227. deplibs=
  10228. wl=$lt_prog_compiler_wl
  10229. pic_flag=$lt_prog_compiler_pic
  10230. compiler_flags=-v
  10231. linker_flags=-v
  10232. verstring=
  10233. output_objdir=.
  10234. libname=conftest
  10235. lt_save_allow_undefined_flag=$allow_undefined_flag
  10236. allow_undefined_flag=
  10237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10238. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10239. ac_status=$?
  10240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10241. test $ac_status = 0; }
  10242. then
  10243. lt_cv_archive_cmds_need_lc=no
  10244. else
  10245. lt_cv_archive_cmds_need_lc=yes
  10246. fi
  10247. allow_undefined_flag=$lt_save_allow_undefined_flag
  10248. else
  10249. cat conftest.err 1>&5
  10250. fi
  10251. $RM conftest*
  10252. fi
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10254. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10255. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10256. ;;
  10257. esac
  10258. fi
  10259. ;;
  10260. esac
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10262. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10263. if test yes = "$GCC"; then
  10264. case $host_os in
  10265. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10266. *) lt_awk_arg='/^libraries:/' ;;
  10267. esac
  10268. case $host_os in
  10269. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10270. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10271. esac
  10272. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10273. case $lt_search_path_spec in
  10274. *\;*)
  10275. # if the path contains ";" then we assume it to be the separator
  10276. # otherwise default to the standard path separator (i.e. ":") - it is
  10277. # assumed that no part of a normal pathname contains ";" but that should
  10278. # okay in the real world where ";" in dirpaths is itself problematic.
  10279. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10280. ;;
  10281. *)
  10282. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10283. ;;
  10284. esac
  10285. # Ok, now we have the path, separated by spaces, we can step through it
  10286. # and add multilib dir if necessary...
  10287. lt_tmp_lt_search_path_spec=
  10288. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10289. # ...but if some path component already ends with the multilib dir we assume
  10290. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10291. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10292. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10293. lt_multi_os_dir=
  10294. ;;
  10295. esac
  10296. for lt_sys_path in $lt_search_path_spec; do
  10297. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10298. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10299. elif test -n "$lt_multi_os_dir"; then
  10300. test -d "$lt_sys_path" && \
  10301. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10302. fi
  10303. done
  10304. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10305. BEGIN {RS = " "; FS = "/|\n";} {
  10306. lt_foo = "";
  10307. lt_count = 0;
  10308. for (lt_i = NF; lt_i > 0; lt_i--) {
  10309. if ($lt_i != "" && $lt_i != ".") {
  10310. if ($lt_i == "..") {
  10311. lt_count++;
  10312. } else {
  10313. if (lt_count == 0) {
  10314. lt_foo = "/" $lt_i lt_foo;
  10315. } else {
  10316. lt_count--;
  10317. }
  10318. }
  10319. }
  10320. }
  10321. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10322. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10323. }'`
  10324. # AWK program above erroneously prepends '/' to C:/dos/paths
  10325. # for these hosts.
  10326. case $host_os in
  10327. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10328. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10329. esac
  10330. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10331. else
  10332. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10333. fi
  10334. library_names_spec=
  10335. libname_spec='lib$name'
  10336. soname_spec=
  10337. shrext_cmds=.so
  10338. postinstall_cmds=
  10339. postuninstall_cmds=
  10340. finish_cmds=
  10341. finish_eval=
  10342. shlibpath_var=
  10343. shlibpath_overrides_runpath=unknown
  10344. version_type=none
  10345. dynamic_linker="$host_os ld.so"
  10346. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10347. need_lib_prefix=unknown
  10348. hardcode_into_libs=no
  10349. # when you set need_version to no, make sure it does not cause -set_version
  10350. # flags to be left without arguments
  10351. need_version=unknown
  10352. case $host_os in
  10353. aix3*)
  10354. version_type=linux # correct to gnu/linux during the next big refactor
  10355. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10356. shlibpath_var=LIBPATH
  10357. # AIX 3 has no versioning support, so we append a major version to the name.
  10358. soname_spec='$libname$release$shared_ext$major'
  10359. ;;
  10360. aix[4-9]*)
  10361. version_type=linux # correct to gnu/linux during the next big refactor
  10362. need_lib_prefix=no
  10363. need_version=no
  10364. hardcode_into_libs=yes
  10365. if test ia64 = "$host_cpu"; then
  10366. # AIX 5 supports IA64
  10367. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10368. shlibpath_var=LD_LIBRARY_PATH
  10369. else
  10370. # With GCC up to 2.95.x, collect2 would create an import file
  10371. # for dependence libraries. The import file would start with
  10372. # the line '#! .'. This would cause the generated library to
  10373. # depend on '.', always an invalid library. This was fixed in
  10374. # development snapshots of GCC prior to 3.0.
  10375. case $host_os in
  10376. aix4 | aix4.[01] | aix4.[01].*)
  10377. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10378. echo ' yes '
  10379. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10380. :
  10381. else
  10382. can_build_shared=no
  10383. fi
  10384. ;;
  10385. esac
  10386. # Using Import Files as archive members, it is possible to support
  10387. # filename-based versioning of shared library archives on AIX. While
  10388. # this would work for both with and without runtime linking, it will
  10389. # prevent static linking of such archives. So we do filename-based
  10390. # shared library versioning with .so extension only, which is used
  10391. # when both runtime linking and shared linking is enabled.
  10392. # Unfortunately, runtime linking may impact performance, so we do
  10393. # not want this to be the default eventually. Also, we use the
  10394. # versioned .so libs for executables only if there is the -brtl
  10395. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10396. # To allow for filename-based versioning support, we need to create
  10397. # libNAME.so.V as an archive file, containing:
  10398. # *) an Import File, referring to the versioned filename of the
  10399. # archive as well as the shared archive member, telling the
  10400. # bitwidth (32 or 64) of that shared object, and providing the
  10401. # list of exported symbols of that shared object, eventually
  10402. # decorated with the 'weak' keyword
  10403. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10404. # it being seen by the linker.
  10405. # At run time we better use the real file rather than another symlink,
  10406. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10407. case $with_aix_soname,$aix_use_runtimelinking in
  10408. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10409. # soname into executable. Probably we can add versioning support to
  10410. # collect2, so additional links can be useful in future.
  10411. aix,yes) # traditional libtool
  10412. dynamic_linker='AIX unversionable lib.so'
  10413. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10414. # instead of lib<name>.a to let people know that these are not
  10415. # typical AIX shared libraries.
  10416. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10417. ;;
  10418. aix,no) # traditional AIX only
  10419. dynamic_linker='AIX lib.a(lib.so.V)'
  10420. # We preserve .a as extension for shared libraries through AIX4.2
  10421. # and later when we are not doing run time linking.
  10422. library_names_spec='$libname$release.a $libname.a'
  10423. soname_spec='$libname$release$shared_ext$major'
  10424. ;;
  10425. svr4,*) # full svr4 only
  10426. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10427. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10428. # We do not specify a path in Import Files, so LIBPATH fires.
  10429. shlibpath_overrides_runpath=yes
  10430. ;;
  10431. *,yes) # both, prefer svr4
  10432. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10433. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10434. # unpreferred sharedlib libNAME.a needs extra handling
  10435. 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"'
  10436. 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"'
  10437. # We do not specify a path in Import Files, so LIBPATH fires.
  10438. shlibpath_overrides_runpath=yes
  10439. ;;
  10440. *,no) # both, prefer aix
  10441. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10442. library_names_spec='$libname$release.a $libname.a'
  10443. soname_spec='$libname$release$shared_ext$major'
  10444. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10445. 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)'
  10446. 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"'
  10447. ;;
  10448. esac
  10449. shlibpath_var=LIBPATH
  10450. fi
  10451. ;;
  10452. amigaos*)
  10453. case $host_cpu in
  10454. powerpc)
  10455. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10456. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10457. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10458. ;;
  10459. m68k)
  10460. library_names_spec='$libname.ixlibrary $libname.a'
  10461. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10462. 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'
  10463. ;;
  10464. esac
  10465. ;;
  10466. beos*)
  10467. library_names_spec='$libname$shared_ext'
  10468. dynamic_linker="$host_os ld.so"
  10469. shlibpath_var=LIBRARY_PATH
  10470. ;;
  10471. bsdi[45]*)
  10472. version_type=linux # correct to gnu/linux during the next big refactor
  10473. need_version=no
  10474. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10475. soname_spec='$libname$release$shared_ext$major'
  10476. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10477. shlibpath_var=LD_LIBRARY_PATH
  10478. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10479. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10480. # the default ld.so.conf also contains /usr/contrib/lib and
  10481. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10482. # libtool to hard-code these into programs
  10483. ;;
  10484. cygwin* | mingw* | pw32* | cegcc*)
  10485. version_type=windows
  10486. shrext_cmds=.dll
  10487. need_version=no
  10488. need_lib_prefix=no
  10489. case $GCC,$cc_basename in
  10490. yes,*)
  10491. # gcc
  10492. library_names_spec='$libname.dll.a'
  10493. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10494. postinstall_cmds='base_file=`basename \$file`~
  10495. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10496. dldir=$destdir/`dirname \$dlpath`~
  10497. test -d \$dldir || mkdir -p \$dldir~
  10498. $install_prog $dir/$dlname \$dldir/$dlname~
  10499. chmod a+x \$dldir/$dlname~
  10500. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10501. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10502. fi'
  10503. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10504. dlpath=$dir/\$dldll~
  10505. $RM \$dlpath'
  10506. shlibpath_overrides_runpath=yes
  10507. case $host_os in
  10508. cygwin*)
  10509. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10510. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10511. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10512. ;;
  10513. mingw* | cegcc*)
  10514. # MinGW DLLs use traditional 'lib' prefix
  10515. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10516. ;;
  10517. pw32*)
  10518. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10519. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10520. ;;
  10521. esac
  10522. dynamic_linker='Win32 ld.exe'
  10523. ;;
  10524. *,cl*)
  10525. # Native MSVC
  10526. libname_spec='$name'
  10527. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10528. library_names_spec='$libname.dll.lib'
  10529. case $build_os in
  10530. mingw*)
  10531. sys_lib_search_path_spec=
  10532. lt_save_ifs=$IFS
  10533. IFS=';'
  10534. for lt_path in $LIB
  10535. do
  10536. IFS=$lt_save_ifs
  10537. # Let DOS variable expansion print the short 8.3 style file name.
  10538. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10539. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10540. done
  10541. IFS=$lt_save_ifs
  10542. # Convert to MSYS style.
  10543. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10544. ;;
  10545. cygwin*)
  10546. # Convert to unix form, then to dos form, then back to unix form
  10547. # but this time dos style (no spaces!) so that the unix form looks
  10548. # like /cygdrive/c/PROGRA~1:/cygdr...
  10549. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10550. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10551. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10552. ;;
  10553. *)
  10554. sys_lib_search_path_spec=$LIB
  10555. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10556. # It is most probably a Windows format PATH.
  10557. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10558. else
  10559. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10560. fi
  10561. # FIXME: find the short name or the path components, as spaces are
  10562. # common. (e.g. "Program Files" -> "PROGRA~1")
  10563. ;;
  10564. esac
  10565. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10566. postinstall_cmds='base_file=`basename \$file`~
  10567. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10568. dldir=$destdir/`dirname \$dlpath`~
  10569. test -d \$dldir || mkdir -p \$dldir~
  10570. $install_prog $dir/$dlname \$dldir/$dlname'
  10571. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10572. dlpath=$dir/\$dldll~
  10573. $RM \$dlpath'
  10574. shlibpath_overrides_runpath=yes
  10575. dynamic_linker='Win32 link.exe'
  10576. ;;
  10577. *)
  10578. # Assume MSVC wrapper
  10579. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10580. dynamic_linker='Win32 ld.exe'
  10581. ;;
  10582. esac
  10583. # FIXME: first we should search . and the directory the executable is in
  10584. shlibpath_var=PATH
  10585. ;;
  10586. darwin* | rhapsody*)
  10587. dynamic_linker="$host_os dyld"
  10588. version_type=darwin
  10589. need_lib_prefix=no
  10590. need_version=no
  10591. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10592. soname_spec='$libname$release$major$shared_ext'
  10593. shlibpath_overrides_runpath=yes
  10594. shlibpath_var=DYLD_LIBRARY_PATH
  10595. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10596. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10597. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10598. ;;
  10599. dgux*)
  10600. version_type=linux # correct to gnu/linux during the next big refactor
  10601. need_lib_prefix=no
  10602. need_version=no
  10603. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10604. soname_spec='$libname$release$shared_ext$major'
  10605. shlibpath_var=LD_LIBRARY_PATH
  10606. ;;
  10607. freebsd* | dragonfly*)
  10608. # DragonFly does not have aout. When/if they implement a new
  10609. # versioning mechanism, adjust this.
  10610. if test -x /usr/bin/objformat; then
  10611. objformat=`/usr/bin/objformat`
  10612. else
  10613. case $host_os in
  10614. freebsd[23].*) objformat=aout ;;
  10615. *) objformat=elf ;;
  10616. esac
  10617. fi
  10618. version_type=freebsd-$objformat
  10619. case $version_type in
  10620. freebsd-elf*)
  10621. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10622. soname_spec='$libname$release$shared_ext$major'
  10623. need_version=no
  10624. need_lib_prefix=no
  10625. ;;
  10626. freebsd-*)
  10627. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10628. need_version=yes
  10629. ;;
  10630. esac
  10631. shlibpath_var=LD_LIBRARY_PATH
  10632. case $host_os in
  10633. freebsd2.*)
  10634. shlibpath_overrides_runpath=yes
  10635. ;;
  10636. freebsd3.[01]* | freebsdelf3.[01]*)
  10637. shlibpath_overrides_runpath=yes
  10638. hardcode_into_libs=yes
  10639. ;;
  10640. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10641. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10642. shlibpath_overrides_runpath=no
  10643. hardcode_into_libs=yes
  10644. ;;
  10645. *) # from 4.6 on, and DragonFly
  10646. shlibpath_overrides_runpath=yes
  10647. hardcode_into_libs=yes
  10648. ;;
  10649. esac
  10650. ;;
  10651. haiku*)
  10652. version_type=linux # correct to gnu/linux during the next big refactor
  10653. need_lib_prefix=no
  10654. need_version=no
  10655. dynamic_linker="$host_os runtime_loader"
  10656. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10657. soname_spec='$libname$release$shared_ext$major'
  10658. shlibpath_var=LIBRARY_PATH
  10659. shlibpath_overrides_runpath=no
  10660. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10661. hardcode_into_libs=yes
  10662. ;;
  10663. hpux9* | hpux10* | hpux11*)
  10664. # Give a soname corresponding to the major version so that dld.sl refuses to
  10665. # link against other versions.
  10666. version_type=sunos
  10667. need_lib_prefix=no
  10668. need_version=no
  10669. case $host_cpu in
  10670. ia64*)
  10671. shrext_cmds='.so'
  10672. hardcode_into_libs=yes
  10673. dynamic_linker="$host_os dld.so"
  10674. shlibpath_var=LD_LIBRARY_PATH
  10675. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10676. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10677. soname_spec='$libname$release$shared_ext$major'
  10678. if test 32 = "$HPUX_IA64_MODE"; then
  10679. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10680. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10681. else
  10682. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10683. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10684. fi
  10685. ;;
  10686. hppa*64*)
  10687. shrext_cmds='.sl'
  10688. hardcode_into_libs=yes
  10689. dynamic_linker="$host_os dld.sl"
  10690. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10691. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10693. soname_spec='$libname$release$shared_ext$major'
  10694. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10695. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10696. ;;
  10697. *)
  10698. shrext_cmds='.sl'
  10699. dynamic_linker="$host_os dld.sl"
  10700. shlibpath_var=SHLIB_PATH
  10701. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10703. soname_spec='$libname$release$shared_ext$major'
  10704. ;;
  10705. esac
  10706. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10707. postinstall_cmds='chmod 555 $lib'
  10708. # or fails outright, so override atomically:
  10709. install_override_mode=555
  10710. ;;
  10711. interix[3-9]*)
  10712. version_type=linux # correct to gnu/linux during the next big refactor
  10713. need_lib_prefix=no
  10714. need_version=no
  10715. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10716. soname_spec='$libname$release$shared_ext$major'
  10717. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10718. shlibpath_var=LD_LIBRARY_PATH
  10719. shlibpath_overrides_runpath=no
  10720. hardcode_into_libs=yes
  10721. ;;
  10722. irix5* | irix6* | nonstopux*)
  10723. case $host_os in
  10724. nonstopux*) version_type=nonstopux ;;
  10725. *)
  10726. if test yes = "$lt_cv_prog_gnu_ld"; then
  10727. version_type=linux # correct to gnu/linux during the next big refactor
  10728. else
  10729. version_type=irix
  10730. fi ;;
  10731. esac
  10732. need_lib_prefix=no
  10733. need_version=no
  10734. soname_spec='$libname$release$shared_ext$major'
  10735. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10736. case $host_os in
  10737. irix5* | nonstopux*)
  10738. libsuff= shlibsuff=
  10739. ;;
  10740. *)
  10741. case $LD in # libtool.m4 will add one of these switches to LD
  10742. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10743. libsuff= shlibsuff= libmagic=32-bit;;
  10744. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10745. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10746. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10747. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10748. *) libsuff= shlibsuff= libmagic=never-match;;
  10749. esac
  10750. ;;
  10751. esac
  10752. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10753. shlibpath_overrides_runpath=no
  10754. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10755. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10756. hardcode_into_libs=yes
  10757. ;;
  10758. # No shared lib support for Linux oldld, aout, or coff.
  10759. linux*oldld* | linux*aout* | linux*coff*)
  10760. dynamic_linker=no
  10761. ;;
  10762. linux*android*)
  10763. version_type=none # Android doesn't support versioned libraries.
  10764. need_lib_prefix=no
  10765. need_version=no
  10766. library_names_spec='$libname$release$shared_ext'
  10767. soname_spec='$libname$release$shared_ext'
  10768. finish_cmds=
  10769. shlibpath_var=LD_LIBRARY_PATH
  10770. shlibpath_overrides_runpath=yes
  10771. # This implies no fast_install, which is unacceptable.
  10772. # Some rework will be needed to allow for fast_install
  10773. # before this can be enabled.
  10774. hardcode_into_libs=yes
  10775. dynamic_linker='Android linker'
  10776. # Don't embed -rpath directories since the linker doesn't support them.
  10777. hardcode_libdir_flag_spec='-L$libdir'
  10778. ;;
  10779. # This must be glibc/ELF.
  10780. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10781. version_type=linux # correct to gnu/linux during the next big refactor
  10782. need_lib_prefix=no
  10783. need_version=no
  10784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10785. soname_spec='$libname$release$shared_ext$major'
  10786. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10787. shlibpath_var=LD_LIBRARY_PATH
  10788. shlibpath_overrides_runpath=no
  10789. # Some binutils ld are patched to set DT_RUNPATH
  10790. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10791. $as_echo_n "(cached) " >&6
  10792. else
  10793. lt_cv_shlibpath_overrides_runpath=no
  10794. save_LDFLAGS=$LDFLAGS
  10795. save_libdir=$libdir
  10796. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10797. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10799. /* end confdefs.h. */
  10800. int
  10801. main ()
  10802. {
  10803. ;
  10804. return 0;
  10805. }
  10806. _ACEOF
  10807. if ac_fn_c_try_link "$LINENO"; then :
  10808. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10809. lt_cv_shlibpath_overrides_runpath=yes
  10810. fi
  10811. fi
  10812. rm -f core conftest.err conftest.$ac_objext \
  10813. conftest$ac_exeext conftest.$ac_ext
  10814. LDFLAGS=$save_LDFLAGS
  10815. libdir=$save_libdir
  10816. fi
  10817. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10818. # This implies no fast_install, which is unacceptable.
  10819. # Some rework will be needed to allow for fast_install
  10820. # before this can be enabled.
  10821. hardcode_into_libs=yes
  10822. # Ideally, we could use ldconfig to report *all* directores which are
  10823. # searched for libraries, however this is still not possible. Aside from not
  10824. # being certain /sbin/ldconfig is available, command
  10825. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10826. # even though it is searched at run-time. Try to do the best guess by
  10827. # appending ld.so.conf contents (and includes) to the search path.
  10828. if test -f /etc/ld.so.conf; then
  10829. 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' ' '`
  10830. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10831. fi
  10832. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10833. # powerpc, because MkLinux only supported shared libraries with the
  10834. # GNU dynamic linker. Since this was broken with cross compilers,
  10835. # most powerpc-linux boxes support dynamic linking these days and
  10836. # people can always --disable-shared, the test was removed, and we
  10837. # assume the GNU/Linux dynamic linker is in use.
  10838. dynamic_linker='GNU/Linux ld.so'
  10839. ;;
  10840. netbsdelf*-gnu)
  10841. version_type=linux
  10842. need_lib_prefix=no
  10843. need_version=no
  10844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10845. soname_spec='${libname}${release}${shared_ext}$major'
  10846. shlibpath_var=LD_LIBRARY_PATH
  10847. shlibpath_overrides_runpath=no
  10848. hardcode_into_libs=yes
  10849. dynamic_linker='NetBSD ld.elf_so'
  10850. ;;
  10851. netbsd*)
  10852. version_type=sunos
  10853. need_lib_prefix=no
  10854. need_version=no
  10855. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10856. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10857. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10858. dynamic_linker='NetBSD (a.out) ld.so'
  10859. else
  10860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10861. soname_spec='$libname$release$shared_ext$major'
  10862. dynamic_linker='NetBSD ld.elf_so'
  10863. fi
  10864. shlibpath_var=LD_LIBRARY_PATH
  10865. shlibpath_overrides_runpath=yes
  10866. hardcode_into_libs=yes
  10867. ;;
  10868. newsos6)
  10869. version_type=linux # correct to gnu/linux during the next big refactor
  10870. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10871. shlibpath_var=LD_LIBRARY_PATH
  10872. shlibpath_overrides_runpath=yes
  10873. ;;
  10874. *nto* | *qnx*)
  10875. version_type=qnx
  10876. need_lib_prefix=no
  10877. need_version=no
  10878. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10879. soname_spec='$libname$release$shared_ext$major'
  10880. shlibpath_var=LD_LIBRARY_PATH
  10881. shlibpath_overrides_runpath=no
  10882. hardcode_into_libs=yes
  10883. dynamic_linker='ldqnx.so'
  10884. ;;
  10885. openbsd* | bitrig*)
  10886. version_type=sunos
  10887. sys_lib_dlsearch_path_spec=/usr/lib
  10888. need_lib_prefix=no
  10889. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10890. need_version=no
  10891. else
  10892. need_version=yes
  10893. fi
  10894. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10896. shlibpath_var=LD_LIBRARY_PATH
  10897. shlibpath_overrides_runpath=yes
  10898. ;;
  10899. os2*)
  10900. libname_spec='$name'
  10901. version_type=windows
  10902. shrext_cmds=.dll
  10903. need_version=no
  10904. need_lib_prefix=no
  10905. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10906. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10907. v=$($ECHO $release$versuffix | tr -d .-);
  10908. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10909. $ECHO $n$v`$shared_ext'
  10910. library_names_spec='${libname}_dll.$libext'
  10911. dynamic_linker='OS/2 ld.exe'
  10912. shlibpath_var=BEGINLIBPATH
  10913. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10914. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10915. postinstall_cmds='base_file=`basename \$file`~
  10916. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10917. dldir=$destdir/`dirname \$dlpath`~
  10918. test -d \$dldir || mkdir -p \$dldir~
  10919. $install_prog $dir/$dlname \$dldir/$dlname~
  10920. chmod a+x \$dldir/$dlname~
  10921. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10922. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10923. fi'
  10924. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10925. dlpath=$dir/\$dldll~
  10926. $RM \$dlpath'
  10927. ;;
  10928. osf3* | osf4* | osf5*)
  10929. version_type=osf
  10930. need_lib_prefix=no
  10931. need_version=no
  10932. soname_spec='$libname$release$shared_ext$major'
  10933. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10934. shlibpath_var=LD_LIBRARY_PATH
  10935. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10937. ;;
  10938. rdos*)
  10939. dynamic_linker=no
  10940. ;;
  10941. solaris*)
  10942. version_type=linux # correct to gnu/linux during the next big refactor
  10943. need_lib_prefix=no
  10944. need_version=no
  10945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10946. soname_spec='$libname$release$shared_ext$major'
  10947. shlibpath_var=LD_LIBRARY_PATH
  10948. shlibpath_overrides_runpath=yes
  10949. hardcode_into_libs=yes
  10950. # ldd complains unless libraries are executable
  10951. postinstall_cmds='chmod +x $lib'
  10952. ;;
  10953. sunos4*)
  10954. version_type=sunos
  10955. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10956. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. shlibpath_overrides_runpath=yes
  10959. if test yes = "$with_gnu_ld"; then
  10960. need_lib_prefix=no
  10961. fi
  10962. need_version=yes
  10963. ;;
  10964. sysv4 | sysv4.3*)
  10965. version_type=linux # correct to gnu/linux during the next big refactor
  10966. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10967. soname_spec='$libname$release$shared_ext$major'
  10968. shlibpath_var=LD_LIBRARY_PATH
  10969. case $host_vendor in
  10970. sni)
  10971. shlibpath_overrides_runpath=no
  10972. need_lib_prefix=no
  10973. runpath_var=LD_RUN_PATH
  10974. ;;
  10975. siemens)
  10976. need_lib_prefix=no
  10977. ;;
  10978. motorola)
  10979. need_lib_prefix=no
  10980. need_version=no
  10981. shlibpath_overrides_runpath=no
  10982. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10983. ;;
  10984. esac
  10985. ;;
  10986. sysv4*MP*)
  10987. if test -d /usr/nec; then
  10988. version_type=linux # correct to gnu/linux during the next big refactor
  10989. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10990. soname_spec='$libname$shared_ext.$major'
  10991. shlibpath_var=LD_LIBRARY_PATH
  10992. fi
  10993. ;;
  10994. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10995. version_type=sco
  10996. need_lib_prefix=no
  10997. need_version=no
  10998. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10999. soname_spec='$libname$release$shared_ext$major'
  11000. shlibpath_var=LD_LIBRARY_PATH
  11001. shlibpath_overrides_runpath=yes
  11002. hardcode_into_libs=yes
  11003. if test yes = "$with_gnu_ld"; then
  11004. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11005. else
  11006. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11007. case $host_os in
  11008. sco3.2v5*)
  11009. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11010. ;;
  11011. esac
  11012. fi
  11013. sys_lib_dlsearch_path_spec='/usr/lib'
  11014. ;;
  11015. tpf*)
  11016. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11017. version_type=linux # correct to gnu/linux during the next big refactor
  11018. need_lib_prefix=no
  11019. need_version=no
  11020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11021. shlibpath_var=LD_LIBRARY_PATH
  11022. shlibpath_overrides_runpath=no
  11023. hardcode_into_libs=yes
  11024. ;;
  11025. uts4*)
  11026. version_type=linux # correct to gnu/linux during the next big refactor
  11027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11028. soname_spec='$libname$release$shared_ext$major'
  11029. shlibpath_var=LD_LIBRARY_PATH
  11030. ;;
  11031. *)
  11032. dynamic_linker=no
  11033. ;;
  11034. esac
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11036. $as_echo "$dynamic_linker" >&6; }
  11037. test no = "$dynamic_linker" && can_build_shared=no
  11038. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11039. if test yes = "$GCC"; then
  11040. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11041. fi
  11042. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11043. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11044. fi
  11045. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11046. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11047. fi
  11048. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11049. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11050. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11051. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11052. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11053. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11055. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11056. hardcode_action=
  11057. if test -n "$hardcode_libdir_flag_spec" ||
  11058. test -n "$runpath_var" ||
  11059. test yes = "$hardcode_automatic"; then
  11060. # We can hardcode non-existent directories.
  11061. if test no != "$hardcode_direct" &&
  11062. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11063. # have to relink, otherwise we might link with an installed library
  11064. # when we should be linking with a yet-to-be-installed one
  11065. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11066. test no != "$hardcode_minus_L"; then
  11067. # Linking always hardcodes the temporary library directory.
  11068. hardcode_action=relink
  11069. else
  11070. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11071. hardcode_action=immediate
  11072. fi
  11073. else
  11074. # We cannot hardcode anything, or else we can only hardcode existing
  11075. # directories.
  11076. hardcode_action=unsupported
  11077. fi
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11079. $as_echo "$hardcode_action" >&6; }
  11080. if test relink = "$hardcode_action" ||
  11081. test yes = "$inherit_rpath"; then
  11082. # Fast installation is not supported
  11083. enable_fast_install=no
  11084. elif test yes = "$shlibpath_overrides_runpath" ||
  11085. test no = "$enable_shared"; then
  11086. # Fast installation is not necessary
  11087. enable_fast_install=needless
  11088. fi
  11089. if test yes != "$enable_dlopen"; then
  11090. enable_dlopen=unknown
  11091. enable_dlopen_self=unknown
  11092. enable_dlopen_self_static=unknown
  11093. else
  11094. lt_cv_dlopen=no
  11095. lt_cv_dlopen_libs=
  11096. case $host_os in
  11097. beos*)
  11098. lt_cv_dlopen=load_add_on
  11099. lt_cv_dlopen_libs=
  11100. lt_cv_dlopen_self=yes
  11101. ;;
  11102. mingw* | pw32* | cegcc*)
  11103. lt_cv_dlopen=LoadLibrary
  11104. lt_cv_dlopen_libs=
  11105. ;;
  11106. cygwin*)
  11107. lt_cv_dlopen=dlopen
  11108. lt_cv_dlopen_libs=
  11109. ;;
  11110. darwin*)
  11111. # if libdl is installed we need to link against it
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11113. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11114. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11115. $as_echo_n "(cached) " >&6
  11116. else
  11117. ac_check_lib_save_LIBS=$LIBS
  11118. LIBS="-ldl $LIBS"
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. /* Override any GCC internal prototype to avoid an error.
  11122. Use char because int might match the return type of a GCC
  11123. builtin and then its argument prototype would still apply. */
  11124. #ifdef __cplusplus
  11125. extern "C"
  11126. #endif
  11127. char dlopen ();
  11128. int
  11129. main ()
  11130. {
  11131. return dlopen ();
  11132. ;
  11133. return 0;
  11134. }
  11135. _ACEOF
  11136. if ac_fn_c_try_link "$LINENO"; then :
  11137. ac_cv_lib_dl_dlopen=yes
  11138. else
  11139. ac_cv_lib_dl_dlopen=no
  11140. fi
  11141. rm -f core conftest.err conftest.$ac_objext \
  11142. conftest$ac_exeext conftest.$ac_ext
  11143. LIBS=$ac_check_lib_save_LIBS
  11144. fi
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11146. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11147. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11148. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11149. else
  11150. lt_cv_dlopen=dyld
  11151. lt_cv_dlopen_libs=
  11152. lt_cv_dlopen_self=yes
  11153. fi
  11154. ;;
  11155. tpf*)
  11156. # Don't try to run any link tests for TPF. We know it's impossible
  11157. # because TPF is a cross-compiler, and we know how we open DSOs.
  11158. lt_cv_dlopen=dlopen
  11159. lt_cv_dlopen_libs=
  11160. lt_cv_dlopen_self=no
  11161. ;;
  11162. *)
  11163. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11164. if test "x$ac_cv_func_shl_load" = xyes; then :
  11165. lt_cv_dlopen=shl_load
  11166. else
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11168. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11169. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11170. $as_echo_n "(cached) " >&6
  11171. else
  11172. ac_check_lib_save_LIBS=$LIBS
  11173. LIBS="-ldld $LIBS"
  11174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11175. /* end confdefs.h. */
  11176. /* Override any GCC internal prototype to avoid an error.
  11177. Use char because int might match the return type of a GCC
  11178. builtin and then its argument prototype would still apply. */
  11179. #ifdef __cplusplus
  11180. extern "C"
  11181. #endif
  11182. char shl_load ();
  11183. int
  11184. main ()
  11185. {
  11186. return shl_load ();
  11187. ;
  11188. return 0;
  11189. }
  11190. _ACEOF
  11191. if ac_fn_c_try_link "$LINENO"; then :
  11192. ac_cv_lib_dld_shl_load=yes
  11193. else
  11194. ac_cv_lib_dld_shl_load=no
  11195. fi
  11196. rm -f core conftest.err conftest.$ac_objext \
  11197. conftest$ac_exeext conftest.$ac_ext
  11198. LIBS=$ac_check_lib_save_LIBS
  11199. fi
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11201. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11202. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11203. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11204. else
  11205. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11206. if test "x$ac_cv_func_dlopen" = xyes; then :
  11207. lt_cv_dlopen=dlopen
  11208. else
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11210. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11211. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11212. $as_echo_n "(cached) " >&6
  11213. else
  11214. ac_check_lib_save_LIBS=$LIBS
  11215. LIBS="-ldl $LIBS"
  11216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11217. /* end confdefs.h. */
  11218. /* Override any GCC internal prototype to avoid an error.
  11219. Use char because int might match the return type of a GCC
  11220. builtin and then its argument prototype would still apply. */
  11221. #ifdef __cplusplus
  11222. extern "C"
  11223. #endif
  11224. char dlopen ();
  11225. int
  11226. main ()
  11227. {
  11228. return dlopen ();
  11229. ;
  11230. return 0;
  11231. }
  11232. _ACEOF
  11233. if ac_fn_c_try_link "$LINENO"; then :
  11234. ac_cv_lib_dl_dlopen=yes
  11235. else
  11236. ac_cv_lib_dl_dlopen=no
  11237. fi
  11238. rm -f core conftest.err conftest.$ac_objext \
  11239. conftest$ac_exeext conftest.$ac_ext
  11240. LIBS=$ac_check_lib_save_LIBS
  11241. fi
  11242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11243. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11244. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11245. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11246. else
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11248. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11249. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11250. $as_echo_n "(cached) " >&6
  11251. else
  11252. ac_check_lib_save_LIBS=$LIBS
  11253. LIBS="-lsvld $LIBS"
  11254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11255. /* end confdefs.h. */
  11256. /* Override any GCC internal prototype to avoid an error.
  11257. Use char because int might match the return type of a GCC
  11258. builtin and then its argument prototype would still apply. */
  11259. #ifdef __cplusplus
  11260. extern "C"
  11261. #endif
  11262. char dlopen ();
  11263. int
  11264. main ()
  11265. {
  11266. return dlopen ();
  11267. ;
  11268. return 0;
  11269. }
  11270. _ACEOF
  11271. if ac_fn_c_try_link "$LINENO"; then :
  11272. ac_cv_lib_svld_dlopen=yes
  11273. else
  11274. ac_cv_lib_svld_dlopen=no
  11275. fi
  11276. rm -f core conftest.err conftest.$ac_objext \
  11277. conftest$ac_exeext conftest.$ac_ext
  11278. LIBS=$ac_check_lib_save_LIBS
  11279. fi
  11280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11281. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11282. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11283. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11284. else
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11286. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11287. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11288. $as_echo_n "(cached) " >&6
  11289. else
  11290. ac_check_lib_save_LIBS=$LIBS
  11291. LIBS="-ldld $LIBS"
  11292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11293. /* end confdefs.h. */
  11294. /* Override any GCC internal prototype to avoid an error.
  11295. Use char because int might match the return type of a GCC
  11296. builtin and then its argument prototype would still apply. */
  11297. #ifdef __cplusplus
  11298. extern "C"
  11299. #endif
  11300. char dld_link ();
  11301. int
  11302. main ()
  11303. {
  11304. return dld_link ();
  11305. ;
  11306. return 0;
  11307. }
  11308. _ACEOF
  11309. if ac_fn_c_try_link "$LINENO"; then :
  11310. ac_cv_lib_dld_dld_link=yes
  11311. else
  11312. ac_cv_lib_dld_dld_link=no
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext \
  11315. conftest$ac_exeext conftest.$ac_ext
  11316. LIBS=$ac_check_lib_save_LIBS
  11317. fi
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11319. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11320. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11321. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11322. fi
  11323. fi
  11324. fi
  11325. fi
  11326. fi
  11327. fi
  11328. ;;
  11329. esac
  11330. if test no = "$lt_cv_dlopen"; then
  11331. enable_dlopen=no
  11332. else
  11333. enable_dlopen=yes
  11334. fi
  11335. case $lt_cv_dlopen in
  11336. dlopen)
  11337. save_CPPFLAGS=$CPPFLAGS
  11338. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11339. save_LDFLAGS=$LDFLAGS
  11340. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11341. save_LIBS=$LIBS
  11342. LIBS="$lt_cv_dlopen_libs $LIBS"
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11344. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11345. if ${lt_cv_dlopen_self+:} false; then :
  11346. $as_echo_n "(cached) " >&6
  11347. else
  11348. if test yes = "$cross_compiling"; then :
  11349. lt_cv_dlopen_self=cross
  11350. else
  11351. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11352. lt_status=$lt_dlunknown
  11353. cat > conftest.$ac_ext <<_LT_EOF
  11354. #line $LINENO "configure"
  11355. #include "confdefs.h"
  11356. #if HAVE_DLFCN_H
  11357. #include <dlfcn.h>
  11358. #endif
  11359. #include <stdio.h>
  11360. #ifdef RTLD_GLOBAL
  11361. # define LT_DLGLOBAL RTLD_GLOBAL
  11362. #else
  11363. # ifdef DL_GLOBAL
  11364. # define LT_DLGLOBAL DL_GLOBAL
  11365. # else
  11366. # define LT_DLGLOBAL 0
  11367. # endif
  11368. #endif
  11369. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11370. find out it does not work in some platform. */
  11371. #ifndef LT_DLLAZY_OR_NOW
  11372. # ifdef RTLD_LAZY
  11373. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11374. # else
  11375. # ifdef DL_LAZY
  11376. # define LT_DLLAZY_OR_NOW DL_LAZY
  11377. # else
  11378. # ifdef RTLD_NOW
  11379. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11380. # else
  11381. # ifdef DL_NOW
  11382. # define LT_DLLAZY_OR_NOW DL_NOW
  11383. # else
  11384. # define LT_DLLAZY_OR_NOW 0
  11385. # endif
  11386. # endif
  11387. # endif
  11388. # endif
  11389. #endif
  11390. /* When -fvisibility=hidden is used, assume the code has been annotated
  11391. correspondingly for the symbols needed. */
  11392. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11393. int fnord () __attribute__((visibility("default")));
  11394. #endif
  11395. int fnord () { return 42; }
  11396. int main ()
  11397. {
  11398. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11399. int status = $lt_dlunknown;
  11400. if (self)
  11401. {
  11402. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11403. else
  11404. {
  11405. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11406. else puts (dlerror ());
  11407. }
  11408. /* dlclose (self); */
  11409. }
  11410. else
  11411. puts (dlerror ());
  11412. return status;
  11413. }
  11414. _LT_EOF
  11415. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11416. (eval $ac_link) 2>&5
  11417. ac_status=$?
  11418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11419. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11420. (./conftest; exit; ) >&5 2>/dev/null
  11421. lt_status=$?
  11422. case x$lt_status in
  11423. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11424. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11425. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11426. esac
  11427. else :
  11428. # compilation failed
  11429. lt_cv_dlopen_self=no
  11430. fi
  11431. fi
  11432. rm -fr conftest*
  11433. fi
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11435. $as_echo "$lt_cv_dlopen_self" >&6; }
  11436. if test yes = "$lt_cv_dlopen_self"; then
  11437. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11439. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11440. if ${lt_cv_dlopen_self_static+:} false; then :
  11441. $as_echo_n "(cached) " >&6
  11442. else
  11443. if test yes = "$cross_compiling"; then :
  11444. lt_cv_dlopen_self_static=cross
  11445. else
  11446. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11447. lt_status=$lt_dlunknown
  11448. cat > conftest.$ac_ext <<_LT_EOF
  11449. #line $LINENO "configure"
  11450. #include "confdefs.h"
  11451. #if HAVE_DLFCN_H
  11452. #include <dlfcn.h>
  11453. #endif
  11454. #include <stdio.h>
  11455. #ifdef RTLD_GLOBAL
  11456. # define LT_DLGLOBAL RTLD_GLOBAL
  11457. #else
  11458. # ifdef DL_GLOBAL
  11459. # define LT_DLGLOBAL DL_GLOBAL
  11460. # else
  11461. # define LT_DLGLOBAL 0
  11462. # endif
  11463. #endif
  11464. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11465. find out it does not work in some platform. */
  11466. #ifndef LT_DLLAZY_OR_NOW
  11467. # ifdef RTLD_LAZY
  11468. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11469. # else
  11470. # ifdef DL_LAZY
  11471. # define LT_DLLAZY_OR_NOW DL_LAZY
  11472. # else
  11473. # ifdef RTLD_NOW
  11474. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11475. # else
  11476. # ifdef DL_NOW
  11477. # define LT_DLLAZY_OR_NOW DL_NOW
  11478. # else
  11479. # define LT_DLLAZY_OR_NOW 0
  11480. # endif
  11481. # endif
  11482. # endif
  11483. # endif
  11484. #endif
  11485. /* When -fvisibility=hidden is used, assume the code has been annotated
  11486. correspondingly for the symbols needed. */
  11487. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11488. int fnord () __attribute__((visibility("default")));
  11489. #endif
  11490. int fnord () { return 42; }
  11491. int main ()
  11492. {
  11493. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11494. int status = $lt_dlunknown;
  11495. if (self)
  11496. {
  11497. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11498. else
  11499. {
  11500. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11501. else puts (dlerror ());
  11502. }
  11503. /* dlclose (self); */
  11504. }
  11505. else
  11506. puts (dlerror ());
  11507. return status;
  11508. }
  11509. _LT_EOF
  11510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11511. (eval $ac_link) 2>&5
  11512. ac_status=$?
  11513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11514. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11515. (./conftest; exit; ) >&5 2>/dev/null
  11516. lt_status=$?
  11517. case x$lt_status in
  11518. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11519. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11520. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11521. esac
  11522. else :
  11523. # compilation failed
  11524. lt_cv_dlopen_self_static=no
  11525. fi
  11526. fi
  11527. rm -fr conftest*
  11528. fi
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11530. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11531. fi
  11532. CPPFLAGS=$save_CPPFLAGS
  11533. LDFLAGS=$save_LDFLAGS
  11534. LIBS=$save_LIBS
  11535. ;;
  11536. esac
  11537. case $lt_cv_dlopen_self in
  11538. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11539. *) enable_dlopen_self=unknown ;;
  11540. esac
  11541. case $lt_cv_dlopen_self_static in
  11542. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11543. *) enable_dlopen_self_static=unknown ;;
  11544. esac
  11545. fi
  11546. striplib=
  11547. old_striplib=
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11549. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11550. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11551. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11552. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11554. $as_echo "yes" >&6; }
  11555. else
  11556. # FIXME - insert some real tests, host_os isn't really good enough
  11557. case $host_os in
  11558. darwin*)
  11559. if test -n "$STRIP"; then
  11560. striplib="$STRIP -x"
  11561. old_striplib="$STRIP -S"
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11563. $as_echo "yes" >&6; }
  11564. else
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11566. $as_echo "no" >&6; }
  11567. fi
  11568. ;;
  11569. *)
  11570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11571. $as_echo "no" >&6; }
  11572. ;;
  11573. esac
  11574. fi
  11575. # Report what library types will actually be built
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11577. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11579. $as_echo "$can_build_shared" >&6; }
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11581. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11582. test no = "$can_build_shared" && enable_shared=no
  11583. # On AIX, shared libraries and static libraries use the same namespace, and
  11584. # are all built from PIC.
  11585. case $host_os in
  11586. aix3*)
  11587. test yes = "$enable_shared" && enable_static=no
  11588. if test -n "$RANLIB"; then
  11589. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11590. postinstall_cmds='$RANLIB $lib'
  11591. fi
  11592. ;;
  11593. aix[4-9]*)
  11594. if test ia64 != "$host_cpu"; then
  11595. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11596. yes,aix,yes) ;; # shared object as lib.so file only
  11597. yes,svr4,*) ;; # shared object as lib.so archive member only
  11598. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11599. esac
  11600. fi
  11601. ;;
  11602. esac
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11604. $as_echo "$enable_shared" >&6; }
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11606. $as_echo_n "checking whether to build static libraries... " >&6; }
  11607. # Make sure either enable_shared or enable_static is yes.
  11608. test yes = "$enable_shared" || enable_static=yes
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11610. $as_echo "$enable_static" >&6; }
  11611. fi
  11612. ac_ext=c
  11613. ac_cpp='$CPP $CPPFLAGS'
  11614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11617. CC=$lt_save_CC
  11618. ac_config_commands="$ac_config_commands libtool"
  11619. # Only expand once:
  11620. # Check whether --enable-man-pdfs was given.
  11621. if test "${enable_man_pdfs+set}" = set; then :
  11622. enableval=$enable_man_pdfs;
  11623. fi
  11624. if test "$enable_man_pdfs" != "no"; then :
  11625. for ac_prog in groff
  11626. do
  11627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11628. set dummy $ac_prog; ac_word=$2
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11630. $as_echo_n "checking for $ac_word... " >&6; }
  11631. if ${ac_cv_prog_GROFF+:} false; then :
  11632. $as_echo_n "(cached) " >&6
  11633. else
  11634. if test -n "$GROFF"; then
  11635. ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
  11636. else
  11637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11638. for as_dir in $PATH
  11639. do
  11640. IFS=$as_save_IFS
  11641. test -z "$as_dir" && as_dir=.
  11642. for ac_exec_ext in '' $ac_executable_extensions; do
  11643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11644. ac_cv_prog_GROFF="$ac_prog"
  11645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11646. break 2
  11647. fi
  11648. done
  11649. done
  11650. IFS=$as_save_IFS
  11651. fi
  11652. fi
  11653. GROFF=$ac_cv_prog_GROFF
  11654. if test -n "$GROFF"; then
  11655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  11656. $as_echo "$GROFF" >&6; }
  11657. else
  11658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11659. $as_echo "no" >&6; }
  11660. fi
  11661. test -n "$GROFF" && break
  11662. done
  11663. if test "$enable_man_pdfs" = "yes" && test -z "$GROFF"; then :
  11664. as_fn_error $? "You requested PDF generation from man pages, but 'groff' could not be found" "$LINENO" 5
  11665. fi
  11666. for ac_prog in ps2pdf pstopdf
  11667. do
  11668. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11669. set dummy $ac_prog; ac_word=$2
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11671. $as_echo_n "checking for $ac_word... " >&6; }
  11672. if ${ac_cv_prog_PS2PDF+:} false; then :
  11673. $as_echo_n "(cached) " >&6
  11674. else
  11675. if test -n "$PS2PDF"; then
  11676. ac_cv_prog_PS2PDF="$PS2PDF" # Let the user override the test.
  11677. else
  11678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11679. for as_dir in $PATH
  11680. do
  11681. IFS=$as_save_IFS
  11682. test -z "$as_dir" && as_dir=.
  11683. for ac_exec_ext in '' $ac_executable_extensions; do
  11684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11685. ac_cv_prog_PS2PDF="$ac_prog"
  11686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11687. break 2
  11688. fi
  11689. done
  11690. done
  11691. IFS=$as_save_IFS
  11692. fi
  11693. fi
  11694. PS2PDF=$ac_cv_prog_PS2PDF
  11695. if test -n "$PS2PDF"; then
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
  11697. $as_echo "$PS2PDF" >&6; }
  11698. else
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11700. $as_echo "no" >&6; }
  11701. fi
  11702. test -n "$PS2PDF" && break
  11703. done
  11704. if test "$enable_man_pdfs" = "yes" && test -z "$PS2PDF"; then :
  11705. as_fn_error $? "You requested PDF generation from man pages, but neither 'ps2pdf' nor 'pstopdf' could be found" "$LINENO" 5
  11706. fi
  11707. fi
  11708. if test "$enable_man_pdfs" != "no" && test -n "$GROFF" && test -n "$PS2PDF"; then
  11709. ENABLE_MAN_PDFS_TRUE=
  11710. ENABLE_MAN_PDFS_FALSE='#'
  11711. else
  11712. ENABLE_MAN_PDFS_TRUE='#'
  11713. ENABLE_MAN_PDFS_FALSE=
  11714. fi
  11715. # allow disabling of demos installation
  11716. # Check whether --with-demos was given.
  11717. if test "${with_demos+set}" = set; then :
  11718. withval=$with_demos;
  11719. fi
  11720. demodir='$(pkgdatadir)/demo'
  11721. if test "$with_demos" != "yes" && test -n "$with_demos"; then :
  11722. demodir="$with_demos"
  11723. fi
  11724. if test "$with_demos" != "no"; then
  11725. INSTALL_DEMOS_TRUE=
  11726. INSTALL_DEMOS_FALSE='#'
  11727. else
  11728. INSTALL_DEMOS_TRUE='#'
  11729. INSTALL_DEMOS_FALSE=
  11730. fi
  11731. # Check whether --with-pkgconfigdir was given.
  11732. if test "${with_pkgconfigdir+set}" = set; then :
  11733. withval=$with_pkgconfigdir;
  11734. else
  11735. with_pkgconfigdir='${libdir}/pkgconfig'
  11736. fi
  11737. pkgconfigdir=$with_pkgconfigdir
  11738. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11739. if test -n "$ac_tool_prefix"; then
  11740. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11741. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11743. $as_echo_n "checking for $ac_word... " >&6; }
  11744. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11745. $as_echo_n "(cached) " >&6
  11746. else
  11747. case $PKG_CONFIG in
  11748. [\\/]* | ?:[\\/]*)
  11749. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11750. ;;
  11751. *)
  11752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11753. for as_dir in $PATH
  11754. do
  11755. IFS=$as_save_IFS
  11756. test -z "$as_dir" && as_dir=.
  11757. for ac_exec_ext in '' $ac_executable_extensions; do
  11758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11759. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11761. break 2
  11762. fi
  11763. done
  11764. done
  11765. IFS=$as_save_IFS
  11766. ;;
  11767. esac
  11768. fi
  11769. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11770. if test -n "$PKG_CONFIG"; then
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11772. $as_echo "$PKG_CONFIG" >&6; }
  11773. else
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11775. $as_echo "no" >&6; }
  11776. fi
  11777. fi
  11778. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11779. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11780. # Extract the first word of "pkg-config", so it can be a program name with args.
  11781. set dummy pkg-config; ac_word=$2
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11783. $as_echo_n "checking for $ac_word... " >&6; }
  11784. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11785. $as_echo_n "(cached) " >&6
  11786. else
  11787. case $ac_pt_PKG_CONFIG in
  11788. [\\/]* | ?:[\\/]*)
  11789. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11790. ;;
  11791. *)
  11792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11793. for as_dir in $PATH
  11794. do
  11795. IFS=$as_save_IFS
  11796. test -z "$as_dir" && as_dir=.
  11797. for ac_exec_ext in '' $ac_executable_extensions; do
  11798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11799. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11801. break 2
  11802. fi
  11803. done
  11804. done
  11805. IFS=$as_save_IFS
  11806. ;;
  11807. esac
  11808. fi
  11809. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11810. if test -n "$ac_pt_PKG_CONFIG"; then
  11811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11812. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11813. else
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11815. $as_echo "no" >&6; }
  11816. fi
  11817. if test "x$ac_pt_PKG_CONFIG" = x; then
  11818. PKG_CONFIG=""
  11819. else
  11820. case $cross_compiling:$ac_tool_warned in
  11821. yes:)
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11823. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11824. ac_tool_warned=yes ;;
  11825. esac
  11826. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11827. fi
  11828. else
  11829. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11830. fi
  11831. fi
  11832. if test -n "$PKG_CONFIG"; then
  11833. _pkg_min_version=0.9.0
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11835. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11836. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11838. $as_echo "yes" >&6; }
  11839. else
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11841. $as_echo "no" >&6; }
  11842. PKG_CONFIG=""
  11843. fi
  11844. fi
  11845. # Check whether --with-tclsh was given.
  11846. if test "${with_tclsh+set}" = set; then :
  11847. withval=$with_tclsh; TCLSH=$withval
  11848. fi
  11849. if test "$TCLSH" = ""; then
  11850. for ac_prog in tclsh8.6 tclsh8.5 tclsh8.4 tclsh8.3 tclsh
  11851. do
  11852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11853. set dummy $ac_prog; ac_word=$2
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11855. $as_echo_n "checking for $ac_word... " >&6; }
  11856. if ${ac_cv_path_TCLSH+:} false; then :
  11857. $as_echo_n "(cached) " >&6
  11858. else
  11859. case $TCLSH in
  11860. [\\/]* | ?:[\\/]*)
  11861. ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
  11862. ;;
  11863. *)
  11864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11865. for as_dir in /usr/bin
  11866. do
  11867. IFS=$as_save_IFS
  11868. test -z "$as_dir" && as_dir=.
  11869. for ac_exec_ext in '' $ac_executable_extensions; do
  11870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11871. ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
  11872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11873. break 2
  11874. fi
  11875. done
  11876. done
  11877. IFS=$as_save_IFS
  11878. ;;
  11879. esac
  11880. fi
  11881. TCLSH=$ac_cv_path_TCLSH
  11882. if test -n "$TCLSH"; then
  11883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
  11884. $as_echo "$TCLSH" >&6; }
  11885. else
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11887. $as_echo "no" >&6; }
  11888. fi
  11889. test -n "$TCLSH" && break
  11890. done
  11891. fi
  11892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  11893. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  11894. if ${ac_cv_prog_cc_c99+:} false; then :
  11895. $as_echo_n "(cached) " >&6
  11896. else
  11897. ac_cv_prog_cc_c99=no
  11898. ac_save_CC=$CC
  11899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11900. /* end confdefs.h. */
  11901. #include <stdarg.h>
  11902. #include <stdbool.h>
  11903. #include <stdlib.h>
  11904. #include <wchar.h>
  11905. #include <stdio.h>
  11906. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  11907. #define debug(...) fprintf (stderr, __VA_ARGS__)
  11908. #define showlist(...) puts (#__VA_ARGS__)
  11909. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  11910. static void
  11911. test_varargs_macros (void)
  11912. {
  11913. int x = 1234;
  11914. int y = 5678;
  11915. debug ("Flag");
  11916. debug ("X = %d\n", x);
  11917. showlist (The first, second, and third items.);
  11918. report (x>y, "x is %d but y is %d", x, y);
  11919. }
  11920. // Check long long types.
  11921. #define BIG64 18446744073709551615ull
  11922. #define BIG32 4294967295ul
  11923. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  11924. #if !BIG_OK
  11925. your preprocessor is broken;
  11926. #endif
  11927. #if BIG_OK
  11928. #else
  11929. your preprocessor is broken;
  11930. #endif
  11931. static long long int bignum = -9223372036854775807LL;
  11932. static unsigned long long int ubignum = BIG64;
  11933. struct incomplete_array
  11934. {
  11935. int datasize;
  11936. double data[];
  11937. };
  11938. struct named_init {
  11939. int number;
  11940. const wchar_t *name;
  11941. double average;
  11942. };
  11943. typedef const char *ccp;
  11944. static inline int
  11945. test_restrict (ccp restrict text)
  11946. {
  11947. // See if C++-style comments work.
  11948. // Iterate through items via the restricted pointer.
  11949. // Also check for declarations in for loops.
  11950. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  11951. continue;
  11952. return 0;
  11953. }
  11954. // Check varargs and va_copy.
  11955. static void
  11956. test_varargs (const char *format, ...)
  11957. {
  11958. va_list args;
  11959. va_start (args, format);
  11960. va_list args_copy;
  11961. va_copy (args_copy, args);
  11962. const char *str;
  11963. int number;
  11964. float fnumber;
  11965. while (*format)
  11966. {
  11967. switch (*format++)
  11968. {
  11969. case 's': // string
  11970. str = va_arg (args_copy, const char *);
  11971. break;
  11972. case 'd': // int
  11973. number = va_arg (args_copy, int);
  11974. break;
  11975. case 'f': // float
  11976. fnumber = va_arg (args_copy, double);
  11977. break;
  11978. default:
  11979. break;
  11980. }
  11981. }
  11982. va_end (args_copy);
  11983. va_end (args);
  11984. }
  11985. int
  11986. main ()
  11987. {
  11988. // Check bool.
  11989. _Bool success = false;
  11990. // Check restrict.
  11991. if (test_restrict ("String literal") == 0)
  11992. success = true;
  11993. char *restrict newvar = "Another string";
  11994. // Check varargs.
  11995. test_varargs ("s, d' f .", "string", 65, 34.234);
  11996. test_varargs_macros ();
  11997. // Check flexible array members.
  11998. struct incomplete_array *ia =
  11999. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  12000. ia->datasize = 10;
  12001. for (int i = 0; i < ia->datasize; ++i)
  12002. ia->data[i] = i * 1.234;
  12003. // Check named initializers.
  12004. struct named_init ni = {
  12005. .number = 34,
  12006. .name = L"Test wide string",
  12007. .average = 543.34343,
  12008. };
  12009. ni.number = 58;
  12010. int dynamic_array[ni.number];
  12011. dynamic_array[ni.number - 1] = 543;
  12012. // work around unused variable warnings
  12013. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  12014. || dynamic_array[ni.number - 1] != 543);
  12015. ;
  12016. return 0;
  12017. }
  12018. _ACEOF
  12019. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  12020. do
  12021. CC="$ac_save_CC $ac_arg"
  12022. if ac_fn_c_try_compile "$LINENO"; then :
  12023. ac_cv_prog_cc_c99=$ac_arg
  12024. fi
  12025. rm -f core conftest.err conftest.$ac_objext
  12026. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12027. done
  12028. rm -f conftest.$ac_ext
  12029. CC=$ac_save_CC
  12030. fi
  12031. # AC_CACHE_VAL
  12032. case "x$ac_cv_prog_cc_c99" in
  12033. x)
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12035. $as_echo "none needed" >&6; } ;;
  12036. xno)
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12038. $as_echo "unsupported" >&6; } ;;
  12039. *)
  12040. CC="$CC $ac_cv_prog_cc_c99"
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12042. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  12043. esac
  12044. if test "x$ac_cv_prog_cc_c99" != xno; then :
  12045. fi
  12046. if test "$ac_cv_prog_cc_c99" = "no"; then
  12047. as_fn_error $? "C compiler does not support C99" "$LINENO" 5
  12048. fi
  12049. ac_ext=cpp
  12050. ac_cpp='$CXXCPP $CPPFLAGS'
  12051. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12052. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12053. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12054. if test -z "$CXX"; then
  12055. if test -n "$CCC"; then
  12056. CXX=$CCC
  12057. else
  12058. if test -n "$ac_tool_prefix"; then
  12059. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12060. do
  12061. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12062. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12064. $as_echo_n "checking for $ac_word... " >&6; }
  12065. if ${ac_cv_prog_CXX+:} false; then :
  12066. $as_echo_n "(cached) " >&6
  12067. else
  12068. if test -n "$CXX"; then
  12069. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12070. else
  12071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12072. for as_dir in $PATH
  12073. do
  12074. IFS=$as_save_IFS
  12075. test -z "$as_dir" && as_dir=.
  12076. for ac_exec_ext in '' $ac_executable_extensions; do
  12077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12078. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12080. break 2
  12081. fi
  12082. done
  12083. done
  12084. IFS=$as_save_IFS
  12085. fi
  12086. fi
  12087. CXX=$ac_cv_prog_CXX
  12088. if test -n "$CXX"; then
  12089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12090. $as_echo "$CXX" >&6; }
  12091. else
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12093. $as_echo "no" >&6; }
  12094. fi
  12095. test -n "$CXX" && break
  12096. done
  12097. fi
  12098. if test -z "$CXX"; then
  12099. ac_ct_CXX=$CXX
  12100. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12101. do
  12102. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12103. set dummy $ac_prog; ac_word=$2
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12105. $as_echo_n "checking for $ac_word... " >&6; }
  12106. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12107. $as_echo_n "(cached) " >&6
  12108. else
  12109. if test -n "$ac_ct_CXX"; then
  12110. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12111. else
  12112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12113. for as_dir in $PATH
  12114. do
  12115. IFS=$as_save_IFS
  12116. test -z "$as_dir" && as_dir=.
  12117. for ac_exec_ext in '' $ac_executable_extensions; do
  12118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12119. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12121. break 2
  12122. fi
  12123. done
  12124. done
  12125. IFS=$as_save_IFS
  12126. fi
  12127. fi
  12128. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12129. if test -n "$ac_ct_CXX"; then
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12131. $as_echo "$ac_ct_CXX" >&6; }
  12132. else
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12134. $as_echo "no" >&6; }
  12135. fi
  12136. test -n "$ac_ct_CXX" && break
  12137. done
  12138. if test "x$ac_ct_CXX" = x; then
  12139. CXX="g++"
  12140. else
  12141. case $cross_compiling:$ac_tool_warned in
  12142. yes:)
  12143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12145. ac_tool_warned=yes ;;
  12146. esac
  12147. CXX=$ac_ct_CXX
  12148. fi
  12149. fi
  12150. fi
  12151. fi
  12152. # Provide some information about the compiler.
  12153. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12154. set X $ac_compile
  12155. ac_compiler=$2
  12156. for ac_option in --version -v -V -qversion; do
  12157. { { ac_try="$ac_compiler $ac_option >&5"
  12158. case "(($ac_try" in
  12159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12160. *) ac_try_echo=$ac_try;;
  12161. esac
  12162. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12163. $as_echo "$ac_try_echo"; } >&5
  12164. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12165. ac_status=$?
  12166. if test -s conftest.err; then
  12167. sed '10a\
  12168. ... rest of stderr output deleted ...
  12169. 10q' conftest.err >conftest.er1
  12170. cat conftest.er1 >&5
  12171. fi
  12172. rm -f conftest.er1 conftest.err
  12173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12174. test $ac_status = 0; }
  12175. done
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12177. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12178. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12179. $as_echo_n "(cached) " >&6
  12180. else
  12181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12182. /* end confdefs.h. */
  12183. int
  12184. main ()
  12185. {
  12186. #ifndef __GNUC__
  12187. choke me
  12188. #endif
  12189. ;
  12190. return 0;
  12191. }
  12192. _ACEOF
  12193. if ac_fn_cxx_try_compile "$LINENO"; then :
  12194. ac_compiler_gnu=yes
  12195. else
  12196. ac_compiler_gnu=no
  12197. fi
  12198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12199. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12200. fi
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12202. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12203. if test $ac_compiler_gnu = yes; then
  12204. GXX=yes
  12205. else
  12206. GXX=
  12207. fi
  12208. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12209. ac_save_CXXFLAGS=$CXXFLAGS
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12211. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12212. if ${ac_cv_prog_cxx_g+:} false; then :
  12213. $as_echo_n "(cached) " >&6
  12214. else
  12215. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12216. ac_cxx_werror_flag=yes
  12217. ac_cv_prog_cxx_g=no
  12218. CXXFLAGS="-g"
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. int
  12222. main ()
  12223. {
  12224. ;
  12225. return 0;
  12226. }
  12227. _ACEOF
  12228. if ac_fn_cxx_try_compile "$LINENO"; then :
  12229. ac_cv_prog_cxx_g=yes
  12230. else
  12231. CXXFLAGS=""
  12232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12233. /* end confdefs.h. */
  12234. int
  12235. main ()
  12236. {
  12237. ;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. if ac_fn_cxx_try_compile "$LINENO"; then :
  12242. else
  12243. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12244. CXXFLAGS="-g"
  12245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12246. /* end confdefs.h. */
  12247. int
  12248. main ()
  12249. {
  12250. ;
  12251. return 0;
  12252. }
  12253. _ACEOF
  12254. if ac_fn_cxx_try_compile "$LINENO"; then :
  12255. ac_cv_prog_cxx_g=yes
  12256. fi
  12257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12258. fi
  12259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12260. fi
  12261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12262. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12263. fi
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12265. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12266. if test "$ac_test_CXXFLAGS" = set; then
  12267. CXXFLAGS=$ac_save_CXXFLAGS
  12268. elif test $ac_cv_prog_cxx_g = yes; then
  12269. if test "$GXX" = yes; then
  12270. CXXFLAGS="-g -O2"
  12271. else
  12272. CXXFLAGS="-g"
  12273. fi
  12274. else
  12275. if test "$GXX" = yes; then
  12276. CXXFLAGS="-O2"
  12277. else
  12278. CXXFLAGS=
  12279. fi
  12280. fi
  12281. ac_ext=c
  12282. ac_cpp='$CPP $CPPFLAGS'
  12283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12286. depcc="$CXX" am_compiler_list=
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12288. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12289. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12290. $as_echo_n "(cached) " >&6
  12291. else
  12292. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12293. # We make a subdir and do the tests there. Otherwise we can end up
  12294. # making bogus files that we don't know about and never remove. For
  12295. # instance it was reported that on HP-UX the gcc test will end up
  12296. # making a dummy file named 'D' -- because '-MD' means "put the output
  12297. # in D".
  12298. rm -rf conftest.dir
  12299. mkdir conftest.dir
  12300. # Copy depcomp to subdir because otherwise we won't find it if we're
  12301. # using a relative directory.
  12302. cp "$am_depcomp" conftest.dir
  12303. cd conftest.dir
  12304. # We will build objects and dependencies in a subdirectory because
  12305. # it helps to detect inapplicable dependency modes. For instance
  12306. # both Tru64's cc and ICC support -MD to output dependencies as a
  12307. # side effect of compilation, but ICC will put the dependencies in
  12308. # the current directory while Tru64 will put them in the object
  12309. # directory.
  12310. mkdir sub
  12311. am_cv_CXX_dependencies_compiler_type=none
  12312. if test "$am_compiler_list" = ""; then
  12313. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12314. fi
  12315. am__universal=false
  12316. case " $depcc " in #(
  12317. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12318. esac
  12319. for depmode in $am_compiler_list; do
  12320. # Setup a source with many dependencies, because some compilers
  12321. # like to wrap large dependency lists on column 80 (with \), and
  12322. # we should not choose a depcomp mode which is confused by this.
  12323. #
  12324. # We need to recreate these files for each test, as the compiler may
  12325. # overwrite some of them when testing with obscure command lines.
  12326. # This happens at least with the AIX C compiler.
  12327. : > sub/conftest.c
  12328. for i in 1 2 3 4 5 6; do
  12329. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12330. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12331. # Solaris 10 /bin/sh.
  12332. echo '/* dummy */' > sub/conftst$i.h
  12333. done
  12334. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12335. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12336. # mode. It turns out that the SunPro C++ compiler does not properly
  12337. # handle '-M -o', and we need to detect this. Also, some Intel
  12338. # versions had trouble with output in subdirs.
  12339. am__obj=sub/conftest.${OBJEXT-o}
  12340. am__minus_obj="-o $am__obj"
  12341. case $depmode in
  12342. gcc)
  12343. # This depmode causes a compiler race in universal mode.
  12344. test "$am__universal" = false || continue
  12345. ;;
  12346. nosideeffect)
  12347. # After this tag, mechanisms are not by side-effect, so they'll
  12348. # only be used when explicitly requested.
  12349. if test "x$enable_dependency_tracking" = xyes; then
  12350. continue
  12351. else
  12352. break
  12353. fi
  12354. ;;
  12355. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12356. # This compiler won't grok '-c -o', but also, the minuso test has
  12357. # not run yet. These depmodes are late enough in the game, and
  12358. # so weak that their functioning should not be impacted.
  12359. am__obj=conftest.${OBJEXT-o}
  12360. am__minus_obj=
  12361. ;;
  12362. none) break ;;
  12363. esac
  12364. if depmode=$depmode \
  12365. source=sub/conftest.c object=$am__obj \
  12366. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12367. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12368. >/dev/null 2>conftest.err &&
  12369. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12370. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12371. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12372. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12373. # icc doesn't choke on unknown options, it will just issue warnings
  12374. # or remarks (even with -Werror). So we grep stderr for any message
  12375. # that says an option was ignored or not supported.
  12376. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12377. # icc: Command line warning: ignoring option '-M'; no argument required
  12378. # The diagnosis changed in icc 8.0:
  12379. # icc: Command line remark: option '-MP' not supported
  12380. if (grep 'ignoring option' conftest.err ||
  12381. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12382. am_cv_CXX_dependencies_compiler_type=$depmode
  12383. break
  12384. fi
  12385. fi
  12386. done
  12387. cd ..
  12388. rm -rf conftest.dir
  12389. else
  12390. am_cv_CXX_dependencies_compiler_type=none
  12391. fi
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12394. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12395. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12396. if
  12397. test "x$enable_dependency_tracking" != xno \
  12398. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12399. am__fastdepCXX_TRUE=
  12400. am__fastdepCXX_FALSE='#'
  12401. else
  12402. am__fastdepCXX_TRUE='#'
  12403. am__fastdepCXX_FALSE=
  12404. fi
  12405. func_stripname_cnf ()
  12406. {
  12407. case $2 in
  12408. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12409. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12410. esac
  12411. } # func_stripname_cnf
  12412. if test -n "$CXX" && ( test no != "$CXX" &&
  12413. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12414. (test g++ != "$CXX"))); then
  12415. ac_ext=cpp
  12416. ac_cpp='$CXXCPP $CPPFLAGS'
  12417. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12418. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12419. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12421. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12422. if test -z "$CXXCPP"; then
  12423. if ${ac_cv_prog_CXXCPP+:} false; then :
  12424. $as_echo_n "(cached) " >&6
  12425. else
  12426. # Double quotes because CXXCPP needs to be expanded
  12427. for CXXCPP in "$CXX -E" "/lib/cpp"
  12428. do
  12429. ac_preproc_ok=false
  12430. for ac_cxx_preproc_warn_flag in '' yes
  12431. do
  12432. # Use a header file that comes with gcc, so configuring glibc
  12433. # with a fresh cross-compiler works.
  12434. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12435. # <limits.h> exists even on freestanding compilers.
  12436. # On the NeXT, cc -E runs the code through the compiler's parser,
  12437. # not just through cpp. "Syntax error" is here to catch this case.
  12438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12439. /* end confdefs.h. */
  12440. #ifdef __STDC__
  12441. # include <limits.h>
  12442. #else
  12443. # include <assert.h>
  12444. #endif
  12445. Syntax error
  12446. _ACEOF
  12447. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12448. else
  12449. # Broken: fails on valid input.
  12450. continue
  12451. fi
  12452. rm -f conftest.err conftest.i conftest.$ac_ext
  12453. # OK, works on sane cases. Now check whether nonexistent headers
  12454. # can be detected and how.
  12455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12456. /* end confdefs.h. */
  12457. #include <ac_nonexistent.h>
  12458. _ACEOF
  12459. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12460. # Broken: success on invalid input.
  12461. continue
  12462. else
  12463. # Passes both tests.
  12464. ac_preproc_ok=:
  12465. break
  12466. fi
  12467. rm -f conftest.err conftest.i conftest.$ac_ext
  12468. done
  12469. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12470. rm -f conftest.i conftest.err conftest.$ac_ext
  12471. if $ac_preproc_ok; then :
  12472. break
  12473. fi
  12474. done
  12475. ac_cv_prog_CXXCPP=$CXXCPP
  12476. fi
  12477. CXXCPP=$ac_cv_prog_CXXCPP
  12478. else
  12479. ac_cv_prog_CXXCPP=$CXXCPP
  12480. fi
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12482. $as_echo "$CXXCPP" >&6; }
  12483. ac_preproc_ok=false
  12484. for ac_cxx_preproc_warn_flag in '' yes
  12485. do
  12486. # Use a header file that comes with gcc, so configuring glibc
  12487. # with a fresh cross-compiler works.
  12488. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12489. # <limits.h> exists even on freestanding compilers.
  12490. # On the NeXT, cc -E runs the code through the compiler's parser,
  12491. # not just through cpp. "Syntax error" is here to catch this case.
  12492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12493. /* end confdefs.h. */
  12494. #ifdef __STDC__
  12495. # include <limits.h>
  12496. #else
  12497. # include <assert.h>
  12498. #endif
  12499. Syntax error
  12500. _ACEOF
  12501. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12502. else
  12503. # Broken: fails on valid input.
  12504. continue
  12505. fi
  12506. rm -f conftest.err conftest.i conftest.$ac_ext
  12507. # OK, works on sane cases. Now check whether nonexistent headers
  12508. # can be detected and how.
  12509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12510. /* end confdefs.h. */
  12511. #include <ac_nonexistent.h>
  12512. _ACEOF
  12513. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12514. # Broken: success on invalid input.
  12515. continue
  12516. else
  12517. # Passes both tests.
  12518. ac_preproc_ok=:
  12519. break
  12520. fi
  12521. rm -f conftest.err conftest.i conftest.$ac_ext
  12522. done
  12523. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12524. rm -f conftest.i conftest.err conftest.$ac_ext
  12525. if $ac_preproc_ok; then :
  12526. else
  12527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12529. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12530. See \`config.log' for more details" "$LINENO" 5; }
  12531. fi
  12532. ac_ext=c
  12533. ac_cpp='$CPP $CPPFLAGS'
  12534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12537. else
  12538. _lt_caught_CXX_error=yes
  12539. fi
  12540. ac_ext=cpp
  12541. ac_cpp='$CXXCPP $CPPFLAGS'
  12542. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12543. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12544. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12545. archive_cmds_need_lc_CXX=no
  12546. allow_undefined_flag_CXX=
  12547. always_export_symbols_CXX=no
  12548. archive_expsym_cmds_CXX=
  12549. compiler_needs_object_CXX=no
  12550. export_dynamic_flag_spec_CXX=
  12551. hardcode_direct_CXX=no
  12552. hardcode_direct_absolute_CXX=no
  12553. hardcode_libdir_flag_spec_CXX=
  12554. hardcode_libdir_separator_CXX=
  12555. hardcode_minus_L_CXX=no
  12556. hardcode_shlibpath_var_CXX=unsupported
  12557. hardcode_automatic_CXX=no
  12558. inherit_rpath_CXX=no
  12559. module_cmds_CXX=
  12560. module_expsym_cmds_CXX=
  12561. link_all_deplibs_CXX=unknown
  12562. old_archive_cmds_CXX=$old_archive_cmds
  12563. reload_flag_CXX=$reload_flag
  12564. reload_cmds_CXX=$reload_cmds
  12565. no_undefined_flag_CXX=
  12566. whole_archive_flag_spec_CXX=
  12567. enable_shared_with_static_runtimes_CXX=no
  12568. # Source file extension for C++ test sources.
  12569. ac_ext=cpp
  12570. # Object file extension for compiled C++ test sources.
  12571. objext=o
  12572. objext_CXX=$objext
  12573. # No sense in running all these tests if we already determined that
  12574. # the CXX compiler isn't working. Some variables (like enable_shared)
  12575. # are currently assumed to apply to all compilers on this platform,
  12576. # and will be corrupted by setting them based on a non-working compiler.
  12577. if test yes != "$_lt_caught_CXX_error"; then
  12578. # Code to be used in simple compile tests
  12579. lt_simple_compile_test_code="int some_variable = 0;"
  12580. # Code to be used in simple link tests
  12581. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12582. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12583. # If no C compiler was specified, use CC.
  12584. LTCC=${LTCC-"$CC"}
  12585. # If no C compiler flags were specified, use CFLAGS.
  12586. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12587. # Allow CC to be a program name with arguments.
  12588. compiler=$CC
  12589. # save warnings/boilerplate of simple test code
  12590. ac_outfile=conftest.$ac_objext
  12591. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12592. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12593. _lt_compiler_boilerplate=`cat conftest.err`
  12594. $RM conftest*
  12595. ac_outfile=conftest.$ac_objext
  12596. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12597. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12598. _lt_linker_boilerplate=`cat conftest.err`
  12599. $RM -r conftest*
  12600. # Allow CC to be a program name with arguments.
  12601. lt_save_CC=$CC
  12602. lt_save_CFLAGS=$CFLAGS
  12603. lt_save_LD=$LD
  12604. lt_save_GCC=$GCC
  12605. GCC=$GXX
  12606. lt_save_with_gnu_ld=$with_gnu_ld
  12607. lt_save_path_LD=$lt_cv_path_LD
  12608. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12609. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12610. else
  12611. $as_unset lt_cv_prog_gnu_ld
  12612. fi
  12613. if test -n "${lt_cv_path_LDCXX+set}"; then
  12614. lt_cv_path_LD=$lt_cv_path_LDCXX
  12615. else
  12616. $as_unset lt_cv_path_LD
  12617. fi
  12618. test -z "${LDCXX+set}" || LD=$LDCXX
  12619. CC=${CXX-"c++"}
  12620. CFLAGS=$CXXFLAGS
  12621. compiler=$CC
  12622. compiler_CXX=$CC
  12623. func_cc_basename $compiler
  12624. cc_basename=$func_cc_basename_result
  12625. if test -n "$compiler"; then
  12626. # We don't want -fno-exception when compiling C++ code, so set the
  12627. # no_builtin_flag separately
  12628. if test yes = "$GXX"; then
  12629. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12630. else
  12631. lt_prog_compiler_no_builtin_flag_CXX=
  12632. fi
  12633. if test yes = "$GXX"; then
  12634. # Set up default GNU C++ configuration
  12635. # Check whether --with-gnu-ld was given.
  12636. if test "${with_gnu_ld+set}" = set; then :
  12637. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12638. else
  12639. with_gnu_ld=no
  12640. fi
  12641. ac_prog=ld
  12642. if test yes = "$GCC"; then
  12643. # Check if gcc -print-prog-name=ld gives a path.
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12645. $as_echo_n "checking for ld used by $CC... " >&6; }
  12646. case $host in
  12647. *-*-mingw*)
  12648. # gcc leaves a trailing carriage return, which upsets mingw
  12649. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12650. *)
  12651. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12652. esac
  12653. case $ac_prog in
  12654. # Accept absolute paths.
  12655. [\\/]* | ?:[\\/]*)
  12656. re_direlt='/[^/][^/]*/\.\./'
  12657. # Canonicalize the pathname of ld
  12658. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12659. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12660. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12661. done
  12662. test -z "$LD" && LD=$ac_prog
  12663. ;;
  12664. "")
  12665. # If it fails, then pretend we aren't using GCC.
  12666. ac_prog=ld
  12667. ;;
  12668. *)
  12669. # If it is relative, then search for the first ld in PATH.
  12670. with_gnu_ld=unknown
  12671. ;;
  12672. esac
  12673. elif test yes = "$with_gnu_ld"; then
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12675. $as_echo_n "checking for GNU ld... " >&6; }
  12676. else
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12678. $as_echo_n "checking for non-GNU ld... " >&6; }
  12679. fi
  12680. if ${lt_cv_path_LD+:} false; then :
  12681. $as_echo_n "(cached) " >&6
  12682. else
  12683. if test -z "$LD"; then
  12684. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12685. for ac_dir in $PATH; do
  12686. IFS=$lt_save_ifs
  12687. test -z "$ac_dir" && ac_dir=.
  12688. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12689. lt_cv_path_LD=$ac_dir/$ac_prog
  12690. # Check to see if the program is GNU ld. I'd rather use --version,
  12691. # but apparently some variants of GNU ld only accept -v.
  12692. # Break only if it was the GNU/non-GNU ld that we prefer.
  12693. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12694. *GNU* | *'with BFD'*)
  12695. test no != "$with_gnu_ld" && break
  12696. ;;
  12697. *)
  12698. test yes != "$with_gnu_ld" && break
  12699. ;;
  12700. esac
  12701. fi
  12702. done
  12703. IFS=$lt_save_ifs
  12704. else
  12705. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12706. fi
  12707. fi
  12708. LD=$lt_cv_path_LD
  12709. if test -n "$LD"; then
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12711. $as_echo "$LD" >&6; }
  12712. else
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12714. $as_echo "no" >&6; }
  12715. fi
  12716. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12718. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12719. if ${lt_cv_prog_gnu_ld+:} false; then :
  12720. $as_echo_n "(cached) " >&6
  12721. else
  12722. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12723. case `$LD -v 2>&1 </dev/null` in
  12724. *GNU* | *'with BFD'*)
  12725. lt_cv_prog_gnu_ld=yes
  12726. ;;
  12727. *)
  12728. lt_cv_prog_gnu_ld=no
  12729. ;;
  12730. esac
  12731. fi
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12733. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12734. with_gnu_ld=$lt_cv_prog_gnu_ld
  12735. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12736. # archiving commands below assume that GNU ld is being used.
  12737. if test yes = "$with_gnu_ld"; then
  12738. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12739. 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'
  12740. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12741. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12742. # If archive_cmds runs LD, not CC, wlarc should be empty
  12743. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12744. # investigate it a little bit more. (MM)
  12745. wlarc='$wl'
  12746. # ancient GNU ld didn't support --whole-archive et. al.
  12747. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12748. $GREP 'no-whole-archive' > /dev/null; then
  12749. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12750. else
  12751. whole_archive_flag_spec_CXX=
  12752. fi
  12753. else
  12754. with_gnu_ld=no
  12755. wlarc=
  12756. # A generic and very simple default shared library creation
  12757. # command for GNU C++ for the case where it uses the native
  12758. # linker, instead of GNU ld. If possible, this setting should
  12759. # overridden to take advantage of the native linker features on
  12760. # the platform it is being used on.
  12761. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12762. fi
  12763. # Commands to make compiler produce verbose output that lists
  12764. # what "hidden" libraries, object files and flags are used when
  12765. # linking a shared library.
  12766. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12767. else
  12768. GXX=no
  12769. with_gnu_ld=no
  12770. wlarc=
  12771. fi
  12772. # PORTME: fill in a description of your system's C++ link characteristics
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12774. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12775. ld_shlibs_CXX=yes
  12776. case $host_os in
  12777. aix3*)
  12778. # FIXME: insert proper C++ library support
  12779. ld_shlibs_CXX=no
  12780. ;;
  12781. aix[4-9]*)
  12782. if test ia64 = "$host_cpu"; then
  12783. # On IA64, the linker does run time linking by default, so we don't
  12784. # have to do anything special.
  12785. aix_use_runtimelinking=no
  12786. exp_sym_flag='-Bexport'
  12787. no_entry_flag=
  12788. else
  12789. aix_use_runtimelinking=no
  12790. # Test if we are trying to use run time linking or normal
  12791. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12792. # have runtime linking enabled, and use it for executables.
  12793. # For shared libraries, we enable/disable runtime linking
  12794. # depending on the kind of the shared library created -
  12795. # when "with_aix_soname,aix_use_runtimelinking" is:
  12796. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12797. # "aix,yes" lib.so shared, rtl:yes, for executables
  12798. # lib.a static archive
  12799. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12800. # lib.a(lib.so.V) shared, rtl:no, for executables
  12801. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12802. # lib.a(lib.so.V) shared, rtl:no
  12803. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12804. # lib.a static archive
  12805. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12806. for ld_flag in $LDFLAGS; do
  12807. case $ld_flag in
  12808. *-brtl*)
  12809. aix_use_runtimelinking=yes
  12810. break
  12811. ;;
  12812. esac
  12813. done
  12814. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12815. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12816. # so we don't have lib.a shared libs to link our executables.
  12817. # We have to force runtime linking in this case.
  12818. aix_use_runtimelinking=yes
  12819. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12820. fi
  12821. ;;
  12822. esac
  12823. exp_sym_flag='-bexport'
  12824. no_entry_flag='-bnoentry'
  12825. fi
  12826. # When large executables or shared objects are built, AIX ld can
  12827. # have problems creating the table of contents. If linking a library
  12828. # or program results in "error TOC overflow" add -mminimal-toc to
  12829. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12830. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12831. archive_cmds_CXX=''
  12832. hardcode_direct_CXX=yes
  12833. hardcode_direct_absolute_CXX=yes
  12834. hardcode_libdir_separator_CXX=':'
  12835. link_all_deplibs_CXX=yes
  12836. file_list_spec_CXX='$wl-f,'
  12837. case $with_aix_soname,$aix_use_runtimelinking in
  12838. aix,*) ;; # no import file
  12839. svr4,* | *,yes) # use import file
  12840. # The Import File defines what to hardcode.
  12841. hardcode_direct_CXX=no
  12842. hardcode_direct_absolute_CXX=no
  12843. ;;
  12844. esac
  12845. if test yes = "$GXX"; then
  12846. case $host_os in aix4.[012]|aix4.[012].*)
  12847. # We only want to do this on AIX 4.2 and lower, the check
  12848. # below for broken collect2 doesn't work under 4.3+
  12849. collect2name=`$CC -print-prog-name=collect2`
  12850. if test -f "$collect2name" &&
  12851. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12852. then
  12853. # We have reworked collect2
  12854. :
  12855. else
  12856. # We have old collect2
  12857. hardcode_direct_CXX=unsupported
  12858. # It fails to find uninstalled libraries when the uninstalled
  12859. # path is not listed in the libpath. Setting hardcode_minus_L
  12860. # to unsupported forces relinking
  12861. hardcode_minus_L_CXX=yes
  12862. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12863. hardcode_libdir_separator_CXX=
  12864. fi
  12865. esac
  12866. shared_flag='-shared'
  12867. if test yes = "$aix_use_runtimelinking"; then
  12868. shared_flag=$shared_flag' $wl-G'
  12869. fi
  12870. # Need to ensure runtime linking is disabled for the traditional
  12871. # shared library, or the linker may eventually find shared libraries
  12872. # /with/ Import File - we do not want to mix them.
  12873. shared_flag_aix='-shared'
  12874. shared_flag_svr4='-shared $wl-G'
  12875. else
  12876. # not using gcc
  12877. if test ia64 = "$host_cpu"; then
  12878. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12879. # chokes on -Wl,-G. The following line is correct:
  12880. shared_flag='-G'
  12881. else
  12882. if test yes = "$aix_use_runtimelinking"; then
  12883. shared_flag='$wl-G'
  12884. else
  12885. shared_flag='$wl-bM:SRE'
  12886. fi
  12887. shared_flag_aix='$wl-bM:SRE'
  12888. shared_flag_svr4='$wl-G'
  12889. fi
  12890. fi
  12891. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12892. # It seems that -bexpall does not export symbols beginning with
  12893. # underscore (_), so it is better to generate a list of symbols to
  12894. # export.
  12895. always_export_symbols_CXX=yes
  12896. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12897. # Warning - without using the other runtime loading flags (-brtl),
  12898. # -berok will link without error, but may produce a broken library.
  12899. # The "-G" linker flag allows undefined symbols.
  12900. no_undefined_flag_CXX='-bernotok'
  12901. # Determine the default libpath from the value encoded in an empty
  12902. # executable.
  12903. if test set = "${lt_cv_aix_libpath+set}"; then
  12904. aix_libpath=$lt_cv_aix_libpath
  12905. else
  12906. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12907. $as_echo_n "(cached) " >&6
  12908. else
  12909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12910. /* end confdefs.h. */
  12911. int
  12912. main ()
  12913. {
  12914. ;
  12915. return 0;
  12916. }
  12917. _ACEOF
  12918. if ac_fn_cxx_try_link "$LINENO"; then :
  12919. lt_aix_libpath_sed='
  12920. /Import File Strings/,/^$/ {
  12921. /^0/ {
  12922. s/^0 *\([^ ]*\) *$/\1/
  12923. p
  12924. }
  12925. }'
  12926. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12927. # Check for a 64-bit object if we didn't find anything.
  12928. if test -z "$lt_cv_aix_libpath__CXX"; then
  12929. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12930. fi
  12931. fi
  12932. rm -f core conftest.err conftest.$ac_objext \
  12933. conftest$ac_exeext conftest.$ac_ext
  12934. if test -z "$lt_cv_aix_libpath__CXX"; then
  12935. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12936. fi
  12937. fi
  12938. aix_libpath=$lt_cv_aix_libpath__CXX
  12939. fi
  12940. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12941. 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
  12942. else
  12943. if test ia64 = "$host_cpu"; then
  12944. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12945. allow_undefined_flag_CXX="-z nodefs"
  12946. 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"
  12947. else
  12948. # Determine the default libpath from the value encoded in an
  12949. # empty executable.
  12950. if test set = "${lt_cv_aix_libpath+set}"; then
  12951. aix_libpath=$lt_cv_aix_libpath
  12952. else
  12953. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12954. $as_echo_n "(cached) " >&6
  12955. else
  12956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12957. /* end confdefs.h. */
  12958. int
  12959. main ()
  12960. {
  12961. ;
  12962. return 0;
  12963. }
  12964. _ACEOF
  12965. if ac_fn_cxx_try_link "$LINENO"; then :
  12966. lt_aix_libpath_sed='
  12967. /Import File Strings/,/^$/ {
  12968. /^0/ {
  12969. s/^0 *\([^ ]*\) *$/\1/
  12970. p
  12971. }
  12972. }'
  12973. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12974. # Check for a 64-bit object if we didn't find anything.
  12975. if test -z "$lt_cv_aix_libpath__CXX"; then
  12976. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12977. fi
  12978. fi
  12979. rm -f core conftest.err conftest.$ac_objext \
  12980. conftest$ac_exeext conftest.$ac_ext
  12981. if test -z "$lt_cv_aix_libpath__CXX"; then
  12982. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12983. fi
  12984. fi
  12985. aix_libpath=$lt_cv_aix_libpath__CXX
  12986. fi
  12987. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12988. # Warning - without using the other run time loading flags,
  12989. # -berok will link without error, but may produce a broken library.
  12990. no_undefined_flag_CXX=' $wl-bernotok'
  12991. allow_undefined_flag_CXX=' $wl-berok'
  12992. if test yes = "$with_gnu_ld"; then
  12993. # We only use this code for GNU lds that support --whole-archive.
  12994. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12995. else
  12996. # Exported symbols can be pulled into shared objects from archives
  12997. whole_archive_flag_spec_CXX='$convenience'
  12998. fi
  12999. archive_cmds_need_lc_CXX=yes
  13000. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13001. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13002. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13003. if test svr4 != "$with_aix_soname"; then
  13004. # This is similar to how AIX traditionally builds its shared
  13005. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13006. 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'
  13007. fi
  13008. if test aix != "$with_aix_soname"; then
  13009. 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'
  13010. else
  13011. # used by -dlpreopen to get the symbols
  13012. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13013. fi
  13014. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13015. fi
  13016. fi
  13017. ;;
  13018. beos*)
  13019. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13020. allow_undefined_flag_CXX=unsupported
  13021. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13022. # support --undefined. This deserves some investigation. FIXME
  13023. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13024. else
  13025. ld_shlibs_CXX=no
  13026. fi
  13027. ;;
  13028. chorus*)
  13029. case $cc_basename in
  13030. *)
  13031. # FIXME: insert proper C++ library support
  13032. ld_shlibs_CXX=no
  13033. ;;
  13034. esac
  13035. ;;
  13036. cygwin* | mingw* | pw32* | cegcc*)
  13037. case $GXX,$cc_basename in
  13038. ,cl* | no,cl*)
  13039. # Native MSVC
  13040. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13041. # no search path for DLLs.
  13042. hardcode_libdir_flag_spec_CXX=' '
  13043. allow_undefined_flag_CXX=unsupported
  13044. always_export_symbols_CXX=yes
  13045. file_list_spec_CXX='@'
  13046. # Tell ltmain to make .lib files, not .a files.
  13047. libext=lib
  13048. # Tell ltmain to make .dll files, not .so files.
  13049. shrext_cmds=.dll
  13050. # FIXME: Setting linknames here is a bad hack.
  13051. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13052. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13053. cp "$export_symbols" "$output_objdir/$soname.def";
  13054. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13055. else
  13056. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13057. fi~
  13058. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13059. linknames='
  13060. # The linker will not automatically build a static lib if we build a DLL.
  13061. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13062. enable_shared_with_static_runtimes_CXX=yes
  13063. # Don't use ranlib
  13064. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13065. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13066. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13067. case $lt_outputfile in
  13068. *.exe|*.EXE) ;;
  13069. *)
  13070. lt_outputfile=$lt_outputfile.exe
  13071. lt_tool_outputfile=$lt_tool_outputfile.exe
  13072. ;;
  13073. esac~
  13074. func_to_tool_file "$lt_outputfile"~
  13075. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13076. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13077. $RM "$lt_outputfile.manifest";
  13078. fi'
  13079. ;;
  13080. *)
  13081. # g++
  13082. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13083. # as there is no search path for DLLs.
  13084. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13085. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13086. allow_undefined_flag_CXX=unsupported
  13087. always_export_symbols_CXX=no
  13088. enable_shared_with_static_runtimes_CXX=yes
  13089. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13090. 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'
  13091. # If the export-symbols file already is a .def file, use it as
  13092. # is; otherwise, prepend EXPORTS...
  13093. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13094. cp $export_symbols $output_objdir/$soname.def;
  13095. else
  13096. echo EXPORTS > $output_objdir/$soname.def;
  13097. cat $export_symbols >> $output_objdir/$soname.def;
  13098. fi~
  13099. $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'
  13100. else
  13101. ld_shlibs_CXX=no
  13102. fi
  13103. ;;
  13104. esac
  13105. ;;
  13106. darwin* | rhapsody*)
  13107. archive_cmds_need_lc_CXX=no
  13108. hardcode_direct_CXX=no
  13109. hardcode_automatic_CXX=yes
  13110. hardcode_shlibpath_var_CXX=unsupported
  13111. if test yes = "$lt_cv_ld_force_load"; then
  13112. 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\"`'
  13113. else
  13114. whole_archive_flag_spec_CXX=''
  13115. fi
  13116. link_all_deplibs_CXX=yes
  13117. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13118. case $cc_basename in
  13119. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13120. *) _lt_dar_can_shared=$GCC ;;
  13121. esac
  13122. if test yes = "$_lt_dar_can_shared"; then
  13123. output_verbose_link_cmd=func_echo_all
  13124. 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"
  13125. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13126. 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"
  13127. 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"
  13128. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13129. 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"
  13130. 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"
  13131. fi
  13132. else
  13133. ld_shlibs_CXX=no
  13134. fi
  13135. ;;
  13136. os2*)
  13137. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13138. hardcode_minus_L_CXX=yes
  13139. allow_undefined_flag_CXX=unsupported
  13140. shrext_cmds=.dll
  13141. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13142. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13143. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13144. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13145. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13146. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13147. emximp -o $lib $output_objdir/$libname.def'
  13148. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13149. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13150. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13151. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13152. prefix_cmds="$SED"~
  13153. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13154. prefix_cmds="$prefix_cmds -e 1d";
  13155. fi~
  13156. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13157. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13158. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13159. emximp -o $lib $output_objdir/$libname.def'
  13160. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13161. enable_shared_with_static_runtimes_CXX=yes
  13162. ;;
  13163. dgux*)
  13164. case $cc_basename in
  13165. ec++*)
  13166. # FIXME: insert proper C++ library support
  13167. ld_shlibs_CXX=no
  13168. ;;
  13169. ghcx*)
  13170. # Green Hills C++ Compiler
  13171. # FIXME: insert proper C++ library support
  13172. ld_shlibs_CXX=no
  13173. ;;
  13174. *)
  13175. # FIXME: insert proper C++ library support
  13176. ld_shlibs_CXX=no
  13177. ;;
  13178. esac
  13179. ;;
  13180. freebsd2.*)
  13181. # C++ shared libraries reported to be fairly broken before
  13182. # switch to ELF
  13183. ld_shlibs_CXX=no
  13184. ;;
  13185. freebsd-elf*)
  13186. archive_cmds_need_lc_CXX=no
  13187. ;;
  13188. freebsd* | dragonfly*)
  13189. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13190. # conventions
  13191. ld_shlibs_CXX=yes
  13192. ;;
  13193. haiku*)
  13194. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13195. link_all_deplibs_CXX=yes
  13196. ;;
  13197. hpux9*)
  13198. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13199. hardcode_libdir_separator_CXX=:
  13200. export_dynamic_flag_spec_CXX='$wl-E'
  13201. hardcode_direct_CXX=yes
  13202. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13203. # but as the default
  13204. # location of the library.
  13205. case $cc_basename in
  13206. CC*)
  13207. # FIXME: insert proper C++ library support
  13208. ld_shlibs_CXX=no
  13209. ;;
  13210. aCC*)
  13211. 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'
  13212. # Commands to make compiler produce verbose output that lists
  13213. # what "hidden" libraries, object files and flags are used when
  13214. # linking a shared library.
  13215. #
  13216. # There doesn't appear to be a way to prevent this compiler from
  13217. # explicitly linking system object files so we need to strip them
  13218. # from the output so that they don't get included in the library
  13219. # dependencies.
  13220. 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"'
  13221. ;;
  13222. *)
  13223. if test yes = "$GXX"; then
  13224. 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'
  13225. else
  13226. # FIXME: insert proper C++ library support
  13227. ld_shlibs_CXX=no
  13228. fi
  13229. ;;
  13230. esac
  13231. ;;
  13232. hpux10*|hpux11*)
  13233. if test no = "$with_gnu_ld"; then
  13234. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13235. hardcode_libdir_separator_CXX=:
  13236. case $host_cpu in
  13237. hppa*64*|ia64*)
  13238. ;;
  13239. *)
  13240. export_dynamic_flag_spec_CXX='$wl-E'
  13241. ;;
  13242. esac
  13243. fi
  13244. case $host_cpu in
  13245. hppa*64*|ia64*)
  13246. hardcode_direct_CXX=no
  13247. hardcode_shlibpath_var_CXX=no
  13248. ;;
  13249. *)
  13250. hardcode_direct_CXX=yes
  13251. hardcode_direct_absolute_CXX=yes
  13252. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13253. # but as the default
  13254. # location of the library.
  13255. ;;
  13256. esac
  13257. case $cc_basename in
  13258. CC*)
  13259. # FIXME: insert proper C++ library support
  13260. ld_shlibs_CXX=no
  13261. ;;
  13262. aCC*)
  13263. case $host_cpu in
  13264. hppa*64*)
  13265. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13266. ;;
  13267. ia64*)
  13268. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13269. ;;
  13270. *)
  13271. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13272. ;;
  13273. esac
  13274. # Commands to make compiler produce verbose output that lists
  13275. # what "hidden" libraries, object files and flags are used when
  13276. # linking a shared library.
  13277. #
  13278. # There doesn't appear to be a way to prevent this compiler from
  13279. # explicitly linking system object files so we need to strip them
  13280. # from the output so that they don't get included in the library
  13281. # dependencies.
  13282. 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"'
  13283. ;;
  13284. *)
  13285. if test yes = "$GXX"; then
  13286. if test no = "$with_gnu_ld"; then
  13287. case $host_cpu in
  13288. hppa*64*)
  13289. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13290. ;;
  13291. ia64*)
  13292. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13293. ;;
  13294. *)
  13295. 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'
  13296. ;;
  13297. esac
  13298. fi
  13299. else
  13300. # FIXME: insert proper C++ library support
  13301. ld_shlibs_CXX=no
  13302. fi
  13303. ;;
  13304. esac
  13305. ;;
  13306. interix[3-9]*)
  13307. hardcode_direct_CXX=no
  13308. hardcode_shlibpath_var_CXX=no
  13309. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13310. export_dynamic_flag_spec_CXX='$wl-E'
  13311. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13312. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13313. # default) and relocated if they conflict, which is a slow very memory
  13314. # consuming and fragmenting process. To avoid this, we pick a random,
  13315. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13316. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13317. 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'
  13318. 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'
  13319. ;;
  13320. irix5* | irix6*)
  13321. case $cc_basename in
  13322. CC*)
  13323. # SGI C++
  13324. 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'
  13325. # Archives containing C++ object files must be created using
  13326. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13327. # necessary to make sure instantiated templates are included
  13328. # in the archive.
  13329. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13330. ;;
  13331. *)
  13332. if test yes = "$GXX"; then
  13333. if test no = "$with_gnu_ld"; then
  13334. 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'
  13335. else
  13336. 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'
  13337. fi
  13338. fi
  13339. link_all_deplibs_CXX=yes
  13340. ;;
  13341. esac
  13342. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13343. hardcode_libdir_separator_CXX=:
  13344. inherit_rpath_CXX=yes
  13345. ;;
  13346. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13347. case $cc_basename in
  13348. KCC*)
  13349. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13350. # KCC will only create a shared library if the output file
  13351. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13352. # to its proper name (with version) after linking.
  13353. 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'
  13354. 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'
  13355. # Commands to make compiler produce verbose output that lists
  13356. # what "hidden" libraries, object files and flags are used when
  13357. # linking a shared library.
  13358. #
  13359. # There doesn't appear to be a way to prevent this compiler from
  13360. # explicitly linking system object files so we need to strip them
  13361. # from the output so that they don't get included in the library
  13362. # dependencies.
  13363. 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"'
  13364. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13365. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13366. # Archives containing C++ object files must be created using
  13367. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13368. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13369. ;;
  13370. icpc* | ecpc* )
  13371. # Intel C++
  13372. with_gnu_ld=yes
  13373. # version 8.0 and above of icpc choke on multiply defined symbols
  13374. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13375. # earlier do not add the objects themselves.
  13376. case `$CC -V 2>&1` in
  13377. *"Version 7."*)
  13378. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13379. 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'
  13380. ;;
  13381. *) # Version 8.0 or newer
  13382. tmp_idyn=
  13383. case $host_cpu in
  13384. ia64*) tmp_idyn=' -i_dynamic';;
  13385. esac
  13386. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13387. 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'
  13388. ;;
  13389. esac
  13390. archive_cmds_need_lc_CXX=no
  13391. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13392. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13393. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13394. ;;
  13395. pgCC* | pgcpp*)
  13396. # Portland Group C++ compiler
  13397. case `$CC -V` in
  13398. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13399. prelink_cmds_CXX='tpldir=Template.dir~
  13400. rm -rf $tpldir~
  13401. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13402. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13403. old_archive_cmds_CXX='tpldir=Template.dir~
  13404. rm -rf $tpldir~
  13405. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13406. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13407. $RANLIB $oldlib'
  13408. archive_cmds_CXX='tpldir=Template.dir~
  13409. rm -rf $tpldir~
  13410. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13411. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13412. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13413. rm -rf $tpldir~
  13414. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13415. $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'
  13416. ;;
  13417. *) # Version 6 and above use weak symbols
  13418. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13419. 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'
  13420. ;;
  13421. esac
  13422. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13423. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13424. 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'
  13425. ;;
  13426. cxx*)
  13427. # Compaq C++
  13428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13429. 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'
  13430. runpath_var=LD_RUN_PATH
  13431. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13432. hardcode_libdir_separator_CXX=:
  13433. # Commands to make compiler produce verbose output that lists
  13434. # what "hidden" libraries, object files and flags are used when
  13435. # linking a shared library.
  13436. #
  13437. # There doesn't appear to be a way to prevent this compiler from
  13438. # explicitly linking system object files so we need to strip them
  13439. # from the output so that they don't get included in the library
  13440. # dependencies.
  13441. 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'
  13442. ;;
  13443. xl* | mpixl* | bgxl*)
  13444. # IBM XL 8.0 on PPC, with GNU ld
  13445. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13446. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13447. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13448. if test yes = "$supports_anon_versioning"; then
  13449. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13450. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13451. echo "local: *; };" >> $output_objdir/$libname.ver~
  13452. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13453. fi
  13454. ;;
  13455. *)
  13456. case `$CC -V 2>&1 | sed 5q` in
  13457. *Sun\ C*)
  13458. # Sun C++ 5.9
  13459. no_undefined_flag_CXX=' -zdefs'
  13460. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13461. 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'
  13462. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13463. 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'
  13464. compiler_needs_object_CXX=yes
  13465. # Not sure whether something based on
  13466. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13467. # would be better.
  13468. output_verbose_link_cmd='func_echo_all'
  13469. # Archives containing C++ object files must be created using
  13470. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13471. # necessary to make sure instantiated templates are included
  13472. # in the archive.
  13473. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13474. ;;
  13475. esac
  13476. ;;
  13477. esac
  13478. ;;
  13479. lynxos*)
  13480. # FIXME: insert proper C++ library support
  13481. ld_shlibs_CXX=no
  13482. ;;
  13483. m88k*)
  13484. # FIXME: insert proper C++ library support
  13485. ld_shlibs_CXX=no
  13486. ;;
  13487. mvs*)
  13488. case $cc_basename in
  13489. cxx*)
  13490. # FIXME: insert proper C++ library support
  13491. ld_shlibs_CXX=no
  13492. ;;
  13493. *)
  13494. # FIXME: insert proper C++ library support
  13495. ld_shlibs_CXX=no
  13496. ;;
  13497. esac
  13498. ;;
  13499. netbsd*)
  13500. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13501. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13502. wlarc=
  13503. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13504. hardcode_direct_CXX=yes
  13505. hardcode_shlibpath_var_CXX=no
  13506. fi
  13507. # Workaround some broken pre-1.5 toolchains
  13508. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13509. ;;
  13510. *nto* | *qnx*)
  13511. ld_shlibs_CXX=yes
  13512. ;;
  13513. openbsd* | bitrig*)
  13514. if test -f /usr/libexec/ld.so; then
  13515. hardcode_direct_CXX=yes
  13516. hardcode_shlibpath_var_CXX=no
  13517. hardcode_direct_absolute_CXX=yes
  13518. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13519. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13520. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13521. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13522. export_dynamic_flag_spec_CXX='$wl-E'
  13523. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13524. fi
  13525. output_verbose_link_cmd=func_echo_all
  13526. else
  13527. ld_shlibs_CXX=no
  13528. fi
  13529. ;;
  13530. osf3* | osf4* | osf5*)
  13531. case $cc_basename in
  13532. KCC*)
  13533. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13534. # KCC will only create a shared library if the output file
  13535. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13536. # to its proper name (with version) after linking.
  13537. 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'
  13538. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13539. hardcode_libdir_separator_CXX=:
  13540. # Archives containing C++ object files must be created using
  13541. # the KAI C++ compiler.
  13542. case $host in
  13543. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13544. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13545. esac
  13546. ;;
  13547. RCC*)
  13548. # Rational C++ 2.4.1
  13549. # FIXME: insert proper C++ library support
  13550. ld_shlibs_CXX=no
  13551. ;;
  13552. cxx*)
  13553. case $host in
  13554. osf3*)
  13555. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13556. 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'
  13557. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13558. ;;
  13559. *)
  13560. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13561. 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'
  13562. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13563. echo "-hidden">> $lib.exp~
  13564. $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~
  13565. $RM $lib.exp'
  13566. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13567. ;;
  13568. esac
  13569. hardcode_libdir_separator_CXX=:
  13570. # Commands to make compiler produce verbose output that lists
  13571. # what "hidden" libraries, object files and flags are used when
  13572. # linking a shared library.
  13573. #
  13574. # There doesn't appear to be a way to prevent this compiler from
  13575. # explicitly linking system object files so we need to strip them
  13576. # from the output so that they don't get included in the library
  13577. # dependencies.
  13578. 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"'
  13579. ;;
  13580. *)
  13581. if test yes,no = "$GXX,$with_gnu_ld"; then
  13582. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13583. case $host in
  13584. osf3*)
  13585. 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'
  13586. ;;
  13587. *)
  13588. 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'
  13589. ;;
  13590. esac
  13591. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13592. hardcode_libdir_separator_CXX=:
  13593. # Commands to make compiler produce verbose output that lists
  13594. # what "hidden" libraries, object files and flags are used when
  13595. # linking a shared library.
  13596. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13597. else
  13598. # FIXME: insert proper C++ library support
  13599. ld_shlibs_CXX=no
  13600. fi
  13601. ;;
  13602. esac
  13603. ;;
  13604. psos*)
  13605. # FIXME: insert proper C++ library support
  13606. ld_shlibs_CXX=no
  13607. ;;
  13608. sunos4*)
  13609. case $cc_basename in
  13610. CC*)
  13611. # Sun C++ 4.x
  13612. # FIXME: insert proper C++ library support
  13613. ld_shlibs_CXX=no
  13614. ;;
  13615. lcc*)
  13616. # Lucid
  13617. # FIXME: insert proper C++ library support
  13618. ld_shlibs_CXX=no
  13619. ;;
  13620. *)
  13621. # FIXME: insert proper C++ library support
  13622. ld_shlibs_CXX=no
  13623. ;;
  13624. esac
  13625. ;;
  13626. solaris*)
  13627. case $cc_basename in
  13628. CC* | sunCC*)
  13629. # Sun C++ 4.2, 5.x and Centerline C++
  13630. archive_cmds_need_lc_CXX=yes
  13631. no_undefined_flag_CXX=' -zdefs'
  13632. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13633. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13634. $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'
  13635. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13636. hardcode_shlibpath_var_CXX=no
  13637. case $host_os in
  13638. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13639. *)
  13640. # The compiler driver will combine and reorder linker options,
  13641. # but understands '-z linker_flag'.
  13642. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13643. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13644. ;;
  13645. esac
  13646. link_all_deplibs_CXX=yes
  13647. output_verbose_link_cmd='func_echo_all'
  13648. # Archives containing C++ object files must be created using
  13649. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13650. # necessary to make sure instantiated templates are included
  13651. # in the archive.
  13652. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13653. ;;
  13654. gcx*)
  13655. # Green Hills C++ Compiler
  13656. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13657. # The C++ compiler must be used to create the archive.
  13658. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13659. ;;
  13660. *)
  13661. # GNU C++ compiler with Solaris linker
  13662. if test yes,no = "$GXX,$with_gnu_ld"; then
  13663. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13664. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13665. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13666. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13667. $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'
  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. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13674. # platform.
  13675. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13676. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13677. $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'
  13678. # Commands to make compiler produce verbose output that lists
  13679. # what "hidden" libraries, object files and flags are used when
  13680. # linking a shared library.
  13681. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13682. fi
  13683. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13684. case $host_os in
  13685. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13686. *)
  13687. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13688. ;;
  13689. esac
  13690. fi
  13691. ;;
  13692. esac
  13693. ;;
  13694. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13695. no_undefined_flag_CXX='$wl-z,text'
  13696. archive_cmds_need_lc_CXX=no
  13697. hardcode_shlibpath_var_CXX=no
  13698. runpath_var='LD_RUN_PATH'
  13699. case $cc_basename in
  13700. CC*)
  13701. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13702. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13703. ;;
  13704. *)
  13705. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13706. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13707. ;;
  13708. esac
  13709. ;;
  13710. sysv5* | sco3.2v5* | sco5v6*)
  13711. # Note: We CANNOT use -z defs as we might desire, because we do not
  13712. # link with -lc, and that would cause any symbols used from libc to
  13713. # always be unresolved, which means just about no library would
  13714. # ever link correctly. If we're not using GNU ld we use -z text
  13715. # though, which does catch some bad symbols but isn't as heavy-handed
  13716. # as -z defs.
  13717. no_undefined_flag_CXX='$wl-z,text'
  13718. allow_undefined_flag_CXX='$wl-z,nodefs'
  13719. archive_cmds_need_lc_CXX=no
  13720. hardcode_shlibpath_var_CXX=no
  13721. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13722. hardcode_libdir_separator_CXX=':'
  13723. link_all_deplibs_CXX=yes
  13724. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13725. runpath_var='LD_RUN_PATH'
  13726. case $cc_basename in
  13727. CC*)
  13728. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13729. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13730. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13731. '"$old_archive_cmds_CXX"
  13732. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13733. '"$reload_cmds_CXX"
  13734. ;;
  13735. *)
  13736. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13737. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13738. ;;
  13739. esac
  13740. ;;
  13741. tandem*)
  13742. case $cc_basename in
  13743. NCC*)
  13744. # NonStop-UX NCC 3.20
  13745. # FIXME: insert proper C++ library support
  13746. ld_shlibs_CXX=no
  13747. ;;
  13748. *)
  13749. # FIXME: insert proper C++ library support
  13750. ld_shlibs_CXX=no
  13751. ;;
  13752. esac
  13753. ;;
  13754. vxworks*)
  13755. # FIXME: insert proper C++ library support
  13756. ld_shlibs_CXX=no
  13757. ;;
  13758. *)
  13759. # FIXME: insert proper C++ library support
  13760. ld_shlibs_CXX=no
  13761. ;;
  13762. esac
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13764. $as_echo "$ld_shlibs_CXX" >&6; }
  13765. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13766. GCC_CXX=$GXX
  13767. LD_CXX=$LD
  13768. ## CAVEAT EMPTOR:
  13769. ## There is no encapsulation within the following macros, do not change
  13770. ## the running order or otherwise move them around unless you know exactly
  13771. ## what you are doing...
  13772. # Dependencies to place before and after the object being linked:
  13773. predep_objects_CXX=
  13774. postdep_objects_CXX=
  13775. predeps_CXX=
  13776. postdeps_CXX=
  13777. compiler_lib_search_path_CXX=
  13778. cat > conftest.$ac_ext <<_LT_EOF
  13779. class Foo
  13780. {
  13781. public:
  13782. Foo (void) { a = 0; }
  13783. private:
  13784. int a;
  13785. };
  13786. _LT_EOF
  13787. _lt_libdeps_save_CFLAGS=$CFLAGS
  13788. case "$CC $CFLAGS " in #(
  13789. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13790. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13791. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13792. esac
  13793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13794. (eval $ac_compile) 2>&5
  13795. ac_status=$?
  13796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13797. test $ac_status = 0; }; then
  13798. # Parse the compiler output and extract the necessary
  13799. # objects, libraries and library flags.
  13800. # Sentinel used to keep track of whether or not we are before
  13801. # the conftest object file.
  13802. pre_test_object_deps_done=no
  13803. for p in `eval "$output_verbose_link_cmd"`; do
  13804. case $prev$p in
  13805. -L* | -R* | -l*)
  13806. # Some compilers place space between "-{L,R}" and the path.
  13807. # Remove the space.
  13808. if test x-L = "$p" ||
  13809. test x-R = "$p"; then
  13810. prev=$p
  13811. continue
  13812. fi
  13813. # Expand the sysroot to ease extracting the directories later.
  13814. if test -z "$prev"; then
  13815. case $p in
  13816. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13817. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13818. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13819. esac
  13820. fi
  13821. case $p in
  13822. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13823. esac
  13824. if test no = "$pre_test_object_deps_done"; then
  13825. case $prev in
  13826. -L | -R)
  13827. # Internal compiler library paths should come after those
  13828. # provided the user. The postdeps already come after the
  13829. # user supplied libs so there is no need to process them.
  13830. if test -z "$compiler_lib_search_path_CXX"; then
  13831. compiler_lib_search_path_CXX=$prev$p
  13832. else
  13833. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13834. fi
  13835. ;;
  13836. # The "-l" case would never come before the object being
  13837. # linked, so don't bother handling this case.
  13838. esac
  13839. else
  13840. if test -z "$postdeps_CXX"; then
  13841. postdeps_CXX=$prev$p
  13842. else
  13843. postdeps_CXX="${postdeps_CXX} $prev$p"
  13844. fi
  13845. fi
  13846. prev=
  13847. ;;
  13848. *.lto.$objext) ;; # Ignore GCC LTO objects
  13849. *.$objext)
  13850. # This assumes that the test object file only shows up
  13851. # once in the compiler output.
  13852. if test "$p" = "conftest.$objext"; then
  13853. pre_test_object_deps_done=yes
  13854. continue
  13855. fi
  13856. if test no = "$pre_test_object_deps_done"; then
  13857. if test -z "$predep_objects_CXX"; then
  13858. predep_objects_CXX=$p
  13859. else
  13860. predep_objects_CXX="$predep_objects_CXX $p"
  13861. fi
  13862. else
  13863. if test -z "$postdep_objects_CXX"; then
  13864. postdep_objects_CXX=$p
  13865. else
  13866. postdep_objects_CXX="$postdep_objects_CXX $p"
  13867. fi
  13868. fi
  13869. ;;
  13870. *) ;; # Ignore the rest.
  13871. esac
  13872. done
  13873. # Clean up.
  13874. rm -f a.out a.exe
  13875. else
  13876. echo "libtool.m4: error: problem compiling CXX test program"
  13877. fi
  13878. $RM -f confest.$objext
  13879. CFLAGS=$_lt_libdeps_save_CFLAGS
  13880. # PORTME: override above test on systems where it is broken
  13881. case $host_os in
  13882. interix[3-9]*)
  13883. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13884. # hack all around it, let's just trust "g++" to DTRT.
  13885. predep_objects_CXX=
  13886. postdep_objects_CXX=
  13887. postdeps_CXX=
  13888. ;;
  13889. esac
  13890. case " $postdeps_CXX " in
  13891. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13892. esac
  13893. compiler_lib_search_dirs_CXX=
  13894. if test -n "${compiler_lib_search_path_CXX}"; then
  13895. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13896. fi
  13897. lt_prog_compiler_wl_CXX=
  13898. lt_prog_compiler_pic_CXX=
  13899. lt_prog_compiler_static_CXX=
  13900. # C++ specific cases for pic, static, wl, etc.
  13901. if test yes = "$GXX"; then
  13902. lt_prog_compiler_wl_CXX='-Wl,'
  13903. lt_prog_compiler_static_CXX='-static'
  13904. case $host_os in
  13905. aix*)
  13906. # All AIX code is PIC.
  13907. if test ia64 = "$host_cpu"; then
  13908. # AIX 5 now supports IA64 processor
  13909. lt_prog_compiler_static_CXX='-Bstatic'
  13910. fi
  13911. lt_prog_compiler_pic_CXX='-fPIC'
  13912. ;;
  13913. amigaos*)
  13914. case $host_cpu in
  13915. powerpc)
  13916. # see comment about AmigaOS4 .so support
  13917. lt_prog_compiler_pic_CXX='-fPIC'
  13918. ;;
  13919. m68k)
  13920. # FIXME: we need at least 68020 code to build shared libraries, but
  13921. # adding the '-m68020' flag to GCC prevents building anything better,
  13922. # like '-m68040'.
  13923. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13924. ;;
  13925. esac
  13926. ;;
  13927. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13928. # PIC is the default for these OSes.
  13929. ;;
  13930. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13931. # This hack is so that the source file can tell whether it is being
  13932. # built for inclusion in a dll (and should export symbols for example).
  13933. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13934. # (--disable-auto-import) libraries
  13935. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13936. case $host_os in
  13937. os2*)
  13938. lt_prog_compiler_static_CXX='$wl-static'
  13939. ;;
  13940. esac
  13941. ;;
  13942. darwin* | rhapsody*)
  13943. # PIC is the default on this platform
  13944. # Common symbols not allowed in MH_DYLIB files
  13945. lt_prog_compiler_pic_CXX='-fno-common'
  13946. ;;
  13947. *djgpp*)
  13948. # DJGPP does not support shared libraries at all
  13949. lt_prog_compiler_pic_CXX=
  13950. ;;
  13951. haiku*)
  13952. # PIC is the default for Haiku.
  13953. # The "-static" flag exists, but is broken.
  13954. lt_prog_compiler_static_CXX=
  13955. ;;
  13956. interix[3-9]*)
  13957. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13958. # Instead, we relocate shared libraries at runtime.
  13959. ;;
  13960. sysv4*MP*)
  13961. if test -d /usr/nec; then
  13962. lt_prog_compiler_pic_CXX=-Kconform_pic
  13963. fi
  13964. ;;
  13965. hpux*)
  13966. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13967. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13968. # sets the default TLS model and affects inlining.
  13969. case $host_cpu in
  13970. hppa*64*)
  13971. ;;
  13972. *)
  13973. lt_prog_compiler_pic_CXX='-fPIC'
  13974. ;;
  13975. esac
  13976. ;;
  13977. *qnx* | *nto*)
  13978. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13979. # it will coredump.
  13980. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13981. ;;
  13982. *)
  13983. lt_prog_compiler_pic_CXX='-fPIC'
  13984. ;;
  13985. esac
  13986. else
  13987. case $host_os in
  13988. aix[4-9]*)
  13989. # All AIX code is PIC.
  13990. if test ia64 = "$host_cpu"; then
  13991. # AIX 5 now supports IA64 processor
  13992. lt_prog_compiler_static_CXX='-Bstatic'
  13993. else
  13994. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13995. fi
  13996. ;;
  13997. chorus*)
  13998. case $cc_basename in
  13999. cxch68*)
  14000. # Green Hills C++ Compiler
  14001. # _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"
  14002. ;;
  14003. esac
  14004. ;;
  14005. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14006. # This hack is so that the source file can tell whether it is being
  14007. # built for inclusion in a dll (and should export symbols for example).
  14008. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14009. ;;
  14010. dgux*)
  14011. case $cc_basename in
  14012. ec++*)
  14013. lt_prog_compiler_pic_CXX='-KPIC'
  14014. ;;
  14015. ghcx*)
  14016. # Green Hills C++ Compiler
  14017. lt_prog_compiler_pic_CXX='-pic'
  14018. ;;
  14019. *)
  14020. ;;
  14021. esac
  14022. ;;
  14023. freebsd* | dragonfly*)
  14024. # FreeBSD uses GNU C++
  14025. ;;
  14026. hpux9* | hpux10* | hpux11*)
  14027. case $cc_basename in
  14028. CC*)
  14029. lt_prog_compiler_wl_CXX='-Wl,'
  14030. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14031. if test ia64 != "$host_cpu"; then
  14032. lt_prog_compiler_pic_CXX='+Z'
  14033. fi
  14034. ;;
  14035. aCC*)
  14036. lt_prog_compiler_wl_CXX='-Wl,'
  14037. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14038. case $host_cpu in
  14039. hppa*64*|ia64*)
  14040. # +Z the default
  14041. ;;
  14042. *)
  14043. lt_prog_compiler_pic_CXX='+Z'
  14044. ;;
  14045. esac
  14046. ;;
  14047. *)
  14048. ;;
  14049. esac
  14050. ;;
  14051. interix*)
  14052. # This is c89, which is MS Visual C++ (no shared libs)
  14053. # Anyone wants to do a port?
  14054. ;;
  14055. irix5* | irix6* | nonstopux*)
  14056. case $cc_basename in
  14057. CC*)
  14058. lt_prog_compiler_wl_CXX='-Wl,'
  14059. lt_prog_compiler_static_CXX='-non_shared'
  14060. # CC pic flag -KPIC is the default.
  14061. ;;
  14062. *)
  14063. ;;
  14064. esac
  14065. ;;
  14066. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14067. case $cc_basename in
  14068. KCC*)
  14069. # KAI C++ Compiler
  14070. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14071. lt_prog_compiler_pic_CXX='-fPIC'
  14072. ;;
  14073. ecpc* )
  14074. # old Intel C++ for x86_64, which still supported -KPIC.
  14075. lt_prog_compiler_wl_CXX='-Wl,'
  14076. lt_prog_compiler_pic_CXX='-KPIC'
  14077. lt_prog_compiler_static_CXX='-static'
  14078. ;;
  14079. icpc* )
  14080. # Intel C++, used to be incompatible with GCC.
  14081. # ICC 10 doesn't accept -KPIC any more.
  14082. lt_prog_compiler_wl_CXX='-Wl,'
  14083. lt_prog_compiler_pic_CXX='-fPIC'
  14084. lt_prog_compiler_static_CXX='-static'
  14085. ;;
  14086. pgCC* | pgcpp*)
  14087. # Portland Group C++ compiler
  14088. lt_prog_compiler_wl_CXX='-Wl,'
  14089. lt_prog_compiler_pic_CXX='-fpic'
  14090. lt_prog_compiler_static_CXX='-Bstatic'
  14091. ;;
  14092. cxx*)
  14093. # Compaq C++
  14094. # Make sure the PIC flag is empty. It appears that all Alpha
  14095. # Linux and Compaq Tru64 Unix objects are PIC.
  14096. lt_prog_compiler_pic_CXX=
  14097. lt_prog_compiler_static_CXX='-non_shared'
  14098. ;;
  14099. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14100. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14101. lt_prog_compiler_wl_CXX='-Wl,'
  14102. lt_prog_compiler_pic_CXX='-qpic'
  14103. lt_prog_compiler_static_CXX='-qstaticlink'
  14104. ;;
  14105. *)
  14106. case `$CC -V 2>&1 | sed 5q` in
  14107. *Sun\ C*)
  14108. # Sun C++ 5.9
  14109. lt_prog_compiler_pic_CXX='-KPIC'
  14110. lt_prog_compiler_static_CXX='-Bstatic'
  14111. lt_prog_compiler_wl_CXX='-Qoption ld '
  14112. ;;
  14113. esac
  14114. ;;
  14115. esac
  14116. ;;
  14117. lynxos*)
  14118. ;;
  14119. m88k*)
  14120. ;;
  14121. mvs*)
  14122. case $cc_basename in
  14123. cxx*)
  14124. lt_prog_compiler_pic_CXX='-W c,exportall'
  14125. ;;
  14126. *)
  14127. ;;
  14128. esac
  14129. ;;
  14130. netbsd* | netbsdelf*-gnu)
  14131. ;;
  14132. *qnx* | *nto*)
  14133. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14134. # it will coredump.
  14135. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14136. ;;
  14137. osf3* | osf4* | osf5*)
  14138. case $cc_basename in
  14139. KCC*)
  14140. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14141. ;;
  14142. RCC*)
  14143. # Rational C++ 2.4.1
  14144. lt_prog_compiler_pic_CXX='-pic'
  14145. ;;
  14146. cxx*)
  14147. # Digital/Compaq C++
  14148. lt_prog_compiler_wl_CXX='-Wl,'
  14149. # Make sure the PIC flag is empty. It appears that all Alpha
  14150. # Linux and Compaq Tru64 Unix objects are PIC.
  14151. lt_prog_compiler_pic_CXX=
  14152. lt_prog_compiler_static_CXX='-non_shared'
  14153. ;;
  14154. *)
  14155. ;;
  14156. esac
  14157. ;;
  14158. psos*)
  14159. ;;
  14160. solaris*)
  14161. case $cc_basename in
  14162. CC* | sunCC*)
  14163. # Sun C++ 4.2, 5.x and Centerline C++
  14164. lt_prog_compiler_pic_CXX='-KPIC'
  14165. lt_prog_compiler_static_CXX='-Bstatic'
  14166. lt_prog_compiler_wl_CXX='-Qoption ld '
  14167. ;;
  14168. gcx*)
  14169. # Green Hills C++ Compiler
  14170. lt_prog_compiler_pic_CXX='-PIC'
  14171. ;;
  14172. *)
  14173. ;;
  14174. esac
  14175. ;;
  14176. sunos4*)
  14177. case $cc_basename in
  14178. CC*)
  14179. # Sun C++ 4.x
  14180. lt_prog_compiler_pic_CXX='-pic'
  14181. lt_prog_compiler_static_CXX='-Bstatic'
  14182. ;;
  14183. lcc*)
  14184. # Lucid
  14185. lt_prog_compiler_pic_CXX='-pic'
  14186. ;;
  14187. *)
  14188. ;;
  14189. esac
  14190. ;;
  14191. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14192. case $cc_basename in
  14193. CC*)
  14194. lt_prog_compiler_wl_CXX='-Wl,'
  14195. lt_prog_compiler_pic_CXX='-KPIC'
  14196. lt_prog_compiler_static_CXX='-Bstatic'
  14197. ;;
  14198. esac
  14199. ;;
  14200. tandem*)
  14201. case $cc_basename in
  14202. NCC*)
  14203. # NonStop-UX NCC 3.20
  14204. lt_prog_compiler_pic_CXX='-KPIC'
  14205. ;;
  14206. *)
  14207. ;;
  14208. esac
  14209. ;;
  14210. vxworks*)
  14211. ;;
  14212. *)
  14213. lt_prog_compiler_can_build_shared_CXX=no
  14214. ;;
  14215. esac
  14216. fi
  14217. case $host_os in
  14218. # For platforms that do not support PIC, -DPIC is meaningless:
  14219. *djgpp*)
  14220. lt_prog_compiler_pic_CXX=
  14221. ;;
  14222. *)
  14223. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14224. ;;
  14225. esac
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14227. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14228. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14229. $as_echo_n "(cached) " >&6
  14230. else
  14231. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14232. fi
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14234. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14235. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14236. #
  14237. # Check to make sure the PIC flag actually works.
  14238. #
  14239. if test -n "$lt_prog_compiler_pic_CXX"; then
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14241. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14242. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14243. $as_echo_n "(cached) " >&6
  14244. else
  14245. lt_cv_prog_compiler_pic_works_CXX=no
  14246. ac_outfile=conftest.$ac_objext
  14247. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14248. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14249. # Insert the option either (1) after the last *FLAGS variable, or
  14250. # (2) before a word containing "conftest.", or (3) at the end.
  14251. # Note that $ac_compile itself does not contain backslashes and begins
  14252. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14253. # The option is referenced via a variable to avoid confusing sed.
  14254. lt_compile=`echo "$ac_compile" | $SED \
  14255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14257. -e 's:$: $lt_compiler_flag:'`
  14258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14259. (eval "$lt_compile" 2>conftest.err)
  14260. ac_status=$?
  14261. cat conftest.err >&5
  14262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14263. if (exit $ac_status) && test -s "$ac_outfile"; then
  14264. # The compiler can only warn and ignore the option if not recognized
  14265. # So say no if there are warnings other than the usual output.
  14266. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14267. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14268. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14269. lt_cv_prog_compiler_pic_works_CXX=yes
  14270. fi
  14271. fi
  14272. $RM conftest*
  14273. fi
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14275. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14276. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14277. case $lt_prog_compiler_pic_CXX in
  14278. "" | " "*) ;;
  14279. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14280. esac
  14281. else
  14282. lt_prog_compiler_pic_CXX=
  14283. lt_prog_compiler_can_build_shared_CXX=no
  14284. fi
  14285. fi
  14286. #
  14287. # Check to make sure the static flag actually works.
  14288. #
  14289. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14291. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14292. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14293. $as_echo_n "(cached) " >&6
  14294. else
  14295. lt_cv_prog_compiler_static_works_CXX=no
  14296. save_LDFLAGS=$LDFLAGS
  14297. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14298. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14299. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14300. # The linker can only warn and ignore the option if not recognized
  14301. # So say no if there are warnings
  14302. if test -s conftest.err; then
  14303. # Append any errors to the config.log.
  14304. cat conftest.err 1>&5
  14305. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14306. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14307. if diff conftest.exp conftest.er2 >/dev/null; then
  14308. lt_cv_prog_compiler_static_works_CXX=yes
  14309. fi
  14310. else
  14311. lt_cv_prog_compiler_static_works_CXX=yes
  14312. fi
  14313. fi
  14314. $RM -r conftest*
  14315. LDFLAGS=$save_LDFLAGS
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14318. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14319. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14320. :
  14321. else
  14322. lt_prog_compiler_static_CXX=
  14323. fi
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14325. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14326. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14327. $as_echo_n "(cached) " >&6
  14328. else
  14329. lt_cv_prog_compiler_c_o_CXX=no
  14330. $RM -r conftest 2>/dev/null
  14331. mkdir conftest
  14332. cd conftest
  14333. mkdir out
  14334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14335. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14336. # Insert the option either (1) after the last *FLAGS variable, or
  14337. # (2) before a word containing "conftest.", or (3) at the end.
  14338. # Note that $ac_compile itself does not contain backslashes and begins
  14339. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14340. lt_compile=`echo "$ac_compile" | $SED \
  14341. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14342. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14343. -e 's:$: $lt_compiler_flag:'`
  14344. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14345. (eval "$lt_compile" 2>out/conftest.err)
  14346. ac_status=$?
  14347. cat out/conftest.err >&5
  14348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14349. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14350. then
  14351. # The compiler can only warn and ignore the option if not recognized
  14352. # So say no if there are warnings
  14353. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14354. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14355. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14356. lt_cv_prog_compiler_c_o_CXX=yes
  14357. fi
  14358. fi
  14359. chmod u+w . 2>&5
  14360. $RM conftest*
  14361. # SGI C++ compiler will create directory out/ii_files/ for
  14362. # template instantiation
  14363. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14364. $RM out/* && rmdir out
  14365. cd ..
  14366. $RM -r conftest
  14367. $RM conftest*
  14368. fi
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14370. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14372. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14373. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14374. $as_echo_n "(cached) " >&6
  14375. else
  14376. lt_cv_prog_compiler_c_o_CXX=no
  14377. $RM -r conftest 2>/dev/null
  14378. mkdir conftest
  14379. cd conftest
  14380. mkdir out
  14381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14382. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14383. # Insert the option either (1) after the last *FLAGS variable, or
  14384. # (2) before a word containing "conftest.", or (3) at the end.
  14385. # Note that $ac_compile itself does not contain backslashes and begins
  14386. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14387. lt_compile=`echo "$ac_compile" | $SED \
  14388. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14389. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14390. -e 's:$: $lt_compiler_flag:'`
  14391. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14392. (eval "$lt_compile" 2>out/conftest.err)
  14393. ac_status=$?
  14394. cat out/conftest.err >&5
  14395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14396. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14397. then
  14398. # The compiler can only warn and ignore the option if not recognized
  14399. # So say no if there are warnings
  14400. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14401. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14402. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14403. lt_cv_prog_compiler_c_o_CXX=yes
  14404. fi
  14405. fi
  14406. chmod u+w . 2>&5
  14407. $RM conftest*
  14408. # SGI C++ compiler will create directory out/ii_files/ for
  14409. # template instantiation
  14410. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14411. $RM out/* && rmdir out
  14412. cd ..
  14413. $RM -r conftest
  14414. $RM conftest*
  14415. fi
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14417. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14418. hard_links=nottested
  14419. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14420. # do not overwrite the value of need_locks provided by the user
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14422. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14423. hard_links=yes
  14424. $RM conftest*
  14425. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14426. touch conftest.a
  14427. ln conftest.a conftest.b 2>&5 || hard_links=no
  14428. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14430. $as_echo "$hard_links" >&6; }
  14431. if test no = "$hard_links"; then
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14433. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14434. need_locks=warn
  14435. fi
  14436. else
  14437. need_locks=no
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14440. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14441. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14442. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14443. case $host_os in
  14444. aix[4-9]*)
  14445. # If we're using GNU nm, then we don't want the "-C" option.
  14446. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14447. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14448. # weak defined symbols like other global defined symbols, whereas
  14449. # GNU nm marks them as "W".
  14450. # While the 'weak' keyword is ignored in the Export File, we need
  14451. # it in the Import File for the 'aix-soname' feature, so we have
  14452. # to replace the "-B" option with "-P" for AIX nm.
  14453. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14454. 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'
  14455. else
  14456. 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'
  14457. fi
  14458. ;;
  14459. pw32*)
  14460. export_symbols_cmds_CXX=$ltdll_cmds
  14461. ;;
  14462. cygwin* | mingw* | cegcc*)
  14463. case $cc_basename in
  14464. cl*)
  14465. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14466. ;;
  14467. *)
  14468. 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'
  14469. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14470. ;;
  14471. esac
  14472. ;;
  14473. linux* | k*bsd*-gnu | gnu*)
  14474. link_all_deplibs_CXX=no
  14475. ;;
  14476. *)
  14477. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14478. ;;
  14479. esac
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14481. $as_echo "$ld_shlibs_CXX" >&6; }
  14482. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14483. with_gnu_ld_CXX=$with_gnu_ld
  14484. #
  14485. # Do we need to explicitly link libc?
  14486. #
  14487. case "x$archive_cmds_need_lc_CXX" in
  14488. x|xyes)
  14489. # Assume -lc should be added
  14490. archive_cmds_need_lc_CXX=yes
  14491. if test yes,yes = "$GCC,$enable_shared"; then
  14492. case $archive_cmds_CXX in
  14493. *'~'*)
  14494. # FIXME: we may have to deal with multi-command sequences.
  14495. ;;
  14496. '$CC '*)
  14497. # Test whether the compiler implicitly links with -lc since on some
  14498. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14499. # to ld, don't add -lc before -lgcc.
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14501. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14502. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14503. $as_echo_n "(cached) " >&6
  14504. else
  14505. $RM conftest*
  14506. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14508. (eval $ac_compile) 2>&5
  14509. ac_status=$?
  14510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14511. test $ac_status = 0; } 2>conftest.err; then
  14512. soname=conftest
  14513. lib=conftest
  14514. libobjs=conftest.$ac_objext
  14515. deplibs=
  14516. wl=$lt_prog_compiler_wl_CXX
  14517. pic_flag=$lt_prog_compiler_pic_CXX
  14518. compiler_flags=-v
  14519. linker_flags=-v
  14520. verstring=
  14521. output_objdir=.
  14522. libname=conftest
  14523. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14524. allow_undefined_flag_CXX=
  14525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14526. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14527. ac_status=$?
  14528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14529. test $ac_status = 0; }
  14530. then
  14531. lt_cv_archive_cmds_need_lc_CXX=no
  14532. else
  14533. lt_cv_archive_cmds_need_lc_CXX=yes
  14534. fi
  14535. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14536. else
  14537. cat conftest.err 1>&5
  14538. fi
  14539. $RM conftest*
  14540. fi
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14542. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14543. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14544. ;;
  14545. esac
  14546. fi
  14547. ;;
  14548. esac
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14550. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14551. library_names_spec=
  14552. libname_spec='lib$name'
  14553. soname_spec=
  14554. shrext_cmds=.so
  14555. postinstall_cmds=
  14556. postuninstall_cmds=
  14557. finish_cmds=
  14558. finish_eval=
  14559. shlibpath_var=
  14560. shlibpath_overrides_runpath=unknown
  14561. version_type=none
  14562. dynamic_linker="$host_os ld.so"
  14563. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14564. need_lib_prefix=unknown
  14565. hardcode_into_libs=no
  14566. # when you set need_version to no, make sure it does not cause -set_version
  14567. # flags to be left without arguments
  14568. need_version=unknown
  14569. case $host_os in
  14570. aix3*)
  14571. version_type=linux # correct to gnu/linux during the next big refactor
  14572. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14573. shlibpath_var=LIBPATH
  14574. # AIX 3 has no versioning support, so we append a major version to the name.
  14575. soname_spec='$libname$release$shared_ext$major'
  14576. ;;
  14577. aix[4-9]*)
  14578. version_type=linux # correct to gnu/linux during the next big refactor
  14579. need_lib_prefix=no
  14580. need_version=no
  14581. hardcode_into_libs=yes
  14582. if test ia64 = "$host_cpu"; then
  14583. # AIX 5 supports IA64
  14584. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14585. shlibpath_var=LD_LIBRARY_PATH
  14586. else
  14587. # With GCC up to 2.95.x, collect2 would create an import file
  14588. # for dependence libraries. The import file would start with
  14589. # the line '#! .'. This would cause the generated library to
  14590. # depend on '.', always an invalid library. This was fixed in
  14591. # development snapshots of GCC prior to 3.0.
  14592. case $host_os in
  14593. aix4 | aix4.[01] | aix4.[01].*)
  14594. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14595. echo ' yes '
  14596. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14597. :
  14598. else
  14599. can_build_shared=no
  14600. fi
  14601. ;;
  14602. esac
  14603. # Using Import Files as archive members, it is possible to support
  14604. # filename-based versioning of shared library archives on AIX. While
  14605. # this would work for both with and without runtime linking, it will
  14606. # prevent static linking of such archives. So we do filename-based
  14607. # shared library versioning with .so extension only, which is used
  14608. # when both runtime linking and shared linking is enabled.
  14609. # Unfortunately, runtime linking may impact performance, so we do
  14610. # not want this to be the default eventually. Also, we use the
  14611. # versioned .so libs for executables only if there is the -brtl
  14612. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14613. # To allow for filename-based versioning support, we need to create
  14614. # libNAME.so.V as an archive file, containing:
  14615. # *) an Import File, referring to the versioned filename of the
  14616. # archive as well as the shared archive member, telling the
  14617. # bitwidth (32 or 64) of that shared object, and providing the
  14618. # list of exported symbols of that shared object, eventually
  14619. # decorated with the 'weak' keyword
  14620. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14621. # it being seen by the linker.
  14622. # At run time we better use the real file rather than another symlink,
  14623. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14624. case $with_aix_soname,$aix_use_runtimelinking in
  14625. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14626. # soname into executable. Probably we can add versioning support to
  14627. # collect2, so additional links can be useful in future.
  14628. aix,yes) # traditional libtool
  14629. dynamic_linker='AIX unversionable lib.so'
  14630. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14631. # instead of lib<name>.a to let people know that these are not
  14632. # typical AIX shared libraries.
  14633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14634. ;;
  14635. aix,no) # traditional AIX only
  14636. dynamic_linker='AIX lib.a(lib.so.V)'
  14637. # We preserve .a as extension for shared libraries through AIX4.2
  14638. # and later when we are not doing run time linking.
  14639. library_names_spec='$libname$release.a $libname.a'
  14640. soname_spec='$libname$release$shared_ext$major'
  14641. ;;
  14642. svr4,*) # full svr4 only
  14643. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14644. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14645. # We do not specify a path in Import Files, so LIBPATH fires.
  14646. shlibpath_overrides_runpath=yes
  14647. ;;
  14648. *,yes) # both, prefer svr4
  14649. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14650. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14651. # unpreferred sharedlib libNAME.a needs extra handling
  14652. 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"'
  14653. 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"'
  14654. # We do not specify a path in Import Files, so LIBPATH fires.
  14655. shlibpath_overrides_runpath=yes
  14656. ;;
  14657. *,no) # both, prefer aix
  14658. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14659. library_names_spec='$libname$release.a $libname.a'
  14660. soname_spec='$libname$release$shared_ext$major'
  14661. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14662. 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)'
  14663. 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"'
  14664. ;;
  14665. esac
  14666. shlibpath_var=LIBPATH
  14667. fi
  14668. ;;
  14669. amigaos*)
  14670. case $host_cpu in
  14671. powerpc)
  14672. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14673. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14674. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14675. ;;
  14676. m68k)
  14677. library_names_spec='$libname.ixlibrary $libname.a'
  14678. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14679. 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'
  14680. ;;
  14681. esac
  14682. ;;
  14683. beos*)
  14684. library_names_spec='$libname$shared_ext'
  14685. dynamic_linker="$host_os ld.so"
  14686. shlibpath_var=LIBRARY_PATH
  14687. ;;
  14688. bsdi[45]*)
  14689. version_type=linux # correct to gnu/linux during the next big refactor
  14690. need_version=no
  14691. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14692. soname_spec='$libname$release$shared_ext$major'
  14693. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14694. shlibpath_var=LD_LIBRARY_PATH
  14695. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14696. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14697. # the default ld.so.conf also contains /usr/contrib/lib and
  14698. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14699. # libtool to hard-code these into programs
  14700. ;;
  14701. cygwin* | mingw* | pw32* | cegcc*)
  14702. version_type=windows
  14703. shrext_cmds=.dll
  14704. need_version=no
  14705. need_lib_prefix=no
  14706. case $GCC,$cc_basename in
  14707. yes,*)
  14708. # gcc
  14709. library_names_spec='$libname.dll.a'
  14710. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14711. postinstall_cmds='base_file=`basename \$file`~
  14712. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14713. dldir=$destdir/`dirname \$dlpath`~
  14714. test -d \$dldir || mkdir -p \$dldir~
  14715. $install_prog $dir/$dlname \$dldir/$dlname~
  14716. chmod a+x \$dldir/$dlname~
  14717. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14718. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14719. fi'
  14720. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14721. dlpath=$dir/\$dldll~
  14722. $RM \$dlpath'
  14723. shlibpath_overrides_runpath=yes
  14724. case $host_os in
  14725. cygwin*)
  14726. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14727. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14728. ;;
  14729. mingw* | cegcc*)
  14730. # MinGW DLLs use traditional 'lib' prefix
  14731. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14732. ;;
  14733. pw32*)
  14734. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14735. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14736. ;;
  14737. esac
  14738. dynamic_linker='Win32 ld.exe'
  14739. ;;
  14740. *,cl*)
  14741. # Native MSVC
  14742. libname_spec='$name'
  14743. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14744. library_names_spec='$libname.dll.lib'
  14745. case $build_os in
  14746. mingw*)
  14747. sys_lib_search_path_spec=
  14748. lt_save_ifs=$IFS
  14749. IFS=';'
  14750. for lt_path in $LIB
  14751. do
  14752. IFS=$lt_save_ifs
  14753. # Let DOS variable expansion print the short 8.3 style file name.
  14754. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14755. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14756. done
  14757. IFS=$lt_save_ifs
  14758. # Convert to MSYS style.
  14759. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14760. ;;
  14761. cygwin*)
  14762. # Convert to unix form, then to dos form, then back to unix form
  14763. # but this time dos style (no spaces!) so that the unix form looks
  14764. # like /cygdrive/c/PROGRA~1:/cygdr...
  14765. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14766. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14767. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14768. ;;
  14769. *)
  14770. sys_lib_search_path_spec=$LIB
  14771. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14772. # It is most probably a Windows format PATH.
  14773. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14774. else
  14775. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14776. fi
  14777. # FIXME: find the short name or the path components, as spaces are
  14778. # common. (e.g. "Program Files" -> "PROGRA~1")
  14779. ;;
  14780. esac
  14781. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14782. postinstall_cmds='base_file=`basename \$file`~
  14783. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14784. dldir=$destdir/`dirname \$dlpath`~
  14785. test -d \$dldir || mkdir -p \$dldir~
  14786. $install_prog $dir/$dlname \$dldir/$dlname'
  14787. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14788. dlpath=$dir/\$dldll~
  14789. $RM \$dlpath'
  14790. shlibpath_overrides_runpath=yes
  14791. dynamic_linker='Win32 link.exe'
  14792. ;;
  14793. *)
  14794. # Assume MSVC wrapper
  14795. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14796. dynamic_linker='Win32 ld.exe'
  14797. ;;
  14798. esac
  14799. # FIXME: first we should search . and the directory the executable is in
  14800. shlibpath_var=PATH
  14801. ;;
  14802. darwin* | rhapsody*)
  14803. dynamic_linker="$host_os dyld"
  14804. version_type=darwin
  14805. need_lib_prefix=no
  14806. need_version=no
  14807. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14808. soname_spec='$libname$release$major$shared_ext'
  14809. shlibpath_overrides_runpath=yes
  14810. shlibpath_var=DYLD_LIBRARY_PATH
  14811. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14812. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14813. ;;
  14814. dgux*)
  14815. version_type=linux # correct to gnu/linux during the next big refactor
  14816. need_lib_prefix=no
  14817. need_version=no
  14818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14819. soname_spec='$libname$release$shared_ext$major'
  14820. shlibpath_var=LD_LIBRARY_PATH
  14821. ;;
  14822. freebsd* | dragonfly*)
  14823. # DragonFly does not have aout. When/if they implement a new
  14824. # versioning mechanism, adjust this.
  14825. if test -x /usr/bin/objformat; then
  14826. objformat=`/usr/bin/objformat`
  14827. else
  14828. case $host_os in
  14829. freebsd[23].*) objformat=aout ;;
  14830. *) objformat=elf ;;
  14831. esac
  14832. fi
  14833. version_type=freebsd-$objformat
  14834. case $version_type in
  14835. freebsd-elf*)
  14836. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14837. soname_spec='$libname$release$shared_ext$major'
  14838. need_version=no
  14839. need_lib_prefix=no
  14840. ;;
  14841. freebsd-*)
  14842. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14843. need_version=yes
  14844. ;;
  14845. esac
  14846. shlibpath_var=LD_LIBRARY_PATH
  14847. case $host_os in
  14848. freebsd2.*)
  14849. shlibpath_overrides_runpath=yes
  14850. ;;
  14851. freebsd3.[01]* | freebsdelf3.[01]*)
  14852. shlibpath_overrides_runpath=yes
  14853. hardcode_into_libs=yes
  14854. ;;
  14855. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14856. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14857. shlibpath_overrides_runpath=no
  14858. hardcode_into_libs=yes
  14859. ;;
  14860. *) # from 4.6 on, and DragonFly
  14861. shlibpath_overrides_runpath=yes
  14862. hardcode_into_libs=yes
  14863. ;;
  14864. esac
  14865. ;;
  14866. haiku*)
  14867. version_type=linux # correct to gnu/linux during the next big refactor
  14868. need_lib_prefix=no
  14869. need_version=no
  14870. dynamic_linker="$host_os runtime_loader"
  14871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14872. soname_spec='$libname$release$shared_ext$major'
  14873. shlibpath_var=LIBRARY_PATH
  14874. shlibpath_overrides_runpath=no
  14875. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14876. hardcode_into_libs=yes
  14877. ;;
  14878. hpux9* | hpux10* | hpux11*)
  14879. # Give a soname corresponding to the major version so that dld.sl refuses to
  14880. # link against other versions.
  14881. version_type=sunos
  14882. need_lib_prefix=no
  14883. need_version=no
  14884. case $host_cpu in
  14885. ia64*)
  14886. shrext_cmds='.so'
  14887. hardcode_into_libs=yes
  14888. dynamic_linker="$host_os dld.so"
  14889. shlibpath_var=LD_LIBRARY_PATH
  14890. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14892. soname_spec='$libname$release$shared_ext$major'
  14893. if test 32 = "$HPUX_IA64_MODE"; then
  14894. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14895. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14896. else
  14897. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14898. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14899. fi
  14900. ;;
  14901. hppa*64*)
  14902. shrext_cmds='.sl'
  14903. hardcode_into_libs=yes
  14904. dynamic_linker="$host_os dld.sl"
  14905. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14906. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14907. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14908. soname_spec='$libname$release$shared_ext$major'
  14909. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14911. ;;
  14912. *)
  14913. shrext_cmds='.sl'
  14914. dynamic_linker="$host_os dld.sl"
  14915. shlibpath_var=SHLIB_PATH
  14916. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14917. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14918. soname_spec='$libname$release$shared_ext$major'
  14919. ;;
  14920. esac
  14921. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14922. postinstall_cmds='chmod 555 $lib'
  14923. # or fails outright, so override atomically:
  14924. install_override_mode=555
  14925. ;;
  14926. interix[3-9]*)
  14927. version_type=linux # correct to gnu/linux during the next big refactor
  14928. need_lib_prefix=no
  14929. need_version=no
  14930. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14931. soname_spec='$libname$release$shared_ext$major'
  14932. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14933. shlibpath_var=LD_LIBRARY_PATH
  14934. shlibpath_overrides_runpath=no
  14935. hardcode_into_libs=yes
  14936. ;;
  14937. irix5* | irix6* | nonstopux*)
  14938. case $host_os in
  14939. nonstopux*) version_type=nonstopux ;;
  14940. *)
  14941. if test yes = "$lt_cv_prog_gnu_ld"; then
  14942. version_type=linux # correct to gnu/linux during the next big refactor
  14943. else
  14944. version_type=irix
  14945. fi ;;
  14946. esac
  14947. need_lib_prefix=no
  14948. need_version=no
  14949. soname_spec='$libname$release$shared_ext$major'
  14950. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14951. case $host_os in
  14952. irix5* | nonstopux*)
  14953. libsuff= shlibsuff=
  14954. ;;
  14955. *)
  14956. case $LD in # libtool.m4 will add one of these switches to LD
  14957. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14958. libsuff= shlibsuff= libmagic=32-bit;;
  14959. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14960. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14961. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14962. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14963. *) libsuff= shlibsuff= libmagic=never-match;;
  14964. esac
  14965. ;;
  14966. esac
  14967. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14968. shlibpath_overrides_runpath=no
  14969. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14970. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14971. hardcode_into_libs=yes
  14972. ;;
  14973. # No shared lib support for Linux oldld, aout, or coff.
  14974. linux*oldld* | linux*aout* | linux*coff*)
  14975. dynamic_linker=no
  14976. ;;
  14977. linux*android*)
  14978. version_type=none # Android doesn't support versioned libraries.
  14979. need_lib_prefix=no
  14980. need_version=no
  14981. library_names_spec='$libname$release$shared_ext'
  14982. soname_spec='$libname$release$shared_ext'
  14983. finish_cmds=
  14984. shlibpath_var=LD_LIBRARY_PATH
  14985. shlibpath_overrides_runpath=yes
  14986. # This implies no fast_install, which is unacceptable.
  14987. # Some rework will be needed to allow for fast_install
  14988. # before this can be enabled.
  14989. hardcode_into_libs=yes
  14990. dynamic_linker='Android linker'
  14991. # Don't embed -rpath directories since the linker doesn't support them.
  14992. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14993. ;;
  14994. # This must be glibc/ELF.
  14995. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14996. version_type=linux # correct to gnu/linux during the next big refactor
  14997. need_lib_prefix=no
  14998. need_version=no
  14999. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15000. soname_spec='$libname$release$shared_ext$major'
  15001. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15002. shlibpath_var=LD_LIBRARY_PATH
  15003. shlibpath_overrides_runpath=no
  15004. # Some binutils ld are patched to set DT_RUNPATH
  15005. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15006. $as_echo_n "(cached) " >&6
  15007. else
  15008. lt_cv_shlibpath_overrides_runpath=no
  15009. save_LDFLAGS=$LDFLAGS
  15010. save_libdir=$libdir
  15011. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15012. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15014. /* end confdefs.h. */
  15015. int
  15016. main ()
  15017. {
  15018. ;
  15019. return 0;
  15020. }
  15021. _ACEOF
  15022. if ac_fn_cxx_try_link "$LINENO"; then :
  15023. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15024. lt_cv_shlibpath_overrides_runpath=yes
  15025. fi
  15026. fi
  15027. rm -f core conftest.err conftest.$ac_objext \
  15028. conftest$ac_exeext conftest.$ac_ext
  15029. LDFLAGS=$save_LDFLAGS
  15030. libdir=$save_libdir
  15031. fi
  15032. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15033. # This implies no fast_install, which is unacceptable.
  15034. # Some rework will be needed to allow for fast_install
  15035. # before this can be enabled.
  15036. hardcode_into_libs=yes
  15037. # Ideally, we could use ldconfig to report *all* directores which are
  15038. # searched for libraries, however this is still not possible. Aside from not
  15039. # being certain /sbin/ldconfig is available, command
  15040. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15041. # even though it is searched at run-time. Try to do the best guess by
  15042. # appending ld.so.conf contents (and includes) to the search path.
  15043. if test -f /etc/ld.so.conf; then
  15044. 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' ' '`
  15045. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15046. fi
  15047. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15048. # powerpc, because MkLinux only supported shared libraries with the
  15049. # GNU dynamic linker. Since this was broken with cross compilers,
  15050. # most powerpc-linux boxes support dynamic linking these days and
  15051. # people can always --disable-shared, the test was removed, and we
  15052. # assume the GNU/Linux dynamic linker is in use.
  15053. dynamic_linker='GNU/Linux ld.so'
  15054. ;;
  15055. netbsdelf*-gnu)
  15056. version_type=linux
  15057. need_lib_prefix=no
  15058. need_version=no
  15059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15060. soname_spec='${libname}${release}${shared_ext}$major'
  15061. shlibpath_var=LD_LIBRARY_PATH
  15062. shlibpath_overrides_runpath=no
  15063. hardcode_into_libs=yes
  15064. dynamic_linker='NetBSD ld.elf_so'
  15065. ;;
  15066. netbsd*)
  15067. version_type=sunos
  15068. need_lib_prefix=no
  15069. need_version=no
  15070. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15071. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15073. dynamic_linker='NetBSD (a.out) ld.so'
  15074. else
  15075. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15076. soname_spec='$libname$release$shared_ext$major'
  15077. dynamic_linker='NetBSD ld.elf_so'
  15078. fi
  15079. shlibpath_var=LD_LIBRARY_PATH
  15080. shlibpath_overrides_runpath=yes
  15081. hardcode_into_libs=yes
  15082. ;;
  15083. newsos6)
  15084. version_type=linux # correct to gnu/linux during the next big refactor
  15085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15086. shlibpath_var=LD_LIBRARY_PATH
  15087. shlibpath_overrides_runpath=yes
  15088. ;;
  15089. *nto* | *qnx*)
  15090. version_type=qnx
  15091. need_lib_prefix=no
  15092. need_version=no
  15093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15094. soname_spec='$libname$release$shared_ext$major'
  15095. shlibpath_var=LD_LIBRARY_PATH
  15096. shlibpath_overrides_runpath=no
  15097. hardcode_into_libs=yes
  15098. dynamic_linker='ldqnx.so'
  15099. ;;
  15100. openbsd* | bitrig*)
  15101. version_type=sunos
  15102. sys_lib_dlsearch_path_spec=/usr/lib
  15103. need_lib_prefix=no
  15104. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15105. need_version=no
  15106. else
  15107. need_version=yes
  15108. fi
  15109. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15111. shlibpath_var=LD_LIBRARY_PATH
  15112. shlibpath_overrides_runpath=yes
  15113. ;;
  15114. os2*)
  15115. libname_spec='$name'
  15116. version_type=windows
  15117. shrext_cmds=.dll
  15118. need_version=no
  15119. need_lib_prefix=no
  15120. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15121. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15122. v=$($ECHO $release$versuffix | tr -d .-);
  15123. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15124. $ECHO $n$v`$shared_ext'
  15125. library_names_spec='${libname}_dll.$libext'
  15126. dynamic_linker='OS/2 ld.exe'
  15127. shlibpath_var=BEGINLIBPATH
  15128. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15129. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15130. postinstall_cmds='base_file=`basename \$file`~
  15131. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15132. dldir=$destdir/`dirname \$dlpath`~
  15133. test -d \$dldir || mkdir -p \$dldir~
  15134. $install_prog $dir/$dlname \$dldir/$dlname~
  15135. chmod a+x \$dldir/$dlname~
  15136. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15137. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15138. fi'
  15139. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15140. dlpath=$dir/\$dldll~
  15141. $RM \$dlpath'
  15142. ;;
  15143. osf3* | osf4* | osf5*)
  15144. version_type=osf
  15145. need_lib_prefix=no
  15146. need_version=no
  15147. soname_spec='$libname$release$shared_ext$major'
  15148. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15149. shlibpath_var=LD_LIBRARY_PATH
  15150. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15151. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15152. ;;
  15153. rdos*)
  15154. dynamic_linker=no
  15155. ;;
  15156. solaris*)
  15157. version_type=linux # correct to gnu/linux during the next big refactor
  15158. need_lib_prefix=no
  15159. need_version=no
  15160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15161. soname_spec='$libname$release$shared_ext$major'
  15162. shlibpath_var=LD_LIBRARY_PATH
  15163. shlibpath_overrides_runpath=yes
  15164. hardcode_into_libs=yes
  15165. # ldd complains unless libraries are executable
  15166. postinstall_cmds='chmod +x $lib'
  15167. ;;
  15168. sunos4*)
  15169. version_type=sunos
  15170. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15171. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15172. shlibpath_var=LD_LIBRARY_PATH
  15173. shlibpath_overrides_runpath=yes
  15174. if test yes = "$with_gnu_ld"; then
  15175. need_lib_prefix=no
  15176. fi
  15177. need_version=yes
  15178. ;;
  15179. sysv4 | sysv4.3*)
  15180. version_type=linux # correct to gnu/linux during the next big refactor
  15181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15182. soname_spec='$libname$release$shared_ext$major'
  15183. shlibpath_var=LD_LIBRARY_PATH
  15184. case $host_vendor in
  15185. sni)
  15186. shlibpath_overrides_runpath=no
  15187. need_lib_prefix=no
  15188. runpath_var=LD_RUN_PATH
  15189. ;;
  15190. siemens)
  15191. need_lib_prefix=no
  15192. ;;
  15193. motorola)
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. shlibpath_overrides_runpath=no
  15197. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15198. ;;
  15199. esac
  15200. ;;
  15201. sysv4*MP*)
  15202. if test -d /usr/nec; then
  15203. version_type=linux # correct to gnu/linux during the next big refactor
  15204. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15205. soname_spec='$libname$shared_ext.$major'
  15206. shlibpath_var=LD_LIBRARY_PATH
  15207. fi
  15208. ;;
  15209. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15210. version_type=sco
  15211. need_lib_prefix=no
  15212. need_version=no
  15213. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15214. soname_spec='$libname$release$shared_ext$major'
  15215. shlibpath_var=LD_LIBRARY_PATH
  15216. shlibpath_overrides_runpath=yes
  15217. hardcode_into_libs=yes
  15218. if test yes = "$with_gnu_ld"; then
  15219. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15220. else
  15221. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15222. case $host_os in
  15223. sco3.2v5*)
  15224. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15225. ;;
  15226. esac
  15227. fi
  15228. sys_lib_dlsearch_path_spec='/usr/lib'
  15229. ;;
  15230. tpf*)
  15231. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15232. version_type=linux # correct to gnu/linux during the next big refactor
  15233. need_lib_prefix=no
  15234. need_version=no
  15235. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15236. shlibpath_var=LD_LIBRARY_PATH
  15237. shlibpath_overrides_runpath=no
  15238. hardcode_into_libs=yes
  15239. ;;
  15240. uts4*)
  15241. version_type=linux # correct to gnu/linux during the next big refactor
  15242. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15243. soname_spec='$libname$release$shared_ext$major'
  15244. shlibpath_var=LD_LIBRARY_PATH
  15245. ;;
  15246. *)
  15247. dynamic_linker=no
  15248. ;;
  15249. esac
  15250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15251. $as_echo "$dynamic_linker" >&6; }
  15252. test no = "$dynamic_linker" && can_build_shared=no
  15253. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15254. if test yes = "$GCC"; then
  15255. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15256. fi
  15257. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15258. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15259. fi
  15260. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15261. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15262. fi
  15263. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15264. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15265. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15266. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15267. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15268. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15270. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15271. hardcode_action_CXX=
  15272. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15273. test -n "$runpath_var_CXX" ||
  15274. test yes = "$hardcode_automatic_CXX"; then
  15275. # We can hardcode non-existent directories.
  15276. if test no != "$hardcode_direct_CXX" &&
  15277. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15278. # have to relink, otherwise we might link with an installed library
  15279. # when we should be linking with a yet-to-be-installed one
  15280. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15281. test no != "$hardcode_minus_L_CXX"; then
  15282. # Linking always hardcodes the temporary library directory.
  15283. hardcode_action_CXX=relink
  15284. else
  15285. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15286. hardcode_action_CXX=immediate
  15287. fi
  15288. else
  15289. # We cannot hardcode anything, or else we can only hardcode existing
  15290. # directories.
  15291. hardcode_action_CXX=unsupported
  15292. fi
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15294. $as_echo "$hardcode_action_CXX" >&6; }
  15295. if test relink = "$hardcode_action_CXX" ||
  15296. test yes = "$inherit_rpath_CXX"; then
  15297. # Fast installation is not supported
  15298. enable_fast_install=no
  15299. elif test yes = "$shlibpath_overrides_runpath" ||
  15300. test no = "$enable_shared"; then
  15301. # Fast installation is not necessary
  15302. enable_fast_install=needless
  15303. fi
  15304. fi # test -n "$compiler"
  15305. CC=$lt_save_CC
  15306. CFLAGS=$lt_save_CFLAGS
  15307. LDCXX=$LD
  15308. LD=$lt_save_LD
  15309. GCC=$lt_save_GCC
  15310. with_gnu_ld=$lt_save_with_gnu_ld
  15311. lt_cv_path_LDCXX=$lt_cv_path_LD
  15312. lt_cv_path_LD=$lt_save_path_LD
  15313. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15314. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15315. fi # test yes != "$_lt_caught_CXX_error"
  15316. ac_ext=c
  15317. ac_cpp='$CPP $CPPFLAGS'
  15318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15321. ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
  15322. ac_ext=cpp
  15323. ac_cpp='$CXXCPP $CPPFLAGS'
  15324. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15325. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15326. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15327. ac_success=no
  15328. if test x$ac_success = xno; then
  15329. for alternative in ${ax_cxx_compile_alternatives}; do
  15330. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  15331. cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
  15333. $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
  15334. if eval \${$cachevar+:} false; then :
  15335. $as_echo_n "(cached) " >&6
  15336. else
  15337. ac_save_CXX="$CXX"
  15338. CXX="$CXX $switch"
  15339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15340. /* end confdefs.h. */
  15341. // If the compiler admits that it is not ready for C++11, why torture it?
  15342. // Hopefully, this will speed up the test.
  15343. #ifndef __cplusplus
  15344. #error "This is not a C++ compiler"
  15345. #elif __cplusplus < 201103L
  15346. #error "This is not a C++11 compiler"
  15347. #else
  15348. namespace cxx11
  15349. {
  15350. namespace test_static_assert
  15351. {
  15352. template <typename T>
  15353. struct check
  15354. {
  15355. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  15356. };
  15357. }
  15358. namespace test_final_override
  15359. {
  15360. struct Base
  15361. {
  15362. virtual ~Base() {}
  15363. virtual void f() {}
  15364. };
  15365. struct Derived : public Base
  15366. {
  15367. virtual ~Derived() override {}
  15368. virtual void f() override {}
  15369. };
  15370. }
  15371. namespace test_double_right_angle_brackets
  15372. {
  15373. template < typename T >
  15374. struct check {};
  15375. typedef check<void> single_type;
  15376. typedef check<check<void>> double_type;
  15377. typedef check<check<check<void>>> triple_type;
  15378. typedef check<check<check<check<void>>>> quadruple_type;
  15379. }
  15380. namespace test_decltype
  15381. {
  15382. int
  15383. f()
  15384. {
  15385. int a = 1;
  15386. decltype(a) b = 2;
  15387. return a + b;
  15388. }
  15389. }
  15390. namespace test_type_deduction
  15391. {
  15392. template < typename T1, typename T2 >
  15393. struct is_same
  15394. {
  15395. static const bool value = false;
  15396. };
  15397. template < typename T >
  15398. struct is_same<T, T>
  15399. {
  15400. static const bool value = true;
  15401. };
  15402. template < typename T1, typename T2 >
  15403. auto
  15404. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  15405. {
  15406. return a1 + a2;
  15407. }
  15408. int
  15409. test(const int c, volatile int v)
  15410. {
  15411. static_assert(is_same<int, decltype(0)>::value == true, "");
  15412. static_assert(is_same<int, decltype(c)>::value == false, "");
  15413. static_assert(is_same<int, decltype(v)>::value == false, "");
  15414. auto ac = c;
  15415. auto av = v;
  15416. auto sumi = ac + av + 'x';
  15417. auto sumf = ac + av + 1.0;
  15418. static_assert(is_same<int, decltype(ac)>::value == true, "");
  15419. static_assert(is_same<int, decltype(av)>::value == true, "");
  15420. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  15421. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  15422. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  15423. return (sumf > 0.0) ? sumi : add(c, v);
  15424. }
  15425. }
  15426. namespace test_noexcept
  15427. {
  15428. int f() { return 0; }
  15429. int g() noexcept { return 0; }
  15430. static_assert(noexcept(f()) == false, "");
  15431. static_assert(noexcept(g()) == true, "");
  15432. }
  15433. namespace test_constexpr
  15434. {
  15435. template < typename CharT >
  15436. unsigned long constexpr
  15437. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  15438. {
  15439. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  15440. }
  15441. template < typename CharT >
  15442. unsigned long constexpr
  15443. strlen_c(const CharT *const s) noexcept
  15444. {
  15445. return strlen_c_r(s, 0UL);
  15446. }
  15447. static_assert(strlen_c("") == 0UL, "");
  15448. static_assert(strlen_c("1") == 1UL, "");
  15449. static_assert(strlen_c("example") == 7UL, "");
  15450. static_assert(strlen_c("another\0example") == 7UL, "");
  15451. }
  15452. namespace test_rvalue_references
  15453. {
  15454. template < int N >
  15455. struct answer
  15456. {
  15457. static constexpr int value = N;
  15458. };
  15459. answer<1> f(int&) { return answer<1>(); }
  15460. answer<2> f(const int&) { return answer<2>(); }
  15461. answer<3> f(int&&) { return answer<3>(); }
  15462. void
  15463. test()
  15464. {
  15465. int i = 0;
  15466. const int c = 0;
  15467. static_assert(decltype(f(i))::value == 1, "");
  15468. static_assert(decltype(f(c))::value == 2, "");
  15469. static_assert(decltype(f(0))::value == 3, "");
  15470. }
  15471. }
  15472. namespace test_uniform_initialization
  15473. {
  15474. struct test
  15475. {
  15476. static const int zero {};
  15477. static const int one {1};
  15478. };
  15479. static_assert(test::zero == 0, "");
  15480. static_assert(test::one == 1, "");
  15481. }
  15482. namespace test_lambdas
  15483. {
  15484. void
  15485. test1()
  15486. {
  15487. auto lambda1 = [](){};
  15488. auto lambda2 = lambda1;
  15489. lambda1();
  15490. lambda2();
  15491. }
  15492. int
  15493. test2()
  15494. {
  15495. auto a = [](int i, int j){ return i + j; }(1, 2);
  15496. auto b = []() -> int { return '0'; }();
  15497. auto c = [=](){ return a + b; }();
  15498. auto d = [&](){ return c; }();
  15499. auto e = [a, &b](int x) mutable {
  15500. const auto identity = [](int y){ return y; };
  15501. for (auto i = 0; i < a; ++i)
  15502. a += b--;
  15503. return x + identity(a + b);
  15504. }(0);
  15505. return a + b + c + d + e;
  15506. }
  15507. int
  15508. test3()
  15509. {
  15510. const auto nullary = [](){ return 0; };
  15511. const auto unary = [](int x){ return x; };
  15512. using nullary_t = decltype(nullary);
  15513. using unary_t = decltype(unary);
  15514. const auto higher1st = [](nullary_t f){ return f(); };
  15515. const auto higher2nd = [unary](nullary_t f1){
  15516. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  15517. };
  15518. return higher1st(nullary) + higher2nd(nullary)(unary);
  15519. }
  15520. }
  15521. namespace test_variadic_templates
  15522. {
  15523. template <int...>
  15524. struct sum;
  15525. template <int N0, int... N1toN>
  15526. struct sum<N0, N1toN...>
  15527. {
  15528. static constexpr auto value = N0 + sum<N1toN...>::value;
  15529. };
  15530. template <>
  15531. struct sum<>
  15532. {
  15533. static constexpr auto value = 0;
  15534. };
  15535. static_assert(sum<>::value == 0, "");
  15536. static_assert(sum<1>::value == 1, "");
  15537. static_assert(sum<23>::value == 23, "");
  15538. static_assert(sum<1, 2>::value == 3, "");
  15539. static_assert(sum<5, 5, 11>::value == 21, "");
  15540. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  15541. }
  15542. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  15543. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  15544. // because of this.
  15545. namespace test_template_alias_sfinae
  15546. {
  15547. struct foo {};
  15548. template<typename T>
  15549. using member = typename T::member_type;
  15550. template<typename T>
  15551. void func(...) {}
  15552. template<typename T>
  15553. void func(member<T>*) {}
  15554. void test();
  15555. void test() { func<foo>(0); }
  15556. }
  15557. } // namespace cxx11
  15558. #endif // __cplusplus >= 201103L
  15559. // If the compiler admits that it is not ready for C++14, why torture it?
  15560. // Hopefully, this will speed up the test.
  15561. #ifndef __cplusplus
  15562. #error "This is not a C++ compiler"
  15563. #elif __cplusplus < 201402L
  15564. #error "This is not a C++14 compiler"
  15565. #else
  15566. namespace cxx14
  15567. {
  15568. namespace test_polymorphic_lambdas
  15569. {
  15570. int
  15571. test()
  15572. {
  15573. const auto lambda = [](auto&&... args){
  15574. const auto istiny = [](auto x){
  15575. return (sizeof(x) == 1UL) ? 1 : 0;
  15576. };
  15577. const int aretiny[] = { istiny(args)... };
  15578. return aretiny[0];
  15579. };
  15580. return lambda(1, 1L, 1.0f, '1');
  15581. }
  15582. }
  15583. namespace test_binary_literals
  15584. {
  15585. constexpr auto ivii = 0b0000000000101010;
  15586. static_assert(ivii == 42, "wrong value");
  15587. }
  15588. namespace test_generalized_constexpr
  15589. {
  15590. template < typename CharT >
  15591. constexpr unsigned long
  15592. strlen_c(const CharT *const s) noexcept
  15593. {
  15594. auto length = 0UL;
  15595. for (auto p = s; *p; ++p)
  15596. ++length;
  15597. return length;
  15598. }
  15599. static_assert(strlen_c("") == 0UL, "");
  15600. static_assert(strlen_c("x") == 1UL, "");
  15601. static_assert(strlen_c("test") == 4UL, "");
  15602. static_assert(strlen_c("another\0test") == 7UL, "");
  15603. }
  15604. namespace test_lambda_init_capture
  15605. {
  15606. int
  15607. test()
  15608. {
  15609. auto x = 0;
  15610. const auto lambda1 = [a = x](int b){ return a + b; };
  15611. const auto lambda2 = [a = lambda1(x)](){ return a; };
  15612. return lambda2();
  15613. }
  15614. }
  15615. namespace test_digit_separators
  15616. {
  15617. constexpr auto ten_million = 100'000'000;
  15618. static_assert(ten_million == 100000000, "");
  15619. }
  15620. namespace test_return_type_deduction
  15621. {
  15622. auto f(int& x) { return x; }
  15623. decltype(auto) g(int& x) { return x; }
  15624. template < typename T1, typename T2 >
  15625. struct is_same
  15626. {
  15627. static constexpr auto value = false;
  15628. };
  15629. template < typename T >
  15630. struct is_same<T, T>
  15631. {
  15632. static constexpr auto value = true;
  15633. };
  15634. int
  15635. test()
  15636. {
  15637. auto x = 0;
  15638. static_assert(is_same<int, decltype(f(x))>::value, "");
  15639. static_assert(is_same<int&, decltype(g(x))>::value, "");
  15640. return x;
  15641. }
  15642. }
  15643. } // namespace cxx14
  15644. #endif // __cplusplus >= 201402L
  15645. // If the compiler admits that it is not ready for C++17, why torture it?
  15646. // Hopefully, this will speed up the test.
  15647. #ifndef __cplusplus
  15648. #error "This is not a C++ compiler"
  15649. #elif __cplusplus < 201703L
  15650. #error "This is not a C++17 compiler"
  15651. #else
  15652. #include <initializer_list>
  15653. #include <utility>
  15654. #include <type_traits>
  15655. namespace cxx17
  15656. {
  15657. namespace test_constexpr_lambdas
  15658. {
  15659. constexpr int foo = [](){return 42;}();
  15660. }
  15661. namespace test::nested_namespace::definitions
  15662. {
  15663. }
  15664. namespace test_fold_expression
  15665. {
  15666. template<typename... Args>
  15667. int multiply(Args... args)
  15668. {
  15669. return (args * ... * 1);
  15670. }
  15671. template<typename... Args>
  15672. bool all(Args... args)
  15673. {
  15674. return (args && ...);
  15675. }
  15676. }
  15677. namespace test_extended_static_assert
  15678. {
  15679. static_assert (true);
  15680. }
  15681. namespace test_auto_brace_init_list
  15682. {
  15683. auto foo = {5};
  15684. auto bar {5};
  15685. static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
  15686. static_assert(std::is_same<int, decltype(bar)>::value);
  15687. }
  15688. namespace test_typename_in_template_template_parameter
  15689. {
  15690. template<template<typename> typename X> struct D;
  15691. }
  15692. namespace test_fallthrough_nodiscard_maybe_unused_attributes
  15693. {
  15694. int f1()
  15695. {
  15696. return 42;
  15697. }
  15698. [[nodiscard]] int f2()
  15699. {
  15700. [[maybe_unused]] auto unused = f1();
  15701. switch (f1())
  15702. {
  15703. case 17:
  15704. f1();
  15705. [[fallthrough]];
  15706. case 42:
  15707. f1();
  15708. }
  15709. return f1();
  15710. }
  15711. }
  15712. namespace test_extended_aggregate_initialization
  15713. {
  15714. struct base1
  15715. {
  15716. int b1, b2 = 42;
  15717. };
  15718. struct base2
  15719. {
  15720. base2() {
  15721. b3 = 42;
  15722. }
  15723. int b3;
  15724. };
  15725. struct derived : base1, base2
  15726. {
  15727. int d;
  15728. };
  15729. derived d1 {{1, 2}, {}, 4}; // full initialization
  15730. derived d2 {{}, {}, 4}; // value-initialized bases
  15731. }
  15732. namespace test_general_range_based_for_loop
  15733. {
  15734. struct iter
  15735. {
  15736. int i;
  15737. int& operator* ()
  15738. {
  15739. return i;
  15740. }
  15741. const int& operator* () const
  15742. {
  15743. return i;
  15744. }
  15745. iter& operator++()
  15746. {
  15747. ++i;
  15748. return *this;
  15749. }
  15750. };
  15751. struct sentinel
  15752. {
  15753. int i;
  15754. };
  15755. bool operator== (const iter& i, const sentinel& s)
  15756. {
  15757. return i.i == s.i;
  15758. }
  15759. bool operator!= (const iter& i, const sentinel& s)
  15760. {
  15761. return !(i == s);
  15762. }
  15763. struct range
  15764. {
  15765. iter begin() const
  15766. {
  15767. return {0};
  15768. }
  15769. sentinel end() const
  15770. {
  15771. return {5};
  15772. }
  15773. };
  15774. void f()
  15775. {
  15776. range r {};
  15777. for (auto i : r)
  15778. {
  15779. [[maybe_unused]] auto v = i;
  15780. }
  15781. }
  15782. }
  15783. namespace test_lambda_capture_asterisk_this_by_value
  15784. {
  15785. struct t
  15786. {
  15787. int i;
  15788. int foo()
  15789. {
  15790. return [*this]()
  15791. {
  15792. return i;
  15793. }();
  15794. }
  15795. };
  15796. }
  15797. namespace test_enum_class_construction
  15798. {
  15799. enum class byte : unsigned char
  15800. {};
  15801. byte foo {42};
  15802. }
  15803. namespace test_constexpr_if
  15804. {
  15805. template <bool cond>
  15806. int f ()
  15807. {
  15808. if constexpr(cond)
  15809. {
  15810. return 13;
  15811. }
  15812. else
  15813. {
  15814. return 42;
  15815. }
  15816. }
  15817. }
  15818. namespace test_selection_statement_with_initializer
  15819. {
  15820. int f()
  15821. {
  15822. return 13;
  15823. }
  15824. int f2()
  15825. {
  15826. if (auto i = f(); i > 0)
  15827. {
  15828. return 3;
  15829. }
  15830. switch (auto i = f(); i + 4)
  15831. {
  15832. case 17:
  15833. return 2;
  15834. default:
  15835. return 1;
  15836. }
  15837. }
  15838. }
  15839. namespace test_template_argument_deduction_for_class_templates
  15840. {
  15841. template <typename T1, typename T2>
  15842. struct pair
  15843. {
  15844. pair (T1 p1, T2 p2)
  15845. : m1 {p1},
  15846. m2 {p2}
  15847. {}
  15848. T1 m1;
  15849. T2 m2;
  15850. };
  15851. void f()
  15852. {
  15853. [[maybe_unused]] auto p = pair{13, 42u};
  15854. }
  15855. }
  15856. namespace test_non_type_auto_template_parameters
  15857. {
  15858. template <auto n>
  15859. struct B
  15860. {};
  15861. B<5> b1;
  15862. B<'a'> b2;
  15863. }
  15864. namespace test_structured_bindings
  15865. {
  15866. int arr[2] = { 1, 2 };
  15867. std::pair<int, int> pr = { 1, 2 };
  15868. auto f1() -> int(&)[2]
  15869. {
  15870. return arr;
  15871. }
  15872. auto f2() -> std::pair<int, int>&
  15873. {
  15874. return pr;
  15875. }
  15876. struct S
  15877. {
  15878. int x1 : 2;
  15879. volatile double y1;
  15880. };
  15881. S f3()
  15882. {
  15883. return {};
  15884. }
  15885. auto [ x1, y1 ] = f1();
  15886. auto& [ xr1, yr1 ] = f1();
  15887. auto [ x2, y2 ] = f2();
  15888. auto& [ xr2, yr2 ] = f2();
  15889. const auto [ x3, y3 ] = f3();
  15890. }
  15891. namespace test_exception_spec_type_system
  15892. {
  15893. struct Good {};
  15894. struct Bad {};
  15895. void g1() noexcept;
  15896. void g2();
  15897. template<typename T>
  15898. Bad
  15899. f(T*, T*);
  15900. template<typename T1, typename T2>
  15901. Good
  15902. f(T1*, T2*);
  15903. static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
  15904. }
  15905. namespace test_inline_variables
  15906. {
  15907. template<class T> void f(T)
  15908. {}
  15909. template<class T> inline T g(T)
  15910. {
  15911. return T{};
  15912. }
  15913. template<> inline void f<>(int)
  15914. {}
  15915. template<> int g<>(int)
  15916. {
  15917. return 5;
  15918. }
  15919. }
  15920. } // namespace cxx17
  15921. #endif // __cplusplus < 201703L
  15922. _ACEOF
  15923. if ac_fn_cxx_try_compile "$LINENO"; then :
  15924. eval $cachevar=yes
  15925. else
  15926. eval $cachevar=no
  15927. fi
  15928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15929. CXX="$ac_save_CXX"
  15930. fi
  15931. eval ac_res=\$$cachevar
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15933. $as_echo "$ac_res" >&6; }
  15934. if eval test x\$$cachevar = xyes; then
  15935. CXX="$CXX $switch"
  15936. if test -n "$CXXCPP" ; then
  15937. CXXCPP="$CXXCPP $switch"
  15938. fi
  15939. ac_success=yes
  15940. break
  15941. fi
  15942. done
  15943. if test x$ac_success = xyes; then
  15944. break
  15945. fi
  15946. done
  15947. fi
  15948. ac_ext=c
  15949. ac_cpp='$CPP $CPPFLAGS'
  15950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15953. if test x$ax_cxx_compile_cxx17_required = xtrue; then
  15954. if test x$ac_success = xno; then
  15955. as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
  15956. fi
  15957. fi
  15958. if test x$ac_success = xno; then
  15959. HAVE_CXX17=0
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
  15961. $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
  15962. else
  15963. HAVE_CXX17=1
  15964. $as_echo "#define HAVE_CXX17 1" >>confdefs.h
  15965. fi
  15966. ac_ext=m
  15967. ac_cpp='$OBJCPP $CPPFLAGS'
  15968. ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15969. ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15970. ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  15971. if test -n "$ac_tool_prefix"; then
  15972. for ac_prog in gcc objcc objc cc CC
  15973. do
  15974. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15975. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15977. $as_echo_n "checking for $ac_word... " >&6; }
  15978. if ${ac_cv_prog_OBJC+:} false; then :
  15979. $as_echo_n "(cached) " >&6
  15980. else
  15981. if test -n "$OBJC"; then
  15982. ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  15983. else
  15984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15985. for as_dir in $PATH
  15986. do
  15987. IFS=$as_save_IFS
  15988. test -z "$as_dir" && as_dir=.
  15989. for ac_exec_ext in '' $ac_executable_extensions; do
  15990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15991. ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  15992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15993. break 2
  15994. fi
  15995. done
  15996. done
  15997. IFS=$as_save_IFS
  15998. fi
  15999. fi
  16000. OBJC=$ac_cv_prog_OBJC
  16001. if test -n "$OBJC"; then
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
  16003. $as_echo "$OBJC" >&6; }
  16004. else
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16006. $as_echo "no" >&6; }
  16007. fi
  16008. test -n "$OBJC" && break
  16009. done
  16010. fi
  16011. if test -z "$OBJC"; then
  16012. ac_ct_OBJC=$OBJC
  16013. for ac_prog in gcc objcc objc cc CC
  16014. do
  16015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16016. set dummy $ac_prog; ac_word=$2
  16017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16018. $as_echo_n "checking for $ac_word... " >&6; }
  16019. if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
  16020. $as_echo_n "(cached) " >&6
  16021. else
  16022. if test -n "$ac_ct_OBJC"; then
  16023. ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  16024. else
  16025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16026. for as_dir in $PATH
  16027. do
  16028. IFS=$as_save_IFS
  16029. test -z "$as_dir" && as_dir=.
  16030. for ac_exec_ext in '' $ac_executable_extensions; do
  16031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16032. ac_cv_prog_ac_ct_OBJC="$ac_prog"
  16033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16034. break 2
  16035. fi
  16036. done
  16037. done
  16038. IFS=$as_save_IFS
  16039. fi
  16040. fi
  16041. ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  16042. if test -n "$ac_ct_OBJC"; then
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
  16044. $as_echo "$ac_ct_OBJC" >&6; }
  16045. else
  16046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16047. $as_echo "no" >&6; }
  16048. fi
  16049. test -n "$ac_ct_OBJC" && break
  16050. done
  16051. if test "x$ac_ct_OBJC" = x; then
  16052. OBJC="gcc"
  16053. else
  16054. case $cross_compiling:$ac_tool_warned in
  16055. yes:)
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16058. ac_tool_warned=yes ;;
  16059. esac
  16060. OBJC=$ac_ct_OBJC
  16061. fi
  16062. fi
  16063. # Provide some information about the compiler.
  16064. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
  16065. set X $ac_compile
  16066. ac_compiler=$2
  16067. for ac_option in --version -v -V -qversion; do
  16068. { { ac_try="$ac_compiler $ac_option >&5"
  16069. case "(($ac_try" in
  16070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16071. *) ac_try_echo=$ac_try;;
  16072. esac
  16073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16074. $as_echo "$ac_try_echo"; } >&5
  16075. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  16076. ac_status=$?
  16077. if test -s conftest.err; then
  16078. sed '10a\
  16079. ... rest of stderr output deleted ...
  16080. 10q' conftest.err >conftest.er1
  16081. cat conftest.er1 >&5
  16082. fi
  16083. rm -f conftest.er1 conftest.err
  16084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16085. test $ac_status = 0; }
  16086. done
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
  16088. $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  16089. if ${ac_cv_objc_compiler_gnu+:} false; then :
  16090. $as_echo_n "(cached) " >&6
  16091. else
  16092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16093. /* end confdefs.h. */
  16094. int
  16095. main ()
  16096. {
  16097. #ifndef __GNUC__
  16098. choke me
  16099. #endif
  16100. ;
  16101. return 0;
  16102. }
  16103. _ACEOF
  16104. if ac_fn_objc_try_compile "$LINENO"; then :
  16105. ac_compiler_gnu=yes
  16106. else
  16107. ac_compiler_gnu=no
  16108. fi
  16109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16110. ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  16111. fi
  16112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
  16113. $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  16114. if test $ac_compiler_gnu = yes; then
  16115. GOBJC=yes
  16116. else
  16117. GOBJC=
  16118. fi
  16119. ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  16120. ac_save_OBJCFLAGS=$OBJCFLAGS
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
  16122. $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  16123. if ${ac_cv_prog_objc_g+:} false; then :
  16124. $as_echo_n "(cached) " >&6
  16125. else
  16126. ac_save_objc_werror_flag=$ac_objc_werror_flag
  16127. ac_objc_werror_flag=yes
  16128. ac_cv_prog_objc_g=no
  16129. OBJCFLAGS="-g"
  16130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16131. /* end confdefs.h. */
  16132. int
  16133. main ()
  16134. {
  16135. ;
  16136. return 0;
  16137. }
  16138. _ACEOF
  16139. if ac_fn_objc_try_compile "$LINENO"; then :
  16140. ac_cv_prog_objc_g=yes
  16141. else
  16142. OBJCFLAGS=""
  16143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16144. /* end confdefs.h. */
  16145. int
  16146. main ()
  16147. {
  16148. ;
  16149. return 0;
  16150. }
  16151. _ACEOF
  16152. if ac_fn_objc_try_compile "$LINENO"; then :
  16153. else
  16154. ac_objc_werror_flag=$ac_save_objc_werror_flag
  16155. OBJCFLAGS="-g"
  16156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16157. /* end confdefs.h. */
  16158. int
  16159. main ()
  16160. {
  16161. ;
  16162. return 0;
  16163. }
  16164. _ACEOF
  16165. if ac_fn_objc_try_compile "$LINENO"; then :
  16166. ac_cv_prog_objc_g=yes
  16167. fi
  16168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16171. fi
  16172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16173. ac_objc_werror_flag=$ac_save_objc_werror_flag
  16174. fi
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
  16176. $as_echo "$ac_cv_prog_objc_g" >&6; }
  16177. if test "$ac_test_OBJCFLAGS" = set; then
  16178. OBJCFLAGS=$ac_save_OBJCFLAGS
  16179. elif test $ac_cv_prog_objc_g = yes; then
  16180. if test "$GOBJC" = yes; then
  16181. OBJCFLAGS="-g -O2"
  16182. else
  16183. OBJCFLAGS="-g"
  16184. fi
  16185. else
  16186. if test "$GOBJC" = yes; then
  16187. OBJCFLAGS="-O2"
  16188. else
  16189. OBJCFLAGS=
  16190. fi
  16191. fi
  16192. ac_ext=c
  16193. ac_cpp='$CPP $CPPFLAGS'
  16194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16197. depcc="$OBJC" am_compiler_list='gcc3 gcc'
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  16199. $as_echo_n "checking dependency style of $depcc... " >&6; }
  16200. if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
  16201. $as_echo_n "(cached) " >&6
  16202. else
  16203. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16204. # We make a subdir and do the tests there. Otherwise we can end up
  16205. # making bogus files that we don't know about and never remove. For
  16206. # instance it was reported that on HP-UX the gcc test will end up
  16207. # making a dummy file named 'D' -- because '-MD' means "put the output
  16208. # in D".
  16209. rm -rf conftest.dir
  16210. mkdir conftest.dir
  16211. # Copy depcomp to subdir because otherwise we won't find it if we're
  16212. # using a relative directory.
  16213. cp "$am_depcomp" conftest.dir
  16214. cd conftest.dir
  16215. # We will build objects and dependencies in a subdirectory because
  16216. # it helps to detect inapplicable dependency modes. For instance
  16217. # both Tru64's cc and ICC support -MD to output dependencies as a
  16218. # side effect of compilation, but ICC will put the dependencies in
  16219. # the current directory while Tru64 will put them in the object
  16220. # directory.
  16221. mkdir sub
  16222. am_cv_OBJC_dependencies_compiler_type=none
  16223. if test "$am_compiler_list" = ""; then
  16224. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16225. fi
  16226. am__universal=false
  16227. for depmode in $am_compiler_list; do
  16228. # Setup a source with many dependencies, because some compilers
  16229. # like to wrap large dependency lists on column 80 (with \), and
  16230. # we should not choose a depcomp mode which is confused by this.
  16231. #
  16232. # We need to recreate these files for each test, as the compiler may
  16233. # overwrite some of them when testing with obscure command lines.
  16234. # This happens at least with the AIX C compiler.
  16235. : > sub/conftest.c
  16236. for i in 1 2 3 4 5 6; do
  16237. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16238. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  16239. # Solaris 10 /bin/sh.
  16240. echo '/* dummy */' > sub/conftst$i.h
  16241. done
  16242. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16243. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  16244. # mode. It turns out that the SunPro C++ compiler does not properly
  16245. # handle '-M -o', and we need to detect this. Also, some Intel
  16246. # versions had trouble with output in subdirs.
  16247. am__obj=sub/conftest.${OBJEXT-o}
  16248. am__minus_obj="-o $am__obj"
  16249. case $depmode in
  16250. gcc)
  16251. # This depmode causes a compiler race in universal mode.
  16252. test "$am__universal" = false || continue
  16253. ;;
  16254. nosideeffect)
  16255. # After this tag, mechanisms are not by side-effect, so they'll
  16256. # only be used when explicitly requested.
  16257. if test "x$enable_dependency_tracking" = xyes; then
  16258. continue
  16259. else
  16260. break
  16261. fi
  16262. ;;
  16263. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  16264. # This compiler won't grok '-c -o', but also, the minuso test has
  16265. # not run yet. These depmodes are late enough in the game, and
  16266. # so weak that their functioning should not be impacted.
  16267. am__obj=conftest.${OBJEXT-o}
  16268. am__minus_obj=
  16269. ;;
  16270. none) break ;;
  16271. esac
  16272. if depmode=$depmode \
  16273. source=sub/conftest.c object=$am__obj \
  16274. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16275. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  16276. >/dev/null 2>conftest.err &&
  16277. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16278. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16279. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  16280. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16281. # icc doesn't choke on unknown options, it will just issue warnings
  16282. # or remarks (even with -Werror). So we grep stderr for any message
  16283. # that says an option was ignored or not supported.
  16284. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16285. # icc: Command line warning: ignoring option '-M'; no argument required
  16286. # The diagnosis changed in icc 8.0:
  16287. # icc: Command line remark: option '-MP' not supported
  16288. if (grep 'ignoring option' conftest.err ||
  16289. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16290. am_cv_OBJC_dependencies_compiler_type=$depmode
  16291. break
  16292. fi
  16293. fi
  16294. done
  16295. cd ..
  16296. rm -rf conftest.dir
  16297. else
  16298. am_cv_OBJC_dependencies_compiler_type=none
  16299. fi
  16300. fi
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  16302. $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
  16303. OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  16304. if
  16305. test "x$enable_dependency_tracking" != xno \
  16306. && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  16307. am__fastdepOBJC_TRUE=
  16308. am__fastdepOBJC_FALSE='#'
  16309. else
  16310. am__fastdepOBJC_TRUE='#'
  16311. am__fastdepOBJC_FALSE=
  16312. fi
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16314. $as_echo_n "checking for inline... " >&6; }
  16315. if ${ac_cv_c_inline+:} false; then :
  16316. $as_echo_n "(cached) " >&6
  16317. else
  16318. ac_cv_c_inline=no
  16319. for ac_kw in inline __inline__ __inline; do
  16320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16321. /* end confdefs.h. */
  16322. #ifndef __cplusplus
  16323. typedef int foo_t;
  16324. static $ac_kw foo_t static_foo () {return 0; }
  16325. $ac_kw foo_t foo () {return 0; }
  16326. #endif
  16327. _ACEOF
  16328. if ac_fn_c_try_compile "$LINENO"; then :
  16329. ac_cv_c_inline=$ac_kw
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16332. test "$ac_cv_c_inline" != no && break
  16333. done
  16334. fi
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16336. $as_echo "$ac_cv_c_inline" >&6; }
  16337. case $ac_cv_c_inline in
  16338. inline | yes) ;;
  16339. *)
  16340. case $ac_cv_c_inline in
  16341. no) ac_val=;;
  16342. *) ac_val=$ac_cv_c_inline;;
  16343. esac
  16344. cat >>confdefs.h <<_ACEOF
  16345. #ifndef __cplusplus
  16346. #define inline $ac_val
  16347. #endif
  16348. _ACEOF
  16349. ;;
  16350. esac
  16351. if test "${GCC}" = "yes"
  16352. then
  16353. # Enable common warnings flags
  16354. CFLAGS="${CFLAGS} -Wall"
  16355. # Enable common extra flags
  16356. CFLAGS="${CFLAGS} -Wextra"
  16357. # Enable specific warning flags not included by -Wall or -Wextra
  16358. CFLAGS="${CFLAGS} -Wmissing-include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
  16359. # Enable additional C99 warnings
  16360. save_CFLAGS="${CFLAGS}"
  16361. CFLAGS=""
  16362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wtrampolines" >&5
  16363. $as_echo_n "checking whether C compiler accepts -Wtrampolines... " >&6; }
  16364. if ${ax_cv_check_cflags__Werror__Wtrampolines+:} false; then :
  16365. $as_echo_n "(cached) " >&6
  16366. else
  16367. ax_check_save_flags=$CFLAGS
  16368. CFLAGS="$CFLAGS -Werror -Wtrampolines"
  16369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16370. /* end confdefs.h. */
  16371. int
  16372. main ()
  16373. {
  16374. ;
  16375. return 0;
  16376. }
  16377. _ACEOF
  16378. if ac_fn_c_try_compile "$LINENO"; then :
  16379. ax_cv_check_cflags__Werror__Wtrampolines=yes
  16380. else
  16381. ax_cv_check_cflags__Werror__Wtrampolines=no
  16382. fi
  16383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16384. CFLAGS=$ax_check_save_flags
  16385. fi
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wtrampolines" >&5
  16387. $as_echo "$ax_cv_check_cflags__Werror__Wtrampolines" >&6; }
  16388. if test "x$ax_cv_check_cflags__Werror__Wtrampolines" = xyes; then :
  16389. save_CFLAGS="${save_CFLAGS} -Wtrampolines"
  16390. else
  16391. :
  16392. fi
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlogical-op" >&5
  16394. $as_echo_n "checking whether C compiler accepts -Wlogical-op... " >&6; }
  16395. if ${ax_cv_check_cflags__Werror__Wlogical_op+:} false; then :
  16396. $as_echo_n "(cached) " >&6
  16397. else
  16398. ax_check_save_flags=$CFLAGS
  16399. CFLAGS="$CFLAGS -Werror -Wlogical-op"
  16400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16401. /* end confdefs.h. */
  16402. int
  16403. main ()
  16404. {
  16405. ;
  16406. return 0;
  16407. }
  16408. _ACEOF
  16409. if ac_fn_c_try_compile "$LINENO"; then :
  16410. ax_cv_check_cflags__Werror__Wlogical_op=yes
  16411. else
  16412. ax_cv_check_cflags__Werror__Wlogical_op=no
  16413. fi
  16414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16415. CFLAGS=$ax_check_save_flags
  16416. fi
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wlogical_op" >&5
  16418. $as_echo "$ax_cv_check_cflags__Werror__Wlogical_op" >&6; }
  16419. if test "x$ax_cv_check_cflags__Werror__Wlogical_op" = xyes; then :
  16420. save_CFLAGS="${save_CFLAGS} -Wlogical-op"
  16421. else
  16422. :
  16423. fi
  16424. CFLAGS="${save_CFLAGS}"
  16425. fi
  16426. # Workaround for native compilers
  16427. # HP : http://bugs.gnome.org/db/31/3163.html
  16428. # DEC : Enable NaN/Inf
  16429. if test "${GCC}" != "yes" ; then
  16430. case "${build}" in
  16431. *-*-hpux* )
  16432. CFLAGS="${CFLAGS} -Wp,-H30000"
  16433. ;;
  16434. *-dec-osf* )
  16435. CFLAGS="${CFLAGS} -ieee"
  16436. ;;
  16437. *-apple-darwin* )
  16438. CFLAGS="${CFLAGS} -fno-common"
  16439. LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
  16440. ;;
  16441. *-sgi-irix* )
  16442. ;;
  16443. esac
  16444. else
  16445. case "${build}" in
  16446. *-dec-osf* )
  16447. CFLAGS="${CFLAGS} -mieee -Wall"
  16448. ;;
  16449. *alpha*-*-linux* )
  16450. CFLAGS="${CFLAGS} -mieee -Wall"
  16451. ;;
  16452. *-apple-darwin* )
  16453. CFLAGS="${CFLAGS} -fno-common -Wall"
  16454. LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
  16455. ;;
  16456. *-freebsd* )
  16457. CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall"
  16458. ;;
  16459. * )
  16460. CFLAGS="${CFLAGS} -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall"
  16461. ;;
  16462. esac
  16463. fi
  16464. # debug
  16465. # Check whether --enable-debug was given.
  16466. if test "${enable_debug+set}" = set; then :
  16467. enableval=$enable_debug; enable_debug=$enableval
  16468. else
  16469. enable_debug=no
  16470. fi
  16471. if test $enable_debug = "yes"; then
  16472. DEBUG_TRUE=
  16473. DEBUG_FALSE='#'
  16474. else
  16475. DEBUG_TRUE='#'
  16476. DEBUG_FALSE=
  16477. fi
  16478. if test "$enable_debug" = "yes"; then
  16479. if test "$GCC" = "yes"; then
  16480. CFLAGS="$CFLAGS -g -O0"
  16481. CXXFLAGS="$CXXFLAGS -g -O0"
  16482. fi
  16483. fi
  16484. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16485. if test "x$ac_cv_type_pid_t" = xyes; then :
  16486. else
  16487. cat >>confdefs.h <<_ACEOF
  16488. #define pid_t int
  16489. _ACEOF
  16490. fi
  16491. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16492. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16493. else
  16494. cat >>confdefs.h <<_ACEOF
  16495. #define ssize_t int
  16496. _ACEOF
  16497. fi
  16498. # AC_HEADER_STDC
  16499. for ac_header in \
  16500. sys/time.h sys/select.h \
  16501. sys/mman.h \
  16502. sys/ioctl.h sys/inotify.h
  16503. do :
  16504. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16505. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16506. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16507. cat >>confdefs.h <<_ACEOF
  16508. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16509. _ACEOF
  16510. fi
  16511. done
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
  16513. $as_echo_n "checking for main in -lm... " >&6; }
  16514. if ${ac_cv_lib_m_main+:} false; then :
  16515. $as_echo_n "(cached) " >&6
  16516. else
  16517. ac_check_lib_save_LIBS=$LIBS
  16518. LIBS="-lm $LIBS"
  16519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16520. /* end confdefs.h. */
  16521. int
  16522. main ()
  16523. {
  16524. return main ();
  16525. ;
  16526. return 0;
  16527. }
  16528. _ACEOF
  16529. if ac_fn_c_try_link "$LINENO"; then :
  16530. ac_cv_lib_m_main=yes
  16531. else
  16532. ac_cv_lib_m_main=no
  16533. fi
  16534. rm -f core conftest.err conftest.$ac_objext \
  16535. conftest$ac_exeext conftest.$ac_ext
  16536. LIBS=$ac_check_lib_save_LIBS
  16537. fi
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
  16539. $as_echo "$ac_cv_lib_m_main" >&6; }
  16540. if test "x$ac_cv_lib_m_main" = xyes; then :
  16541. MATH_LIBS="-lm"
  16542. fi
  16543. # -----------------------------------
  16544. # Checks for library functions
  16545. for ac_func in lrand48 drand48 srand48 setmode setenv \
  16546. memrchr select dl_iterate_phdr inotify_init1
  16547. do :
  16548. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16549. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16550. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16551. cat >>confdefs.h <<_ACEOF
  16552. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16553. _ACEOF
  16554. fi
  16555. done
  16556. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16557. if test "x$ac_cv_func_strcasestr" = xyes; then :
  16558. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  16559. else
  16560. case " $LIBOBJS " in
  16561. *" strcasestr.$ac_objext "* ) ;;
  16562. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  16563. ;;
  16564. esac
  16565. fi
  16566. save_LIBS="$LIBS"
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
  16568. $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
  16569. if ${libltdl_cv_shlibext+:} false; then :
  16570. $as_echo_n "(cached) " >&6
  16571. else
  16572. module=yes
  16573. eval libltdl_cv_shlibext=$shrext_cmds
  16574. module=no
  16575. eval libltdl_cv_shrext=$shrext_cmds
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  16578. $as_echo "$libltdl_cv_shlibext" >&6; }
  16579. if test -n "$libltdl_cv_shlibext"; then
  16580. cat >>confdefs.h <<_ACEOF
  16581. #define LT_MODULE_EXT "$libltdl_cv_shlibext"
  16582. _ACEOF
  16583. fi
  16584. if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
  16585. cat >>confdefs.h <<_ACEOF
  16586. #define LT_SHARED_EXT "$libltdl_cv_shrext"
  16587. _ACEOF
  16588. fi
  16589. if test -n "$shared_archive_member_spec"; then
  16590. cat >>confdefs.h <<_ACEOF
  16591. #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
  16592. _ACEOF
  16593. fi
  16594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
  16595. $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
  16596. if ${lt_cv_module_path_var+:} false; then :
  16597. $as_echo_n "(cached) " >&6
  16598. else
  16599. lt_cv_module_path_var=$shlibpath_var
  16600. fi
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
  16602. $as_echo "$lt_cv_module_path_var" >&6; }
  16603. if test -n "$lt_cv_module_path_var"; then
  16604. cat >>confdefs.h <<_ACEOF
  16605. #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
  16606. _ACEOF
  16607. fi
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
  16609. $as_echo_n "checking for the default library search path... " >&6; }
  16610. if ${lt_cv_sys_dlsearch_path+:} false; then :
  16611. $as_echo_n "(cached) " >&6
  16612. else
  16613. lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
  16614. fi
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
  16616. $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
  16617. if test -n "$lt_cv_sys_dlsearch_path"; then
  16618. sys_dlsearch_path=
  16619. for dir in $lt_cv_sys_dlsearch_path; do
  16620. if test -z "$sys_dlsearch_path"; then
  16621. sys_dlsearch_path=$dir
  16622. else
  16623. sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
  16624. fi
  16625. done
  16626. cat >>confdefs.h <<_ACEOF
  16627. #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
  16628. _ACEOF
  16629. fi
  16630. LT_DLLOADERS=
  16631. ac_ext=c
  16632. ac_cpp='$CPP $CPPFLAGS'
  16633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16636. lt_dlload_save_LIBS=$LIBS
  16637. LIBADD_DLOPEN=
  16638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  16639. $as_echo_n "checking for library containing dlopen... " >&6; }
  16640. if ${ac_cv_search_dlopen+:} false; then :
  16641. $as_echo_n "(cached) " >&6
  16642. else
  16643. ac_func_search_save_LIBS=$LIBS
  16644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16645. /* end confdefs.h. */
  16646. /* Override any GCC internal prototype to avoid an error.
  16647. Use char because int might match the return type of a GCC
  16648. builtin and then its argument prototype would still apply. */
  16649. #ifdef __cplusplus
  16650. extern "C"
  16651. #endif
  16652. char dlopen ();
  16653. int
  16654. main ()
  16655. {
  16656. return dlopen ();
  16657. ;
  16658. return 0;
  16659. }
  16660. _ACEOF
  16661. for ac_lib in '' dl; do
  16662. if test -z "$ac_lib"; then
  16663. ac_res="none required"
  16664. else
  16665. ac_res=-l$ac_lib
  16666. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16667. fi
  16668. if ac_fn_c_try_link "$LINENO"; then :
  16669. ac_cv_search_dlopen=$ac_res
  16670. fi
  16671. rm -f core conftest.err conftest.$ac_objext \
  16672. conftest$ac_exeext
  16673. if ${ac_cv_search_dlopen+:} false; then :
  16674. break
  16675. fi
  16676. done
  16677. if ${ac_cv_search_dlopen+:} false; then :
  16678. else
  16679. ac_cv_search_dlopen=no
  16680. fi
  16681. rm conftest.$ac_ext
  16682. LIBS=$ac_func_search_save_LIBS
  16683. fi
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  16685. $as_echo "$ac_cv_search_dlopen" >&6; }
  16686. ac_res=$ac_cv_search_dlopen
  16687. if test "$ac_res" != no; then :
  16688. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16689. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16690. if test "$ac_cv_search_dlopen" != "none required"; then
  16691. LIBADD_DLOPEN=-ldl
  16692. fi
  16693. libltdl_cv_lib_dl_dlopen=yes
  16694. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16695. else
  16696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16697. /* end confdefs.h. */
  16698. #if HAVE_DLFCN_H
  16699. # include <dlfcn.h>
  16700. #endif
  16701. int
  16702. main ()
  16703. {
  16704. dlopen(0, 0);
  16705. ;
  16706. return 0;
  16707. }
  16708. _ACEOF
  16709. if ac_fn_c_try_link "$LINENO"; then :
  16710. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16711. libltdl_cv_func_dlopen=yes
  16712. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16713. else
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  16715. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  16716. if ${ac_cv_lib_svld_dlopen+:} false; then :
  16717. $as_echo_n "(cached) " >&6
  16718. else
  16719. ac_check_lib_save_LIBS=$LIBS
  16720. LIBS="-lsvld $LIBS"
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. /* Override any GCC internal prototype to avoid an error.
  16724. Use char because int might match the return type of a GCC
  16725. builtin and then its argument prototype would still apply. */
  16726. #ifdef __cplusplus
  16727. extern "C"
  16728. #endif
  16729. char dlopen ();
  16730. int
  16731. main ()
  16732. {
  16733. return dlopen ();
  16734. ;
  16735. return 0;
  16736. }
  16737. _ACEOF
  16738. if ac_fn_c_try_link "$LINENO"; then :
  16739. ac_cv_lib_svld_dlopen=yes
  16740. else
  16741. ac_cv_lib_svld_dlopen=no
  16742. fi
  16743. rm -f core conftest.err conftest.$ac_objext \
  16744. conftest$ac_exeext conftest.$ac_ext
  16745. LIBS=$ac_check_lib_save_LIBS
  16746. fi
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  16748. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  16749. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  16750. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16751. LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
  16752. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16753. fi
  16754. fi
  16755. rm -f core conftest.err conftest.$ac_objext \
  16756. conftest$ac_exeext conftest.$ac_ext
  16757. fi
  16758. if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
  16759. then
  16760. lt_save_LIBS=$LIBS
  16761. LIBS="$LIBS $LIBADD_DLOPEN"
  16762. for ac_func in dlerror
  16763. do :
  16764. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  16765. if test "x$ac_cv_func_dlerror" = xyes; then :
  16766. cat >>confdefs.h <<_ACEOF
  16767. #define HAVE_DLERROR 1
  16768. _ACEOF
  16769. fi
  16770. done
  16771. LIBS=$lt_save_LIBS
  16772. fi
  16773. LIBADD_SHL_LOAD=
  16774. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  16775. if test "x$ac_cv_func_shl_load" = xyes; then :
  16776. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  16777. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  16778. else
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  16780. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  16781. if ${ac_cv_lib_dld_shl_load+:} false; then :
  16782. $as_echo_n "(cached) " >&6
  16783. else
  16784. ac_check_lib_save_LIBS=$LIBS
  16785. LIBS="-ldld $LIBS"
  16786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16787. /* end confdefs.h. */
  16788. /* Override any GCC internal prototype to avoid an error.
  16789. Use char because int might match the return type of a GCC
  16790. builtin and then its argument prototype would still apply. */
  16791. #ifdef __cplusplus
  16792. extern "C"
  16793. #endif
  16794. char shl_load ();
  16795. int
  16796. main ()
  16797. {
  16798. return shl_load ();
  16799. ;
  16800. return 0;
  16801. }
  16802. _ACEOF
  16803. if ac_fn_c_try_link "$LINENO"; then :
  16804. ac_cv_lib_dld_shl_load=yes
  16805. else
  16806. ac_cv_lib_dld_shl_load=no
  16807. fi
  16808. rm -f core conftest.err conftest.$ac_objext \
  16809. conftest$ac_exeext conftest.$ac_ext
  16810. LIBS=$ac_check_lib_save_LIBS
  16811. fi
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  16813. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  16814. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  16815. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  16816. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  16817. LIBADD_SHL_LOAD=-ldld
  16818. fi
  16819. fi
  16820. case $host_os in
  16821. darwin[1567].*)
  16822. # We only want this for pre-Mac OS X 10.4.
  16823. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  16824. if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
  16825. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  16826. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
  16827. fi
  16828. ;;
  16829. beos*)
  16830. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  16831. ;;
  16832. cygwin* | mingw* | pw32*)
  16833. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  16834. "
  16835. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  16836. ac_have_decl=1
  16837. else
  16838. ac_have_decl=0
  16839. fi
  16840. cat >>confdefs.h <<_ACEOF
  16841. #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
  16842. _ACEOF
  16843. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  16844. ;;
  16845. esac
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  16847. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  16848. if ${ac_cv_lib_dld_dld_link+:} false; then :
  16849. $as_echo_n "(cached) " >&6
  16850. else
  16851. ac_check_lib_save_LIBS=$LIBS
  16852. LIBS="-ldld $LIBS"
  16853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16854. /* end confdefs.h. */
  16855. /* Override any GCC internal prototype to avoid an error.
  16856. Use char because int might match the return type of a GCC
  16857. builtin and then its argument prototype would still apply. */
  16858. #ifdef __cplusplus
  16859. extern "C"
  16860. #endif
  16861. char dld_link ();
  16862. int
  16863. main ()
  16864. {
  16865. return dld_link ();
  16866. ;
  16867. return 0;
  16868. }
  16869. _ACEOF
  16870. if ac_fn_c_try_link "$LINENO"; then :
  16871. ac_cv_lib_dld_dld_link=yes
  16872. else
  16873. ac_cv_lib_dld_dld_link=no
  16874. fi
  16875. rm -f core conftest.err conftest.$ac_objext \
  16876. conftest$ac_exeext conftest.$ac_ext
  16877. LIBS=$ac_check_lib_save_LIBS
  16878. fi
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  16880. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  16881. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  16882. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  16883. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
  16884. fi
  16885. LT_DLPREOPEN=
  16886. if test -n "$LT_DLLOADERS"
  16887. then
  16888. for lt_loader in $LT_DLLOADERS; do
  16889. LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  16890. done
  16891. $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
  16892. fi
  16893. LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  16894. LIBS=$lt_dlload_save_LIBS
  16895. ac_ext=c
  16896. ac_cpp='$CPP $CPPFLAGS'
  16897. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16898. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16899. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  16901. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  16902. if ${lt_cv_sys_symbol_underscore+:} false; then :
  16903. $as_echo_n "(cached) " >&6
  16904. else
  16905. lt_cv_sys_symbol_underscore=no
  16906. cat > conftest.$ac_ext <<_LT_EOF
  16907. void nm_test_func(){}
  16908. int main(){nm_test_func;return 0;}
  16909. _LT_EOF
  16910. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16911. (eval $ac_compile) 2>&5
  16912. ac_status=$?
  16913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16914. test $ac_status = 0; }; then
  16915. # Now try to grab the symbols.
  16916. ac_nlist=conftest.nm
  16917. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  16918. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  16919. ac_status=$?
  16920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16921. test $ac_status = 0; } && test -s "$ac_nlist"; then
  16922. # See whether the symbols have a leading underscore.
  16923. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  16924. lt_cv_sys_symbol_underscore=yes
  16925. else
  16926. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  16927. :
  16928. else
  16929. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  16930. fi
  16931. fi
  16932. else
  16933. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  16934. fi
  16935. else
  16936. echo "configure: failed program was:" >&5
  16937. cat conftest.c >&5
  16938. fi
  16939. rm -rf conftest*
  16940. fi
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
  16942. $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  16943. sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  16944. if test yes = "$lt_cv_sys_symbol_underscore"; then
  16945. if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
  16947. $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
  16948. if ${libltdl_cv_need_uscore+:} false; then :
  16949. $as_echo_n "(cached) " >&6
  16950. else
  16951. libltdl_cv_need_uscore=unknown
  16952. dlsym_uscore_save_LIBS=$LIBS
  16953. LIBS="$LIBS $LIBADD_DLOPEN"
  16954. libname=conftmod # stay within 8.3 filename limits!
  16955. cat >$libname.$ac_ext <<_LT_EOF
  16956. #line $LINENO "configure"
  16957. #include "confdefs.h"
  16958. /* When -fvisibility=hidden is used, assume the code has been annotated
  16959. correspondingly for the symbols needed. */
  16960. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  16961. int fnord () __attribute__((visibility("default")));
  16962. #endif
  16963. int fnord () { return 42; }
  16964. _LT_EOF
  16965. # ltfn_module_cmds module_cmds
  16966. # Execute tilde-delimited MODULE_CMDS with environment primed for
  16967. # $module_cmds or $archive_cmds type content.
  16968. ltfn_module_cmds ()
  16969. {( # subshell avoids polluting parent global environment
  16970. module_cmds_save_ifs=$IFS; IFS='~'
  16971. for cmd in $1; do
  16972. IFS=$module_cmds_save_ifs
  16973. libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
  16974. rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
  16975. major=; versuffix=; verstring=; deplibs=
  16976. ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
  16977. eval $cmd
  16978. done
  16979. IFS=$module_cmds_save_ifs
  16980. )}
  16981. # Compile a loadable module using libtool macro expansion results.
  16982. $CC $pic_flag -c $libname.$ac_ext
  16983. ltfn_module_cmds "${module_cmds:-$archive_cmds}"
  16984. # Try to fetch fnord with dlsym().
  16985. libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
  16986. cat >conftest.$ac_ext <<_LT_EOF
  16987. #line $LINENO "configure"
  16988. #include "confdefs.h"
  16989. #if HAVE_DLFCN_H
  16990. #include <dlfcn.h>
  16991. #endif
  16992. #include <stdio.h>
  16993. #ifndef RTLD_GLOBAL
  16994. # ifdef DL_GLOBAL
  16995. # define RTLD_GLOBAL DL_GLOBAL
  16996. # else
  16997. # define RTLD_GLOBAL 0
  16998. # endif
  16999. #endif
  17000. #ifndef RTLD_NOW
  17001. # ifdef DL_NOW
  17002. # define RTLD_NOW DL_NOW
  17003. # else
  17004. # define RTLD_NOW 0
  17005. # endif
  17006. #endif
  17007. int main () {
  17008. void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
  17009. int status = $libltdl_dlunknown;
  17010. if (handle) {
  17011. if (dlsym (handle, "fnord"))
  17012. status = $libltdl_dlnouscore;
  17013. else {
  17014. if (dlsym (handle, "_fnord"))
  17015. status = $libltdl_dluscore;
  17016. else
  17017. puts (dlerror ());
  17018. }
  17019. dlclose (handle);
  17020. } else
  17021. puts (dlerror ());
  17022. return status;
  17023. }
  17024. _LT_EOF
  17025. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  17026. (eval $ac_link) 2>&5
  17027. ac_status=$?
  17028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17029. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  17030. (./conftest; exit; ) >&5 2>/dev/null
  17031. libltdl_status=$?
  17032. case x$libltdl_status in
  17033. x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
  17034. x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
  17035. x*) libltdl_cv_need_uscore=unknown ;;
  17036. esac
  17037. fi
  17038. rm -rf conftest* $libname*
  17039. LIBS=$dlsym_uscore_save_LIBS
  17040. fi
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
  17042. $as_echo "$libltdl_cv_need_uscore" >&6; }
  17043. fi
  17044. fi
  17045. if test yes = "$libltdl_cv_need_uscore"; then
  17046. $as_echo "#define NEED_USCORE 1" >>confdefs.h
  17047. fi
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
  17049. $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
  17050. if ${lt_cv_sys_dlopen_deplibs+:} false; then :
  17051. $as_echo_n "(cached) " >&6
  17052. else
  17053. # PORTME does your system automatically load deplibs for dlopen?
  17054. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  17055. # For now, we just catch OSes we know something about -- in the
  17056. # future, we'll try test this programmatically.
  17057. lt_cv_sys_dlopen_deplibs=unknown
  17058. case $host_os in
  17059. aix3*|aix4.1.*|aix4.2.*)
  17060. # Unknown whether this is true for these versions of AIX, but
  17061. # we want this 'case' here to explicitly catch those versions.
  17062. lt_cv_sys_dlopen_deplibs=unknown
  17063. ;;
  17064. aix[4-9]*)
  17065. lt_cv_sys_dlopen_deplibs=yes
  17066. ;;
  17067. amigaos*)
  17068. case $host_cpu in
  17069. powerpc)
  17070. lt_cv_sys_dlopen_deplibs=no
  17071. ;;
  17072. esac
  17073. ;;
  17074. bitrig*)
  17075. lt_cv_sys_dlopen_deplibs=yes
  17076. ;;
  17077. darwin*)
  17078. # Assuming the user has installed a libdl from somewhere, this is true
  17079. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  17080. lt_cv_sys_dlopen_deplibs=yes
  17081. ;;
  17082. freebsd* | dragonfly*)
  17083. lt_cv_sys_dlopen_deplibs=yes
  17084. ;;
  17085. gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17086. # GNU and its variants, using gnu ld.so (Glibc)
  17087. lt_cv_sys_dlopen_deplibs=yes
  17088. ;;
  17089. hpux10*|hpux11*)
  17090. lt_cv_sys_dlopen_deplibs=yes
  17091. ;;
  17092. interix*)
  17093. lt_cv_sys_dlopen_deplibs=yes
  17094. ;;
  17095. irix[12345]*|irix6.[01]*)
  17096. # Catch all versions of IRIX before 6.2, and indicate that we don't
  17097. # know how it worked for any of those versions.
  17098. lt_cv_sys_dlopen_deplibs=unknown
  17099. ;;
  17100. irix*)
  17101. # The case above catches anything before 6.2, and it's known that
  17102. # at 6.2 and later dlopen does load deplibs.
  17103. lt_cv_sys_dlopen_deplibs=yes
  17104. ;;
  17105. netbsd* | netbsdelf*-gnu)
  17106. lt_cv_sys_dlopen_deplibs=yes
  17107. ;;
  17108. openbsd*)
  17109. lt_cv_sys_dlopen_deplibs=yes
  17110. ;;
  17111. osf[1234]*)
  17112. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  17113. # it did *not* use an RPATH in a shared library to find objects the
  17114. # library depends on, so we explicitly say 'no'.
  17115. lt_cv_sys_dlopen_deplibs=no
  17116. ;;
  17117. osf5.0|osf5.0a|osf5.1)
  17118. # dlopen *does* load deplibs and with the right loader patch applied
  17119. # it even uses RPATH in a shared library to search for shared objects
  17120. # that the library depends on, but there's no easy way to know if that
  17121. # patch is installed. Since this is the case, all we can really
  17122. # say is unknown -- it depends on the patch being installed. If
  17123. # it is, this changes to 'yes'. Without it, it would be 'no'.
  17124. lt_cv_sys_dlopen_deplibs=unknown
  17125. ;;
  17126. osf*)
  17127. # the two cases above should catch all versions of osf <= 5.1. Read
  17128. # the comments above for what we know about them.
  17129. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  17130. # is used to find them so we can finally say 'yes'.
  17131. lt_cv_sys_dlopen_deplibs=yes
  17132. ;;
  17133. qnx*)
  17134. lt_cv_sys_dlopen_deplibs=yes
  17135. ;;
  17136. solaris*)
  17137. lt_cv_sys_dlopen_deplibs=yes
  17138. ;;
  17139. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17140. libltdl_cv_sys_dlopen_deplibs=yes
  17141. ;;
  17142. esac
  17143. fi
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
  17145. $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
  17146. if test yes != "$lt_cv_sys_dlopen_deplibs"; then
  17147. $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
  17148. fi
  17149. for ac_header in argz.h
  17150. do :
  17151. ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
  17152. "
  17153. if test "x$ac_cv_header_argz_h" = xyes; then :
  17154. cat >>confdefs.h <<_ACEOF
  17155. #define HAVE_ARGZ_H 1
  17156. _ACEOF
  17157. fi
  17158. done
  17159. ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
  17160. # include <argz.h>
  17161. #endif
  17162. "
  17163. if test "x$ac_cv_type_error_t" = xyes; then :
  17164. cat >>confdefs.h <<_ACEOF
  17165. #define HAVE_ERROR_T 1
  17166. _ACEOF
  17167. else
  17168. $as_echo "#define error_t int" >>confdefs.h
  17169. $as_echo "#define __error_t_defined 1" >>confdefs.h
  17170. fi
  17171. LT_ARGZ_H=
  17172. for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
  17173. argz_next argz_stringify
  17174. do :
  17175. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17176. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17177. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17178. cat >>confdefs.h <<_ACEOF
  17179. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17180. _ACEOF
  17181. else
  17182. LT_ARGZ_H=lt__argz.h;
  17183. _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
  17184. fi
  17185. done
  17186. if test -z "$LT_ARGZ_H"; then :
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
  17188. $as_echo_n "checking if argz actually works... " >&6; }
  17189. if ${lt_cv_sys_argz_works+:} false; then :
  17190. $as_echo_n "(cached) " >&6
  17191. else
  17192. case $host_os in #(
  17193. *cygwin*)
  17194. lt_cv_sys_argz_works=no
  17195. if test no != "$cross_compiling"; then
  17196. lt_cv_sys_argz_works="guessing no"
  17197. else
  17198. lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
  17199. save_IFS=$IFS
  17200. IFS=-.
  17201. set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
  17202. IFS=$save_IFS
  17203. lt_os_major=${2-0}
  17204. lt_os_minor=${3-0}
  17205. lt_os_micro=${4-0}
  17206. if test 1 -lt "$lt_os_major" \
  17207. || { test 1 -eq "$lt_os_major" \
  17208. && { test 5 -lt "$lt_os_minor" \
  17209. || { test 5 -eq "$lt_os_minor" \
  17210. && test 24 -lt "$lt_os_micro"; }; }; }; then
  17211. lt_cv_sys_argz_works=yes
  17212. fi
  17213. fi
  17214. ;; #(
  17215. *) lt_cv_sys_argz_works=yes ;;
  17216. esac
  17217. fi
  17218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
  17219. $as_echo "$lt_cv_sys_argz_works" >&6; }
  17220. if test yes = "$lt_cv_sys_argz_works"; then :
  17221. $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
  17222. else
  17223. LT_ARGZ_H=lt__argz.h
  17224. _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
  17225. fi
  17226. fi
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
  17228. $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
  17229. if ${libltdl_cv_preloaded_symbols+:} false; then :
  17230. $as_echo_n "(cached) " >&6
  17231. else
  17232. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  17233. libltdl_cv_preloaded_symbols=yes
  17234. else
  17235. libltdl_cv_preloaded_symbols=no
  17236. fi
  17237. fi
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
  17239. $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
  17240. if test yes = "$libltdl_cv_preloaded_symbols"; then
  17241. $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
  17242. fi
  17243. # Set options
  17244. # Check whether --with-included_ltdl was given.
  17245. if test "${with_included_ltdl+set}" = set; then :
  17246. withval=$with_included_ltdl;
  17247. fi
  17248. if test yes != "$with_included_ltdl"; then
  17249. # We are not being forced to use the included libltdl sources, so
  17250. # decide whether there is a useful installed version we can use.
  17251. ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
  17252. "
  17253. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  17254. ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
  17255. #include <ltdl.h>
  17256. "
  17257. if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
  17259. $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
  17260. if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
  17261. $as_echo_n "(cached) " >&6
  17262. else
  17263. ac_check_lib_save_LIBS=$LIBS
  17264. LIBS="-lltdl $LIBS"
  17265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17266. /* end confdefs.h. */
  17267. /* Override any GCC internal prototype to avoid an error.
  17268. Use char because int might match the return type of a GCC
  17269. builtin and then its argument prototype would still apply. */
  17270. #ifdef __cplusplus
  17271. extern "C"
  17272. #endif
  17273. char lt_dladvise_preload ();
  17274. int
  17275. main ()
  17276. {
  17277. return lt_dladvise_preload ();
  17278. ;
  17279. return 0;
  17280. }
  17281. _ACEOF
  17282. if ac_fn_c_try_link "$LINENO"; then :
  17283. ac_cv_lib_ltdl_lt_dladvise_preload=yes
  17284. else
  17285. ac_cv_lib_ltdl_lt_dladvise_preload=no
  17286. fi
  17287. rm -f core conftest.err conftest.$ac_objext \
  17288. conftest$ac_exeext conftest.$ac_ext
  17289. LIBS=$ac_check_lib_save_LIBS
  17290. fi
  17291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
  17292. $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
  17293. if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
  17294. with_included_ltdl=no
  17295. else
  17296. with_included_ltdl=yes
  17297. fi
  17298. else
  17299. with_included_ltdl=yes
  17300. fi
  17301. else
  17302. with_included_ltdl=yes
  17303. fi
  17304. fi
  17305. # Check whether --with-ltdl_include was given.
  17306. if test "${with_ltdl_include+set}" = set; then :
  17307. withval=$with_ltdl_include;
  17308. fi
  17309. if test -n "$with_ltdl_include"; then
  17310. if test -f "$with_ltdl_include/ltdl.h"; then :
  17311. else
  17312. as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
  17313. fi
  17314. else
  17315. with_ltdl_include=no
  17316. fi
  17317. # Check whether --with-ltdl_lib was given.
  17318. if test "${with_ltdl_lib+set}" = set; then :
  17319. withval=$with_ltdl_lib;
  17320. fi
  17321. if test -n "$with_ltdl_lib"; then
  17322. if test -f "$with_ltdl_lib/libltdl.la"; then :
  17323. else
  17324. as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
  17325. fi
  17326. else
  17327. with_ltdl_lib=no
  17328. fi
  17329. case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
  17330. ,yes,no,no,)
  17331. case $enable_ltdl_convenience in
  17332. no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
  17333. "") enable_ltdl_convenience=yes
  17334. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  17335. esac
  17336. LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
  17337. LTDLDEPS=$LIBLTDL
  17338. LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
  17339. # For backwards non-gettext consistent compatibility...
  17340. INCLTDL=$LTDLINCL
  17341. ;;
  17342. ,no,no,no,)
  17343. # If the included ltdl is not to be used, then use the
  17344. # preinstalled libltdl we found.
  17345. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  17346. LIBLTDL=-lltdl
  17347. LTDLDEPS=
  17348. LTDLINCL=
  17349. ;;
  17350. ,no*,no,*)
  17351. as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
  17352. ;;
  17353. *) with_included_ltdl=no
  17354. LIBLTDL="-L$with_ltdl_lib -lltdl"
  17355. LTDLDEPS=
  17356. LTDLINCL=-I$with_ltdl_include
  17357. ;;
  17358. esac
  17359. INCLTDL=$LTDLINCL
  17360. # Report our decision...
  17361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
  17362. $as_echo_n "checking where to find libltdl headers... " >&6; }
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
  17364. $as_echo "$LTDLINCL" >&6; }
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
  17366. $as_echo_n "checking where to find libltdl library... " >&6; }
  17367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
  17368. $as_echo "$LIBLTDL" >&6; }
  17369. # Check whether --enable-ltdl-install was given.
  17370. if test "${enable_ltdl_install+set}" = set; then :
  17371. enableval=$enable_ltdl_install;
  17372. fi
  17373. case ,$enable_ltdl_install,$enable_ltdl_convenience in
  17374. *yes*) ;;
  17375. *) enable_ltdl_convenience=yes ;;
  17376. esac
  17377. if test no != "${enable_ltdl_install-no}"; then
  17378. INSTALL_LTDL_TRUE=
  17379. INSTALL_LTDL_FALSE='#'
  17380. else
  17381. INSTALL_LTDL_TRUE='#'
  17382. INSTALL_LTDL_FALSE=
  17383. fi
  17384. if test no != "${enable_ltdl_convenience-no}"; then
  17385. CONVENIENCE_LTDL_TRUE=
  17386. CONVENIENCE_LTDL_FALSE='#'
  17387. else
  17388. CONVENIENCE_LTDL_TRUE='#'
  17389. CONVENIENCE_LTDL_FALSE=
  17390. fi
  17391. subdirs="$subdirs libltdl"
  17392. # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
  17393. # the user used. This is so that ltdl.h can pick up the parent projects
  17394. # config.h file, The first file in AC_CONFIG_HEADERS must contain the
  17395. # definitions required by ltdl.c.
  17396. # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
  17397. for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
  17398. do :
  17399. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17400. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  17401. "
  17402. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17403. cat >>confdefs.h <<_ACEOF
  17404. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17405. _ACEOF
  17406. fi
  17407. done
  17408. for ac_func in closedir opendir readdir
  17409. do :
  17410. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17411. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17412. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17413. cat >>confdefs.h <<_ACEOF
  17414. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17415. _ACEOF
  17416. else
  17417. _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
  17418. fi
  17419. done
  17420. for ac_func in strlcat strlcpy
  17421. do :
  17422. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17423. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17424. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17425. cat >>confdefs.h <<_ACEOF
  17426. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17427. _ACEOF
  17428. else
  17429. _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
  17430. fi
  17431. done
  17432. cat >>confdefs.h <<_ACEOF
  17433. #define LT_LIBEXT "$libext"
  17434. _ACEOF
  17435. name=
  17436. eval "lt_libprefix=\"$libname_spec\""
  17437. cat >>confdefs.h <<_ACEOF
  17438. #define LT_LIBPREFIX "$lt_libprefix"
  17439. _ACEOF
  17440. name=ltdl
  17441. eval "LTDLOPEN=\"$libname_spec\""
  17442. # Only expand once:
  17443. # Check whether --enable-ltdl was given.
  17444. if test "${enable_ltdl+set}" = set; then :
  17445. enableval=$enable_ltdl;
  17446. fi
  17447. if test "$enable_ltdl" != "no"; then
  17448. $as_echo "#define ENABLE_LTDL 1" >>confdefs.h
  17449. use_ltdl="Yes"
  17450. # The lt_dladvise_init symbol was added with libtool-2.2
  17451. if test "$with_included_ltdl" != "yes"; then
  17452. save_CFLAGS="$CFLAGS"
  17453. save_LDFLAGS="$LDFLAGS"
  17454. CFLAGS="$CFLAGS $LTDLINCL"
  17455. LDFLAGS="$LDFLAGS $LIBLTDL"
  17456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_init in -lltdl" >&5
  17457. $as_echo_n "checking for lt_dladvise_init in -lltdl... " >&6; }
  17458. if ${ac_cv_lib_ltdl_lt_dladvise_init+:} false; then :
  17459. $as_echo_n "(cached) " >&6
  17460. else
  17461. ac_check_lib_save_LIBS=$LIBS
  17462. LIBS="-lltdl $LIBS"
  17463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17464. /* end confdefs.h. */
  17465. /* Override any GCC internal prototype to avoid an error.
  17466. Use char because int might match the return type of a GCC
  17467. builtin and then its argument prototype would still apply. */
  17468. #ifdef __cplusplus
  17469. extern "C"
  17470. #endif
  17471. char lt_dladvise_init ();
  17472. int
  17473. main ()
  17474. {
  17475. return lt_dladvise_init ();
  17476. ;
  17477. return 0;
  17478. }
  17479. _ACEOF
  17480. if ac_fn_c_try_link "$LINENO"; then :
  17481. ac_cv_lib_ltdl_lt_dladvise_init=yes
  17482. else
  17483. ac_cv_lib_ltdl_lt_dladvise_init=no
  17484. fi
  17485. rm -f core conftest.err conftest.$ac_objext \
  17486. conftest$ac_exeext conftest.$ac_ext
  17487. LIBS=$ac_check_lib_save_LIBS
  17488. fi
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_init" >&5
  17490. $as_echo "$ac_cv_lib_ltdl_lt_dladvise_init" >&6; }
  17491. if test "x$ac_cv_lib_ltdl_lt_dladvise_init" = xyes; then :
  17492. cat >>confdefs.h <<_ACEOF
  17493. #define HAVE_LIBLTDL 1
  17494. _ACEOF
  17495. LIBS="-lltdl $LIBS"
  17496. else
  17497. as_fn_error $? "installed libltdl is too old" "$LINENO" 5
  17498. fi
  17499. LDFLAGS="$save_LDFLAGS"
  17500. CFLAGS="$save_CFLAGS"
  17501. fi
  17502. else
  17503. use_ltdl="No (disabled)"
  17504. fi
  17505. if test "$enable_ltdl" != "no"; then
  17506. ENABLE_LTDL_TRUE=
  17507. ENABLE_LTDL_FALSE='#'
  17508. else
  17509. ENABLE_LTDL_TRUE='#'
  17510. ENABLE_LTDL_FALSE=
  17511. fi
  17512. LIBS="$save_LIBS"
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17514. $as_echo_n "checking for X... " >&6; }
  17515. # Check whether --with-x was given.
  17516. if test "${with_x+set}" = set; then :
  17517. withval=$with_x;
  17518. fi
  17519. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17520. if test "x$with_x" = xno; then
  17521. # The user explicitly disabled X.
  17522. have_x=disabled
  17523. else
  17524. case $x_includes,$x_libraries in #(
  17525. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17526. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17527. $as_echo_n "(cached) " >&6
  17528. else
  17529. # One or both of the vars are not set, and there is no cached value.
  17530. ac_x_includes=no ac_x_libraries=no
  17531. rm -f -r conftest.dir
  17532. if mkdir conftest.dir; then
  17533. cd conftest.dir
  17534. cat >Imakefile <<'_ACEOF'
  17535. incroot:
  17536. @echo incroot='${INCROOT}'
  17537. usrlibdir:
  17538. @echo usrlibdir='${USRLIBDIR}'
  17539. libdir:
  17540. @echo libdir='${LIBDIR}'
  17541. _ACEOF
  17542. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17543. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17544. for ac_var in incroot usrlibdir libdir; do
  17545. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17546. done
  17547. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17548. for ac_extension in a so sl dylib la dll; do
  17549. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17550. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17551. ac_im_usrlibdir=$ac_im_libdir; break
  17552. fi
  17553. done
  17554. # Screen out bogus values from the imake configuration. They are
  17555. # bogus both because they are the default anyway, and because
  17556. # using them would break gcc on systems where it needs fixed includes.
  17557. case $ac_im_incroot in
  17558. /usr/include) ac_x_includes= ;;
  17559. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17560. esac
  17561. case $ac_im_usrlibdir in
  17562. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17563. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17564. esac
  17565. fi
  17566. cd ..
  17567. rm -f -r conftest.dir
  17568. fi
  17569. # Standard set of common directories for X headers.
  17570. # Check X11 before X11Rn because it is often a symlink to the current release.
  17571. ac_x_header_dirs='
  17572. /usr/X11/include
  17573. /usr/X11R7/include
  17574. /usr/X11R6/include
  17575. /usr/X11R5/include
  17576. /usr/X11R4/include
  17577. /usr/include/X11
  17578. /usr/include/X11R7
  17579. /usr/include/X11R6
  17580. /usr/include/X11R5
  17581. /usr/include/X11R4
  17582. /usr/local/X11/include
  17583. /usr/local/X11R7/include
  17584. /usr/local/X11R6/include
  17585. /usr/local/X11R5/include
  17586. /usr/local/X11R4/include
  17587. /usr/local/include/X11
  17588. /usr/local/include/X11R7
  17589. /usr/local/include/X11R6
  17590. /usr/local/include/X11R5
  17591. /usr/local/include/X11R4
  17592. /usr/X386/include
  17593. /usr/x386/include
  17594. /usr/XFree86/include/X11
  17595. /usr/include
  17596. /usr/local/include
  17597. /usr/unsupported/include
  17598. /usr/athena/include
  17599. /usr/local/x11r5/include
  17600. /usr/lpp/Xamples/include
  17601. /usr/openwin/include
  17602. /usr/openwin/share/include'
  17603. if test "$ac_x_includes" = no; then
  17604. # Guess where to find include files, by looking for Xlib.h.
  17605. # First, try using that file with no special directory specified.
  17606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17607. /* end confdefs.h. */
  17608. #include <X11/Xlib.h>
  17609. _ACEOF
  17610. if ac_fn_c_try_cpp "$LINENO"; then :
  17611. # We can compile using X headers with no special include directory.
  17612. ac_x_includes=
  17613. else
  17614. for ac_dir in $ac_x_header_dirs; do
  17615. if test -r "$ac_dir/X11/Xlib.h"; then
  17616. ac_x_includes=$ac_dir
  17617. break
  17618. fi
  17619. done
  17620. fi
  17621. rm -f conftest.err conftest.i conftest.$ac_ext
  17622. fi # $ac_x_includes = no
  17623. if test "$ac_x_libraries" = no; then
  17624. # Check for the libraries.
  17625. # See if we find them without any special options.
  17626. # Don't add to $LIBS permanently.
  17627. ac_save_LIBS=$LIBS
  17628. LIBS="-lX11 $LIBS"
  17629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17630. /* end confdefs.h. */
  17631. #include <X11/Xlib.h>
  17632. int
  17633. main ()
  17634. {
  17635. XrmInitialize ()
  17636. ;
  17637. return 0;
  17638. }
  17639. _ACEOF
  17640. if ac_fn_c_try_link "$LINENO"; then :
  17641. LIBS=$ac_save_LIBS
  17642. # We can link X programs with no special library path.
  17643. ac_x_libraries=
  17644. else
  17645. LIBS=$ac_save_LIBS
  17646. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17647. do
  17648. # Don't even attempt the hair of trying to link an X program!
  17649. for ac_extension in a so sl dylib la dll; do
  17650. if test -r "$ac_dir/libX11.$ac_extension"; then
  17651. ac_x_libraries=$ac_dir
  17652. break 2
  17653. fi
  17654. done
  17655. done
  17656. fi
  17657. rm -f core conftest.err conftest.$ac_objext \
  17658. conftest$ac_exeext conftest.$ac_ext
  17659. fi # $ac_x_libraries = no
  17660. case $ac_x_includes,$ac_x_libraries in #(
  17661. no,* | *,no | *\'*)
  17662. # Didn't find X, or a directory has "'" in its name.
  17663. ac_cv_have_x="have_x=no";; #(
  17664. *)
  17665. # Record where we found X for the cache.
  17666. ac_cv_have_x="have_x=yes\
  17667. ac_x_includes='$ac_x_includes'\
  17668. ac_x_libraries='$ac_x_libraries'"
  17669. esac
  17670. fi
  17671. ;; #(
  17672. *) have_x=yes;;
  17673. esac
  17674. eval "$ac_cv_have_x"
  17675. fi # $with_x != no
  17676. if test "$have_x" != yes; then
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17678. $as_echo "$have_x" >&6; }
  17679. no_x=yes
  17680. else
  17681. # If each of the values was on the command line, it overrides each guess.
  17682. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17683. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17684. # Update the cache value to reflect the command line values.
  17685. ac_cv_have_x="have_x=yes\
  17686. ac_x_includes='$x_includes'\
  17687. ac_x_libraries='$x_libraries'"
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17689. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17690. fi
  17691. if test "$no_x" = yes; then
  17692. # Not all programs may use this symbol, but it does not hurt to define it.
  17693. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17694. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17695. else
  17696. if test -n "$x_includes"; then
  17697. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17698. fi
  17699. # It would also be nice to do this for all -L options, not just this one.
  17700. if test -n "$x_libraries"; then
  17701. X_LIBS="$X_LIBS -L$x_libraries"
  17702. # For Solaris; some versions of Sun CC require a space after -R and
  17703. # others require no space. Words are not sufficient . . . .
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17705. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17706. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17707. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17708. ac_c_werror_flag=yes
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. int
  17712. main ()
  17713. {
  17714. ;
  17715. return 0;
  17716. }
  17717. _ACEOF
  17718. if ac_fn_c_try_link "$LINENO"; then :
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17720. $as_echo "no" >&6; }
  17721. X_LIBS="$X_LIBS -R$x_libraries"
  17722. else
  17723. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17725. /* end confdefs.h. */
  17726. int
  17727. main ()
  17728. {
  17729. ;
  17730. return 0;
  17731. }
  17732. _ACEOF
  17733. if ac_fn_c_try_link "$LINENO"; then :
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17735. $as_echo "yes" >&6; }
  17736. X_LIBS="$X_LIBS -R $x_libraries"
  17737. else
  17738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17739. $as_echo "neither works" >&6; }
  17740. fi
  17741. rm -f core conftest.err conftest.$ac_objext \
  17742. conftest$ac_exeext conftest.$ac_ext
  17743. fi
  17744. rm -f core conftest.err conftest.$ac_objext \
  17745. conftest$ac_exeext conftest.$ac_ext
  17746. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17747. LIBS=$ac_xsave_LIBS
  17748. fi
  17749. # Check for system-dependent libraries X programs must link with.
  17750. # Do this before checking for the system-independent R6 libraries
  17751. # (-lICE), since we may need -lsocket or whatever for X linking.
  17752. if test "$ISC" = yes; then
  17753. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17754. else
  17755. # Martyn Johnson says this is needed for Ultrix, if the X
  17756. # libraries were built with DECnet support. And Karl Berry says
  17757. # the Alpha needs dnet_stub (dnet does not exist).
  17758. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. /* Override any GCC internal prototype to avoid an error.
  17762. Use char because int might match the return type of a GCC
  17763. builtin and then its argument prototype would still apply. */
  17764. #ifdef __cplusplus
  17765. extern "C"
  17766. #endif
  17767. char XOpenDisplay ();
  17768. int
  17769. main ()
  17770. {
  17771. return XOpenDisplay ();
  17772. ;
  17773. return 0;
  17774. }
  17775. _ACEOF
  17776. if ac_fn_c_try_link "$LINENO"; then :
  17777. else
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17779. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17780. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17781. $as_echo_n "(cached) " >&6
  17782. else
  17783. ac_check_lib_save_LIBS=$LIBS
  17784. LIBS="-ldnet $LIBS"
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. /* Override any GCC internal prototype to avoid an error.
  17788. Use char because int might match the return type of a GCC
  17789. builtin and then its argument prototype would still apply. */
  17790. #ifdef __cplusplus
  17791. extern "C"
  17792. #endif
  17793. char dnet_ntoa ();
  17794. int
  17795. main ()
  17796. {
  17797. return dnet_ntoa ();
  17798. ;
  17799. return 0;
  17800. }
  17801. _ACEOF
  17802. if ac_fn_c_try_link "$LINENO"; then :
  17803. ac_cv_lib_dnet_dnet_ntoa=yes
  17804. else
  17805. ac_cv_lib_dnet_dnet_ntoa=no
  17806. fi
  17807. rm -f core conftest.err conftest.$ac_objext \
  17808. conftest$ac_exeext conftest.$ac_ext
  17809. LIBS=$ac_check_lib_save_LIBS
  17810. fi
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17812. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17813. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17814. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17815. fi
  17816. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17818. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17819. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17820. $as_echo_n "(cached) " >&6
  17821. else
  17822. ac_check_lib_save_LIBS=$LIBS
  17823. LIBS="-ldnet_stub $LIBS"
  17824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17825. /* end confdefs.h. */
  17826. /* Override any GCC internal prototype to avoid an error.
  17827. Use char because int might match the return type of a GCC
  17828. builtin and then its argument prototype would still apply. */
  17829. #ifdef __cplusplus
  17830. extern "C"
  17831. #endif
  17832. char dnet_ntoa ();
  17833. int
  17834. main ()
  17835. {
  17836. return dnet_ntoa ();
  17837. ;
  17838. return 0;
  17839. }
  17840. _ACEOF
  17841. if ac_fn_c_try_link "$LINENO"; then :
  17842. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17843. else
  17844. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17845. fi
  17846. rm -f core conftest.err conftest.$ac_objext \
  17847. conftest$ac_exeext conftest.$ac_ext
  17848. LIBS=$ac_check_lib_save_LIBS
  17849. fi
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17851. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17852. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17853. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17854. fi
  17855. fi
  17856. fi
  17857. rm -f core conftest.err conftest.$ac_objext \
  17858. conftest$ac_exeext conftest.$ac_ext
  17859. LIBS="$ac_xsave_LIBS"
  17860. # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
  17861. # to get the SysV transport functions.
  17862. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17863. # needs -lnsl.
  17864. # The nsl library prevents programs from opening the X display
  17865. # on Irix 5.2, according to T.E. Dickey.
  17866. # The functions gethostbyname, getservbyname, and inet_addr are
  17867. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17868. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17869. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17870. fi
  17871. if test $ac_cv_func_gethostbyname = no; then
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17873. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17874. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17875. $as_echo_n "(cached) " >&6
  17876. else
  17877. ac_check_lib_save_LIBS=$LIBS
  17878. LIBS="-lnsl $LIBS"
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. /* Override any GCC internal prototype to avoid an error.
  17882. Use char because int might match the return type of a GCC
  17883. builtin and then its argument prototype would still apply. */
  17884. #ifdef __cplusplus
  17885. extern "C"
  17886. #endif
  17887. char gethostbyname ();
  17888. int
  17889. main ()
  17890. {
  17891. return gethostbyname ();
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. if ac_fn_c_try_link "$LINENO"; then :
  17897. ac_cv_lib_nsl_gethostbyname=yes
  17898. else
  17899. ac_cv_lib_nsl_gethostbyname=no
  17900. fi
  17901. rm -f core conftest.err conftest.$ac_objext \
  17902. conftest$ac_exeext conftest.$ac_ext
  17903. LIBS=$ac_check_lib_save_LIBS
  17904. fi
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17906. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17907. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17908. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17909. fi
  17910. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17912. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17913. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17914. $as_echo_n "(cached) " >&6
  17915. else
  17916. ac_check_lib_save_LIBS=$LIBS
  17917. LIBS="-lbsd $LIBS"
  17918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17919. /* end confdefs.h. */
  17920. /* Override any GCC internal prototype to avoid an error.
  17921. Use char because int might match the return type of a GCC
  17922. builtin and then its argument prototype would still apply. */
  17923. #ifdef __cplusplus
  17924. extern "C"
  17925. #endif
  17926. char gethostbyname ();
  17927. int
  17928. main ()
  17929. {
  17930. return gethostbyname ();
  17931. ;
  17932. return 0;
  17933. }
  17934. _ACEOF
  17935. if ac_fn_c_try_link "$LINENO"; then :
  17936. ac_cv_lib_bsd_gethostbyname=yes
  17937. else
  17938. ac_cv_lib_bsd_gethostbyname=no
  17939. fi
  17940. rm -f core conftest.err conftest.$ac_objext \
  17941. conftest$ac_exeext conftest.$ac_ext
  17942. LIBS=$ac_check_lib_save_LIBS
  17943. fi
  17944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17945. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17946. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17947. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17948. fi
  17949. fi
  17950. fi
  17951. # [email protected] says without -lsocket,
  17952. # socket/setsockopt and other routines are undefined under SCO ODT
  17953. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17954. # on later versions), says Simon Leinen: it contains gethostby*
  17955. # variants that don't use the name server (or something). -lsocket
  17956. # must be given before -lnsl if both are needed. We assume that
  17957. # if connect needs -lnsl, so does gethostbyname.
  17958. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17959. if test "x$ac_cv_func_connect" = xyes; then :
  17960. fi
  17961. if test $ac_cv_func_connect = no; then
  17962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17963. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17964. if ${ac_cv_lib_socket_connect+:} false; then :
  17965. $as_echo_n "(cached) " >&6
  17966. else
  17967. ac_check_lib_save_LIBS=$LIBS
  17968. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17970. /* end confdefs.h. */
  17971. /* Override any GCC internal prototype to avoid an error.
  17972. Use char because int might match the return type of a GCC
  17973. builtin and then its argument prototype would still apply. */
  17974. #ifdef __cplusplus
  17975. extern "C"
  17976. #endif
  17977. char connect ();
  17978. int
  17979. main ()
  17980. {
  17981. return connect ();
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_link "$LINENO"; then :
  17987. ac_cv_lib_socket_connect=yes
  17988. else
  17989. ac_cv_lib_socket_connect=no
  17990. fi
  17991. rm -f core conftest.err conftest.$ac_objext \
  17992. conftest$ac_exeext conftest.$ac_ext
  17993. LIBS=$ac_check_lib_save_LIBS
  17994. fi
  17995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17996. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17997. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17998. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17999. fi
  18000. fi
  18001. # Guillermo Gomez says -lposix is necessary on A/UX.
  18002. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18003. if test "x$ac_cv_func_remove" = xyes; then :
  18004. fi
  18005. if test $ac_cv_func_remove = no; then
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18007. $as_echo_n "checking for remove in -lposix... " >&6; }
  18008. if ${ac_cv_lib_posix_remove+:} false; then :
  18009. $as_echo_n "(cached) " >&6
  18010. else
  18011. ac_check_lib_save_LIBS=$LIBS
  18012. LIBS="-lposix $LIBS"
  18013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18014. /* end confdefs.h. */
  18015. /* Override any GCC internal prototype to avoid an error.
  18016. Use char because int might match the return type of a GCC
  18017. builtin and then its argument prototype would still apply. */
  18018. #ifdef __cplusplus
  18019. extern "C"
  18020. #endif
  18021. char remove ();
  18022. int
  18023. main ()
  18024. {
  18025. return remove ();
  18026. ;
  18027. return 0;
  18028. }
  18029. _ACEOF
  18030. if ac_fn_c_try_link "$LINENO"; then :
  18031. ac_cv_lib_posix_remove=yes
  18032. else
  18033. ac_cv_lib_posix_remove=no
  18034. fi
  18035. rm -f core conftest.err conftest.$ac_objext \
  18036. conftest$ac_exeext conftest.$ac_ext
  18037. LIBS=$ac_check_lib_save_LIBS
  18038. fi
  18039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18040. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18041. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18042. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18043. fi
  18044. fi
  18045. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18046. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18047. if test "x$ac_cv_func_shmat" = xyes; then :
  18048. fi
  18049. if test $ac_cv_func_shmat = no; then
  18050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18051. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18052. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18053. $as_echo_n "(cached) " >&6
  18054. else
  18055. ac_check_lib_save_LIBS=$LIBS
  18056. LIBS="-lipc $LIBS"
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. /* Override any GCC internal prototype to avoid an error.
  18060. Use char because int might match the return type of a GCC
  18061. builtin and then its argument prototype would still apply. */
  18062. #ifdef __cplusplus
  18063. extern "C"
  18064. #endif
  18065. char shmat ();
  18066. int
  18067. main ()
  18068. {
  18069. return shmat ();
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_link "$LINENO"; then :
  18075. ac_cv_lib_ipc_shmat=yes
  18076. else
  18077. ac_cv_lib_ipc_shmat=no
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext \
  18080. conftest$ac_exeext conftest.$ac_ext
  18081. LIBS=$ac_check_lib_save_LIBS
  18082. fi
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18084. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18085. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18086. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18087. fi
  18088. fi
  18089. fi
  18090. # Check for libraries that X11R6 Xt/Xaw programs need.
  18091. ac_save_LDFLAGS=$LDFLAGS
  18092. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18093. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18094. # check for ICE first), but we must link in the order -lSM -lICE or
  18095. # we get undefined symbols. So assume we have SM if we have ICE.
  18096. # These have to be linked with before -lX11, unlike the other
  18097. # libraries we check for below, so use a different variable.
  18098. # John Interrante, Karl Berry
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18100. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18101. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18102. $as_echo_n "(cached) " >&6
  18103. else
  18104. ac_check_lib_save_LIBS=$LIBS
  18105. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18107. /* end confdefs.h. */
  18108. /* Override any GCC internal prototype to avoid an error.
  18109. Use char because int might match the return type of a GCC
  18110. builtin and then its argument prototype would still apply. */
  18111. #ifdef __cplusplus
  18112. extern "C"
  18113. #endif
  18114. char IceConnectionNumber ();
  18115. int
  18116. main ()
  18117. {
  18118. return IceConnectionNumber ();
  18119. ;
  18120. return 0;
  18121. }
  18122. _ACEOF
  18123. if ac_fn_c_try_link "$LINENO"; then :
  18124. ac_cv_lib_ICE_IceConnectionNumber=yes
  18125. else
  18126. ac_cv_lib_ICE_IceConnectionNumber=no
  18127. fi
  18128. rm -f core conftest.err conftest.$ac_objext \
  18129. conftest$ac_exeext conftest.$ac_ext
  18130. LIBS=$ac_check_lib_save_LIBS
  18131. fi
  18132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18133. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18134. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18135. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18136. fi
  18137. LDFLAGS=$ac_save_LDFLAGS
  18138. fi
  18139. if test "$no_x" = "yes"; then
  18140. use_xlib="No (disabled or unavailable)"
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 not available." >&5
  18142. $as_echo "$as_me: WARNING: X11 not available." >&2;}
  18143. X_SUBDIRS=""
  18144. else
  18145. use_xlib="Yes"
  18146. pkg_failed=no
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
  18148. $as_echo_n "checking for XRENDER... " >&6; }
  18149. if test -n "$XRENDER_CFLAGS"; then
  18150. pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
  18151. elif test -n "$PKG_CONFIG"; then
  18152. if test -n "$PKG_CONFIG" && \
  18153. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
  18154. ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
  18155. ac_status=$?
  18156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18157. test $ac_status = 0; }; then
  18158. pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
  18159. test "x$?" != "x0" && pkg_failed=yes
  18160. else
  18161. pkg_failed=yes
  18162. fi
  18163. else
  18164. pkg_failed=untried
  18165. fi
  18166. if test -n "$XRENDER_LIBS"; then
  18167. pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
  18168. elif test -n "$PKG_CONFIG"; then
  18169. if test -n "$PKG_CONFIG" && \
  18170. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
  18171. ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
  18172. ac_status=$?
  18173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18174. test $ac_status = 0; }; then
  18175. pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
  18176. test "x$?" != "x0" && pkg_failed=yes
  18177. else
  18178. pkg_failed=yes
  18179. fi
  18180. else
  18181. pkg_failed=untried
  18182. fi
  18183. if test $pkg_failed = yes; then
  18184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18185. $as_echo "no" >&6; }
  18186. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18187. _pkg_short_errors_supported=yes
  18188. else
  18189. _pkg_short_errors_supported=no
  18190. fi
  18191. if test $_pkg_short_errors_supported = yes; then
  18192. XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1`
  18193. else
  18194. XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1`
  18195. fi
  18196. # Put the nasty error message in config.log where it belongs
  18197. echo "$XRENDER_PKG_ERRORS" >&5
  18198. HAVE_XRENDER="no"
  18199. elif test $pkg_failed = untried; then
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18201. $as_echo "no" >&6; }
  18202. HAVE_XRENDER="no"
  18203. else
  18204. XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
  18205. XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
  18206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18207. $as_echo "yes" >&6; }
  18208. HAVE_XRENDER="yes"
  18209. fi
  18210. fi
  18211. if test "$use_xlib" = "Yes"; then
  18212. WITH_X_TRUE=
  18213. WITH_X_FALSE='#'
  18214. else
  18215. WITH_X_TRUE='#'
  18216. WITH_X_FALSE=
  18217. fi
  18218. # Check whether --enable-swig was given.
  18219. if test "${enable_swig+set}" = set; then :
  18220. enableval=$enable_swig;
  18221. else
  18222. enable_swig=yes
  18223. fi
  18224. if test "$enable_swig" != "yes"; then
  18225. use_swig="No (disabled)"
  18226. else
  18227. # Extract the first word of "swig", so it can be a program name with args.
  18228. set dummy swig; ac_word=$2
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18230. $as_echo_n "checking for $ac_word... " >&6; }
  18231. if ${ac_cv_prog_SWIG+:} false; then :
  18232. $as_echo_n "(cached) " >&6
  18233. else
  18234. if test -n "$SWIG"; then
  18235. ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
  18236. else
  18237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18238. for as_dir in $PATH
  18239. do
  18240. IFS=$as_save_IFS
  18241. test -z "$as_dir" && as_dir=.
  18242. for ac_exec_ext in '' $ac_executable_extensions; do
  18243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18244. ac_cv_prog_SWIG="swig"
  18245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18246. break 2
  18247. fi
  18248. done
  18249. done
  18250. IFS=$as_save_IFS
  18251. fi
  18252. fi
  18253. SWIG=$ac_cv_prog_SWIG
  18254. if test -n "$SWIG"; then
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
  18256. $as_echo "$SWIG" >&6; }
  18257. else
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18259. $as_echo "no" >&6; }
  18260. fi
  18261. if test "$SWIG" = ""; then
  18262. use_swig="No (swig not available)"
  18263. else
  18264. SWIG_VERSION=`$SWIG -version 2>&1 | $EGREP Version | cut -d ' ' -f 3`
  18265. # Used to indicate true or false condition
  18266. ax_compare_version=false
  18267. # Convert the two version strings to be compared into a format that
  18268. # allows a simple string comparison. The end result is that a version
  18269. # string of the form 1.12.5-r617 will be converted to the form
  18270. # 0001001200050617. In other words, each number is zero padded to four
  18271. # digits, and non digits are removed.
  18272. ax_compare_version_A=`echo "$SWIG_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18273. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18274. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18275. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18276. -e 's/[^0-9]//g'`
  18277. ax_compare_version_B=`echo "1.3.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18278. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18279. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18280. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18281. -e 's/[^0-9]//g'`
  18282. ax_compare_version=`echo "x$ax_compare_version_A
  18283. x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  18284. if test "$ax_compare_version" = "true" ; then
  18285. SWIG=
  18286. fi
  18287. # Used to indicate true or false condition
  18288. ax_compare_version=false
  18289. # Convert the two version strings to be compared into a format that
  18290. # allows a simple string comparison. The end result is that a version
  18291. # string of the form 1.12.5-r617 will be converted to the form
  18292. # 0001001200050617. In other words, each number is zero padded to four
  18293. # digits, and non digits are removed.
  18294. ax_compare_version_A=`echo "$SWIG_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18295. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18296. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18297. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18298. -e 's/[^0-9]//g'`
  18299. ax_compare_version_B=`echo "1.3.40" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18300. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18301. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18302. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18303. -e 's/[^0-9]//g'`
  18304. ax_compare_version=`echo "x$ax_compare_version_A
  18305. x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  18306. if test "$ax_compare_version" = "true" ; then
  18307. # EL5 has swig-1.3.29 which does not define SWIGJAVA
  18308. SWIGJAVA_CPPFLAGS=-DSWIGJAVA
  18309. fi
  18310. # Used to indicate true or false condition
  18311. ax_compare_version=false
  18312. # Convert the two version strings to be compared into a format that
  18313. # allows a simple string comparison. The end result is that a version
  18314. # string of the form 1.12.5-r617 will be converted to the form
  18315. # 0001001200050617. In other words, each number is zero padded to four
  18316. # digits, and non digits are removed.
  18317. ax_compare_version_A=`echo "$SWIG_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18318. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18319. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18320. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18321. -e 's/[^0-9]//g'`
  18322. ax_compare_version_B=`echo "4.1.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  18323. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  18324. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  18325. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  18326. -e 's/[^0-9]//g'`
  18327. ax_compare_version=`echo "x$ax_compare_version_A
  18328. x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  18329. if test "$ax_compare_version" = "true" ; then
  18330. SWIG_PHP_DATA=gv.php
  18331. SWIG_PHP_DATA_TO_PACKAGE=usr/share/php/gv.php
  18332. else
  18333. # SWIG ≥ 4.1.0 no longer generates any PHP code for the bindings
  18334. SWIG_PHP_DATA=
  18335. SWIG_PHP_DATA_TO_PACKAGE=
  18336. fi
  18337. if test "$SWIG" = ""; then
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The version of swig is too old." >&5
  18339. $as_echo "$as_me: WARNING: The version of swig is too old." >&2;}
  18340. use_swig="No (swig too old)"
  18341. else
  18342. use_swig="Yes"
  18343. fi
  18344. fi
  18345. fi
  18346. if test "$SWIG" != ""; then
  18347. WITH_SWIG_TRUE=
  18348. WITH_SWIG_FALSE='#'
  18349. else
  18350. WITH_SWIG_TRUE='#'
  18351. WITH_SWIG_FALSE=
  18352. fi
  18353. if test "$SWIG" != "" -a "$SWIG_PHP_DATA" != ""; then
  18354. WITH_SWIG_PHP_DATA_TRUE=
  18355. WITH_SWIG_PHP_DATA_FALSE='#'
  18356. else
  18357. WITH_SWIG_PHP_DATA_TRUE='#'
  18358. WITH_SWIG_PHP_DATA_FALSE=
  18359. fi
  18360. # Check whether --enable-sharp was given.
  18361. if test "${enable_sharp+set}" = set; then :
  18362. enableval=$enable_sharp;
  18363. else
  18364. enable_sharp=yes
  18365. fi
  18366. if test "$enable_sharp" != "yes"; then
  18367. use_sharp="No (disabled)"
  18368. else
  18369. if test "$use_swig" != "Yes"; then
  18370. use_sharp="No (swig not available)"
  18371. else
  18372. if test `$SWIG -help 2>&1 | $EGREP -c '\-csharp *- Generate'` = 0; then
  18373. use_sharp="No (swig does not support -csharp option)"
  18374. else
  18375. # Extract the first word of "mcs", so it can be a program name with args.
  18376. set dummy mcs; ac_word=$2
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18378. $as_echo_n "checking for $ac_word... " >&6; }
  18379. if ${ac_cv_prog_MCS+:} false; then :
  18380. $as_echo_n "(cached) " >&6
  18381. else
  18382. if test -n "$MCS"; then
  18383. ac_cv_prog_MCS="$MCS" # Let the user override the test.
  18384. else
  18385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18386. for as_dir in $PATH
  18387. do
  18388. IFS=$as_save_IFS
  18389. test -z "$as_dir" && as_dir=.
  18390. for ac_exec_ext in '' $ac_executable_extensions; do
  18391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18392. ac_cv_prog_MCS="mcs"
  18393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18394. break 2
  18395. fi
  18396. done
  18397. done
  18398. IFS=$as_save_IFS
  18399. fi
  18400. fi
  18401. MCS=$ac_cv_prog_MCS
  18402. if test -n "$MCS"; then
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
  18404. $as_echo "$MCS" >&6; }
  18405. else
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18407. $as_echo "no" >&6; }
  18408. fi
  18409. if test "$MCS" = ""; then
  18410. use_sharp="No (mcs not available)"
  18411. else
  18412. use_sharp="Yes"
  18413. fi
  18414. fi
  18415. fi
  18416. fi
  18417. if test "$use_sharp" = "Yes"; then
  18418. WITH_SHARP_TRUE=
  18419. WITH_SHARP_FALSE='#'
  18420. else
  18421. WITH_SHARP_TRUE='#'
  18422. WITH_SHARP_FALSE=
  18423. fi
  18424. # Check whether --enable-d was given.
  18425. if test "${enable_d+set}" = set; then :
  18426. enableval=$enable_d;
  18427. else
  18428. enable_d=no
  18429. fi
  18430. if test "$enable_d" != "yes"; then
  18431. use_d="No (disabled by default - incomplete)"
  18432. else
  18433. if test "$use_swig" != "Yes"; then
  18434. use_d="No (swig not available)"
  18435. else
  18436. if test `$SWIG -help 2>&1 | $EGREP -c '\-d* *- Generate'` = 0 ; then
  18437. use_d="No (swig does not support -d option)"
  18438. else
  18439. use_d="Yes"
  18440. fi
  18441. fi
  18442. fi
  18443. if test "$use_d" = "Yes"; then
  18444. WITH_D_TRUE=
  18445. WITH_D_FALSE='#'
  18446. else
  18447. WITH_D_TRUE='#'
  18448. WITH_D_FALSE=
  18449. fi
  18450. # Check whether --enable-go was given.
  18451. if test "${enable_go+set}" = set; then :
  18452. enableval=$enable_go;
  18453. else
  18454. enable_go=yes
  18455. fi
  18456. if test "$enable_go" != "yes"; then
  18457. use_go="No (disabled)"
  18458. else
  18459. if test "$use_swig" != "Yes"; then
  18460. use_go="No (swig not available)"
  18461. else
  18462. if test `$SWIG -help 2>&1 | $EGREP -c '\-go* *- Generate'` = 0 ; then
  18463. use_go="No (swig does not support -go option)"
  18464. else
  18465. # Extract the first word of "go", so it can be a program name with args.
  18466. set dummy go; ac_word=$2
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18468. $as_echo_n "checking for $ac_word... " >&6; }
  18469. if ${ac_cv_prog_GO+:} false; then :
  18470. $as_echo_n "(cached) " >&6
  18471. else
  18472. if test -n "$GO"; then
  18473. ac_cv_prog_GO="$GO" # Let the user override the test.
  18474. else
  18475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18476. for as_dir in $PATH
  18477. do
  18478. IFS=$as_save_IFS
  18479. test -z "$as_dir" && as_dir=.
  18480. for ac_exec_ext in '' $ac_executable_extensions; do
  18481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18482. ac_cv_prog_GO="go"
  18483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18484. break 2
  18485. fi
  18486. done
  18487. done
  18488. IFS=$as_save_IFS
  18489. fi
  18490. fi
  18491. GO=$ac_cv_prog_GO
  18492. if test -n "$GO"; then
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
  18494. $as_echo "$GO" >&6; }
  18495. else
  18496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18497. $as_echo "no" >&6; }
  18498. fi
  18499. if test "$GO" = ""; then
  18500. use_go="No (GO compiler not available)"
  18501. else
  18502. GO_INCLUDES=
  18503. GO_LIBS=
  18504. if test "$GO" != ""; then
  18505. use_go="Yes"
  18506. fi
  18507. fi
  18508. fi
  18509. fi
  18510. fi
  18511. if test "$use_go" = "Yes"; then
  18512. WITH_GO_TRUE=
  18513. WITH_GO_FALSE='#'
  18514. else
  18515. WITH_GO_TRUE='#'
  18516. WITH_GO_FALSE=
  18517. fi
  18518. # Check whether --enable-guile was given.
  18519. if test "${enable_guile+set}" = set; then :
  18520. enableval=$enable_guile;
  18521. else
  18522. enable_guile=yes
  18523. fi
  18524. if test "$enable_guile" != "yes"; then
  18525. use_guile="No (disabled)"
  18526. else
  18527. if test "$use_swig" != "Yes"; then
  18528. use_guile="No (swig not available)"
  18529. else
  18530. if test `$SWIG -help 2>&1 | $EGREP -c '\-guile *- Generate'` = 0; then
  18531. use_guile="No (swig does not support -guile option)"
  18532. else
  18533. pkg_failed=no
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18535. $as_echo_n "checking for GUILE... " >&6; }
  18536. if test -n "$GUILE_CFLAGS"; then
  18537. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18538. elif test -n "$PKG_CONFIG"; then
  18539. if test -n "$PKG_CONFIG" && \
  18540. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-3.0\""; } >&5
  18541. ($PKG_CONFIG --exists --print-errors "guile-3.0") 2>&5
  18542. ac_status=$?
  18543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18544. test $ac_status = 0; }; then
  18545. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-3.0" 2>/dev/null`
  18546. test "x$?" != "x0" && pkg_failed=yes
  18547. else
  18548. pkg_failed=yes
  18549. fi
  18550. else
  18551. pkg_failed=untried
  18552. fi
  18553. if test -n "$GUILE_LIBS"; then
  18554. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18555. elif test -n "$PKG_CONFIG"; then
  18556. if test -n "$PKG_CONFIG" && \
  18557. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-3.0\""; } >&5
  18558. ($PKG_CONFIG --exists --print-errors "guile-3.0") 2>&5
  18559. ac_status=$?
  18560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18561. test $ac_status = 0; }; then
  18562. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-3.0" 2>/dev/null`
  18563. test "x$?" != "x0" && pkg_failed=yes
  18564. else
  18565. pkg_failed=yes
  18566. fi
  18567. else
  18568. pkg_failed=untried
  18569. fi
  18570. if test $pkg_failed = yes; then
  18571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18572. $as_echo "no" >&6; }
  18573. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18574. _pkg_short_errors_supported=yes
  18575. else
  18576. _pkg_short_errors_supported=no
  18577. fi
  18578. if test $_pkg_short_errors_supported = yes; then
  18579. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-3.0" 2>&1`
  18580. else
  18581. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-3.0" 2>&1`
  18582. fi
  18583. # Put the nasty error message in config.log where it belongs
  18584. echo "$GUILE_PKG_ERRORS" >&5
  18585. pkg_failed=no
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18587. $as_echo_n "checking for GUILE... " >&6; }
  18588. if test -n "$GUILE_CFLAGS"; then
  18589. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18590. elif test -n "$PKG_CONFIG"; then
  18591. if test -n "$PKG_CONFIG" && \
  18592. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
  18593. ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
  18594. ac_status=$?
  18595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18596. test $ac_status = 0; }; then
  18597. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
  18598. test "x$?" != "x0" && pkg_failed=yes
  18599. else
  18600. pkg_failed=yes
  18601. fi
  18602. else
  18603. pkg_failed=untried
  18604. fi
  18605. if test -n "$GUILE_LIBS"; then
  18606. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18607. elif test -n "$PKG_CONFIG"; then
  18608. if test -n "$PKG_CONFIG" && \
  18609. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
  18610. ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
  18611. ac_status=$?
  18612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18613. test $ac_status = 0; }; then
  18614. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
  18615. test "x$?" != "x0" && pkg_failed=yes
  18616. else
  18617. pkg_failed=yes
  18618. fi
  18619. else
  18620. pkg_failed=untried
  18621. fi
  18622. if test $pkg_failed = yes; then
  18623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18624. $as_echo "no" >&6; }
  18625. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18626. _pkg_short_errors_supported=yes
  18627. else
  18628. _pkg_short_errors_supported=no
  18629. fi
  18630. if test $_pkg_short_errors_supported = yes; then
  18631. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
  18632. else
  18633. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
  18634. fi
  18635. # Put the nasty error message in config.log where it belongs
  18636. echo "$GUILE_PKG_ERRORS" >&5
  18637. pkg_failed=no
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18639. $as_echo_n "checking for GUILE... " >&6; }
  18640. if test -n "$GUILE_CFLAGS"; then
  18641. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18642. elif test -n "$PKG_CONFIG"; then
  18643. if test -n "$PKG_CONFIG" && \
  18644. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18645. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18646. ac_status=$?
  18647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18648. test $ac_status = 0; }; then
  18649. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
  18650. test "x$?" != "x0" && pkg_failed=yes
  18651. else
  18652. pkg_failed=yes
  18653. fi
  18654. else
  18655. pkg_failed=untried
  18656. fi
  18657. if test -n "$GUILE_LIBS"; then
  18658. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18659. elif test -n "$PKG_CONFIG"; then
  18660. if test -n "$PKG_CONFIG" && \
  18661. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18662. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18663. ac_status=$?
  18664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18665. test $ac_status = 0; }; then
  18666. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
  18667. test "x$?" != "x0" && pkg_failed=yes
  18668. else
  18669. pkg_failed=yes
  18670. fi
  18671. else
  18672. pkg_failed=untried
  18673. fi
  18674. if test $pkg_failed = yes; then
  18675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18676. $as_echo "no" >&6; }
  18677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18678. _pkg_short_errors_supported=yes
  18679. else
  18680. _pkg_short_errors_supported=no
  18681. fi
  18682. if test $_pkg_short_errors_supported = yes; then
  18683. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
  18684. else
  18685. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
  18686. fi
  18687. # Put the nasty error message in config.log where it belongs
  18688. echo "$GUILE_PKG_ERRORS" >&5
  18689. use_guile="No (Guile not available)"
  18690. elif test $pkg_failed = untried; then
  18691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18692. $as_echo "no" >&6; }
  18693. use_guile="No (Guile not available)"
  18694. else
  18695. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18696. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18698. $as_echo "yes" >&6; }
  18699. use_guile="Yes"
  18700. fi
  18701. elif test $pkg_failed = untried; then
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18703. $as_echo "no" >&6; }
  18704. pkg_failed=no
  18705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18706. $as_echo_n "checking for GUILE... " >&6; }
  18707. if test -n "$GUILE_CFLAGS"; then
  18708. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18709. elif test -n "$PKG_CONFIG"; then
  18710. if test -n "$PKG_CONFIG" && \
  18711. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18712. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18713. ac_status=$?
  18714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18715. test $ac_status = 0; }; then
  18716. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
  18717. test "x$?" != "x0" && pkg_failed=yes
  18718. else
  18719. pkg_failed=yes
  18720. fi
  18721. else
  18722. pkg_failed=untried
  18723. fi
  18724. if test -n "$GUILE_LIBS"; then
  18725. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18726. elif test -n "$PKG_CONFIG"; then
  18727. if test -n "$PKG_CONFIG" && \
  18728. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18729. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18730. ac_status=$?
  18731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18732. test $ac_status = 0; }; then
  18733. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
  18734. test "x$?" != "x0" && pkg_failed=yes
  18735. else
  18736. pkg_failed=yes
  18737. fi
  18738. else
  18739. pkg_failed=untried
  18740. fi
  18741. if test $pkg_failed = yes; then
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18743. $as_echo "no" >&6; }
  18744. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18745. _pkg_short_errors_supported=yes
  18746. else
  18747. _pkg_short_errors_supported=no
  18748. fi
  18749. if test $_pkg_short_errors_supported = yes; then
  18750. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
  18751. else
  18752. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
  18753. fi
  18754. # Put the nasty error message in config.log where it belongs
  18755. echo "$GUILE_PKG_ERRORS" >&5
  18756. use_guile="No (Guile not available)"
  18757. elif test $pkg_failed = untried; then
  18758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18759. $as_echo "no" >&6; }
  18760. use_guile="No (Guile not available)"
  18761. else
  18762. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18763. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18765. $as_echo "yes" >&6; }
  18766. use_guile="Yes"
  18767. fi
  18768. else
  18769. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18770. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18772. $as_echo "yes" >&6; }
  18773. use_guile="Yes"
  18774. fi
  18775. elif test $pkg_failed = untried; then
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18777. $as_echo "no" >&6; }
  18778. pkg_failed=no
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18780. $as_echo_n "checking for GUILE... " >&6; }
  18781. if test -n "$GUILE_CFLAGS"; then
  18782. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18783. elif test -n "$PKG_CONFIG"; then
  18784. if test -n "$PKG_CONFIG" && \
  18785. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
  18786. ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
  18787. ac_status=$?
  18788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18789. test $ac_status = 0; }; then
  18790. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
  18791. test "x$?" != "x0" && pkg_failed=yes
  18792. else
  18793. pkg_failed=yes
  18794. fi
  18795. else
  18796. pkg_failed=untried
  18797. fi
  18798. if test -n "$GUILE_LIBS"; then
  18799. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18800. elif test -n "$PKG_CONFIG"; then
  18801. if test -n "$PKG_CONFIG" && \
  18802. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
  18803. ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
  18804. ac_status=$?
  18805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18806. test $ac_status = 0; }; then
  18807. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
  18808. test "x$?" != "x0" && pkg_failed=yes
  18809. else
  18810. pkg_failed=yes
  18811. fi
  18812. else
  18813. pkg_failed=untried
  18814. fi
  18815. if test $pkg_failed = yes; then
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18817. $as_echo "no" >&6; }
  18818. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18819. _pkg_short_errors_supported=yes
  18820. else
  18821. _pkg_short_errors_supported=no
  18822. fi
  18823. if test $_pkg_short_errors_supported = yes; then
  18824. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
  18825. else
  18826. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
  18827. fi
  18828. # Put the nasty error message in config.log where it belongs
  18829. echo "$GUILE_PKG_ERRORS" >&5
  18830. pkg_failed=no
  18831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18832. $as_echo_n "checking for GUILE... " >&6; }
  18833. if test -n "$GUILE_CFLAGS"; then
  18834. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18835. elif test -n "$PKG_CONFIG"; then
  18836. if test -n "$PKG_CONFIG" && \
  18837. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18838. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18839. ac_status=$?
  18840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18841. test $ac_status = 0; }; then
  18842. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
  18843. test "x$?" != "x0" && pkg_failed=yes
  18844. else
  18845. pkg_failed=yes
  18846. fi
  18847. else
  18848. pkg_failed=untried
  18849. fi
  18850. if test -n "$GUILE_LIBS"; then
  18851. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18852. elif test -n "$PKG_CONFIG"; then
  18853. if test -n "$PKG_CONFIG" && \
  18854. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18855. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18856. ac_status=$?
  18857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18858. test $ac_status = 0; }; then
  18859. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
  18860. test "x$?" != "x0" && pkg_failed=yes
  18861. else
  18862. pkg_failed=yes
  18863. fi
  18864. else
  18865. pkg_failed=untried
  18866. fi
  18867. if test $pkg_failed = yes; then
  18868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18869. $as_echo "no" >&6; }
  18870. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18871. _pkg_short_errors_supported=yes
  18872. else
  18873. _pkg_short_errors_supported=no
  18874. fi
  18875. if test $_pkg_short_errors_supported = yes; then
  18876. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
  18877. else
  18878. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
  18879. fi
  18880. # Put the nasty error message in config.log where it belongs
  18881. echo "$GUILE_PKG_ERRORS" >&5
  18882. use_guile="No (Guile not available)"
  18883. elif test $pkg_failed = untried; then
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18885. $as_echo "no" >&6; }
  18886. use_guile="No (Guile not available)"
  18887. else
  18888. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18889. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18891. $as_echo "yes" >&6; }
  18892. use_guile="Yes"
  18893. fi
  18894. elif test $pkg_failed = untried; then
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18896. $as_echo "no" >&6; }
  18897. pkg_failed=no
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
  18899. $as_echo_n "checking for GUILE... " >&6; }
  18900. if test -n "$GUILE_CFLAGS"; then
  18901. pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
  18902. elif test -n "$PKG_CONFIG"; then
  18903. if test -n "$PKG_CONFIG" && \
  18904. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18905. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18906. ac_status=$?
  18907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18908. test $ac_status = 0; }; then
  18909. pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
  18910. test "x$?" != "x0" && pkg_failed=yes
  18911. else
  18912. pkg_failed=yes
  18913. fi
  18914. else
  18915. pkg_failed=untried
  18916. fi
  18917. if test -n "$GUILE_LIBS"; then
  18918. pkg_cv_GUILE_LIBS="$GUILE_LIBS"
  18919. elif test -n "$PKG_CONFIG"; then
  18920. if test -n "$PKG_CONFIG" && \
  18921. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
  18922. ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
  18923. ac_status=$?
  18924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18925. test $ac_status = 0; }; then
  18926. pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
  18927. test "x$?" != "x0" && pkg_failed=yes
  18928. else
  18929. pkg_failed=yes
  18930. fi
  18931. else
  18932. pkg_failed=untried
  18933. fi
  18934. if test $pkg_failed = yes; then
  18935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18936. $as_echo "no" >&6; }
  18937. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18938. _pkg_short_errors_supported=yes
  18939. else
  18940. _pkg_short_errors_supported=no
  18941. fi
  18942. if test $_pkg_short_errors_supported = yes; then
  18943. GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
  18944. else
  18945. GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
  18946. fi
  18947. # Put the nasty error message in config.log where it belongs
  18948. echo "$GUILE_PKG_ERRORS" >&5
  18949. use_guile="No (Guile not available)"
  18950. elif test $pkg_failed = untried; then
  18951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18952. $as_echo "no" >&6; }
  18953. use_guile="No (Guile not available)"
  18954. else
  18955. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18956. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18958. $as_echo "yes" >&6; }
  18959. use_guile="Yes"
  18960. fi
  18961. else
  18962. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18963. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18965. $as_echo "yes" >&6; }
  18966. use_guile="Yes"
  18967. fi
  18968. else
  18969. GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
  18970. GUILE_LIBS=$pkg_cv_GUILE_LIBS
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18972. $as_echo "yes" >&6; }
  18973. use_guile="Yes"
  18974. fi
  18975. fi
  18976. fi
  18977. fi
  18978. if test "$use_guile" = "Yes"; then
  18979. WITH_GUILE_TRUE=
  18980. WITH_GUILE_FALSE='#'
  18981. else
  18982. WITH_GUILE_TRUE='#'
  18983. WITH_GUILE_FALSE=
  18984. fi
  18985. # Check whether --enable-java was given.
  18986. if test "${enable_java+set}" = set; then :
  18987. enableval=$enable_java;
  18988. else
  18989. enable_java=yes
  18990. fi
  18991. if test "$enable_java" != "yes"; then
  18992. use_java="No (disabled)"
  18993. else
  18994. if test "$use_swig" != "Yes"; then
  18995. use_java="No (swig not available)"
  18996. else
  18997. if test `$SWIG -help 2>&1 | $EGREP -c '\-java *- Generate'` = 0; then
  18998. use_java="No (swig does not support -java option)"
  18999. else
  19000. # Extract the first word of "java", so it can be a program name with args.
  19001. set dummy java; ac_word=$2
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19003. $as_echo_n "checking for $ac_word... " >&6; }
  19004. if ${ac_cv_prog_JAVA+:} false; then :
  19005. $as_echo_n "(cached) " >&6
  19006. else
  19007. if test -n "$JAVA"; then
  19008. ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
  19009. else
  19010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19011. for as_dir in $PATH
  19012. do
  19013. IFS=$as_save_IFS
  19014. test -z "$as_dir" && as_dir=.
  19015. for ac_exec_ext in '' $ac_executable_extensions; do
  19016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19017. ac_cv_prog_JAVA="java"
  19018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19019. break 2
  19020. fi
  19021. done
  19022. done
  19023. IFS=$as_save_IFS
  19024. fi
  19025. fi
  19026. JAVA=$ac_cv_prog_JAVA
  19027. if test -n "$JAVA"; then
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  19029. $as_echo "$JAVA" >&6; }
  19030. else
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19032. $as_echo "no" >&6; }
  19033. fi
  19034. if test "$JAVA" = ""; then
  19035. use_java="No (java not available)"
  19036. else
  19037. for try_java_include in \
  19038. /System/Library/Frameworks/JavaVM.framework/Headers \
  19039. /usr/lib${LIBPOSTFIX}/jvm/java/include \
  19040. /usr/lib${LIBPOSTFIX}/jvm/java/include/linux \
  19041. /usr/lib${LIBPOSTFIX}/jvm/default-java/include \
  19042. /usr/lib${LIBPOSTFIX}/jvm/default-java/include/linux \
  19043. /usr/lib/jvm/java/include \
  19044. /usr/lib/jvm/java/include/linux \
  19045. /usr/lib/jvm/default-java/include \
  19046. /usr/lib/jvm/default-java/include/linux \
  19047. /etc/java-config-2/current-system-vm/include \
  19048. /etc/java-config-2/current-system-vm/include/linux \
  19049. /etc/java-config-2/current-system-vm/include/freebsd
  19050. do
  19051. if test -d "$try_java_include" ; then
  19052. JAVA_INCLUDES="$JAVA_INCLUDES -I${try_java_include}"
  19053. fi
  19054. done
  19055. JAVA_LIBS=
  19056. # Check whether --with-javaincludedir was given.
  19057. if test "${with_javaincludedir+set}" = set; then :
  19058. withval=$with_javaincludedir; JAVA_INCLUDES="-I$withval"
  19059. fi
  19060. # Check whether --with-javalibdir was given.
  19061. if test "${with_javalibdir+set}" = set; then :
  19062. withval=$with_javalibdir; JAVA_LIBS="$withval"
  19063. fi
  19064. save_CPPFLAGS=$CPPFLAGS
  19065. CPPFLAGS="$CPPFLAGS $JAVA_INCLUDES"
  19066. ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
  19067. if test "x$ac_cv_header_jni_h" = xyes; then :
  19068. else
  19069. use_java="No (missing header)"
  19070. JAVA=
  19071. fi
  19072. CPPFLAGS="$save_CPPFLAGS"
  19073. if test "$JAVA" != ""; then
  19074. use_java="Yes"
  19075. fi
  19076. fi
  19077. fi
  19078. fi
  19079. fi
  19080. if test "$use_java" = "Yes"; then
  19081. WITH_JAVA_TRUE=
  19082. WITH_JAVA_FALSE='#'
  19083. else
  19084. WITH_JAVA_TRUE='#'
  19085. WITH_JAVA_FALSE=
  19086. fi
  19087. # Check whether --enable-javascript was given.
  19088. if test "${enable_javascript+set}" = set; then :
  19089. enableval=$enable_javascript;
  19090. else
  19091. enable_javascript=no
  19092. fi
  19093. if test "$enable_javascript" != "yes"; then
  19094. use_javascript="No (disabled by default - incomplete)"
  19095. else
  19096. if test "$use_swig" != "Yes"; then
  19097. use_javascript="No (swig not available)"
  19098. else
  19099. if test `$SWIG -help 2>&1 | $EGREP -c '\-javascript* *- Generate'` = 0 ; then
  19100. use_javascript="No (swig does not support -javascript option)"
  19101. else
  19102. # Extract the first word of "js", so it can be a program name with args.
  19103. set dummy js; ac_word=$2
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19105. $as_echo_n "checking for $ac_word... " >&6; }
  19106. if ${ac_cv_prog_JAVASCRIPT+:} false; then :
  19107. $as_echo_n "(cached) " >&6
  19108. else
  19109. if test -n "$JAVASCRIPT"; then
  19110. ac_cv_prog_JAVASCRIPT="$JAVASCRIPT" # Let the user override the test.
  19111. else
  19112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19113. for as_dir in $PATH
  19114. do
  19115. IFS=$as_save_IFS
  19116. test -z "$as_dir" && as_dir=.
  19117. for ac_exec_ext in '' $ac_executable_extensions; do
  19118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19119. ac_cv_prog_JAVASCRIPT="js"
  19120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19121. break 2
  19122. fi
  19123. done
  19124. done
  19125. IFS=$as_save_IFS
  19126. fi
  19127. fi
  19128. JAVASCRIPT=$ac_cv_prog_JAVASCRIPT
  19129. if test -n "$JAVASCRIPT"; then
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVASCRIPT" >&5
  19131. $as_echo "$JAVASCRIPT" >&6; }
  19132. else
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19134. $as_echo "no" >&6; }
  19135. fi
  19136. if test "$JAVASCRIPT" = ""; then
  19137. use_javascript="No (JAVASCRIPT compiler not available)"
  19138. else
  19139. use_javascript="Yes"
  19140. fi
  19141. fi
  19142. fi
  19143. fi
  19144. if test "$use_javascript" = "Yes"; then
  19145. WITH_JAVASCRIPT_TRUE=
  19146. WITH_JAVASCRIPT_FALSE='#'
  19147. else
  19148. WITH_JAVASCRIPT_TRUE='#'
  19149. WITH_JAVASCRIPT_FALSE=
  19150. fi
  19151. # Check whether --enable-lua was given.
  19152. if test "${enable_lua+set}" = set; then :
  19153. enableval=$enable_lua;
  19154. else
  19155. enable_lua=yes
  19156. fi
  19157. if test "$enable_lua" != "yes"; then
  19158. use_lua="No (disabled)"
  19159. else
  19160. if test "$use_swig" != "Yes"; then
  19161. use_lua="No (swig not available)"
  19162. else
  19163. if test `$SWIG -help 2>&1 | $EGREP -c '\-lua *- Generate'` = 0; then
  19164. use_lua="No (swig does not support -lua option)"
  19165. else
  19166. # Extract the first word of "lua", so it can be a program name with args.
  19167. set dummy lua; ac_word=$2
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19169. $as_echo_n "checking for $ac_word... " >&6; }
  19170. if ${ac_cv_prog_LUA+:} false; then :
  19171. $as_echo_n "(cached) " >&6
  19172. else
  19173. if test -n "$LUA"; then
  19174. ac_cv_prog_LUA="$LUA" # Let the user override the test.
  19175. else
  19176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19177. for as_dir in $PATH
  19178. do
  19179. IFS=$as_save_IFS
  19180. test -z "$as_dir" && as_dir=.
  19181. for ac_exec_ext in '' $ac_executable_extensions; do
  19182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19183. ac_cv_prog_LUA="lua"
  19184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19185. break 2
  19186. fi
  19187. done
  19188. done
  19189. IFS=$as_save_IFS
  19190. fi
  19191. fi
  19192. LUA=$ac_cv_prog_LUA
  19193. if test -n "$LUA"; then
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
  19195. $as_echo "$LUA" >&6; }
  19196. else
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19198. $as_echo "no" >&6; }
  19199. fi
  19200. if test "$LUA" = ""; then
  19201. use_lua="No (lua not available)"
  19202. else
  19203. ac_save_CPPFLAGS="$CPPFLAGS"
  19204. ac_save_CFLAGS="$CFLAGS"
  19205. ac_save_LDFLAGS="$LDFLAGS"
  19206. # Extract the first word of "lua", so it can be a program name with args.
  19207. set dummy lua; ac_word=$2
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19209. $as_echo_n "checking for $ac_word... " >&6; }
  19210. if ${ac_cv_prog_LUA+:} false; then :
  19211. $as_echo_n "(cached) " >&6
  19212. else
  19213. if test -n "$LUA"; then
  19214. ac_cv_prog_LUA="$LUA" # Let the user override the test.
  19215. else
  19216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19217. for as_dir in $PATH
  19218. do
  19219. IFS=$as_save_IFS
  19220. test -z "$as_dir" && as_dir=.
  19221. for ac_exec_ext in '' $ac_executable_extensions; do
  19222. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19223. ac_cv_prog_LUA="lua"
  19224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19225. break 2
  19226. fi
  19227. done
  19228. done
  19229. IFS=$as_save_IFS
  19230. fi
  19231. fi
  19232. LUA=$ac_cv_prog_LUA
  19233. if test -n "$LUA"; then
  19234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
  19235. $as_echo "$LUA" >&6; }
  19236. else
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19238. $as_echo "no" >&6; }
  19239. fi
  19240. LUA_INCLUDES=""
  19241. LUA_LIBS=""
  19242. LUA_INSTALL_DIR=""
  19243. if test -n "$lua_inc"; then
  19244. CFLAGS="$CFLAGS -I$lua_inc"
  19245. CPPFLAGS="$CPPFLAGS -I$lua_inc"
  19246. fi
  19247. if test -n "$lua_lib"; then
  19248. LDFLAGS="$LDFLAGS -L$lua_lib"
  19249. fi
  19250. if test "$LUA_INCLUDES" = "" -a "$LUA_LIBS" = "" ; then
  19251. if test "$PKG_CONFIG" != ""; then
  19252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers and libraries with pkg-config" >&5
  19253. $as_echo_n "checking for Lua headers and libraries with pkg-config... " >&6; }
  19254. echo
  19255. for l in "$lua_suffix" "" "54" "5.4" "53" "5.3" "52" "5.2" "51" "5.1" ; do
  19256. pkgconfig_lua_found=`$PKG_CONFIG --exists lua$l 2>/dev/null`
  19257. if test "$?" = "0" ; then
  19258. LUA_INCLUDES="$LUA_CFLAGS "`$PKG_CONFIG --cflags lua$l`
  19259. LUA_LIBS="$LUA_LFLAGS "`$PKG_CONFIG --libs lua$l`
  19260. LUA_INSTALL_DIR="`$PKG_CONFIG --variable=libdir lua$l`/lua"
  19261. pkgconfig_lualib_found=`$PKG_CONFIG --exists lualib$l 2>/dev/null`
  19262. if test "$?" = "0"; then
  19263. LUA_INCLUDES="$LUA_CFLAGS "`$PKG_CONFIG --cflags lualib$l`
  19264. LUA_LIBS="$LUA_LFLAGS "`$PKG_CONFIG --libs lualib$l`
  19265. fi
  19266. break
  19267. fi
  19268. done
  19269. fi
  19270. fi
  19271. if test "$LUA_INCLUDES" = "" -o "$LUA_LIBS" = "" ; then
  19272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua headers and libraries" >&5
  19273. $as_echo_n "checking for Lua headers and libraries... " >&6; }
  19274. echo
  19275. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  19276. if test "x$ac_cv_header_lua_h" = xyes; then :
  19277. ac_found_lua_header="yes"
  19278. else
  19279. ac_found_lua_header="no"
  19280. fi
  19281. ac_fn_c_check_header_mongrel "$LINENO" "lualib.h" "ac_cv_header_lualib_h" "$ac_includes_default"
  19282. if test "x$ac_cv_header_lualib_h" = xyes; then :
  19283. ac_found_liblua_header="yes"
  19284. else
  19285. ac_found_liblua_header="no"
  19286. fi
  19287. if test "$ac_found_lua_header" = "yes" -a "$ac_found_liblua_header" = "yes"; then
  19288. LUA_INCLUDES="$CFLAGS"
  19289. fi
  19290. for l in "$lua_suffix" "" "52" "5.2" "51" "5.1" ; do
  19291. as_ac_Lib=`$as_echo "ac_cv_lib_lua$l''_lua_call" | $as_tr_sh`
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_call in -llua$l" >&5
  19293. $as_echo_n "checking for lua_call in -llua$l... " >&6; }
  19294. if eval \${$as_ac_Lib+:} false; then :
  19295. $as_echo_n "(cached) " >&6
  19296. else
  19297. ac_check_lib_save_LIBS=$LIBS
  19298. LIBS="-llua$l $LIBS"
  19299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19300. /* end confdefs.h. */
  19301. /* Override any GCC internal prototype to avoid an error.
  19302. Use char because int might match the return type of a GCC
  19303. builtin and then its argument prototype would still apply. */
  19304. #ifdef __cplusplus
  19305. extern "C"
  19306. #endif
  19307. char lua_call ();
  19308. int
  19309. main ()
  19310. {
  19311. return lua_call ();
  19312. ;
  19313. return 0;
  19314. }
  19315. _ACEOF
  19316. if ac_fn_c_try_link "$LINENO"; then :
  19317. eval "$as_ac_Lib=yes"
  19318. else
  19319. eval "$as_ac_Lib=no"
  19320. fi
  19321. rm -f core conftest.err conftest.$ac_objext \
  19322. conftest$ac_exeext conftest.$ac_ext
  19323. LIBS=$ac_check_lib_save_LIBS
  19324. fi
  19325. eval ac_res=\$$as_ac_Lib
  19326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19327. $as_echo "$ac_res" >&6; }
  19328. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19329. ac_found_lua_lib="yes"
  19330. else
  19331. ac_found_lua_lib="no"
  19332. fi
  19333. if test "$ac_found_lua_lib" = "yes" ; then
  19334. LUA_LIBS="$LDFLAGS -llua$l -lm"
  19335. ac2_save_LDFLAGS="$LDFLAGS"
  19336. LDFLAGS="$LDFLAGS -llua$l -lm"
  19337. if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
  19338. LDFLAGS="$LDFLAGS -ldl"
  19339. fi
  19340. as_ac_Lib=`$as_echo "ac_cv_lib_lualib$l''_luaL_openlib" | $as_tr_sh`
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_openlib in -llualib$l" >&5
  19342. $as_echo_n "checking for luaL_openlib in -llualib$l... " >&6; }
  19343. if eval \${$as_ac_Lib+:} false; then :
  19344. $as_echo_n "(cached) " >&6
  19345. else
  19346. ac_check_lib_save_LIBS=$LIBS
  19347. LIBS="-llualib$l $LIBS"
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. /* Override any GCC internal prototype to avoid an error.
  19351. Use char because int might match the return type of a GCC
  19352. builtin and then its argument prototype would still apply. */
  19353. #ifdef __cplusplus
  19354. extern "C"
  19355. #endif
  19356. char luaL_openlib ();
  19357. int
  19358. main ()
  19359. {
  19360. return luaL_openlib ();
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"; then :
  19366. eval "$as_ac_Lib=yes"
  19367. else
  19368. eval "$as_ac_Lib=no"
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. LIBS=$ac_check_lib_save_LIBS
  19373. fi
  19374. eval ac_res=\$$as_ac_Lib
  19375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19376. $as_echo "$ac_res" >&6; }
  19377. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19378. ac_found_liblua_lib="yes"
  19379. else
  19380. ac_found_liblua_lib="no"
  19381. fi
  19382. if test "$ac_found_liblua_lib" = "yes" ; then
  19383. LUA_LIBS="$LUA_LFLAGS -llualib$l"
  19384. if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
  19385. LUA_LIBS="$LUA_LFLAGS -ldl"
  19386. fi
  19387. fi
  19388. LDFLAGS="$ac2_save_LDFLAGS"
  19389. break
  19390. fi
  19391. done
  19392. fi
  19393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua compiling and linking" >&5
  19394. $as_echo_n "checking for Lua compiling and linking... " >&6; }
  19395. LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_INCLUDES $LUA_LIBS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
  19396. if test "$LUA_TEST" != "0" ; then
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19398. $as_echo "no" >&6; }
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  19400. *** Lua (>=5.1) headers and/or libraries could not be found in your system.
  19401. *** Try to install liblua, liblualib and liblua-dev with your software package manager.
  19402. *** Graphviz will be built without Lua support." >&5
  19403. $as_echo "$as_me: WARNING:
  19404. *** Lua (>=5.1) headers and/or libraries could not be found in your system.
  19405. *** Try to install liblua, liblualib and liblua-dev with your software package manager.
  19406. *** Graphviz will be built without Lua support." >&2;}
  19407. use_lua="No (lua compiling/linking failed)"
  19408. else
  19409. use_lua="Yes"
  19410. # Not needed for Graphviz: AC_DEFINE(PLUGIN_LUA)
  19411. fi
  19412. CFLAGS="$ac_save_CFLAGS"
  19413. CPPFLAGS="$ac_save_CPPFLAGS"
  19414. LDFLAGS="$ac_save_LDFLAGS"
  19415. fi
  19416. fi
  19417. fi
  19418. fi
  19419. if test "$use_lua" = "Yes"; then
  19420. WITH_LUA_TRUE=
  19421. WITH_LUA_FALSE='#'
  19422. else
  19423. WITH_LUA_TRUE='#'
  19424. WITH_LUA_FALSE=
  19425. fi
  19426. # Check whether --enable-perl was given.
  19427. if test "${enable_perl+set}" = set; then :
  19428. enableval=$enable_perl;
  19429. else
  19430. enable_perl=yes
  19431. fi
  19432. if test "$enable_perl" != "yes"; then
  19433. use_perl="No (disabled)"
  19434. else
  19435. if test "$use_swig" != "Yes"; then
  19436. use_perl="No (swig not available)"
  19437. else
  19438. if test `$SWIG -perl5 2>&1 | $EGREP -c '(Unable|No target)'` -eq 1; then
  19439. use_perl="No (swig does not support -perl5 option)"
  19440. else
  19441. # Extract the first word of "perl", so it can be a program name with args.
  19442. set dummy perl; ac_word=$2
  19443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19444. $as_echo_n "checking for $ac_word... " >&6; }
  19445. if ${ac_cv_prog_PERL+:} false; then :
  19446. $as_echo_n "(cached) " >&6
  19447. else
  19448. if test -n "$PERL"; then
  19449. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  19450. else
  19451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19452. for as_dir in $PATH
  19453. do
  19454. IFS=$as_save_IFS
  19455. test -z "$as_dir" && as_dir=.
  19456. for ac_exec_ext in '' $ac_executable_extensions; do
  19457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19458. ac_cv_prog_PERL="perl"
  19459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19460. break 2
  19461. fi
  19462. done
  19463. done
  19464. IFS=$as_save_IFS
  19465. fi
  19466. fi
  19467. PERL=$ac_cv_prog_PERL
  19468. if test -n "$PERL"; then
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  19470. $as_echo "$PERL" >&6; }
  19471. else
  19472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19473. $as_echo "no" >&6; }
  19474. fi
  19475. if test "$PERL" = ""; then
  19476. use_perl="No (perl not available)"
  19477. else
  19478. PERL_INCLUDES="`$PERL $srcdir/config/config_perl.pl PERL_INCLUDES`"
  19479. PERL_LIBS="`$PERL $srcdir/config/config_perl.pl PERL_LIBS`"
  19480. PERL_INSTALL_DIR="`$PERL $srcdir/config/config_perl.pl PERL_INSTALL_DIR`"
  19481. save_CPPFLAGS=$CPPFLAGS
  19482. CPPFLAGS="$CPPFLAGS $PERL_INCLUDES"
  19483. ac_fn_c_check_header_mongrel "$LINENO" "EXTERN.h" "ac_cv_header_EXTERN_h" "$ac_includes_default"
  19484. if test "x$ac_cv_header_EXTERN_h" = xyes; then :
  19485. else
  19486. use_perl="No (missing header)"
  19487. PERL=
  19488. fi
  19489. CPPFLAGS=$save_CPPFLAGS
  19490. if test "$PERL" != ""; then
  19491. use_perl="Yes"
  19492. fi
  19493. fi
  19494. fi
  19495. fi
  19496. fi
  19497. if test "$use_perl" = "Yes"; then
  19498. WITH_PERL_TRUE=
  19499. WITH_PERL_FALSE='#'
  19500. else
  19501. WITH_PERL_TRUE='#'
  19502. WITH_PERL_FALSE=
  19503. fi
  19504. # Check whether --enable-php was given.
  19505. if test "${enable_php+set}" = set; then :
  19506. enableval=$enable_php;
  19507. else
  19508. enable_php=yes
  19509. fi
  19510. if test "$enable_php" != "yes"; then
  19511. use_php="No (disabled)"
  19512. else
  19513. if test "$use_swig" != "Yes"; then
  19514. use_php="No (swig not available)"
  19515. else
  19516. if test `$SWIG -php7 2>&1 | $EGREP -c '(Unable|No target)'` -eq 1; then
  19517. SWIG_PHP_OPT='-php'
  19518. else
  19519. SWIG_PHP_OPT='-php7'
  19520. fi
  19521. if test `$SWIG -help 2>&1 | $EGREP -c "(-php|-php7) *- Generate"` = 0 ; then
  19522. use_php="No (swig does not support -php or -php7 option)"
  19523. else
  19524. # Extract the first word of "php", so it can be a program name with args.
  19525. set dummy php; ac_word=$2
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19527. $as_echo_n "checking for $ac_word... " >&6; }
  19528. if ${ac_cv_prog_PHP+:} false; then :
  19529. $as_echo_n "(cached) " >&6
  19530. else
  19531. if test -n "$PHP"; then
  19532. ac_cv_prog_PHP="$PHP" # Let the user override the test.
  19533. else
  19534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19535. for as_dir in $PATH
  19536. do
  19537. IFS=$as_save_IFS
  19538. test -z "$as_dir" && as_dir=.
  19539. for ac_exec_ext in '' $ac_executable_extensions; do
  19540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19541. ac_cv_prog_PHP="php"
  19542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19543. break 2
  19544. fi
  19545. done
  19546. done
  19547. IFS=$as_save_IFS
  19548. fi
  19549. fi
  19550. PHP=$ac_cv_prog_PHP
  19551. if test -n "$PHP"; then
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
  19553. $as_echo "$PHP" >&6; }
  19554. else
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19556. $as_echo "no" >&6; }
  19557. fi
  19558. if test "$PHP" = ""; then
  19559. use_php="No (php not available)"
  19560. else
  19561. # Extract the first word of "php-config", so it can be a program name with args.
  19562. set dummy php-config; ac_word=$2
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19564. $as_echo_n "checking for $ac_word... " >&6; }
  19565. if ${ac_cv_prog_PHPCONFIG+:} false; then :
  19566. $as_echo_n "(cached) " >&6
  19567. else
  19568. if test -n "$PHPCONFIG"; then
  19569. ac_cv_prog_PHPCONFIG="$PHPCONFIG" # Let the user override the test.
  19570. else
  19571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19572. for as_dir in $PATH
  19573. do
  19574. IFS=$as_save_IFS
  19575. test -z "$as_dir" && as_dir=.
  19576. for ac_exec_ext in '' $ac_executable_extensions; do
  19577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19578. ac_cv_prog_PHPCONFIG="php-config"
  19579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19580. break 2
  19581. fi
  19582. done
  19583. done
  19584. IFS=$as_save_IFS
  19585. fi
  19586. fi
  19587. PHPCONFIG=$ac_cv_prog_PHPCONFIG
  19588. if test -n "$PHPCONFIG"; then
  19589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
  19590. $as_echo "$PHPCONFIG" >&6; }
  19591. else
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19593. $as_echo "no" >&6; }
  19594. fi
  19595. if test "$PHPCONFIG" = ""; then
  19596. use_php="No (php-config not available)"
  19597. else
  19598. PHP_INCLUDES="`$PHPCONFIG --includes`"
  19599. PHP_INSTALL_DIR="`$PHPCONFIG --extension-dir`"
  19600. PHP_INSTALL_DATADIR="/usr/share/php"
  19601. PHP_LIBS="`$PHPCONFIG --ldflags` `$PHPCONFIG --libs`"
  19602. fi
  19603. fi
  19604. if test "$PHP" != ""; then
  19605. use_php="Yes"
  19606. fi
  19607. fi
  19608. fi
  19609. fi
  19610. if test "$use_php" = "Yes"; then
  19611. WITH_PHP_TRUE=
  19612. WITH_PHP_FALSE='#'
  19613. else
  19614. WITH_PHP_TRUE='#'
  19615. WITH_PHP_FALSE=
  19616. fi
  19617. # alias for `--enable-python3`
  19618. # Check whether --enable-python was given.
  19619. if test "${enable_python+set}" = set; then :
  19620. enableval=$enable_python;
  19621. else
  19622. enable_python3=yes
  19623. fi
  19624. # Check whether --enable-python3 was given.
  19625. if test "${enable_python3+set}" = set; then :
  19626. enableval=$enable_python3;
  19627. else
  19628. enable_python3=yes
  19629. fi
  19630. if test "$enable_python3" != "yes"; then
  19631. use_python3="No (disabled)"
  19632. else
  19633. if test "$use_swig" != "Yes"; then
  19634. use_python3="No (swig not available)"
  19635. else
  19636. if test `$SWIG -help 2>&1 | $EGREP -c '\-python *- Generate'` = 0; then
  19637. use_python="No (swig does not support -python option)"
  19638. else
  19639. # Extract the first word of "python3", so it can be a program name with args.
  19640. set dummy python3; ac_word=$2
  19641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19642. $as_echo_n "checking for $ac_word... " >&6; }
  19643. if ${ac_cv_prog_PYTHON3+:} false; then :
  19644. $as_echo_n "(cached) " >&6
  19645. else
  19646. if test -n "$PYTHON3"; then
  19647. ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
  19648. else
  19649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19650. for as_dir in $PATH
  19651. do
  19652. IFS=$as_save_IFS
  19653. test -z "$as_dir" && as_dir=.
  19654. for ac_exec_ext in '' $ac_executable_extensions; do
  19655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19656. ac_cv_prog_PYTHON3="python3"
  19657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19658. break 2
  19659. fi
  19660. done
  19661. done
  19662. IFS=$as_save_IFS
  19663. fi
  19664. fi
  19665. PYTHON3=$ac_cv_prog_PYTHON3
  19666. if test -n "$PYTHON3"; then
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
  19668. $as_echo "$PYTHON3" >&6; }
  19669. else
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19671. $as_echo "no" >&6; }
  19672. fi
  19673. if test "$PYTHON3" = ""; then
  19674. use_python3="No (python3 not available)"
  19675. else
  19676. PYTHON3_VERSION=`$PYTHON3 -c "import sys; print('%d.%d' % sys.version_info[0:2])"`
  19677. if test "$PYTHON3_VERSION" = ""; then
  19678. PYTHON3=
  19679. fi
  19680. fi
  19681. if test "$PYTHON3" = ""; then
  19682. use_python3="No (python3 is too old)"
  19683. PYTHON3=
  19684. else
  19685. if test "$PKG_CONFIG" != ""; then
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python3 headers and libraries with pkg-config" >&5
  19687. $as_echo_n "checking for Python3 headers and libraries with pkg-config... " >&6; }
  19688. echo
  19689. pkgconfig_python3_found=`$PKG_CONFIG --exists python-$PYTHON3_VERSION 2>/dev/null`
  19690. if test "$?" = "0" ; then
  19691. PYTHON3_INCLUDES="$PYTHON3_CFLAGS "`$PKG_CONFIG --cflags python-$PYTHON3_VERSION`
  19692. PYTHON3_LIBS="$PYTHON3_LFLAGS "`$PKG_CONFIG --libs python-$PYTHON3_VERSION`
  19693. else
  19694. use_python3="No (python-$PYTHON3_VERSION.pc not found)"
  19695. fi
  19696. fi
  19697. PYTHON3_INSTALL_DIR="`$PYTHON3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))'`"
  19698. save_CPPFLAGS=$CPPFLAGS
  19699. CPPFLAGS="$CPPFLAGS $PYTHON3_INCLUDES"
  19700. ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
  19701. if test "x$ac_cv_header_Python_h" = xyes; then :
  19702. else
  19703. use_python3="No (missing header)"
  19704. PYTHON3=
  19705. fi
  19706. CPPFLAGS=$save_CPPFLAGS
  19707. if test "$PYTHON3" != ""; then
  19708. use_python3="Yes"
  19709. fi
  19710. fi
  19711. fi
  19712. fi
  19713. fi
  19714. if test "$use_python3" = "Yes"; then
  19715. WITH_PYTHON3_TRUE=
  19716. WITH_PYTHON3_FALSE='#'
  19717. else
  19718. WITH_PYTHON3_TRUE='#'
  19719. WITH_PYTHON3_FALSE=
  19720. fi
  19721. # Check whether --enable-r was given.
  19722. if test "${enable_r+set}" = set; then :
  19723. enableval=$enable_r;
  19724. else
  19725. enable_r=yes
  19726. fi
  19727. if test "$enable_r" != "yes"; then
  19728. use_r="No (disabled)"
  19729. else
  19730. if test "$use_swig" != "Yes"; then
  19731. use_r="No (swig not available)"
  19732. else
  19733. if test `$SWIG -help 2>&1 | $EGREP -c '\-r *- Generate'` = 0; then
  19734. use_r="No (swig does not support -r option)"
  19735. else
  19736. pkg_failed=no
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for R" >&5
  19738. $as_echo_n "checking for R... " >&6; }
  19739. if test -n "$R_CFLAGS"; then
  19740. pkg_cv_R_CFLAGS="$R_CFLAGS"
  19741. elif test -n "$PKG_CONFIG"; then
  19742. if test -n "$PKG_CONFIG" && \
  19743. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libR\""; } >&5
  19744. ($PKG_CONFIG --exists --print-errors "libR") 2>&5
  19745. ac_status=$?
  19746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19747. test $ac_status = 0; }; then
  19748. pkg_cv_R_CFLAGS=`$PKG_CONFIG --cflags "libR" 2>/dev/null`
  19749. test "x$?" != "x0" && pkg_failed=yes
  19750. else
  19751. pkg_failed=yes
  19752. fi
  19753. else
  19754. pkg_failed=untried
  19755. fi
  19756. if test -n "$R_LIBS"; then
  19757. pkg_cv_R_LIBS="$R_LIBS"
  19758. elif test -n "$PKG_CONFIG"; then
  19759. if test -n "$PKG_CONFIG" && \
  19760. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libR\""; } >&5
  19761. ($PKG_CONFIG --exists --print-errors "libR") 2>&5
  19762. ac_status=$?
  19763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19764. test $ac_status = 0; }; then
  19765. pkg_cv_R_LIBS=`$PKG_CONFIG --libs "libR" 2>/dev/null`
  19766. test "x$?" != "x0" && pkg_failed=yes
  19767. else
  19768. pkg_failed=yes
  19769. fi
  19770. else
  19771. pkg_failed=untried
  19772. fi
  19773. if test $pkg_failed = yes; then
  19774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19775. $as_echo "no" >&6; }
  19776. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19777. _pkg_short_errors_supported=yes
  19778. else
  19779. _pkg_short_errors_supported=no
  19780. fi
  19781. if test $_pkg_short_errors_supported = yes; then
  19782. R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libR" 2>&1`
  19783. else
  19784. R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libR" 2>&1`
  19785. fi
  19786. # Put the nasty error message in config.log where it belongs
  19787. echo "$R_PKG_ERRORS" >&5
  19788. use_r="No (R not available)"
  19789. elif test $pkg_failed = untried; then
  19790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19791. $as_echo "no" >&6; }
  19792. use_r="No (R not available)"
  19793. else
  19794. R_CFLAGS=$pkg_cv_R_CFLAGS
  19795. R_LIBS=$pkg_cv_R_LIBS
  19796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19797. $as_echo "yes" >&6; }
  19798. use_r="Yes"
  19799. fi
  19800. fi
  19801. fi
  19802. fi
  19803. if test "$use_r" = "Yes"; then
  19804. WITH_R_TRUE=
  19805. WITH_R_FALSE='#'
  19806. else
  19807. WITH_R_TRUE='#'
  19808. WITH_R_FALSE=
  19809. fi
  19810. # Check whether --enable-ruby was given.
  19811. if test "${enable_ruby+set}" = set; then :
  19812. enableval=$enable_ruby;
  19813. else
  19814. enable_ruby=yes
  19815. fi
  19816. if test "$enable_ruby" != "yes"; then
  19817. use_ruby="No (disabled)"
  19818. else
  19819. if test "$use_swig" != "Yes"; then
  19820. use_ruby="No (swig not available)"
  19821. else
  19822. if test `$SWIG -help 2>&1 | $EGREP -c '\-ruby *- Generate'` = 0; then
  19823. use_ruby="No (swig does not support -ruby option)"
  19824. else
  19825. pkg_failed=no
  19826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RUBY" >&5
  19827. $as_echo_n "checking for RUBY... " >&6; }
  19828. if test -n "$RUBY_CFLAGS"; then
  19829. pkg_cv_RUBY_CFLAGS="$RUBY_CFLAGS"
  19830. elif test -n "$PKG_CONFIG"; then
  19831. if test -n "$PKG_CONFIG" && \
  19832. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby\""; } >&5
  19833. ($PKG_CONFIG --exists --print-errors "ruby") 2>&5
  19834. ac_status=$?
  19835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19836. test $ac_status = 0; }; then
  19837. pkg_cv_RUBY_CFLAGS=`$PKG_CONFIG --cflags "ruby" 2>/dev/null`
  19838. test "x$?" != "x0" && pkg_failed=yes
  19839. else
  19840. pkg_failed=yes
  19841. fi
  19842. else
  19843. pkg_failed=untried
  19844. fi
  19845. if test -n "$RUBY_LIBS"; then
  19846. pkg_cv_RUBY_LIBS="$RUBY_LIBS"
  19847. elif test -n "$PKG_CONFIG"; then
  19848. if test -n "$PKG_CONFIG" && \
  19849. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby\""; } >&5
  19850. ($PKG_CONFIG --exists --print-errors "ruby") 2>&5
  19851. ac_status=$?
  19852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19853. test $ac_status = 0; }; then
  19854. pkg_cv_RUBY_LIBS=`$PKG_CONFIG --libs "ruby" 2>/dev/null`
  19855. test "x$?" != "x0" && pkg_failed=yes
  19856. else
  19857. pkg_failed=yes
  19858. fi
  19859. else
  19860. pkg_failed=untried
  19861. fi
  19862. if test $pkg_failed = yes; then
  19863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19864. $as_echo "no" >&6; }
  19865. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19866. _pkg_short_errors_supported=yes
  19867. else
  19868. _pkg_short_errors_supported=no
  19869. fi
  19870. if test $_pkg_short_errors_supported = yes; then
  19871. RUBY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby" 2>&1`
  19872. else
  19873. RUBY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby" 2>&1`
  19874. fi
  19875. # Put the nasty error message in config.log where it belongs
  19876. echo "$RUBY_PKG_ERRORS" >&5
  19877. pkg_failed=no
  19878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RUBY" >&5
  19879. $as_echo_n "checking for RUBY... " >&6; }
  19880. if test -n "$RUBY_CFLAGS"; then
  19881. pkg_cv_RUBY_CFLAGS="$RUBY_CFLAGS"
  19882. elif test -n "$PKG_CONFIG"; then
  19883. if test -n "$PKG_CONFIG" && \
  19884. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-\${RUBY_VER}\""; } >&5
  19885. ($PKG_CONFIG --exists --print-errors "ruby-${RUBY_VER}") 2>&5
  19886. ac_status=$?
  19887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19888. test $ac_status = 0; }; then
  19889. pkg_cv_RUBY_CFLAGS=`$PKG_CONFIG --cflags "ruby-${RUBY_VER}" 2>/dev/null`
  19890. test "x$?" != "x0" && pkg_failed=yes
  19891. else
  19892. pkg_failed=yes
  19893. fi
  19894. else
  19895. pkg_failed=untried
  19896. fi
  19897. if test -n "$RUBY_LIBS"; then
  19898. pkg_cv_RUBY_LIBS="$RUBY_LIBS"
  19899. elif test -n "$PKG_CONFIG"; then
  19900. if test -n "$PKG_CONFIG" && \
  19901. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-\${RUBY_VER}\""; } >&5
  19902. ($PKG_CONFIG --exists --print-errors "ruby-${RUBY_VER}") 2>&5
  19903. ac_status=$?
  19904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19905. test $ac_status = 0; }; then
  19906. pkg_cv_RUBY_LIBS=`$PKG_CONFIG --libs "ruby-${RUBY_VER}" 2>/dev/null`
  19907. test "x$?" != "x0" && pkg_failed=yes
  19908. else
  19909. pkg_failed=yes
  19910. fi
  19911. else
  19912. pkg_failed=untried
  19913. fi
  19914. if test $pkg_failed = yes; then
  19915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19916. $as_echo "no" >&6; }
  19917. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19918. _pkg_short_errors_supported=yes
  19919. else
  19920. _pkg_short_errors_supported=no
  19921. fi
  19922. if test $_pkg_short_errors_supported = yes; then
  19923. RUBY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-${RUBY_VER}" 2>&1`
  19924. else
  19925. RUBY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-${RUBY_VER}" 2>&1`
  19926. fi
  19927. # Put the nasty error message in config.log where it belongs
  19928. echo "$RUBY_PKG_ERRORS" >&5
  19929. # Extract the first word of "ruby", so it can be a program name with args.
  19930. set dummy ruby; ac_word=$2
  19931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19932. $as_echo_n "checking for $ac_word... " >&6; }
  19933. if ${ac_cv_prog_RUBY+:} false; then :
  19934. $as_echo_n "(cached) " >&6
  19935. else
  19936. if test -n "$RUBY"; then
  19937. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  19938. else
  19939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19940. for as_dir in $PATH
  19941. do
  19942. IFS=$as_save_IFS
  19943. test -z "$as_dir" && as_dir=.
  19944. for ac_exec_ext in '' $ac_executable_extensions; do
  19945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19946. ac_cv_prog_RUBY="ruby"
  19947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19948. break 2
  19949. fi
  19950. done
  19951. done
  19952. IFS=$as_save_IFS
  19953. fi
  19954. fi
  19955. RUBY=$ac_cv_prog_RUBY
  19956. if test -n "$RUBY"; then
  19957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  19958. $as_echo "$RUBY" >&6; }
  19959. else
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19961. $as_echo "no" >&6; }
  19962. fi
  19963. if test "$RUBY" = ""; then
  19964. use_ruby="No (ruby not available)"
  19965. else
  19966. RUBY_CFLAGS="-I`$RUBY $srcdir/config/config_ruby.rb rubyarchhdrdir`"
  19967. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb vendorhdrdir`"
  19968. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb sitehdrdir`"
  19969. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb rubyhdrdir`"
  19970. RUBY_LIBS="-L`$RUBY $srcdir/config/config_ruby.rb libdir` `$RUBY -rrbconfig -e \"puts RbConfig::CONFIG['LIBRUBYARG_SHARED']\"`"
  19971. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  19972. if test "$RUBY_INSTALL_DIR" = ""; then
  19973. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb sitearchdir`"
  19974. fi
  19975. save_CPPFLAGS=$CPPFLAGS
  19976. CPPFLAGS="$CPPFLAGS $RUBY_CFLAGS"
  19977. ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
  19978. if test "x$ac_cv_header_ruby_h" = xyes; then :
  19979. else
  19980. use_ruby="No (missing header)"
  19981. RUBY=
  19982. fi
  19983. CPPFLAGS=$save_CPPFLAGS
  19984. fi
  19985. elif test $pkg_failed = untried; then
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19987. $as_echo "no" >&6; }
  19988. # Extract the first word of "ruby", so it can be a program name with args.
  19989. set dummy ruby; ac_word=$2
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19991. $as_echo_n "checking for $ac_word... " >&6; }
  19992. if ${ac_cv_prog_RUBY+:} false; then :
  19993. $as_echo_n "(cached) " >&6
  19994. else
  19995. if test -n "$RUBY"; then
  19996. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  19997. else
  19998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19999. for as_dir in $PATH
  20000. do
  20001. IFS=$as_save_IFS
  20002. test -z "$as_dir" && as_dir=.
  20003. for ac_exec_ext in '' $ac_executable_extensions; do
  20004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20005. ac_cv_prog_RUBY="ruby"
  20006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20007. break 2
  20008. fi
  20009. done
  20010. done
  20011. IFS=$as_save_IFS
  20012. fi
  20013. fi
  20014. RUBY=$ac_cv_prog_RUBY
  20015. if test -n "$RUBY"; then
  20016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20017. $as_echo "$RUBY" >&6; }
  20018. else
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20020. $as_echo "no" >&6; }
  20021. fi
  20022. if test "$RUBY" = ""; then
  20023. use_ruby="No (ruby not available)"
  20024. else
  20025. RUBY_CFLAGS="-I`$RUBY $srcdir/config/config_ruby.rb rubyarchhdrdir`"
  20026. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb vendorhdrdir`"
  20027. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb sitehdrdir`"
  20028. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb rubyhdrdir`"
  20029. RUBY_LIBS="-L`$RUBY $srcdir/config/config_ruby.rb libdir` `$RUBY -rrbconfig -e \"puts RbConfig::CONFIG['LIBRUBYARG_SHARED']\"`"
  20030. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20031. if test "$RUBY_INSTALL_DIR" = ""; then
  20032. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb sitearchdir`"
  20033. fi
  20034. save_CPPFLAGS=$CPPFLAGS
  20035. CPPFLAGS="$CPPFLAGS $RUBY_CFLAGS"
  20036. ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
  20037. if test "x$ac_cv_header_ruby_h" = xyes; then :
  20038. else
  20039. use_ruby="No (missing header)"
  20040. RUBY=
  20041. fi
  20042. CPPFLAGS=$save_CPPFLAGS
  20043. fi
  20044. else
  20045. RUBY_CFLAGS=$pkg_cv_RUBY_CFLAGS
  20046. RUBY_LIBS=$pkg_cv_RUBY_LIBS
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20048. $as_echo "yes" >&6; }
  20049. # Extract the first word of "ruby", so it can be a program name with args.
  20050. set dummy ruby; ac_word=$2
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20052. $as_echo_n "checking for $ac_word... " >&6; }
  20053. if ${ac_cv_prog_RUBY+:} false; then :
  20054. $as_echo_n "(cached) " >&6
  20055. else
  20056. if test -n "$RUBY"; then
  20057. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  20058. else
  20059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20060. for as_dir in $PATH
  20061. do
  20062. IFS=$as_save_IFS
  20063. test -z "$as_dir" && as_dir=.
  20064. for ac_exec_ext in '' $ac_executable_extensions; do
  20065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20066. ac_cv_prog_RUBY="ruby"
  20067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20068. break 2
  20069. fi
  20070. done
  20071. done
  20072. IFS=$as_save_IFS
  20073. fi
  20074. fi
  20075. RUBY=$ac_cv_prog_RUBY
  20076. if test -n "$RUBY"; then
  20077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20078. $as_echo "$RUBY" >&6; }
  20079. else
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20081. $as_echo "no" >&6; }
  20082. fi
  20083. if test "$RUBY" = ""; then
  20084. use_ruby="No (ruby not available)"
  20085. else
  20086. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20087. fi
  20088. fi
  20089. elif test $pkg_failed = untried; then
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20091. $as_echo "no" >&6; }
  20092. pkg_failed=no
  20093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RUBY" >&5
  20094. $as_echo_n "checking for RUBY... " >&6; }
  20095. if test -n "$RUBY_CFLAGS"; then
  20096. pkg_cv_RUBY_CFLAGS="$RUBY_CFLAGS"
  20097. elif test -n "$PKG_CONFIG"; then
  20098. if test -n "$PKG_CONFIG" && \
  20099. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-\${RUBY_VER}\""; } >&5
  20100. ($PKG_CONFIG --exists --print-errors "ruby-${RUBY_VER}") 2>&5
  20101. ac_status=$?
  20102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20103. test $ac_status = 0; }; then
  20104. pkg_cv_RUBY_CFLAGS=`$PKG_CONFIG --cflags "ruby-${RUBY_VER}" 2>/dev/null`
  20105. test "x$?" != "x0" && pkg_failed=yes
  20106. else
  20107. pkg_failed=yes
  20108. fi
  20109. else
  20110. pkg_failed=untried
  20111. fi
  20112. if test -n "$RUBY_LIBS"; then
  20113. pkg_cv_RUBY_LIBS="$RUBY_LIBS"
  20114. elif test -n "$PKG_CONFIG"; then
  20115. if test -n "$PKG_CONFIG" && \
  20116. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ruby-\${RUBY_VER}\""; } >&5
  20117. ($PKG_CONFIG --exists --print-errors "ruby-${RUBY_VER}") 2>&5
  20118. ac_status=$?
  20119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20120. test $ac_status = 0; }; then
  20121. pkg_cv_RUBY_LIBS=`$PKG_CONFIG --libs "ruby-${RUBY_VER}" 2>/dev/null`
  20122. test "x$?" != "x0" && pkg_failed=yes
  20123. else
  20124. pkg_failed=yes
  20125. fi
  20126. else
  20127. pkg_failed=untried
  20128. fi
  20129. if test $pkg_failed = yes; then
  20130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20131. $as_echo "no" >&6; }
  20132. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20133. _pkg_short_errors_supported=yes
  20134. else
  20135. _pkg_short_errors_supported=no
  20136. fi
  20137. if test $_pkg_short_errors_supported = yes; then
  20138. RUBY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ruby-${RUBY_VER}" 2>&1`
  20139. else
  20140. RUBY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ruby-${RUBY_VER}" 2>&1`
  20141. fi
  20142. # Put the nasty error message in config.log where it belongs
  20143. echo "$RUBY_PKG_ERRORS" >&5
  20144. # Extract the first word of "ruby", so it can be a program name with args.
  20145. set dummy ruby; ac_word=$2
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20147. $as_echo_n "checking for $ac_word... " >&6; }
  20148. if ${ac_cv_prog_RUBY+:} false; then :
  20149. $as_echo_n "(cached) " >&6
  20150. else
  20151. if test -n "$RUBY"; then
  20152. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  20153. else
  20154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20155. for as_dir in $PATH
  20156. do
  20157. IFS=$as_save_IFS
  20158. test -z "$as_dir" && as_dir=.
  20159. for ac_exec_ext in '' $ac_executable_extensions; do
  20160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20161. ac_cv_prog_RUBY="ruby"
  20162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20163. break 2
  20164. fi
  20165. done
  20166. done
  20167. IFS=$as_save_IFS
  20168. fi
  20169. fi
  20170. RUBY=$ac_cv_prog_RUBY
  20171. if test -n "$RUBY"; then
  20172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20173. $as_echo "$RUBY" >&6; }
  20174. else
  20175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20176. $as_echo "no" >&6; }
  20177. fi
  20178. if test "$RUBY" = ""; then
  20179. use_ruby="No (ruby not available)"
  20180. else
  20181. RUBY_CFLAGS="-I`$RUBY $srcdir/config/config_ruby.rb rubyarchhdrdir`"
  20182. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb vendorhdrdir`"
  20183. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb sitehdrdir`"
  20184. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb rubyhdrdir`"
  20185. RUBY_LIBS="-L`$RUBY $srcdir/config/config_ruby.rb libdir` `$RUBY -rrbconfig -e \"puts RbConfig::CONFIG['LIBRUBYARG_SHARED']\"`"
  20186. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20187. if test "$RUBY_INSTALL_DIR" = ""; then
  20188. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb sitearchdir`"
  20189. fi
  20190. save_CPPFLAGS=$CPPFLAGS
  20191. CPPFLAGS="$CPPFLAGS $RUBY_CFLAGS"
  20192. ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
  20193. if test "x$ac_cv_header_ruby_h" = xyes; then :
  20194. else
  20195. use_ruby="No (missing header)"
  20196. RUBY=
  20197. fi
  20198. CPPFLAGS=$save_CPPFLAGS
  20199. fi
  20200. elif test $pkg_failed = untried; then
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20202. $as_echo "no" >&6; }
  20203. # Extract the first word of "ruby", so it can be a program name with args.
  20204. set dummy ruby; ac_word=$2
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20206. $as_echo_n "checking for $ac_word... " >&6; }
  20207. if ${ac_cv_prog_RUBY+:} false; then :
  20208. $as_echo_n "(cached) " >&6
  20209. else
  20210. if test -n "$RUBY"; then
  20211. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  20212. else
  20213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20214. for as_dir in $PATH
  20215. do
  20216. IFS=$as_save_IFS
  20217. test -z "$as_dir" && as_dir=.
  20218. for ac_exec_ext in '' $ac_executable_extensions; do
  20219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20220. ac_cv_prog_RUBY="ruby"
  20221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20222. break 2
  20223. fi
  20224. done
  20225. done
  20226. IFS=$as_save_IFS
  20227. fi
  20228. fi
  20229. RUBY=$ac_cv_prog_RUBY
  20230. if test -n "$RUBY"; then
  20231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20232. $as_echo "$RUBY" >&6; }
  20233. else
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20235. $as_echo "no" >&6; }
  20236. fi
  20237. if test "$RUBY" = ""; then
  20238. use_ruby="No (ruby not available)"
  20239. else
  20240. RUBY_CFLAGS="-I`$RUBY $srcdir/config/config_ruby.rb rubyarchhdrdir`"
  20241. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb vendorhdrdir`"
  20242. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb sitehdrdir`"
  20243. RUBY_CFLAGS="$RUBY_CFLAGS -I`$RUBY $srcdir/config/config_ruby.rb rubyhdrdir`"
  20244. RUBY_LIBS="-L`$RUBY $srcdir/config/config_ruby.rb libdir` `$RUBY -rrbconfig -e \"puts RbConfig::CONFIG['LIBRUBYARG_SHARED']\"`"
  20245. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20246. if test "$RUBY_INSTALL_DIR" = ""; then
  20247. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb sitearchdir`"
  20248. fi
  20249. save_CPPFLAGS=$CPPFLAGS
  20250. CPPFLAGS="$CPPFLAGS $RUBY_CFLAGS"
  20251. ac_fn_c_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
  20252. if test "x$ac_cv_header_ruby_h" = xyes; then :
  20253. else
  20254. use_ruby="No (missing header)"
  20255. RUBY=
  20256. fi
  20257. CPPFLAGS=$save_CPPFLAGS
  20258. fi
  20259. else
  20260. RUBY_CFLAGS=$pkg_cv_RUBY_CFLAGS
  20261. RUBY_LIBS=$pkg_cv_RUBY_LIBS
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20263. $as_echo "yes" >&6; }
  20264. # Extract the first word of "ruby", so it can be a program name with args.
  20265. set dummy ruby; ac_word=$2
  20266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20267. $as_echo_n "checking for $ac_word... " >&6; }
  20268. if ${ac_cv_prog_RUBY+:} false; then :
  20269. $as_echo_n "(cached) " >&6
  20270. else
  20271. if test -n "$RUBY"; then
  20272. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  20273. else
  20274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20275. for as_dir in $PATH
  20276. do
  20277. IFS=$as_save_IFS
  20278. test -z "$as_dir" && as_dir=.
  20279. for ac_exec_ext in '' $ac_executable_extensions; do
  20280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20281. ac_cv_prog_RUBY="ruby"
  20282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20283. break 2
  20284. fi
  20285. done
  20286. done
  20287. IFS=$as_save_IFS
  20288. fi
  20289. fi
  20290. RUBY=$ac_cv_prog_RUBY
  20291. if test -n "$RUBY"; then
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20293. $as_echo "$RUBY" >&6; }
  20294. else
  20295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20296. $as_echo "no" >&6; }
  20297. fi
  20298. if test "$RUBY" = ""; then
  20299. use_ruby="No (ruby not available)"
  20300. else
  20301. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20302. fi
  20303. fi
  20304. else
  20305. RUBY_CFLAGS=$pkg_cv_RUBY_CFLAGS
  20306. RUBY_LIBS=$pkg_cv_RUBY_LIBS
  20307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20308. $as_echo "yes" >&6; }
  20309. # Extract the first word of "ruby", so it can be a program name with args.
  20310. set dummy ruby; ac_word=$2
  20311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20312. $as_echo_n "checking for $ac_word... " >&6; }
  20313. if ${ac_cv_prog_RUBY+:} false; then :
  20314. $as_echo_n "(cached) " >&6
  20315. else
  20316. if test -n "$RUBY"; then
  20317. ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
  20318. else
  20319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20320. for as_dir in $PATH
  20321. do
  20322. IFS=$as_save_IFS
  20323. test -z "$as_dir" && as_dir=.
  20324. for ac_exec_ext in '' $ac_executable_extensions; do
  20325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20326. ac_cv_prog_RUBY="ruby"
  20327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20328. break 2
  20329. fi
  20330. done
  20331. done
  20332. IFS=$as_save_IFS
  20333. fi
  20334. fi
  20335. RUBY=$ac_cv_prog_RUBY
  20336. if test -n "$RUBY"; then
  20337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
  20338. $as_echo "$RUBY" >&6; }
  20339. else
  20340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20341. $as_echo "no" >&6; }
  20342. fi
  20343. if test "$RUBY" = ""; then
  20344. use_ruby="No (ruby not available)"
  20345. else
  20346. RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
  20347. fi
  20348. fi
  20349. if test "$RUBY" != ""; then
  20350. use_ruby="Yes"
  20351. fi
  20352. fi
  20353. fi
  20354. fi
  20355. if test "$use_ruby" = "Yes"; then
  20356. WITH_RUBY_TRUE=
  20357. WITH_RUBY_FALSE='#'
  20358. else
  20359. WITH_RUBY_TRUE='#'
  20360. WITH_RUBY_FALSE=
  20361. fi
  20362. # Check whether --enable-tcl was given.
  20363. if test "${enable_tcl+set}" = set; then :
  20364. enableval=$enable_tcl;
  20365. else
  20366. enable_tcl=yes
  20367. fi
  20368. if test "$enable_tcl" != "yes"; then
  20369. use_tcl="No (disabled)"
  20370. fi
  20371. if test "$use_tcl" = ""; then
  20372. TCL_VERSION_FOUND=`echo 'puts [info tclversion]' | $TCLSH`
  20373. # can't assume ksh on all architectures
  20374. # TCLSH_EXEC_PREFIX=${TCLSH%%/bin/tclsh.*}
  20375. # so use sed instead
  20376. TCLSH_EXEC_PREFIX=`echo $TCLSH|sed -e 's%/bin/.*tclsh.*$%%'`
  20377. if test -f ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/tcl.h; then
  20378. TCL_INCLUDES="-I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}"
  20379. if test -d ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic; then
  20380. TCL_INCLUDES="${TCL_INCLUDES} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic"
  20381. fi
  20382. else
  20383. if test "${TCLSH_EXEC_PREFIX}" != "/usr" -a -f ${TCLSH_EXEC_PREFIX}/include/tcl.h; then
  20384. TCL_INCLUDES=-I${TCLSH_EXEC_PREFIX}/include
  20385. fi
  20386. fi
  20387. if test "$TCL_INCLUDES" != "" ; then
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tcl headers from $TCL_INCLUDES" >&5
  20389. $as_echo "using tcl headers from $TCL_INCLUDES" >&6; }
  20390. fi
  20391. save_CPPFLAGS=$CPPFLAGS
  20392. CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
  20393. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  20394. if test "x$ac_cv_header_tcl_h" = xyes; then :
  20395. else
  20396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find header tcl.h. The Tcl packages will not be built" >&5
  20397. $as_echo "$as_me: WARNING: Unable to find header tcl.h. The Tcl packages will not be built" >&2;}
  20398. use_tcl="No (missing header)"
  20399. fi
  20400. CPPFLAGS=$save_CPPFLAGS
  20401. fi
  20402. if test "$use_tcl" = ""; then
  20403. # Some systems don't have Tcl. Don't build
  20404. # the Tcl products if we don't have the library.
  20405. if test -f ${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}/tclConfig.sh; then
  20406. TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}/tclConfig.sh
  20407. else
  20408. if test -f ${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh; then
  20409. TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh
  20410. else
  20411. if test -f ${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh; then
  20412. TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
  20413. fi
  20414. fi
  20415. fi
  20416. if test "$TCLCONFIG" != ""; then
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $TCLCONFIG" >&5
  20418. $as_echo "using $TCLCONFIG" >&6; }
  20419. file=${TCLCONFIG}
  20420. . $file
  20421. else
  20422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tclConfig.sh. The Tcl packages will not be built" >&5
  20423. $as_echo "$as_me: WARNING: Unable to find tclConfig.sh. The Tcl packages will not be built" >&2;}
  20424. use_tcl="No (missing tclConfig.sh)"
  20425. fi
  20426. TCL_INSTALL_DIR=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tcl${TCL_VERSION_FOUND}
  20427. fi
  20428. if test "$use_tcl" = ""; then
  20429. # TCL STUBS support is required
  20430. if test "${TCL_SUPPORTS_STUBS}" = "1"; then
  20431. use_tcl="Yes"
  20432. TCL_CFLAGS="${TCL_CFLAGS} -DUSE_TCL_STUBS"
  20433. cat >>confdefs.h <<_ACEOF
  20434. #define HAVE_TCL 1
  20435. _ACEOF
  20436. else
  20437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tcl does not have STUBs support, perhaps it is too old? The Tcl packages will not be built" >&5
  20438. $as_echo "$as_me: WARNING: Tcl does not have STUBs support, perhaps it is too old? The Tcl packages will not be built" >&2;}
  20439. use_tcl="No (no STUBs support)"
  20440. fi
  20441. fi
  20442. if test "$use_tcl" = "Yes"; then
  20443. WITH_TCL_TRUE=
  20444. WITH_TCL_FALSE='#'
  20445. else
  20446. WITH_TCL_TRUE='#'
  20447. WITH_TCL_FALSE=
  20448. fi
  20449. # TCL modules use stubs and don't need any other tcl libraries
  20450. TCL_LIBS=
  20451. # Check whether --with-extraincludedir was given.
  20452. if test "${with_extraincludedir+set}" = set; then :
  20453. withval=$with_extraincludedir; CPPFLAGS="$CPPFLAGS -I$withval"
  20454. fi
  20455. # Check whether --with-extralibdir was given.
  20456. if test "${with_extralibdir+set}" = set; then :
  20457. withval=$with_extralibdir; LDFLAGS="$LDFLAGS -L$withval"
  20458. fi
  20459. # Check whether --with-expat was given.
  20460. if test "${with_expat+set}" = set; then :
  20461. withval=$with_expat;
  20462. else
  20463. with_expat=yes
  20464. fi
  20465. if test "$with_expat" != "yes"; then
  20466. use_expat="No (disabled)"
  20467. else
  20468. use_expat="Yes"
  20469. pkg_failed=no
  20470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
  20471. $as_echo_n "checking for EXPAT... " >&6; }
  20472. if test -n "$EXPAT_CFLAGS"; then
  20473. pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
  20474. elif test -n "$PKG_CONFIG"; then
  20475. if test -n "$PKG_CONFIG" && \
  20476. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
  20477. ($PKG_CONFIG --exists --print-errors "expat") 2>&5
  20478. ac_status=$?
  20479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20480. test $ac_status = 0; }; then
  20481. pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
  20482. test "x$?" != "x0" && pkg_failed=yes
  20483. else
  20484. pkg_failed=yes
  20485. fi
  20486. else
  20487. pkg_failed=untried
  20488. fi
  20489. if test -n "$EXPAT_LIBS"; then
  20490. pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
  20491. elif test -n "$PKG_CONFIG"; then
  20492. if test -n "$PKG_CONFIG" && \
  20493. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
  20494. ($PKG_CONFIG --exists --print-errors "expat") 2>&5
  20495. ac_status=$?
  20496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20497. test $ac_status = 0; }; then
  20498. pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
  20499. test "x$?" != "x0" && pkg_failed=yes
  20500. else
  20501. pkg_failed=yes
  20502. fi
  20503. else
  20504. pkg_failed=untried
  20505. fi
  20506. if test $pkg_failed = yes; then
  20507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20508. $as_echo "no" >&6; }
  20509. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20510. _pkg_short_errors_supported=yes
  20511. else
  20512. _pkg_short_errors_supported=no
  20513. fi
  20514. if test $_pkg_short_errors_supported = yes; then
  20515. EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
  20516. else
  20517. EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
  20518. fi
  20519. # Put the nasty error message in config.log where it belongs
  20520. echo "$EXPAT_PKG_ERRORS" >&5
  20521. for ac_header in expat.h
  20522. do :
  20523. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  20524. if test "x$ac_cv_header_expat_h" = xyes; then :
  20525. cat >>confdefs.h <<_ACEOF
  20526. #define HAVE_EXPAT_H 1
  20527. _ACEOF
  20528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lexpat" >&5
  20529. $as_echo_n "checking for main in -lexpat... " >&6; }
  20530. if ${ac_cv_lib_expat_main+:} false; then :
  20531. $as_echo_n "(cached) " >&6
  20532. else
  20533. ac_check_lib_save_LIBS=$LIBS
  20534. LIBS="-lexpat $LIBS"
  20535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20536. /* end confdefs.h. */
  20537. int
  20538. main ()
  20539. {
  20540. return main ();
  20541. ;
  20542. return 0;
  20543. }
  20544. _ACEOF
  20545. if ac_fn_c_try_link "$LINENO"; then :
  20546. ac_cv_lib_expat_main=yes
  20547. else
  20548. ac_cv_lib_expat_main=no
  20549. fi
  20550. rm -f core conftest.err conftest.$ac_objext \
  20551. conftest$ac_exeext conftest.$ac_ext
  20552. LIBS=$ac_check_lib_save_LIBS
  20553. fi
  20554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_main" >&5
  20555. $as_echo "$ac_cv_lib_expat_main" >&6; }
  20556. if test "x$ac_cv_lib_expat_main" = xyes; then :
  20557. EXPAT_LIBS="$EXPAT_LIBS -lexpat"
  20558. else
  20559. use_expat="No (expat library not available)"
  20560. fi
  20561. else
  20562. use_expat="No (expat.h missing header)"
  20563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat.h missing header" >&5
  20564. $as_echo "$as_me: WARNING: expat.h missing header" >&2;}
  20565. fi
  20566. done
  20567. elif test $pkg_failed = untried; then
  20568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20569. $as_echo "no" >&6; }
  20570. for ac_header in expat.h
  20571. do :
  20572. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  20573. if test "x$ac_cv_header_expat_h" = xyes; then :
  20574. cat >>confdefs.h <<_ACEOF
  20575. #define HAVE_EXPAT_H 1
  20576. _ACEOF
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lexpat" >&5
  20578. $as_echo_n "checking for main in -lexpat... " >&6; }
  20579. if ${ac_cv_lib_expat_main+:} false; then :
  20580. $as_echo_n "(cached) " >&6
  20581. else
  20582. ac_check_lib_save_LIBS=$LIBS
  20583. LIBS="-lexpat $LIBS"
  20584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20585. /* end confdefs.h. */
  20586. int
  20587. main ()
  20588. {
  20589. return main ();
  20590. ;
  20591. return 0;
  20592. }
  20593. _ACEOF
  20594. if ac_fn_c_try_link "$LINENO"; then :
  20595. ac_cv_lib_expat_main=yes
  20596. else
  20597. ac_cv_lib_expat_main=no
  20598. fi
  20599. rm -f core conftest.err conftest.$ac_objext \
  20600. conftest$ac_exeext conftest.$ac_ext
  20601. LIBS=$ac_check_lib_save_LIBS
  20602. fi
  20603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_main" >&5
  20604. $as_echo "$ac_cv_lib_expat_main" >&6; }
  20605. if test "x$ac_cv_lib_expat_main" = xyes; then :
  20606. EXPAT_LIBS="$EXPAT_LIBS -lexpat"
  20607. else
  20608. use_expat="No (expat library not available)"
  20609. fi
  20610. else
  20611. use_expat="No (expat.h missing header)"
  20612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat.h missing header" >&5
  20613. $as_echo "$as_me: WARNING: expat.h missing header" >&2;}
  20614. fi
  20615. done
  20616. else
  20617. EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
  20618. EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
  20619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20620. $as_echo "yes" >&6; }
  20621. fi
  20622. if test "$use_expat" = "Yes"; then
  20623. cat >>confdefs.h <<_ACEOF
  20624. #define HAVE_EXPAT 1
  20625. _ACEOF
  20626. fi
  20627. fi
  20628. # Check whether --with-devil was given.
  20629. if test "${with_devil+set}" = set; then :
  20630. withval=$with_devil;
  20631. else
  20632. with_devil=yes
  20633. fi
  20634. if test "$with_devil" != "yes"; then
  20635. use_devil="No (disabled)"
  20636. else
  20637. # Check whether --with-devilincludedir was given.
  20638. if test "${with_devilincludedir+set}" = set; then :
  20639. withval=$with_devilincludedir; DEVIL_INCLUDES="-I$withval"
  20640. fi
  20641. # Check whether --with-devillibdir was given.
  20642. if test "${with_devillibdir+set}" = set; then :
  20643. withval=$with_devillibdir; DEVIL_LIBS="-L$withval"
  20644. fi
  20645. save_CPPFLAGS=$CPPFLAGS
  20646. save_LDFLAGS=$LDFLAGS
  20647. CPPFLAGS="$CPPFLAGS $DEVIL_INCLUDES"
  20648. LDFLAGS="$LDFLAGS $DEVIL_LIBS"
  20649. for ac_header in IL/il.h
  20650. do :
  20651. ac_fn_c_check_header_mongrel "$LINENO" "IL/il.h" "ac_cv_header_IL_il_h" "$ac_includes_default"
  20652. if test "x$ac_cv_header_IL_il_h" = xyes; then :
  20653. cat >>confdefs.h <<_ACEOF
  20654. #define HAVE_IL_IL_H 1
  20655. _ACEOF
  20656. else
  20657. use_devil="No (missing header)"
  20658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional DevIL library not available - missing headers" >&5
  20659. $as_echo "$as_me: WARNING: Optional DevIL library not available - missing headers" >&2;}
  20660. fi
  20661. done
  20662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lIL" >&5
  20663. $as_echo_n "checking for main in -lIL... " >&6; }
  20664. if ${ac_cv_lib_IL_main+:} false; then :
  20665. $as_echo_n "(cached) " >&6
  20666. else
  20667. ac_check_lib_save_LIBS=$LIBS
  20668. LIBS="-lIL $LIBS"
  20669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20670. /* end confdefs.h. */
  20671. int
  20672. main ()
  20673. {
  20674. return main ();
  20675. ;
  20676. return 0;
  20677. }
  20678. _ACEOF
  20679. if ac_fn_c_try_link "$LINENO"; then :
  20680. ac_cv_lib_IL_main=yes
  20681. else
  20682. ac_cv_lib_IL_main=no
  20683. fi
  20684. rm -f core conftest.err conftest.$ac_objext \
  20685. conftest$ac_exeext conftest.$ac_ext
  20686. LIBS=$ac_check_lib_save_LIBS
  20687. fi
  20688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IL_main" >&5
  20689. $as_echo "$ac_cv_lib_IL_main" >&6; }
  20690. if test "x$ac_cv_lib_IL_main" = xyes; then :
  20691. DEVIL_LIBS="$DEVIL_LIBS -lIL -lILU"
  20692. else
  20693. use_devil="No (missing library)"
  20694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional DevIL library not available" >&5
  20695. $as_echo "$as_me: WARNING: Optional DevIL library not available" >&2;}
  20696. fi
  20697. LDFLAGS=$save_LDFLAGS
  20698. CPPFLAGS=$save_CPPFLAGS
  20699. fi
  20700. if test "$use_devil" = ""; then
  20701. use_devil="Yes"
  20702. cat >>confdefs.h <<_ACEOF
  20703. #define HAVE_DEVIL 1
  20704. _ACEOF
  20705. fi
  20706. if test "$use_devil" = "Yes"; then
  20707. WITH_DEVIL_TRUE=
  20708. WITH_DEVIL_FALSE='#'
  20709. else
  20710. WITH_DEVIL_TRUE='#'
  20711. WITH_DEVIL_FALSE=
  20712. fi
  20713. # Check whether --with-zincludedir was given.
  20714. if test "${with_zincludedir+set}" = set; then :
  20715. withval=$with_zincludedir; Z_INCLUDES="-I$withval"
  20716. fi
  20717. # Check whether --with-zlibdir was given.
  20718. if test "${with_zlibdir+set}" = set; then :
  20719. withval=$with_zlibdir; Z_LIBS="-L$withval"
  20720. fi
  20721. save_CPPFLAGS=$CPPFLAGS
  20722. save_LDFLAGS=$LDFLAGS
  20723. CPPFLAGS="$CPPFLAGS $Z_INCLUDES"
  20724. LDFLAGS="$LDFLAGS $Z_LIBS"
  20725. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  20726. if test "x$ac_cv_header_zlib_h" = xyes; then :
  20727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
  20728. $as_echo_n "checking for main in -lz... " >&6; }
  20729. if ${ac_cv_lib_z_main+:} false; then :
  20730. $as_echo_n "(cached) " >&6
  20731. else
  20732. ac_check_lib_save_LIBS=$LIBS
  20733. LIBS="-lz $LIBS"
  20734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20735. /* end confdefs.h. */
  20736. int
  20737. main ()
  20738. {
  20739. return main ();
  20740. ;
  20741. return 0;
  20742. }
  20743. _ACEOF
  20744. if ac_fn_c_try_link "$LINENO"; then :
  20745. ac_cv_lib_z_main=yes
  20746. else
  20747. ac_cv_lib_z_main=no
  20748. fi
  20749. rm -f core conftest.err conftest.$ac_objext \
  20750. conftest$ac_exeext conftest.$ac_ext
  20751. LIBS=$ac_check_lib_save_LIBS
  20752. fi
  20753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
  20754. $as_echo "$ac_cv_lib_z_main" >&6; }
  20755. if test "x$ac_cv_lib_z_main" = xyes; then :
  20756. Z_LIBS="$Z_LIBS -lz"
  20757. cat >>confdefs.h <<_ACEOF
  20758. #define HAVE_LIBZ 1
  20759. _ACEOF
  20760. else
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional z library not available" >&5
  20762. $as_echo "$as_me: WARNING: Optional z library not available" >&2;}
  20763. fi
  20764. else
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional z library not available - no zlib.h" >&5
  20766. $as_echo "$as_me: WARNING: Optional z library not available - no zlib.h" >&2;}
  20767. fi
  20768. LDFLAGS="$LDFLAGS $Z_LIBS"
  20769. LDFLAGS=$save_LDFLAGS
  20770. CPPFLAGS=$save_CPPFLAGS
  20771. # Check whether --with-webp was given.
  20772. if test "${with_webp+set}" = set; then :
  20773. withval=$with_webp;
  20774. else
  20775. with_webp=yes
  20776. fi
  20777. if test "$with_webp" != "yes"; then
  20778. use_webp="No (disabled)"
  20779. else
  20780. pkg_failed=no
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
  20782. $as_echo_n "checking for WEBP... " >&6; }
  20783. if test -n "$WEBP_CFLAGS"; then
  20784. pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
  20785. elif test -n "$PKG_CONFIG"; then
  20786. if test -n "$PKG_CONFIG" && \
  20787. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
  20788. ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
  20789. ac_status=$?
  20790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20791. test $ac_status = 0; }; then
  20792. pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
  20793. test "x$?" != "x0" && pkg_failed=yes
  20794. else
  20795. pkg_failed=yes
  20796. fi
  20797. else
  20798. pkg_failed=untried
  20799. fi
  20800. if test -n "$WEBP_LIBS"; then
  20801. pkg_cv_WEBP_LIBS="$WEBP_LIBS"
  20802. elif test -n "$PKG_CONFIG"; then
  20803. if test -n "$PKG_CONFIG" && \
  20804. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
  20805. ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
  20806. ac_status=$?
  20807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20808. test $ac_status = 0; }; then
  20809. pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
  20810. test "x$?" != "x0" && pkg_failed=yes
  20811. else
  20812. pkg_failed=yes
  20813. fi
  20814. else
  20815. pkg_failed=untried
  20816. fi
  20817. if test $pkg_failed = yes; then
  20818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20819. $as_echo "no" >&6; }
  20820. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20821. _pkg_short_errors_supported=yes
  20822. else
  20823. _pkg_short_errors_supported=no
  20824. fi
  20825. if test $_pkg_short_errors_supported = yes; then
  20826. WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1`
  20827. else
  20828. WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1`
  20829. fi
  20830. # Put the nasty error message in config.log where it belongs
  20831. echo "$WEBP_PKG_ERRORS" >&5
  20832. use_webp="No (webp library not available)"
  20833. elif test $pkg_failed = untried; then
  20834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20835. $as_echo "no" >&6; }
  20836. use_webp="No (webp library not available)"
  20837. else
  20838. WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
  20839. WEBP_LIBS=$pkg_cv_WEBP_LIBS
  20840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20841. $as_echo "yes" >&6; }
  20842. use_webp="Yes"
  20843. cat >>confdefs.h <<_ACEOF
  20844. #define HAVE_WEBP 1
  20845. _ACEOF
  20846. fi
  20847. fi
  20848. if test "$use_webp" = "Yes"; then
  20849. WITH_WEBP_TRUE=
  20850. WITH_WEBP_FALSE='#'
  20851. else
  20852. WITH_WEBP_TRUE='#'
  20853. WITH_WEBP_FALSE=
  20854. fi
  20855. # Check whether --with-poppler was given.
  20856. if test "${with_poppler+set}" = set; then :
  20857. withval=$with_poppler;
  20858. else
  20859. with_poppler=yes
  20860. fi
  20861. if test "$with_poppler" != "yes"; then
  20862. use_poppler="No (disabled)"
  20863. else
  20864. pkg_failed=no
  20865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
  20866. $as_echo_n "checking for POPPLER... " >&6; }
  20867. if test -n "$POPPLER_CFLAGS"; then
  20868. pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
  20869. elif test -n "$PKG_CONFIG"; then
  20870. if test -n "$PKG_CONFIG" && \
  20871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5
  20872. ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5
  20873. ac_status=$?
  20874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20875. test $ac_status = 0; }; then
  20876. pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib" 2>/dev/null`
  20877. test "x$?" != "x0" && pkg_failed=yes
  20878. else
  20879. pkg_failed=yes
  20880. fi
  20881. else
  20882. pkg_failed=untried
  20883. fi
  20884. if test -n "$POPPLER_LIBS"; then
  20885. pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
  20886. elif test -n "$PKG_CONFIG"; then
  20887. if test -n "$PKG_CONFIG" && \
  20888. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5
  20889. ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5
  20890. ac_status=$?
  20891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20892. test $ac_status = 0; }; then
  20893. pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler-glib" 2>/dev/null`
  20894. test "x$?" != "x0" && pkg_failed=yes
  20895. else
  20896. pkg_failed=yes
  20897. fi
  20898. else
  20899. pkg_failed=untried
  20900. fi
  20901. if test $pkg_failed = yes; then
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20903. $as_echo "no" >&6; }
  20904. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20905. _pkg_short_errors_supported=yes
  20906. else
  20907. _pkg_short_errors_supported=no
  20908. fi
  20909. if test $_pkg_short_errors_supported = yes; then
  20910. POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler-glib" 2>&1`
  20911. else
  20912. POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler-glib" 2>&1`
  20913. fi
  20914. # Put the nasty error message in config.log where it belongs
  20915. echo "$POPPLER_PKG_ERRORS" >&5
  20916. use_poppler="No (poppler library not available)"
  20917. elif test $pkg_failed = untried; then
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20919. $as_echo "no" >&6; }
  20920. use_poppler="No (poppler library not available)"
  20921. else
  20922. POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
  20923. POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
  20924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20925. $as_echo "yes" >&6; }
  20926. use_poppler="Yes"
  20927. cat >>confdefs.h <<_ACEOF
  20928. #define HAVE_POPPLER 1
  20929. _ACEOF
  20930. fi
  20931. fi
  20932. if test "$use_poppler" = "Yes"; then
  20933. WITH_POPPLER_TRUE=
  20934. WITH_POPPLER_FALSE='#'
  20935. else
  20936. WITH_POPPLER_TRUE='#'
  20937. WITH_POPPLER_FALSE=
  20938. fi
  20939. # Check whether --with-rsvg was given.
  20940. if test "${with_rsvg+set}" = set; then :
  20941. withval=$with_rsvg;
  20942. else
  20943. with_rsvg=yes
  20944. fi
  20945. if test "$with_rsvg" != "yes"; then
  20946. use_rsvg="No (disabled)"
  20947. else
  20948. pkg_failed=no
  20949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
  20950. $as_echo_n "checking for RSVG... " >&6; }
  20951. if test -n "$RSVG_CFLAGS"; then
  20952. pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
  20953. elif test -n "$PKG_CONFIG"; then
  20954. if test -n "$PKG_CONFIG" && \
  20955. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5
  20956. ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
  20957. ac_status=$?
  20958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20959. test $ac_status = 0; }; then
  20960. pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0" 2>/dev/null`
  20961. test "x$?" != "x0" && pkg_failed=yes
  20962. else
  20963. pkg_failed=yes
  20964. fi
  20965. else
  20966. pkg_failed=untried
  20967. fi
  20968. if test -n "$RSVG_LIBS"; then
  20969. pkg_cv_RSVG_LIBS="$RSVG_LIBS"
  20970. elif test -n "$PKG_CONFIG"; then
  20971. if test -n "$PKG_CONFIG" && \
  20972. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5
  20973. ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5
  20974. ac_status=$?
  20975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20976. test $ac_status = 0; }; then
  20977. pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0" 2>/dev/null`
  20978. test "x$?" != "x0" && pkg_failed=yes
  20979. else
  20980. pkg_failed=yes
  20981. fi
  20982. else
  20983. pkg_failed=untried
  20984. fi
  20985. if test $pkg_failed = yes; then
  20986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20987. $as_echo "no" >&6; }
  20988. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20989. _pkg_short_errors_supported=yes
  20990. else
  20991. _pkg_short_errors_supported=no
  20992. fi
  20993. if test $_pkg_short_errors_supported = yes; then
  20994. RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0" 2>&1`
  20995. else
  20996. RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0" 2>&1`
  20997. fi
  20998. # Put the nasty error message in config.log where it belongs
  20999. echo "$RSVG_PKG_ERRORS" >&5
  21000. use_rsvg="No (rsvg library not available)"
  21001. elif test $pkg_failed = untried; then
  21002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21003. $as_echo "no" >&6; }
  21004. use_rsvg="No (rsvg library not available)"
  21005. else
  21006. RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
  21007. RSVG_LIBS=$pkg_cv_RSVG_LIBS
  21008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21009. $as_echo "yes" >&6; }
  21010. use_rsvg="Yes"
  21011. fi
  21012. fi
  21013. if test "$use_rsvg" = "Yes"; then
  21014. WITH_RSVG_TRUE=
  21015. WITH_RSVG_FALSE='#'
  21016. else
  21017. WITH_RSVG_TRUE='#'
  21018. WITH_RSVG_FALSE=
  21019. fi
  21020. # Check whether --with-ghostscript was given.
  21021. if test "${with_ghostscript+set}" = set; then :
  21022. withval=$with_ghostscript;
  21023. else
  21024. with_ghostscript=yes
  21025. fi
  21026. if test "$with_ghostscript" != "yes"; then
  21027. use_ghostscript="No (disabled)"
  21028. else
  21029. if test "$HAVE_XRENDER" != "yes" -a "$MINGW32" != "yes"; then
  21030. use_ghostscript="No (missing Xrender)"
  21031. else
  21032. ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
  21033. if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
  21034. GS_CFLAGS=""
  21035. else
  21036. use_ghostscript="No (missing headers)"
  21037. fi
  21038. if test "$use_ghostscript" = ""; then
  21039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgs" >&5
  21040. $as_echo_n "checking for main in -lgs... " >&6; }
  21041. if ${ac_cv_lib_gs_main+:} false; then :
  21042. $as_echo_n "(cached) " >&6
  21043. else
  21044. ac_check_lib_save_LIBS=$LIBS
  21045. LIBS="-lgs $LIBS"
  21046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21047. /* end confdefs.h. */
  21048. int
  21049. main ()
  21050. {
  21051. return main ();
  21052. ;
  21053. return 0;
  21054. }
  21055. _ACEOF
  21056. if ac_fn_c_try_link "$LINENO"; then :
  21057. ac_cv_lib_gs_main=yes
  21058. else
  21059. ac_cv_lib_gs_main=no
  21060. fi
  21061. rm -f core conftest.err conftest.$ac_objext \
  21062. conftest$ac_exeext conftest.$ac_ext
  21063. LIBS=$ac_check_lib_save_LIBS
  21064. fi
  21065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_main" >&5
  21066. $as_echo "$ac_cv_lib_gs_main" >&6; }
  21067. if test "x$ac_cv_lib_gs_main" = xyes; then :
  21068. GS_LIBS="-lgs"
  21069. else
  21070. use_ghostscript="No (missing lib)"
  21071. fi
  21072. if test "$use_ghostscript" = ""; then
  21073. use_ghostscript="Yes"
  21074. cat >>confdefs.h <<_ACEOF
  21075. #define HAVE_GS 1
  21076. _ACEOF
  21077. fi
  21078. fi
  21079. fi
  21080. fi
  21081. if test "$use_ghostscript" = "Yes"; then
  21082. WITH_GS_TRUE=
  21083. WITH_GS_FALSE='#'
  21084. else
  21085. WITH_GS_TRUE='#'
  21086. WITH_GS_FALSE=
  21087. fi
  21088. # Check whether --with-pangocairo was given.
  21089. if test "${with_pangocairo+set}" = set; then :
  21090. withval=$with_pangocairo;
  21091. else
  21092. with_pangocairo=yes
  21093. fi
  21094. if test "$with_pangocairo" != "yes"; then
  21095. use_pangocairo="No (disabled)"
  21096. else
  21097. pkg_failed=no
  21098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOCAIRO" >&5
  21099. $as_echo_n "checking for PANGOCAIRO... " >&6; }
  21100. if test -n "$PANGOCAIRO_CFLAGS"; then
  21101. pkg_cv_PANGOCAIRO_CFLAGS="$PANGOCAIRO_CFLAGS"
  21102. elif test -n "$PKG_CONFIG"; then
  21103. if test -n "$PKG_CONFIG" && \
  21104. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.22.0\""; } >&5
  21105. ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.22.0") 2>&5
  21106. ac_status=$?
  21107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21108. test $ac_status = 0; }; then
  21109. pkg_cv_PANGOCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.22.0" 2>/dev/null`
  21110. test "x$?" != "x0" && pkg_failed=yes
  21111. else
  21112. pkg_failed=yes
  21113. fi
  21114. else
  21115. pkg_failed=untried
  21116. fi
  21117. if test -n "$PANGOCAIRO_LIBS"; then
  21118. pkg_cv_PANGOCAIRO_LIBS="$PANGOCAIRO_LIBS"
  21119. elif test -n "$PKG_CONFIG"; then
  21120. if test -n "$PKG_CONFIG" && \
  21121. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.22.0\""; } >&5
  21122. ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.22.0") 2>&5
  21123. ac_status=$?
  21124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21125. test $ac_status = 0; }; then
  21126. pkg_cv_PANGOCAIRO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.22.0" 2>/dev/null`
  21127. test "x$?" != "x0" && pkg_failed=yes
  21128. else
  21129. pkg_failed=yes
  21130. fi
  21131. else
  21132. pkg_failed=untried
  21133. fi
  21134. if test $pkg_failed = yes; then
  21135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21136. $as_echo "no" >&6; }
  21137. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21138. _pkg_short_errors_supported=yes
  21139. else
  21140. _pkg_short_errors_supported=no
  21141. fi
  21142. if test $_pkg_short_errors_supported = yes; then
  21143. PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.22.0" 2>&1`
  21144. else
  21145. PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.22.0" 2>&1`
  21146. fi
  21147. # Put the nasty error message in config.log where it belongs
  21148. echo "$PANGOCAIRO_PKG_ERRORS" >&5
  21149. use_pangocairo="No (pangocairo library not available)"
  21150. elif test $pkg_failed = untried; then
  21151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21152. $as_echo "no" >&6; }
  21153. use_pangocairo="No (pangocairo library not available)"
  21154. else
  21155. PANGOCAIRO_CFLAGS=$pkg_cv_PANGOCAIRO_CFLAGS
  21156. PANGOCAIRO_LIBS=$pkg_cv_PANGOCAIRO_LIBS
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21158. $as_echo "yes" >&6; }
  21159. use_pangocairo="Yes"
  21160. cat >>confdefs.h <<_ACEOF
  21161. #define HAVE_PANGOCAIRO 1
  21162. _ACEOF
  21163. fi
  21164. fi
  21165. if test "$use_pangocairo" = "Yes"; then
  21166. WITH_PANGOCAIRO_TRUE=
  21167. WITH_PANGOCAIRO_FALSE='#'
  21168. else
  21169. WITH_PANGOCAIRO_TRUE='#'
  21170. WITH_PANGOCAIRO_FALSE=
  21171. fi
  21172. # see if pango uses a fontconfig/freetype2 backend
  21173. if test "$use_pangocairo" = "Yes"; then
  21174. save_LIBS=$LIBS
  21175. pkg_failed=no
  21176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOFT2" >&5
  21177. $as_echo_n "checking for PANGOFT2... " >&6; }
  21178. if test -n "$PANGOFT2_CFLAGS"; then
  21179. pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
  21180. elif test -n "$PKG_CONFIG"; then
  21181. if test -n "$PKG_CONFIG" && \
  21182. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
  21183. ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
  21184. ac_status=$?
  21185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21186. test $ac_status = 0; }; then
  21187. pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
  21188. test "x$?" != "x0" && pkg_failed=yes
  21189. else
  21190. pkg_failed=yes
  21191. fi
  21192. else
  21193. pkg_failed=untried
  21194. fi
  21195. if test -n "$PANGOFT2_LIBS"; then
  21196. pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
  21197. elif test -n "$PKG_CONFIG"; then
  21198. if test -n "$PKG_CONFIG" && \
  21199. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
  21200. ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
  21201. ac_status=$?
  21202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21203. test $ac_status = 0; }; then
  21204. pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
  21205. test "x$?" != "x0" && pkg_failed=yes
  21206. else
  21207. pkg_failed=yes
  21208. fi
  21209. else
  21210. pkg_failed=untried
  21211. fi
  21212. if test $pkg_failed = yes; then
  21213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21214. $as_echo "no" >&6; }
  21215. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21216. _pkg_short_errors_supported=yes
  21217. else
  21218. _pkg_short_errors_supported=no
  21219. fi
  21220. if test $_pkg_short_errors_supported = yes; then
  21221. PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangoft2" 2>&1`
  21222. else
  21223. PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangoft2" 2>&1`
  21224. fi
  21225. # Put the nasty error message in config.log where it belongs
  21226. echo "$PANGOFT2_PKG_ERRORS" >&5
  21227. as_fn_error $? "Package requirements (pangoft2) were not met:
  21228. $PANGOFT2_PKG_ERRORS
  21229. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21230. installed software in a non-standard prefix.
  21231. Alternatively, you may set the environment variables PANGOFT2_CFLAGS
  21232. and PANGOFT2_LIBS to avoid the need to call pkg-config.
  21233. See the pkg-config man page for more details." "$LINENO" 5
  21234. elif test $pkg_failed = untried; then
  21235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21236. $as_echo "no" >&6; }
  21237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21239. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  21240. is in your PATH or set the PKG_CONFIG environment variable to the full
  21241. path to pkg-config.
  21242. Alternatively, you may set the environment variables PANGOFT2_CFLAGS
  21243. and PANGOFT2_LIBS to avoid the need to call pkg-config.
  21244. See the pkg-config man page for more details.
  21245. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21246. See \`config.log' for more details" "$LINENO" 5; }
  21247. else
  21248. PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
  21249. PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
  21250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21251. $as_echo "yes" >&6; }
  21252. fi
  21253. LIBS="$LIBS $PANGOCAIRO_LIBS $PANGOFT2_LIBS"
  21254. for ac_func in pango_fc_font_lock_face
  21255. do :
  21256. ac_fn_c_check_func "$LINENO" "pango_fc_font_lock_face" "ac_cv_func_pango_fc_font_lock_face"
  21257. if test "x$ac_cv_func_pango_fc_font_lock_face" = xyes; then :
  21258. cat >>confdefs.h <<_ACEOF
  21259. #define HAVE_PANGO_FC_FONT_LOCK_FACE 1
  21260. _ACEOF
  21261. fi
  21262. done
  21263. LIBS=$save_LIBS
  21264. fi
  21265. # Check whether --with-lasi was given.
  21266. if test "${with_lasi+set}" = set; then :
  21267. withval=$with_lasi;
  21268. else
  21269. with_lasi=yes
  21270. fi
  21271. if test "$with_lasi" != "yes"; then
  21272. use_lasi="No (disabled)"
  21273. else
  21274. if test "$use_pangocairo" != "Yes"; then
  21275. use_lasi="No (missing pangocairo support)"
  21276. else
  21277. pkg_failed=no
  21278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LASI" >&5
  21279. $as_echo_n "checking for LASI... " >&6; }
  21280. if test -n "$LASI_CFLAGS"; then
  21281. pkg_cv_LASI_CFLAGS="$LASI_CFLAGS"
  21282. elif test -n "$PKG_CONFIG"; then
  21283. if test -n "$PKG_CONFIG" && \
  21284. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lasi\""; } >&5
  21285. ($PKG_CONFIG --exists --print-errors "lasi") 2>&5
  21286. ac_status=$?
  21287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21288. test $ac_status = 0; }; then
  21289. pkg_cv_LASI_CFLAGS=`$PKG_CONFIG --cflags "lasi" 2>/dev/null`
  21290. test "x$?" != "x0" && pkg_failed=yes
  21291. else
  21292. pkg_failed=yes
  21293. fi
  21294. else
  21295. pkg_failed=untried
  21296. fi
  21297. if test -n "$LASI_LIBS"; then
  21298. pkg_cv_LASI_LIBS="$LASI_LIBS"
  21299. elif test -n "$PKG_CONFIG"; then
  21300. if test -n "$PKG_CONFIG" && \
  21301. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lasi\""; } >&5
  21302. ($PKG_CONFIG --exists --print-errors "lasi") 2>&5
  21303. ac_status=$?
  21304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21305. test $ac_status = 0; }; then
  21306. pkg_cv_LASI_LIBS=`$PKG_CONFIG --libs "lasi" 2>/dev/null`
  21307. test "x$?" != "x0" && pkg_failed=yes
  21308. else
  21309. pkg_failed=yes
  21310. fi
  21311. else
  21312. pkg_failed=untried
  21313. fi
  21314. if test $pkg_failed = yes; then
  21315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21316. $as_echo "no" >&6; }
  21317. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21318. _pkg_short_errors_supported=yes
  21319. else
  21320. _pkg_short_errors_supported=no
  21321. fi
  21322. if test $_pkg_short_errors_supported = yes; then
  21323. LASI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lasi" 2>&1`
  21324. else
  21325. LASI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lasi" 2>&1`
  21326. fi
  21327. # Put the nasty error message in config.log where it belongs
  21328. echo "$LASI_PKG_ERRORS" >&5
  21329. use_lasi="No (lasi library not available)"
  21330. elif test $pkg_failed = untried; then
  21331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21332. $as_echo "no" >&6; }
  21333. use_lasi="No (lasi library not available)"
  21334. else
  21335. LASI_CFLAGS=$pkg_cv_LASI_CFLAGS
  21336. LASI_LIBS=$pkg_cv_LASI_LIBS
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21338. $as_echo "yes" >&6; }
  21339. use_lasi="Yes"
  21340. cat >>confdefs.h <<_ACEOF
  21341. #define HAVE_LASI 1
  21342. _ACEOF
  21343. fi
  21344. fi
  21345. fi
  21346. if test "$use_lasi" = "Yes"; then
  21347. WITH_LASI_TRUE=
  21348. WITH_LASI_FALSE='#'
  21349. else
  21350. WITH_LASI_TRUE='#'
  21351. WITH_LASI_FALSE=
  21352. fi
  21353. # Check whether --with-freetype2 was given.
  21354. if test "${with_freetype2+set}" = set; then :
  21355. withval=$with_freetype2;
  21356. else
  21357. with_freetype2=yes
  21358. fi
  21359. if test "$with_freetype2" != "yes"; then
  21360. use_freetype="No (disabled)"
  21361. else
  21362. pkg_failed=no
  21363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
  21364. $as_echo_n "checking for FREETYPE2... " >&6; }
  21365. if test -n "$FREETYPE2_CFLAGS"; then
  21366. pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
  21367. elif test -n "$PKG_CONFIG"; then
  21368. if test -n "$PKG_CONFIG" && \
  21369. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
  21370. ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  21371. ac_status=$?
  21372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21373. test $ac_status = 0; }; then
  21374. pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
  21375. test "x$?" != "x0" && pkg_failed=yes
  21376. else
  21377. pkg_failed=yes
  21378. fi
  21379. else
  21380. pkg_failed=untried
  21381. fi
  21382. if test -n "$FREETYPE2_LIBS"; then
  21383. pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
  21384. elif test -n "$PKG_CONFIG"; then
  21385. if test -n "$PKG_CONFIG" && \
  21386. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
  21387. ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
  21388. ac_status=$?
  21389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21390. test $ac_status = 0; }; then
  21391. pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
  21392. test "x$?" != "x0" && pkg_failed=yes
  21393. else
  21394. pkg_failed=yes
  21395. fi
  21396. else
  21397. pkg_failed=untried
  21398. fi
  21399. if test $pkg_failed = yes; then
  21400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21401. $as_echo "no" >&6; }
  21402. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21403. _pkg_short_errors_supported=yes
  21404. else
  21405. _pkg_short_errors_supported=no
  21406. fi
  21407. if test $_pkg_short_errors_supported = yes; then
  21408. FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
  21409. else
  21410. FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
  21411. fi
  21412. # Put the nasty error message in config.log where it belongs
  21413. echo "$FREETYPE2_PKG_ERRORS" >&5
  21414. use_freetype="No (missing freetype-config)"
  21415. elif test $pkg_failed = untried; then
  21416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21417. $as_echo "no" >&6; }
  21418. use_freetype="No (missing freetype-config)"
  21419. else
  21420. FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
  21421. FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
  21422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21423. $as_echo "yes" >&6; }
  21424. use_freetype="Yes"
  21425. fi
  21426. fi
  21427. # Check whether --with-gdk was given.
  21428. if test "${with_gdk+set}" = set; then :
  21429. withval=$with_gdk;
  21430. else
  21431. with_gdk=yes
  21432. fi
  21433. if test "$with_gdk" != "yes"; then
  21434. use_gdk="No (disabled)"
  21435. else
  21436. pkg_failed=no
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5
  21438. $as_echo_n "checking for GDK... " >&6; }
  21439. if test -n "$GDK_CFLAGS"; then
  21440. pkg_cv_GDK_CFLAGS="$GDK_CFLAGS"
  21441. elif test -n "$PKG_CONFIG"; then
  21442. if test -n "$PKG_CONFIG" && \
  21443. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-3.0\""; } >&5
  21444. ($PKG_CONFIG --exists --print-errors "gdk-3.0") 2>&5
  21445. ac_status=$?
  21446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21447. test $ac_status = 0; }; then
  21448. pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-3.0" 2>/dev/null`
  21449. test "x$?" != "x0" && pkg_failed=yes
  21450. else
  21451. pkg_failed=yes
  21452. fi
  21453. else
  21454. pkg_failed=untried
  21455. fi
  21456. if test -n "$GDK_LIBS"; then
  21457. pkg_cv_GDK_LIBS="$GDK_LIBS"
  21458. elif test -n "$PKG_CONFIG"; then
  21459. if test -n "$PKG_CONFIG" && \
  21460. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-3.0\""; } >&5
  21461. ($PKG_CONFIG --exists --print-errors "gdk-3.0") 2>&5
  21462. ac_status=$?
  21463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21464. test $ac_status = 0; }; then
  21465. pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-3.0" 2>/dev/null`
  21466. test "x$?" != "x0" && pkg_failed=yes
  21467. else
  21468. pkg_failed=yes
  21469. fi
  21470. else
  21471. pkg_failed=untried
  21472. fi
  21473. if test $pkg_failed = yes; then
  21474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21475. $as_echo "no" >&6; }
  21476. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21477. _pkg_short_errors_supported=yes
  21478. else
  21479. _pkg_short_errors_supported=no
  21480. fi
  21481. if test $_pkg_short_errors_supported = yes; then
  21482. GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-3.0" 2>&1`
  21483. else
  21484. GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-3.0" 2>&1`
  21485. fi
  21486. # Put the nasty error message in config.log where it belongs
  21487. echo "$GDK_PKG_ERRORS" >&5
  21488. use_gdk="No (gdk library not available)"
  21489. elif test $pkg_failed = untried; then
  21490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21491. $as_echo "no" >&6; }
  21492. use_gdk="No (gdk library not available)"
  21493. else
  21494. GDK_CFLAGS=$pkg_cv_GDK_CFLAGS
  21495. GDK_LIBS=$pkg_cv_GDK_LIBS
  21496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21497. $as_echo "yes" >&6; }
  21498. use_gdk="Yes"
  21499. fi
  21500. fi
  21501. if test "$use_gdk" = "Yes"; then
  21502. WITH_GDK_TRUE=
  21503. WITH_GDK_FALSE='#'
  21504. else
  21505. WITH_GDK_TRUE='#'
  21506. WITH_GDK_FALSE=
  21507. fi
  21508. # Check whether --with-gdk-pixbuf was given.
  21509. if test "${with_gdk_pixbuf+set}" = set; then :
  21510. withval=$with_gdk_pixbuf;
  21511. else
  21512. with_gdk_pixbuf=yes
  21513. fi
  21514. if test "$with_gdk_pixbuf" != "yes"; then
  21515. use_gdk_pixbuf="No (disabled)"
  21516. else
  21517. pkg_failed=no
  21518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF" >&5
  21519. $as_echo_n "checking for GDK_PIXBUF... " >&6; }
  21520. if test -n "$GDK_PIXBUF_CFLAGS"; then
  21521. pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
  21522. elif test -n "$PKG_CONFIG"; then
  21523. if test -n "$PKG_CONFIG" && \
  21524. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
  21525. ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
  21526. ac_status=$?
  21527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21528. test $ac_status = 0; }; then
  21529. pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null`
  21530. test "x$?" != "x0" && pkg_failed=yes
  21531. else
  21532. pkg_failed=yes
  21533. fi
  21534. else
  21535. pkg_failed=untried
  21536. fi
  21537. if test -n "$GDK_PIXBUF_LIBS"; then
  21538. pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
  21539. elif test -n "$PKG_CONFIG"; then
  21540. if test -n "$PKG_CONFIG" && \
  21541. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
  21542. ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
  21543. ac_status=$?
  21544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21545. test $ac_status = 0; }; then
  21546. pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null`
  21547. test "x$?" != "x0" && pkg_failed=yes
  21548. else
  21549. pkg_failed=yes
  21550. fi
  21551. else
  21552. pkg_failed=untried
  21553. fi
  21554. if test $pkg_failed = yes; then
  21555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21556. $as_echo "no" >&6; }
  21557. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21558. _pkg_short_errors_supported=yes
  21559. else
  21560. _pkg_short_errors_supported=no
  21561. fi
  21562. if test $_pkg_short_errors_supported = yes; then
  21563. GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1`
  21564. else
  21565. GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0" 2>&1`
  21566. fi
  21567. # Put the nasty error message in config.log where it belongs
  21568. echo "$GDK_PIXBUF_PKG_ERRORS" >&5
  21569. use_gdk_pixbuf="No (gdk_pixbuf library not available)"
  21570. elif test $pkg_failed = untried; then
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21572. $as_echo "no" >&6; }
  21573. use_gdk_pixbuf="No (gdk_pixbuf library not available)"
  21574. else
  21575. GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
  21576. GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21578. $as_echo "yes" >&6; }
  21579. use_gdk_pixbuf="Yes"
  21580. fi
  21581. fi
  21582. if test "$use_gdk_pixbuf" = "Yes"; then
  21583. WITH_GDK_PIXBUF_TRUE=
  21584. WITH_GDK_PIXBUF_FALSE='#'
  21585. else
  21586. WITH_GDK_PIXBUF_TRUE='#'
  21587. WITH_GDK_PIXBUF_FALSE=
  21588. fi
  21589. # Check whether --with-gtk was given.
  21590. if test "${with_gtk+set}" = set; then :
  21591. withval=$with_gtk;
  21592. else
  21593. with_gtk=yes
  21594. fi
  21595. if test "$with_gtk" != "yes"; then
  21596. use_gtk="No (disabled)"
  21597. else
  21598. pkg_failed=no
  21599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
  21600. $as_echo_n "checking for GTK... " >&6; }
  21601. if test -n "$GTK_CFLAGS"; then
  21602. pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  21603. elif test -n "$PKG_CONFIG"; then
  21604. if test -n "$PKG_CONFIG" && \
  21605. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.7.0\""; } >&5
  21606. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.7.0") 2>&5
  21607. ac_status=$?
  21608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21609. test $ac_status = 0; }; then
  21610. pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.7.0" 2>/dev/null`
  21611. test "x$?" != "x0" && pkg_failed=yes
  21612. else
  21613. pkg_failed=yes
  21614. fi
  21615. else
  21616. pkg_failed=untried
  21617. fi
  21618. if test -n "$GTK_LIBS"; then
  21619. pkg_cv_GTK_LIBS="$GTK_LIBS"
  21620. elif test -n "$PKG_CONFIG"; then
  21621. if test -n "$PKG_CONFIG" && \
  21622. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.7.0\""; } >&5
  21623. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.7.0") 2>&5
  21624. ac_status=$?
  21625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21626. test $ac_status = 0; }; then
  21627. pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.7.0" 2>/dev/null`
  21628. test "x$?" != "x0" && pkg_failed=yes
  21629. else
  21630. pkg_failed=yes
  21631. fi
  21632. else
  21633. pkg_failed=untried
  21634. fi
  21635. if test $pkg_failed = yes; then
  21636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21637. $as_echo "no" >&6; }
  21638. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21639. _pkg_short_errors_supported=yes
  21640. else
  21641. _pkg_short_errors_supported=no
  21642. fi
  21643. if test $_pkg_short_errors_supported = yes; then
  21644. GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.7.0" 2>&1`
  21645. else
  21646. GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.7.0" 2>&1`
  21647. fi
  21648. # Put the nasty error message in config.log where it belongs
  21649. echo "$GTK_PKG_ERRORS" >&5
  21650. use_gtk="No (gtk library not available)"
  21651. elif test $pkg_failed = untried; then
  21652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21653. $as_echo "no" >&6; }
  21654. use_gtk="No (gtk library not available)"
  21655. else
  21656. GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  21657. GTK_LIBS=$pkg_cv_GTK_LIBS
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21659. $as_echo "yes" >&6; }
  21660. use_gtk="Yes"
  21661. cat >>confdefs.h <<_ACEOF
  21662. #define HAVE_GTK 1
  21663. _ACEOF
  21664. fi
  21665. fi
  21666. if test "$use_gtk" = "Yes"; then
  21667. WITH_GTK_TRUE=
  21668. WITH_GTK_FALSE='#'
  21669. else
  21670. WITH_GTK_TRUE='#'
  21671. WITH_GTK_FALSE=
  21672. fi
  21673. # Check whether --with-gtkgl was given.
  21674. if test "${with_gtkgl+set}" = set; then :
  21675. withval=$with_gtkgl;
  21676. else
  21677. with_gtkgl=yes
  21678. fi
  21679. if test "$with_gtkgl" != "yes"; then
  21680. use_gtkgl="No (disabled)"
  21681. else
  21682. pkg_failed=no
  21683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGL" >&5
  21684. $as_echo_n "checking for GTKGL... " >&6; }
  21685. if test -n "$GTKGL_CFLAGS"; then
  21686. pkg_cv_GTKGL_CFLAGS="$GTKGL_CFLAGS"
  21687. elif test -n "$PKG_CONFIG"; then
  21688. if test -n "$PKG_CONFIG" && \
  21689. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkgl-2.0\""; } >&5
  21690. ($PKG_CONFIG --exists --print-errors "gtkgl-2.0") 2>&5
  21691. ac_status=$?
  21692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21693. test $ac_status = 0; }; then
  21694. pkg_cv_GTKGL_CFLAGS=`$PKG_CONFIG --cflags "gtkgl-2.0" 2>/dev/null`
  21695. test "x$?" != "x0" && pkg_failed=yes
  21696. else
  21697. pkg_failed=yes
  21698. fi
  21699. else
  21700. pkg_failed=untried
  21701. fi
  21702. if test -n "$GTKGL_LIBS"; then
  21703. pkg_cv_GTKGL_LIBS="$GTKGL_LIBS"
  21704. elif test -n "$PKG_CONFIG"; then
  21705. if test -n "$PKG_CONFIG" && \
  21706. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkgl-2.0\""; } >&5
  21707. ($PKG_CONFIG --exists --print-errors "gtkgl-2.0") 2>&5
  21708. ac_status=$?
  21709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21710. test $ac_status = 0; }; then
  21711. pkg_cv_GTKGL_LIBS=`$PKG_CONFIG --libs "gtkgl-2.0" 2>/dev/null`
  21712. test "x$?" != "x0" && pkg_failed=yes
  21713. else
  21714. pkg_failed=yes
  21715. fi
  21716. else
  21717. pkg_failed=untried
  21718. fi
  21719. if test $pkg_failed = yes; then
  21720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21721. $as_echo "no" >&6; }
  21722. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21723. _pkg_short_errors_supported=yes
  21724. else
  21725. _pkg_short_errors_supported=no
  21726. fi
  21727. if test $_pkg_short_errors_supported = yes; then
  21728. GTKGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtkgl-2.0" 2>&1`
  21729. else
  21730. GTKGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtkgl-2.0" 2>&1`
  21731. fi
  21732. # Put the nasty error message in config.log where it belongs
  21733. echo "$GTKGL_PKG_ERRORS" >&5
  21734. use_gtkgl="No (gtkgl library not available)"
  21735. elif test $pkg_failed = untried; then
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21737. $as_echo "no" >&6; }
  21738. use_gtkgl="No (gtkgl library not available)"
  21739. else
  21740. GTKGL_CFLAGS=$pkg_cv_GTKGL_CFLAGS
  21741. GTKGL_LIBS=$pkg_cv_GTKGL_LIBS
  21742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21743. $as_echo "yes" >&6; }
  21744. use_gtkgl="Yes"
  21745. cat >>confdefs.h <<_ACEOF
  21746. #define HAVE_GTKGL 1
  21747. _ACEOF
  21748. fi
  21749. fi
  21750. if test "$use_gtkgl" = "Yes"; then
  21751. WITH_GTKGL_TRUE=
  21752. WITH_GTKGL_FALSE='#'
  21753. else
  21754. WITH_GTKGL_TRUE='#'
  21755. WITH_GTKGL_FALSE=
  21756. fi
  21757. # Check whether --with-gtkglext was given.
  21758. if test "${with_gtkglext+set}" = set; then :
  21759. withval=$with_gtkglext;
  21760. else
  21761. with_gtkglext=yes
  21762. fi
  21763. if test "$with_gtkglext" != "yes"; then
  21764. use_gtkglext="No (disabled)"
  21765. else
  21766. pkg_failed=no
  21767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5
  21768. $as_echo_n "checking for GTKGLEXT... " >&6; }
  21769. if test -n "$GTKGLEXT_CFLAGS"; then
  21770. pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS"
  21771. elif test -n "$PKG_CONFIG"; then
  21772. if test -n "$PKG_CONFIG" && \
  21773. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0\""; } >&5
  21774. ($PKG_CONFIG --exists --print-errors "gtkglext-1.0") 2>&5
  21775. ac_status=$?
  21776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21777. test $ac_status = 0; }; then
  21778. pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0" 2>/dev/null`
  21779. test "x$?" != "x0" && pkg_failed=yes
  21780. else
  21781. pkg_failed=yes
  21782. fi
  21783. else
  21784. pkg_failed=untried
  21785. fi
  21786. if test -n "$GTKGLEXT_LIBS"; then
  21787. pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS"
  21788. elif test -n "$PKG_CONFIG"; then
  21789. if test -n "$PKG_CONFIG" && \
  21790. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0\""; } >&5
  21791. ($PKG_CONFIG --exists --print-errors "gtkglext-1.0") 2>&5
  21792. ac_status=$?
  21793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21794. test $ac_status = 0; }; then
  21795. pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0" 2>/dev/null`
  21796. test "x$?" != "x0" && pkg_failed=yes
  21797. else
  21798. pkg_failed=yes
  21799. fi
  21800. else
  21801. pkg_failed=untried
  21802. fi
  21803. if test $pkg_failed = yes; then
  21804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21805. $as_echo "no" >&6; }
  21806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21807. _pkg_short_errors_supported=yes
  21808. else
  21809. _pkg_short_errors_supported=no
  21810. fi
  21811. if test $_pkg_short_errors_supported = yes; then
  21812. GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtkglext-1.0" 2>&1`
  21813. else
  21814. GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtkglext-1.0" 2>&1`
  21815. fi
  21816. # Put the nasty error message in config.log where it belongs
  21817. echo "$GTKGLEXT_PKG_ERRORS" >&5
  21818. use_gtkglext="No (gtkglext library not available)"
  21819. elif test $pkg_failed = untried; then
  21820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21821. $as_echo "no" >&6; }
  21822. use_gtkglext="No (gtkglext library not available)"
  21823. else
  21824. GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS
  21825. GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS
  21826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21827. $as_echo "yes" >&6; }
  21828. use_gtkglext="Yes"
  21829. fi
  21830. fi
  21831. if test "$use_gtkglext" = "Yes"; then
  21832. WITH_GTKGLEXT_TRUE=
  21833. WITH_GTKGLEXT_FALSE='#'
  21834. else
  21835. WITH_GTKGLEXT_TRUE='#'
  21836. WITH_GTKGLEXT_FALSE=
  21837. fi
  21838. # Check whether --with-gts was given.
  21839. if test "${with_gts+set}" = set; then :
  21840. withval=$with_gts;
  21841. else
  21842. with_gts=yes
  21843. fi
  21844. if test "$with_gts" != "yes"; then
  21845. use_gts="No (disabled)"
  21846. else
  21847. pkg_failed=no
  21848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTS" >&5
  21849. $as_echo_n "checking for GTS... " >&6; }
  21850. if test -n "$GTS_CFLAGS"; then
  21851. pkg_cv_GTS_CFLAGS="$GTS_CFLAGS"
  21852. elif test -n "$PKG_CONFIG"; then
  21853. if test -n "$PKG_CONFIG" && \
  21854. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gts\""; } >&5
  21855. ($PKG_CONFIG --exists --print-errors "gts") 2>&5
  21856. ac_status=$?
  21857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21858. test $ac_status = 0; }; then
  21859. pkg_cv_GTS_CFLAGS=`$PKG_CONFIG --cflags "gts" 2>/dev/null`
  21860. test "x$?" != "x0" && pkg_failed=yes
  21861. else
  21862. pkg_failed=yes
  21863. fi
  21864. else
  21865. pkg_failed=untried
  21866. fi
  21867. if test -n "$GTS_LIBS"; then
  21868. pkg_cv_GTS_LIBS="$GTS_LIBS"
  21869. elif test -n "$PKG_CONFIG"; then
  21870. if test -n "$PKG_CONFIG" && \
  21871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gts\""; } >&5
  21872. ($PKG_CONFIG --exists --print-errors "gts") 2>&5
  21873. ac_status=$?
  21874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21875. test $ac_status = 0; }; then
  21876. pkg_cv_GTS_LIBS=`$PKG_CONFIG --libs "gts" 2>/dev/null`
  21877. test "x$?" != "x0" && pkg_failed=yes
  21878. else
  21879. pkg_failed=yes
  21880. fi
  21881. else
  21882. pkg_failed=untried
  21883. fi
  21884. if test $pkg_failed = yes; then
  21885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21886. $as_echo "no" >&6; }
  21887. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21888. _pkg_short_errors_supported=yes
  21889. else
  21890. _pkg_short_errors_supported=no
  21891. fi
  21892. if test $_pkg_short_errors_supported = yes; then
  21893. GTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gts" 2>&1`
  21894. else
  21895. GTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gts" 2>&1`
  21896. fi
  21897. # Put the nasty error message in config.log where it belongs
  21898. echo "$GTS_PKG_ERRORS" >&5
  21899. use_gts="No (gts library not available)"
  21900. elif test $pkg_failed = untried; then
  21901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21902. $as_echo "no" >&6; }
  21903. use_gts="No (gts library not available)"
  21904. else
  21905. GTS_CFLAGS=$pkg_cv_GTS_CFLAGS
  21906. GTS_LIBS=$pkg_cv_GTS_LIBS
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21908. $as_echo "yes" >&6; }
  21909. use_gts="Yes"
  21910. cat >>confdefs.h <<_ACEOF
  21911. #define HAVE_GTS 1
  21912. _ACEOF
  21913. fi
  21914. fi
  21915. if test "$use_gts" = "Yes"; then
  21916. WITH_GTS_TRUE=
  21917. WITH_GTS_FALSE='#'
  21918. else
  21919. WITH_GTS_TRUE='#'
  21920. WITH_GTS_FALSE=
  21921. fi
  21922. # Check whether --with-ann was given.
  21923. if test "${with_ann+set}" = set; then :
  21924. withval=$with_ann;
  21925. else
  21926. with_ann=yes
  21927. fi
  21928. if test "$with_ann" != "yes"; then
  21929. use_ann="No (disabled)"
  21930. else
  21931. pkg_failed=no
  21932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANN" >&5
  21933. $as_echo_n "checking for ANN... " >&6; }
  21934. if test -n "$ANN_CFLAGS"; then
  21935. pkg_cv_ANN_CFLAGS="$ANN_CFLAGS"
  21936. elif test -n "$PKG_CONFIG"; then
  21937. if test -n "$PKG_CONFIG" && \
  21938. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ann\""; } >&5
  21939. ($PKG_CONFIG --exists --print-errors "ann") 2>&5
  21940. ac_status=$?
  21941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21942. test $ac_status = 0; }; then
  21943. pkg_cv_ANN_CFLAGS=`$PKG_CONFIG --cflags "ann" 2>/dev/null`
  21944. test "x$?" != "x0" && pkg_failed=yes
  21945. else
  21946. pkg_failed=yes
  21947. fi
  21948. else
  21949. pkg_failed=untried
  21950. fi
  21951. if test -n "$ANN_LIBS"; then
  21952. pkg_cv_ANN_LIBS="$ANN_LIBS"
  21953. elif test -n "$PKG_CONFIG"; then
  21954. if test -n "$PKG_CONFIG" && \
  21955. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ann\""; } >&5
  21956. ($PKG_CONFIG --exists --print-errors "ann") 2>&5
  21957. ac_status=$?
  21958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21959. test $ac_status = 0; }; then
  21960. pkg_cv_ANN_LIBS=`$PKG_CONFIG --libs "ann" 2>/dev/null`
  21961. test "x$?" != "x0" && pkg_failed=yes
  21962. else
  21963. pkg_failed=yes
  21964. fi
  21965. else
  21966. pkg_failed=untried
  21967. fi
  21968. if test $pkg_failed = yes; then
  21969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21970. $as_echo "no" >&6; }
  21971. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21972. _pkg_short_errors_supported=yes
  21973. else
  21974. _pkg_short_errors_supported=no
  21975. fi
  21976. if test $_pkg_short_errors_supported = yes; then
  21977. ANN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ann" 2>&1`
  21978. else
  21979. ANN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ann" 2>&1`
  21980. fi
  21981. # Put the nasty error message in config.log where it belongs
  21982. echo "$ANN_PKG_ERRORS" >&5
  21983. # fall back discovery for the Debian ecosystem which does not ship an ann.pc
  21984. if test -f /usr/include/ANN/ANN.h; then :
  21985. ANN_CFLAGS= # nothing required
  21986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ann_visit_pts in -lann" >&5
  21987. $as_echo_n "checking for ann_visit_pts in -lann... " >&6; }
  21988. if ${ac_cv_lib_ann_ann_visit_pts+:} false; then :
  21989. $as_echo_n "(cached) " >&6
  21990. else
  21991. ac_check_lib_save_LIBS=$LIBS
  21992. LIBS="-lann $LIBS"
  21993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21994. /* end confdefs.h. */
  21995. /* Override any GCC internal prototype to avoid an error.
  21996. Use char because int might match the return type of a GCC
  21997. builtin and then its argument prototype would still apply. */
  21998. #ifdef __cplusplus
  21999. extern "C"
  22000. #endif
  22001. char ann_visit_pts ();
  22002. int
  22003. main ()
  22004. {
  22005. return ann_visit_pts ();
  22006. ;
  22007. return 0;
  22008. }
  22009. _ACEOF
  22010. if ac_fn_c_try_link "$LINENO"; then :
  22011. ac_cv_lib_ann_ann_visit_pts=yes
  22012. else
  22013. ac_cv_lib_ann_ann_visit_pts=no
  22014. fi
  22015. rm -f core conftest.err conftest.$ac_objext \
  22016. conftest$ac_exeext conftest.$ac_ext
  22017. LIBS=$ac_check_lib_save_LIBS
  22018. fi
  22019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ann_ann_visit_pts" >&5
  22020. $as_echo "$ac_cv_lib_ann_ann_visit_pts" >&6; }
  22021. if test "x$ac_cv_lib_ann_ann_visit_pts" = xyes; then :
  22022. ANN_LIBS=-lann
  22023. use_ann="Yes"
  22024. else
  22025. use_ann="No (no ann.pc or libANN found)"
  22026. fi
  22027. else
  22028. # fall back discovery for Macports
  22029. if test -f /opt/local/include/ANN/ANN.h; then :
  22030. use_ann="Yes"
  22031. ANN_CFLAGS="-I/opt/local/include"
  22032. ANN_LIBS="-L/opt/local/lib -lann"
  22033. else
  22034. use_ann="No (no ann.pc or ANN.h found)"
  22035. fi
  22036. fi
  22037. elif test $pkg_failed = untried; then
  22038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22039. $as_echo "no" >&6; }
  22040. # fall back discovery for the Debian ecosystem which does not ship an ann.pc
  22041. if test -f /usr/include/ANN/ANN.h; then :
  22042. ANN_CFLAGS= # nothing required
  22043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ann_visit_pts in -lann" >&5
  22044. $as_echo_n "checking for ann_visit_pts in -lann... " >&6; }
  22045. if ${ac_cv_lib_ann_ann_visit_pts+:} false; then :
  22046. $as_echo_n "(cached) " >&6
  22047. else
  22048. ac_check_lib_save_LIBS=$LIBS
  22049. LIBS="-lann $LIBS"
  22050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22051. /* end confdefs.h. */
  22052. /* Override any GCC internal prototype to avoid an error.
  22053. Use char because int might match the return type of a GCC
  22054. builtin and then its argument prototype would still apply. */
  22055. #ifdef __cplusplus
  22056. extern "C"
  22057. #endif
  22058. char ann_visit_pts ();
  22059. int
  22060. main ()
  22061. {
  22062. return ann_visit_pts ();
  22063. ;
  22064. return 0;
  22065. }
  22066. _ACEOF
  22067. if ac_fn_c_try_link "$LINENO"; then :
  22068. ac_cv_lib_ann_ann_visit_pts=yes
  22069. else
  22070. ac_cv_lib_ann_ann_visit_pts=no
  22071. fi
  22072. rm -f core conftest.err conftest.$ac_objext \
  22073. conftest$ac_exeext conftest.$ac_ext
  22074. LIBS=$ac_check_lib_save_LIBS
  22075. fi
  22076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ann_ann_visit_pts" >&5
  22077. $as_echo "$ac_cv_lib_ann_ann_visit_pts" >&6; }
  22078. if test "x$ac_cv_lib_ann_ann_visit_pts" = xyes; then :
  22079. ANN_LIBS=-lann
  22080. use_ann="Yes"
  22081. else
  22082. use_ann="No (no ann.pc or libANN found)"
  22083. fi
  22084. else
  22085. # fall back discovery for Macports
  22086. if test -f /opt/local/include/ANN/ANN.h; then :
  22087. use_ann="Yes"
  22088. ANN_CFLAGS="-I/opt/local/include"
  22089. ANN_LIBS="-L/opt/local/lib -lann"
  22090. else
  22091. use_ann="No (no ann.pc or ANN.h found)"
  22092. fi
  22093. fi
  22094. else
  22095. ANN_CFLAGS=$pkg_cv_ANN_CFLAGS
  22096. ANN_LIBS=$pkg_cv_ANN_LIBS
  22097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22098. $as_echo "yes" >&6; }
  22099. use_ann="Yes"
  22100. fi
  22101. fi
  22102. if test "${use_ann%% *}" = "Yes"; then
  22103. WITH_ANN_TRUE=
  22104. WITH_ANN_FALSE='#'
  22105. else
  22106. WITH_ANN_TRUE='#'
  22107. WITH_ANN_FALSE=
  22108. fi
  22109. # Check whether --with-glade was given.
  22110. if test "${with_glade+set}" = set; then :
  22111. withval=$with_glade;
  22112. else
  22113. with_glade=yes
  22114. fi
  22115. if test "$with_glade" != "yes"; then
  22116. use_glade="No (disabled)"
  22117. else
  22118. pkg_failed=no
  22119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLADE" >&5
  22120. $as_echo_n "checking for GLADE... " >&6; }
  22121. if test -n "$GLADE_CFLAGS"; then
  22122. pkg_cv_GLADE_CFLAGS="$GLADE_CFLAGS"
  22123. elif test -n "$PKG_CONFIG"; then
  22124. if test -n "$PKG_CONFIG" && \
  22125. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\""; } >&5
  22126. ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
  22127. ac_status=$?
  22128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22129. test $ac_status = 0; }; then
  22130. pkg_cv_GLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0" 2>/dev/null`
  22131. test "x$?" != "x0" && pkg_failed=yes
  22132. else
  22133. pkg_failed=yes
  22134. fi
  22135. else
  22136. pkg_failed=untried
  22137. fi
  22138. if test -n "$GLADE_LIBS"; then
  22139. pkg_cv_GLADE_LIBS="$GLADE_LIBS"
  22140. elif test -n "$PKG_CONFIG"; then
  22141. if test -n "$PKG_CONFIG" && \
  22142. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglade-2.0\""; } >&5
  22143. ($PKG_CONFIG --exists --print-errors "libglade-2.0") 2>&5
  22144. ac_status=$?
  22145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22146. test $ac_status = 0; }; then
  22147. pkg_cv_GLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0" 2>/dev/null`
  22148. test "x$?" != "x0" && pkg_failed=yes
  22149. else
  22150. pkg_failed=yes
  22151. fi
  22152. else
  22153. pkg_failed=untried
  22154. fi
  22155. if test $pkg_failed = yes; then
  22156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22157. $as_echo "no" >&6; }
  22158. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22159. _pkg_short_errors_supported=yes
  22160. else
  22161. _pkg_short_errors_supported=no
  22162. fi
  22163. if test $_pkg_short_errors_supported = yes; then
  22164. GLADE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libglade-2.0" 2>&1`
  22165. else
  22166. GLADE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libglade-2.0" 2>&1`
  22167. fi
  22168. # Put the nasty error message in config.log where it belongs
  22169. echo "$GLADE_PKG_ERRORS" >&5
  22170. use_glade="No (glade library not available)"
  22171. elif test $pkg_failed = untried; then
  22172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22173. $as_echo "no" >&6; }
  22174. use_glade="No (glade library not available)"
  22175. else
  22176. GLADE_CFLAGS=$pkg_cv_GLADE_CFLAGS
  22177. GLADE_LIBS=$pkg_cv_GLADE_LIBS
  22178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22179. $as_echo "yes" >&6; }
  22180. use_glade="Yes"
  22181. fi
  22182. fi
  22183. if test "$use_glade" = "Yes"; then
  22184. WITH_GLADE_TRUE=
  22185. WITH_GLADE_FALSE='#'
  22186. else
  22187. WITH_GLADE_TRUE='#'
  22188. WITH_GLADE_FALSE=
  22189. fi
  22190. # Check whether --with-qt was given.
  22191. if test "${with_qt+set}" = set; then :
  22192. withval=$with_qt;
  22193. fi
  22194. if test "$with_qt" != "no"; then :
  22195. # required for linking with QT
  22196. CXXFLAGS="${CXXFLAGS} -fPIE -fPIC"
  22197. for ac_prog in qmake6 qmake-qt5 qmake5 qmake
  22198. do
  22199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  22200. set dummy $ac_prog; ac_word=$2
  22201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22202. $as_echo_n "checking for $ac_word... " >&6; }
  22203. if ${ac_cv_prog_QMAKE+:} false; then :
  22204. $as_echo_n "(cached) " >&6
  22205. else
  22206. if test -n "$QMAKE"; then
  22207. ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
  22208. else
  22209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22210. for as_dir in $PATH
  22211. do
  22212. IFS=$as_save_IFS
  22213. test -z "$as_dir" && as_dir=.
  22214. for ac_exec_ext in '' $ac_executable_extensions; do
  22215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22216. ac_cv_prog_QMAKE="$ac_prog"
  22217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22218. break 2
  22219. fi
  22220. done
  22221. done
  22222. IFS=$as_save_IFS
  22223. fi
  22224. fi
  22225. QMAKE=$ac_cv_prog_QMAKE
  22226. if test -n "$QMAKE"; then
  22227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
  22228. $as_echo "$QMAKE" >&6; }
  22229. else
  22230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22231. $as_echo "no" >&6; }
  22232. fi
  22233. test -n "$QMAKE" && break
  22234. done
  22235. test -n "$QMAKE" || QMAKE="false"
  22236. if test "$QMAKE" = "qmake6"; then :
  22237. # Qt6
  22238. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_HEADERS)/QtCore/QtCore" | $as_tr_sh`
  22239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtCore/QtCore" >&5
  22240. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtCore/QtCore... " >&6; }
  22241. if eval \${$as_ac_File+:} false; then :
  22242. $as_echo_n "(cached) " >&6
  22243. else
  22244. test "$cross_compiling" = yes &&
  22245. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22246. if test -r "$(${QMAKE} -query QT_INSTALL_HEADERS)/QtCore/QtCore"; then
  22247. eval "$as_ac_File=yes"
  22248. else
  22249. eval "$as_ac_File=no"
  22250. fi
  22251. fi
  22252. eval ac_res=\$$as_ac_File
  22253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22254. $as_echo "$ac_res" >&6; }
  22255. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22256. QTCORE_CFLAGS="-I$(${QMAKE} -query QT_INSTALL_HEADERS) -I$(${QMAKE} -query QT_INSTALL_HEADERS)/QtCore"
  22257. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Core.so" | $as_tr_sh`
  22258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Core.so" >&5
  22259. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Core.so... " >&6; }
  22260. if eval \${$as_ac_File+:} false; then :
  22261. $as_echo_n "(cached) " >&6
  22262. else
  22263. test "$cross_compiling" = yes &&
  22264. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22265. if test -r "$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Core.so"; then
  22266. eval "$as_ac_File=yes"
  22267. else
  22268. eval "$as_ac_File=no"
  22269. fi
  22270. fi
  22271. eval ac_res=\$$as_ac_File
  22272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22273. $as_echo "$ac_res" >&6; }
  22274. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22275. QTCORE_LIBS="-L$(${QMAKE} -query QT_INSTALL_LIBS) -lQt6Core"
  22276. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_HEADERS)/QtWidgets/QtWidgets" | $as_tr_sh`
  22277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtWidgets/QtWidgets" >&5
  22278. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtWidgets/QtWidgets... " >&6; }
  22279. if eval \${$as_ac_File+:} false; then :
  22280. $as_echo_n "(cached) " >&6
  22281. else
  22282. test "$cross_compiling" = yes &&
  22283. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22284. if test -r "$(${QMAKE} -query QT_INSTALL_HEADERS)/QtWidgets/QtWidgets"; then
  22285. eval "$as_ac_File=yes"
  22286. else
  22287. eval "$as_ac_File=no"
  22288. fi
  22289. fi
  22290. eval ac_res=\$$as_ac_File
  22291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22292. $as_echo "$ac_res" >&6; }
  22293. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22294. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_HEADERS)/QtPrintSupport/QtPrintSupport" | $as_tr_sh`
  22295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtPrintSupport/QtPrintSupport" >&5
  22296. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_HEADERS)/QtPrintSupport/QtPrintSupport... " >&6; }
  22297. if eval \${$as_ac_File+:} false; then :
  22298. $as_echo_n "(cached) " >&6
  22299. else
  22300. test "$cross_compiling" = yes &&
  22301. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22302. if test -r "$(${QMAKE} -query QT_INSTALL_HEADERS)/QtPrintSupport/QtPrintSupport"; then
  22303. eval "$as_ac_File=yes"
  22304. else
  22305. eval "$as_ac_File=no"
  22306. fi
  22307. fi
  22308. eval ac_res=\$$as_ac_File
  22309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22310. $as_echo "$ac_res" >&6; }
  22311. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22312. QTGUI_CFLAGS="-I$(${QMAKE} -query QT_INSTALL_HEADERS) -I$(${QMAKE} -query QT_INSTALL_HEADERS)/QtWidgets -I$(${QMAKE} -query QT_INSTALL_HEADERS)/QtPrintSupport -I$(${QMAKE} -query QT_INSTALL_HEADERS)/QtGui"
  22313. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Widgets.so" | $as_tr_sh`
  22314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Widgets.so" >&5
  22315. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Widgets.so... " >&6; }
  22316. if eval \${$as_ac_File+:} false; then :
  22317. $as_echo_n "(cached) " >&6
  22318. else
  22319. test "$cross_compiling" = yes &&
  22320. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22321. if test -r "$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6Widgets.so"; then
  22322. eval "$as_ac_File=yes"
  22323. else
  22324. eval "$as_ac_File=no"
  22325. fi
  22326. fi
  22327. eval ac_res=\$$as_ac_File
  22328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22329. $as_echo "$ac_res" >&6; }
  22330. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22331. as_ac_File=`$as_echo "ac_cv_file_$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6PrintSupport.so" | $as_tr_sh`
  22332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6PrintSupport.so" >&5
  22333. $as_echo_n "checking for $(${QMAKE} -query QT_INSTALL_LIBS)/libQt6PrintSupport.so... " >&6; }
  22334. if eval \${$as_ac_File+:} false; then :
  22335. $as_echo_n "(cached) " >&6
  22336. else
  22337. test "$cross_compiling" = yes &&
  22338. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  22339. if test -r "$(${QMAKE} -query QT_INSTALL_LIBS)/libQt6PrintSupport.so"; then
  22340. eval "$as_ac_File=yes"
  22341. else
  22342. eval "$as_ac_File=no"
  22343. fi
  22344. fi
  22345. eval ac_res=\$$as_ac_File
  22346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22347. $as_echo "$ac_res" >&6; }
  22348. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  22349. QTGUI_LIBS="-L$(${QMAKE} -query QT_INSTALL_LIBS) -lQt6Widgets -lQt6PrintSupport -lQt6Gui -lQt6Core"
  22350. use_qt="Yes"
  22351. else
  22352. use_qt="No (Qt6PrintSupport library not available)"
  22353. fi
  22354. else
  22355. use_qt="No (Qt6Widgets library not available)"
  22356. fi
  22357. else
  22358. use_qt="No (Qt6PrintSupport header not available)"
  22359. fi
  22360. else
  22361. use_qt="No (Qt6Widgets header not available)"
  22362. fi
  22363. else
  22364. use_qt="No (Qt6Core library not available)"
  22365. fi
  22366. else
  22367. use_qt="No (Qt6Core header not available)"
  22368. fi
  22369. else
  22370. # Qt5
  22371. if test "$QMAKE" != "false"; then :
  22372. pkg_failed=no
  22373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
  22374. $as_echo_n "checking for QTCORE... " >&6; }
  22375. if test -n "$QTCORE_CFLAGS"; then
  22376. pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
  22377. elif test -n "$PKG_CONFIG"; then
  22378. if test -n "$PKG_CONFIG" && \
  22379. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core\""; } >&5
  22380. ($PKG_CONFIG --exists --print-errors "Qt5Core") 2>&5
  22381. ac_status=$?
  22382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22383. test $ac_status = 0; }; then
  22384. pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core" 2>/dev/null`
  22385. test "x$?" != "x0" && pkg_failed=yes
  22386. else
  22387. pkg_failed=yes
  22388. fi
  22389. else
  22390. pkg_failed=untried
  22391. fi
  22392. if test -n "$QTCORE_LIBS"; then
  22393. pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
  22394. elif test -n "$PKG_CONFIG"; then
  22395. if test -n "$PKG_CONFIG" && \
  22396. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core\""; } >&5
  22397. ($PKG_CONFIG --exists --print-errors "Qt5Core") 2>&5
  22398. ac_status=$?
  22399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22400. test $ac_status = 0; }; then
  22401. pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "Qt5Core" 2>/dev/null`
  22402. test "x$?" != "x0" && pkg_failed=yes
  22403. else
  22404. pkg_failed=yes
  22405. fi
  22406. else
  22407. pkg_failed=untried
  22408. fi
  22409. if test $pkg_failed = yes; then
  22410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22411. $as_echo "no" >&6; }
  22412. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22413. _pkg_short_errors_supported=yes
  22414. else
  22415. _pkg_short_errors_supported=no
  22416. fi
  22417. if test $_pkg_short_errors_supported = yes; then
  22418. QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core" 2>&1`
  22419. else
  22420. QTCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core" 2>&1`
  22421. fi
  22422. # Put the nasty error message in config.log where it belongs
  22423. echo "$QTCORE_PKG_ERRORS" >&5
  22424. use_qt="No (QtCore not available)"
  22425. elif test $pkg_failed = untried; then
  22426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22427. $as_echo "no" >&6; }
  22428. use_qt="No (QtCore not available)"
  22429. else
  22430. QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
  22431. QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
  22432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22433. $as_echo "yes" >&6; }
  22434. pkg_failed=no
  22435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTGUI" >&5
  22436. $as_echo_n "checking for QTGUI... " >&6; }
  22437. if test -n "$QTGUI_CFLAGS"; then
  22438. pkg_cv_QTGUI_CFLAGS="$QTGUI_CFLAGS"
  22439. elif test -n "$PKG_CONFIG"; then
  22440. if test -n "$PKG_CONFIG" && \
  22441. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5PrintSupport\""; } >&5
  22442. ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5PrintSupport") 2>&5
  22443. ac_status=$?
  22444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22445. test $ac_status = 0; }; then
  22446. pkg_cv_QTGUI_CFLAGS=`$PKG_CONFIG --cflags "Qt5Widgets Qt5PrintSupport" 2>/dev/null`
  22447. test "x$?" != "x0" && pkg_failed=yes
  22448. else
  22449. pkg_failed=yes
  22450. fi
  22451. else
  22452. pkg_failed=untried
  22453. fi
  22454. if test -n "$QTGUI_LIBS"; then
  22455. pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
  22456. elif test -n "$PKG_CONFIG"; then
  22457. if test -n "$PKG_CONFIG" && \
  22458. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Widgets Qt5PrintSupport\""; } >&5
  22459. ($PKG_CONFIG --exists --print-errors "Qt5Widgets Qt5PrintSupport") 2>&5
  22460. ac_status=$?
  22461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22462. test $ac_status = 0; }; then
  22463. pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs "Qt5Widgets Qt5PrintSupport" 2>/dev/null`
  22464. test "x$?" != "x0" && pkg_failed=yes
  22465. else
  22466. pkg_failed=yes
  22467. fi
  22468. else
  22469. pkg_failed=untried
  22470. fi
  22471. if test $pkg_failed = yes; then
  22472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22473. $as_echo "no" >&6; }
  22474. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22475. _pkg_short_errors_supported=yes
  22476. else
  22477. _pkg_short_errors_supported=no
  22478. fi
  22479. if test $_pkg_short_errors_supported = yes; then
  22480. QTGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Widgets Qt5PrintSupport" 2>&1`
  22481. else
  22482. QTGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Widgets Qt5PrintSupport" 2>&1`
  22483. fi
  22484. # Put the nasty error message in config.log where it belongs
  22485. echo "$QTGUI_PKG_ERRORS" >&5
  22486. use_qt="No (QtGui not available)"
  22487. elif test $pkg_failed = untried; then
  22488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22489. $as_echo "no" >&6; }
  22490. use_qt="No (QtGui not available)"
  22491. else
  22492. QTGUI_CFLAGS=$pkg_cv_QTGUI_CFLAGS
  22493. QTGUI_LIBS=$pkg_cv_QTGUI_LIBS
  22494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22495. $as_echo "yes" >&6; }
  22496. use_qt="Yes"
  22497. fi
  22498. fi
  22499. else
  22500. use_qt="No (qmake not found)"
  22501. fi
  22502. fi
  22503. if test "$with_qt" = "yes" && test "$use_qt" != "Yes"; then :
  22504. as_fn_error $? "You requested Qt, but dependencies could not be found: ${use_qt}" "$LINENO" 5
  22505. fi
  22506. else
  22507. use_qt="No (disabled)"
  22508. fi
  22509. if test "$use_qt" = "Yes"; then
  22510. WITH_QT_TRUE=
  22511. WITH_QT_FALSE='#'
  22512. else
  22513. WITH_QT_TRUE='#'
  22514. WITH_QT_FALSE=
  22515. fi
  22516. # Check whether --with-quartz was given.
  22517. if test "${with_quartz+set}" = set; then :
  22518. withval=$with_quartz;
  22519. else
  22520. with_quartz=no
  22521. fi
  22522. if test "$with_quartz" != "yes"; then
  22523. use_quartz="No (disabled by default - Mac only)"
  22524. else
  22525. if test -d "/System/Library/Frameworks/ApplicationServices.framework"; then
  22526. use_quartz="Yes"
  22527. QUARTZ_CFLAGS=''
  22528. QUARTZ_LIBS='-framework ApplicationServices'
  22529. else
  22530. use_quartz="No (missing ApplicationServices.framework)"
  22531. fi
  22532. fi
  22533. if test "$use_quartz" = "Yes"; then
  22534. WITH_QUARTZ_TRUE=
  22535. WITH_QUARTZ_FALSE='#'
  22536. else
  22537. WITH_QUARTZ_TRUE='#'
  22538. WITH_QUARTZ_FALSE=
  22539. fi
  22540. # Check whether --with-platformsdkincludedir was given.
  22541. if test "${with_platformsdkincludedir+set}" = set; then :
  22542. withval=$with_platformsdkincludedir; PLATFORMSDKINCLUDE=$withval
  22543. fi
  22544. # Check whether --with-platformsdklibdir was given.
  22545. if test "${with_platformsdklibdir+set}" = set; then :
  22546. withval=$with_platformsdklibdir; PLATFORMSDKLIB=$withval
  22547. fi
  22548. # Check whether --with-gdiplus was given.
  22549. if test "${with_gdiplus+set}" = set; then :
  22550. withval=$with_gdiplus;
  22551. else
  22552. with_gdiplus=no
  22553. fi
  22554. if test "$with_gdiplus" != "yes"; then
  22555. use_gdiplus="No (disabled by default - Windows only)"
  22556. else
  22557. if test -f "$PLATFORMSDKINCLUDE\GdiPlus.h" -a -f "$PLATFORMSDKLIB\GdiPlus.lib"; then
  22558. use_gdiplus="Yes"
  22559. cat >>confdefs.h <<_ACEOF
  22560. #define HAVE_GDIPLUS 1
  22561. _ACEOF
  22562. GDIPLUS_HEADS=`cd "$PLATFORMSDKINCLUDE" && echo GdiPlus*.h`
  22563. GDIPLUS_CFLAGS=''
  22564. GDIPLUS_LIBS=''
  22565. else
  22566. use_gdiplus="No (missing headers)"
  22567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-gdiplus requires valid --with-platformsdkincludedir and --with-platformsdklibdir." >&5
  22568. $as_echo "$as_me: WARNING: --with-gdiplus requires valid --with-platformsdkincludedir and --with-platformsdklibdir." >&2;}
  22569. fi
  22570. fi
  22571. if test "$use_gdiplus" = "Yes"; then
  22572. WITH_GDIPLUS_TRUE=
  22573. WITH_GDIPLUS_FALSE='#'
  22574. else
  22575. WITH_GDIPLUS_TRUE='#'
  22576. WITH_GDIPLUS_FALSE=
  22577. fi
  22578. # Check whether --with-libgd was given.
  22579. if test "${with_libgd+set}" = set; then :
  22580. withval=$with_libgd;
  22581. else
  22582. with_libgd=yes
  22583. fi
  22584. if test "$with_libgd" != "yes"; then
  22585. use_gd="No (disabled)"
  22586. fi
  22587. if test "$use_gd" = ""; then
  22588. pkg_failed=no
  22589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDLIB" >&5
  22590. $as_echo_n "checking for GDLIB... " >&6; }
  22591. if test -n "$GDLIB_CFLAGS"; then
  22592. pkg_cv_GDLIB_CFLAGS="$GDLIB_CFLAGS"
  22593. elif test -n "$PKG_CONFIG"; then
  22594. if test -n "$PKG_CONFIG" && \
  22595. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.0.33\""; } >&5
  22596. ($PKG_CONFIG --exists --print-errors "gdlib >= 2.0.33") 2>&5
  22597. ac_status=$?
  22598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22599. test $ac_status = 0; }; then
  22600. pkg_cv_GDLIB_CFLAGS=`$PKG_CONFIG --cflags "gdlib >= 2.0.33" 2>/dev/null`
  22601. test "x$?" != "x0" && pkg_failed=yes
  22602. else
  22603. pkg_failed=yes
  22604. fi
  22605. else
  22606. pkg_failed=untried
  22607. fi
  22608. if test -n "$GDLIB_LIBS"; then
  22609. pkg_cv_GDLIB_LIBS="$GDLIB_LIBS"
  22610. elif test -n "$PKG_CONFIG"; then
  22611. if test -n "$PKG_CONFIG" && \
  22612. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.0.33\""; } >&5
  22613. ($PKG_CONFIG --exists --print-errors "gdlib >= 2.0.33") 2>&5
  22614. ac_status=$?
  22615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22616. test $ac_status = 0; }; then
  22617. pkg_cv_GDLIB_LIBS=`$PKG_CONFIG --libs "gdlib >= 2.0.33" 2>/dev/null`
  22618. test "x$?" != "x0" && pkg_failed=yes
  22619. else
  22620. pkg_failed=yes
  22621. fi
  22622. else
  22623. pkg_failed=untried
  22624. fi
  22625. if test $pkg_failed = yes; then
  22626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22627. $as_echo "no" >&6; }
  22628. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22629. _pkg_short_errors_supported=yes
  22630. else
  22631. _pkg_short_errors_supported=no
  22632. fi
  22633. if test $_pkg_short_errors_supported = yes; then
  22634. GDLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdlib >= 2.0.33" 2>&1`
  22635. else
  22636. GDLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdlib >= 2.0.33" 2>&1`
  22637. fi
  22638. # Put the nasty error message in config.log where it belongs
  22639. echo "$GDLIB_PKG_ERRORS" >&5
  22640. # Extract the first word of "gdlib-config", so it can be a program name with args.
  22641. set dummy gdlib-config; ac_word=$2
  22642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22643. $as_echo_n "checking for $ac_word... " >&6; }
  22644. if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
  22645. $as_echo_n "(cached) " >&6
  22646. else
  22647. case $GDLIB_CONFIG in
  22648. [\\/]* | ?:[\\/]*)
  22649. ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
  22650. ;;
  22651. *)
  22652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22653. for as_dir in $PATH
  22654. do
  22655. IFS=$as_save_IFS
  22656. test -z "$as_dir" && as_dir=.
  22657. for ac_exec_ext in '' $ac_executable_extensions; do
  22658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22659. ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22661. break 2
  22662. fi
  22663. done
  22664. done
  22665. IFS=$as_save_IFS
  22666. ;;
  22667. esac
  22668. fi
  22669. GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
  22670. if test -n "$GDLIB_CONFIG"; then
  22671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
  22672. $as_echo "$GDLIB_CONFIG" >&6; }
  22673. else
  22674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22675. $as_echo "no" >&6; }
  22676. fi
  22677. if test -n "$GDLIB_CONFIG"; then
  22678. have_gdlib=1
  22679. GDLIB_CFLAGS=`$GDLIB_CONFIG --includes`
  22680. GDLIB_LIBS=`$GDLIB_CONFIG --libs`
  22681. GDLIB_VERSION=`$GDLIB_CONFIG --version 2>/dev/null`
  22682. GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=^ * //'`
  22683. GD_FEATURES=`$GDLIB_CONFIG --features`
  22684. # GD version check >= 2.0.33 -- centos-5.8 has gd-2.0.33
  22685. # Used to indicate true or false condition
  22686. ax_compare_version=false
  22687. # Convert the two version strings to be compared into a format that
  22688. # allows a simple string comparison. The end result is that a version
  22689. # string of the form 1.12.5-r617 will be converted to the form
  22690. # 0001001200050617. In other words, each number is zero padded to four
  22691. # digits, and non digits are removed.
  22692. ax_compare_version_A=`echo "$GDLIB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  22693. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  22694. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  22695. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  22696. -e 's/[^0-9]//g'`
  22697. ax_compare_version_B=`echo "2.0.33" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  22698. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  22699. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  22700. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  22701. -e 's/[^0-9]//g'`
  22702. ax_compare_version=`echo "x$ax_compare_version_A
  22703. x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  22704. if test "$ax_compare_version" = "true" ; then
  22705. use_gd="No (version too old)"
  22706. fi
  22707. if test "$use_gd" != ""; then
  22708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD library version $GDLIB_VERSION < 2.0.33" >&5
  22709. $as_echo "$as_me: WARNING: GD library version $GDLIB_VERSION < 2.0.33" >&2;}
  22710. fi
  22711. else
  22712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD neither gdlib pkgconfig nor gdlib-config was found" >&5
  22713. $as_echo "$as_me: WARNING: GD neither gdlib pkgconfig nor gdlib-config was found" >&2;}
  22714. fi
  22715. elif test $pkg_failed = untried; then
  22716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22717. $as_echo "no" >&6; }
  22718. # Extract the first word of "gdlib-config", so it can be a program name with args.
  22719. set dummy gdlib-config; ac_word=$2
  22720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22721. $as_echo_n "checking for $ac_word... " >&6; }
  22722. if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
  22723. $as_echo_n "(cached) " >&6
  22724. else
  22725. case $GDLIB_CONFIG in
  22726. [\\/]* | ?:[\\/]*)
  22727. ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
  22728. ;;
  22729. *)
  22730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22731. for as_dir in $PATH
  22732. do
  22733. IFS=$as_save_IFS
  22734. test -z "$as_dir" && as_dir=.
  22735. for ac_exec_ext in '' $ac_executable_extensions; do
  22736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22737. ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22739. break 2
  22740. fi
  22741. done
  22742. done
  22743. IFS=$as_save_IFS
  22744. ;;
  22745. esac
  22746. fi
  22747. GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
  22748. if test -n "$GDLIB_CONFIG"; then
  22749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
  22750. $as_echo "$GDLIB_CONFIG" >&6; }
  22751. else
  22752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22753. $as_echo "no" >&6; }
  22754. fi
  22755. if test -n "$GDLIB_CONFIG"; then
  22756. have_gdlib=1
  22757. GDLIB_CFLAGS=`$GDLIB_CONFIG --includes`
  22758. GDLIB_LIBS=`$GDLIB_CONFIG --libs`
  22759. GDLIB_VERSION=`$GDLIB_CONFIG --version 2>/dev/null`
  22760. GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=^ * //'`
  22761. GD_FEATURES=`$GDLIB_CONFIG --features`
  22762. # GD version check >= 2.0.33 -- centos-5.8 has gd-2.0.33
  22763. # Used to indicate true or false condition
  22764. ax_compare_version=false
  22765. # Convert the two version strings to be compared into a format that
  22766. # allows a simple string comparison. The end result is that a version
  22767. # string of the form 1.12.5-r617 will be converted to the form
  22768. # 0001001200050617. In other words, each number is zero padded to four
  22769. # digits, and non digits are removed.
  22770. ax_compare_version_A=`echo "$GDLIB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  22771. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  22772. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  22773. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  22774. -e 's/[^0-9]//g'`
  22775. ax_compare_version_B=`echo "2.0.33" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
  22776. -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
  22777. -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
  22778. -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
  22779. -e 's/[^0-9]//g'`
  22780. ax_compare_version=`echo "x$ax_compare_version_A
  22781. x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
  22782. if test "$ax_compare_version" = "true" ; then
  22783. use_gd="No (version too old)"
  22784. fi
  22785. if test "$use_gd" != ""; then
  22786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD library version $GDLIB_VERSION < 2.0.33" >&5
  22787. $as_echo "$as_me: WARNING: GD library version $GDLIB_VERSION < 2.0.33" >&2;}
  22788. fi
  22789. else
  22790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD neither gdlib pkgconfig nor gdlib-config was found" >&5
  22791. $as_echo "$as_me: WARNING: GD neither gdlib pkgconfig nor gdlib-config was found" >&2;}
  22792. fi
  22793. else
  22794. GDLIB_CFLAGS=$pkg_cv_GDLIB_CFLAGS
  22795. GDLIB_LIBS=$pkg_cv_GDLIB_LIBS
  22796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22797. $as_echo "yes" >&6; }
  22798. have_gdlib=1
  22799. # FIXME - why no features in the gdlib.pc?
  22800. GD_FEATURES="GD_PNG GD_JPEG GD_XPM GD_FONTCONFIG GD_FREETYPE GD_GIF"
  22801. fi
  22802. if test "$have_gdlib" != ""; then
  22803. cat >>confdefs.h <<_ACEOF
  22804. #define HAVE_GDLIB 1
  22805. _ACEOF
  22806. for f in $GD_FEATURES ; do
  22807. if test "$f" = "GD_PNG"; then
  22808. cat >>confdefs.h <<_ACEOF
  22809. #define HAVE_GD_PNG 1
  22810. _ACEOF
  22811. fi
  22812. if test "$f" = "GD_JPEG"; then
  22813. cat >>confdefs.h <<_ACEOF
  22814. #define HAVE_GD_JPEG 1
  22815. _ACEOF
  22816. fi
  22817. if test "$f" = "GD_XPM"; then
  22818. cat >>confdefs.h <<_ACEOF
  22819. #define HAVE_GD_XPM 1
  22820. _ACEOF
  22821. fi
  22822. if test "$f" = "GD_FONTCONFIG"; then
  22823. cat >>confdefs.h <<_ACEOF
  22824. #define HAVE_GD_FONTCONFIG 1
  22825. _ACEOF
  22826. have_gd_fontconfig=1
  22827. fi
  22828. if test "$f" = "GD_FREETYPE"; then
  22829. cat >>confdefs.h <<_ACEOF
  22830. #define HAVE_GD_FREETYPE 1
  22831. _ACEOF
  22832. have_gd_freetype=1
  22833. fi
  22834. if test "$f" = "GD_GIF"; then
  22835. cat >>confdefs.h <<_ACEOF
  22836. #define HAVE_GD_GIF 1
  22837. _ACEOF
  22838. fi
  22839. done
  22840. if test "$have_gd_fontconfig" = ""; then
  22841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your libgd was not built with fontconfig support. This may result in problems displaying fonts." >&5
  22842. $as_echo "$as_me: WARNING: Your libgd was not built with fontconfig support. This may result in problems displaying fonts." >&2;}
  22843. fi
  22844. if test "$have_gd_freetype" = ""; then
  22845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your libgd was not built with freetype support. This may result in problems resolving fonts." >&5
  22846. $as_echo "$as_me: WARNING: Your libgd was not built with freetype support. This may result in problems resolving fonts." >&2;}
  22847. fi
  22848. fi
  22849. # prevent explicit use of -I/usr/include as it breaks mingw cross-compiles
  22850. if test "$GDLIB_CFLAGS" = "-I/usr/include"; then
  22851. GDLIB_CFLAGS="";
  22852. fi
  22853. # prevent explicit use of -L/usr/lib or -L/usr/lib64, unnecessary clutter
  22854. if test "$GD_LDFLAGS" = "-L/usr/lib"; then
  22855. GD_LDFLAGS="";
  22856. fi
  22857. if test "$GD_LDFLAGS" = "-L/usr/lib64"; then
  22858. GD_LDFLAGS="";
  22859. fi
  22860. if test "$use_gd" = ""; then
  22861. # see if we can use the external gd lib
  22862. save_CPPFLAGS=$CPPFLAGS
  22863. save_LDFLAGS=$LDFLAGS
  22864. # Check whether --with-gdincludedir was given.
  22865. if test "${with_gdincludedir+set}" = set; then :
  22866. withval=$with_gdincludedir; GDLIB_CFLAGS="-I$withval"
  22867. fi
  22868. CPPFLAGS="$CPPFLAGS $GDLIB_CFLAGS"
  22869. # Check whether --with-gdlibdir was given.
  22870. if test "${with_gdlibdir+set}" = set; then :
  22871. withval=$with_gdlibdir; GD_LDFLAGS="-L$withval"
  22872. fi
  22873. GDLIB_LIBS="$GD_LDFLAGS -lgd $GDLIB_LIBS"
  22874. LDFLAGS="$LDFLAGS $GDLIB_LIBS"
  22875. ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
  22876. if test "x$ac_cv_header_gd_h" = xyes; then :
  22877. else
  22878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional GD library not available - no gd.h" >&5
  22879. $as_echo "$as_me: WARNING: Optional GD library not available - no gd.h" >&2;}
  22880. use_gd="No (gd headers not found)"
  22881. fi
  22882. if test "$use_gd" = ""; then
  22883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgd" >&5
  22884. $as_echo_n "checking for main in -lgd... " >&6; }
  22885. if ${ac_cv_lib_gd_main+:} false; then :
  22886. $as_echo_n "(cached) " >&6
  22887. else
  22888. ac_check_lib_save_LIBS=$LIBS
  22889. LIBS="-lgd $LIBS"
  22890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22891. /* end confdefs.h. */
  22892. int
  22893. main ()
  22894. {
  22895. return main ();
  22896. ;
  22897. return 0;
  22898. }
  22899. _ACEOF
  22900. if ac_fn_c_try_link "$LINENO"; then :
  22901. ac_cv_lib_gd_main=yes
  22902. else
  22903. ac_cv_lib_gd_main=no
  22904. fi
  22905. rm -f core conftest.err conftest.$ac_objext \
  22906. conftest$ac_exeext conftest.$ac_ext
  22907. LIBS=$ac_check_lib_save_LIBS
  22908. fi
  22909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_main" >&5
  22910. $as_echo "$ac_cv_lib_gd_main" >&6; }
  22911. if test "x$ac_cv_lib_gd_main" = xyes; then :
  22912. cat >>confdefs.h <<_ACEOF
  22913. #define HAVE_LIBGD 1
  22914. _ACEOF
  22915. use_gd="Yes"
  22916. else
  22917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional GD library not available" >&5
  22918. $as_echo "$as_me: WARNING: Optional GD library not available" >&2;}
  22919. use_gd="No (library not found)"
  22920. fi
  22921. fi
  22922. LDFLAGS=$save_LDFLAGS
  22923. CPPFLAGS=$save_CPPFLAGS
  22924. fi
  22925. fi
  22926. if test "$use_gd" != "Yes"; then
  22927. with_libgd="no"
  22928. fi
  22929. if test "$with_libgd" = "yes"; then
  22930. WITH_LIBGD_TRUE=
  22931. WITH_LIBGD_FALSE='#'
  22932. else
  22933. WITH_LIBGD_TRUE='#'
  22934. WITH_LIBGD_FALSE=
  22935. fi
  22936. # Check whether --with-glut was given.
  22937. if test "${with_glut+set}" = set; then :
  22938. withval=$with_glut;
  22939. else
  22940. with_glut=yes
  22941. fi
  22942. if test "$with_glut" != "yes"; then
  22943. use_glut="No (disabled)"
  22944. else
  22945. save_CPPFLAGS=$CPPFLAGS
  22946. save_LDFLAGS=$LDFLAGS
  22947. # Check whether --with-glutincludedir was given.
  22948. if test "${with_glutincludedir+set}" = set; then :
  22949. withval=$with_glutincludedir; GLUT_CFLAGS="-I$withval"
  22950. fi
  22951. CPPFLAGS="$CPPFLAGS $GLUT_CFLAGS"
  22952. # Check whether --with-glutlibdir was given.
  22953. if test "${with_glutlibdir+set}" = set; then :
  22954. withval=$with_glutlibdir; GLUT_LIBS="-L$withval"
  22955. fi
  22956. LDFLAGS="$LDFLAGS $GLUT_LIBS"
  22957. ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"
  22958. if test "x$ac_cv_header_GL_glut_h" = xyes; then :
  22959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglut" >&5
  22960. $as_echo_n "checking for main in -lglut... " >&6; }
  22961. if ${ac_cv_lib_glut_main+:} false; then :
  22962. $as_echo_n "(cached) " >&6
  22963. else
  22964. ac_check_lib_save_LIBS=$LIBS
  22965. LIBS="-lglut $LIBS"
  22966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22967. /* end confdefs.h. */
  22968. int
  22969. main ()
  22970. {
  22971. return main ();
  22972. ;
  22973. return 0;
  22974. }
  22975. _ACEOF
  22976. if ac_fn_c_try_link "$LINENO"; then :
  22977. ac_cv_lib_glut_main=yes
  22978. else
  22979. ac_cv_lib_glut_main=no
  22980. fi
  22981. rm -f core conftest.err conftest.$ac_objext \
  22982. conftest$ac_exeext conftest.$ac_ext
  22983. LIBS=$ac_check_lib_save_LIBS
  22984. fi
  22985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_main" >&5
  22986. $as_echo "$ac_cv_lib_glut_main" >&6; }
  22987. if test "x$ac_cv_lib_glut_main" = xyes; then :
  22988. GLUT_LIBS="$GLUT_LIBS -lglut"
  22989. use_glut="Yes"
  22990. cat >>confdefs.h <<_ACEOF
  22991. #define HAVE_GLUT 1
  22992. _ACEOF
  22993. else
  22994. use_glut="No (missing libglut)"
  22995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional glut library not available" >&5
  22996. $as_echo "$as_me: WARNING: Optional glut library not available" >&2;}
  22997. fi
  22998. else
  22999. use_glut="No (missing GL/glut.h)"
  23000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional glut library not available - no GL/glut.h" >&5
  23001. $as_echo "$as_me: WARNING: Optional glut library not available - no GL/glut.h" >&2;}
  23002. fi
  23003. fi
  23004. LDFLAGS=$save_LDFLAGS
  23005. CPPFLAGS=$save_CPPFLAGS
  23006. # -----------------------------------
  23007. # tclInt.h
  23008. if test -f "$TCL_SRC_DIR/generic/tclInt.h"; then
  23009. TCLINT_INCLUDES="-I$TCL_SRC_DIR/generic"
  23010. else
  23011. if test -f "/usr/include/tclInt.h"; then
  23012. TCLINT_INCLUDES=""
  23013. else
  23014. if test -f "/usr/local/include/tclInt.h"; then
  23015. TCLINT_INCLUDES="-I/usr/local/include"
  23016. fi
  23017. fi
  23018. fi
  23019. # ------------------------------------
  23020. # triangle.[ch]
  23021. if test -f "lib/sfdpgen/triangle.c"; then
  23022. if test -f "lib/sfdpgen/triangle.h"; then
  23023. cat >>confdefs.h <<_ACEOF
  23024. #define HAVE_TRIANGLE 1
  23025. _ACEOF
  23026. fi
  23027. fi
  23028. # ----------------------------------
  23029. # tcl/tk pkgIndex.tcl generation
  23030. TCL_PKGINDEX=""
  23031. TCL_PKGINDEX_GD=""
  23032. TCL_PKGINDEX_SWIG=""
  23033. #TK_PKGINDEX=""
  23034. if test "$use_tcl" = "Yes"; then
  23035. TCL_PKGINDEX="tcldot/pkgIndex.tcl tclpathplan/pkgIndex.tcl"
  23036. if test "$with_libgd" = "yes"; then
  23037. TCL_PKGINDEX_GD="gdtclft/pkgIndex.tcl"
  23038. fi
  23039. if test "$SWIG" != ""; then
  23040. TCL_PKGINDEX_SWIG="gv/pkgIndex.tcl"
  23041. fi
  23042. fi
  23043. # Check whether --with-sfdp was given.
  23044. if test "${with_sfdp+set}" = set; then :
  23045. withval=$with_sfdp;
  23046. else
  23047. with_sfdp=yes
  23048. fi
  23049. if test "$with_sfdp" != "yes"; then
  23050. use_sfdp="No (disabled)"
  23051. else
  23052. use_sfdp="Yes"
  23053. cat >>confdefs.h <<_ACEOF
  23054. #define SFDP 1
  23055. _ACEOF
  23056. fi
  23057. if test "$use_sfdp" = "Yes"; then
  23058. WITH_SFDP_TRUE=
  23059. WITH_SFDP_FALSE='#'
  23060. else
  23061. WITH_SFDP_TRUE='#'
  23062. WITH_SFDP_FALSE=
  23063. fi
  23064. # Check whether --with-smyrna was given.
  23065. if test "${with_smyrna+set}" = set; then :
  23066. withval=$with_smyrna;
  23067. else
  23068. with_smyrna=yes
  23069. fi
  23070. if test "$with_smyrna" != "yes"; then
  23071. use_smyrna="No (disabled)"
  23072. else
  23073. if test "$use_gtk" != "Yes"; then
  23074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SMYRNA requires GTK" >&5
  23075. $as_echo "$as_me: WARNING: SMYRNA requires GTK" >&2;}
  23076. requires=" gtk+"
  23077. fi
  23078. if test "$use_gtkglext" != "Yes"; then
  23079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SMYRNA requires GTKGLEXT" >&5
  23080. $as_echo "$as_me: WARNING: SMYRNA requires GTKGLEXT" >&2;}
  23081. requires="$requires gtkglext"
  23082. fi
  23083. if test "$use_glade" != "Yes"; then
  23084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SMYRNA requires GLADE" >&5
  23085. $as_echo "$as_me: WARNING: SMYRNA requires GLADE" >&2;}
  23086. requires="$requires glade"
  23087. fi
  23088. if test "$use_gts" != "Yes"; then
  23089. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SMYRNA requires GTS" >&5
  23090. $as_echo "$as_me: WARNING: SMYRNA requires GTS" >&2;}
  23091. requires="$requires gts"
  23092. fi
  23093. if test "$use_glut" != "Yes"; then
  23094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SMYRNA requires GLUT" >&5
  23095. $as_echo "$as_me: WARNING: SMYRNA requires GLUT" >&2;}
  23096. requires="$requires glut"
  23097. fi
  23098. if test "$requires" != ""; then
  23099. use_smyrna="No (requires:$requires)"
  23100. else
  23101. use_smyrna="Yes"
  23102. fi
  23103. fi
  23104. if test "$use_smyrna" = "Yes"; then
  23105. WITH_SMYRNA_TRUE=
  23106. WITH_SMYRNA_FALSE='#'
  23107. else
  23108. WITH_SMYRNA_TRUE='#'
  23109. WITH_SMYRNA_FALSE=
  23110. fi
  23111. # Check whether --with-ortho was given.
  23112. if test "${with_ortho+set}" = set; then :
  23113. withval=$with_ortho;
  23114. else
  23115. with_ortho=yes
  23116. fi
  23117. if test "$with_ortho" != "yes"; then
  23118. use_ortho="No (disabled)"
  23119. else
  23120. use_ortho="Yes"
  23121. cat >>confdefs.h <<_ACEOF
  23122. #define ORTHO 1
  23123. _ACEOF
  23124. fi
  23125. if test "$use_ortho" = "Yes"; then
  23126. WITH_ORTHO_TRUE=
  23127. WITH_ORTHO_FALSE='#'
  23128. else
  23129. WITH_ORTHO_TRUE='#'
  23130. WITH_ORTHO_FALSE=
  23131. fi
  23132. # Check whether --with-digcola was given.
  23133. if test "${with_digcola+set}" = set; then :
  23134. withval=$with_digcola;
  23135. else
  23136. with_digcola=yes
  23137. fi
  23138. if test "$with_digcola" != "yes"; then
  23139. use_digcola="No (disabled)"
  23140. else
  23141. use_digcola="Yes"
  23142. cat >>confdefs.h <<_ACEOF
  23143. #define DIGCOLA 1
  23144. _ACEOF
  23145. fi
  23146. # Check whether --with-ipsepcola was given.
  23147. if test "${with_ipsepcola+set}" = set; then :
  23148. withval=$with_ipsepcola;
  23149. else
  23150. with_ipsepcola=yes
  23151. fi
  23152. if test "$with_ipsepcola" != "yes"; then
  23153. use_ipsepcola="No (disabled)"
  23154. else
  23155. if test "$use_digcola" != "Yes"; then
  23156. use_ipsepcola="No (requires: digcola)"
  23157. else
  23158. use_ipsepcola="Yes"
  23159. cat >>confdefs.h <<_ACEOF
  23160. #define IPSEPCOLA 1
  23161. _ACEOF
  23162. IPSEPCOLA_INCLUDES='-I$(top_srcdir)/lib/vpsc'
  23163. IPSEPCOLA_LIBS='$(top_builddir)/lib/vpsc/libvpsc_C.la'
  23164. fi
  23165. fi
  23166. if test "$use_ipsepcola" = "Yes"; then
  23167. WITH_IPSEPCOLA_TRUE=
  23168. WITH_IPSEPCOLA_FALSE='#'
  23169. else
  23170. WITH_IPSEPCOLA_TRUE='#'
  23171. WITH_IPSEPCOLA_FALSE=
  23172. fi
  23173. # -----------------------------------------------------------------------
  23174. # This is a historical artifact ... there are no other choices these days
  23175. # This #define is never used in our sources,
  23176. # but apparently may still be in use by others
  23177. cat >>confdefs.h <<_ACEOF
  23178. #define WITH_CGRAPH 1
  23179. _ACEOF
  23180. if true; then
  23181. WITH_CGRAPH_TRUE=
  23182. WITH_CGRAPH_FALSE='#'
  23183. else
  23184. WITH_CGRAPH_TRUE='#'
  23185. WITH_CGRAPH_FALSE=
  23186. fi
  23187. # -----------------------------------------------------------------------
  23188. # Generate Makefiles
  23189. # tests/regression_tests/vuln/Makefile was removed
  23190. ac_config_files="$ac_config_files Makefile debian/changelog debian/libgv-php5.install doc/Makefile doc/info/Makefile doc/schema/Makefile contrib/Makefile contrib/prune/Makefile contrib/diffimg/Makefile graphs/Makefile graphs/directed/Makefile graphs/undirected/Makefile lib/Makefile lib/util/Makefile lib/cdt/Makefile lib/cdt/libcdt.pc lib/cgraph/Makefile lib/cgraph/libcgraph.pc lib/rbtree/Makefile lib/pathplan/Makefile lib/pathplan/libpathplan.pc lib/ast/Makefile lib/sfio/Makefile lib/sfio/Sfio_f/Makefile lib/vmalloc/Makefile lib/dotgen/Makefile lib/neatogen/Makefile lib/fdpgen/Makefile lib/sparse/Makefile lib/mingle/Makefile lib/label/Makefile lib/sfdpgen/Makefile lib/sfdpgen/libsfdp.pc lib/osage/Makefile lib/edgepaint/Makefile lib/gvpr/Makefile lib/gvpr/libgvpr.pc lib/circogen/Makefile lib/twopigen/Makefile lib/patchwork/Makefile lib/pack/Makefile lib/ortho/Makefile lib/expr/Makefile lib/expr/libexpr.pc lib/common/Makefile lib/vpsc/Makefile lib/gvc/Makefile lib/gvc/libgvc.pc lib/xdot/Makefile lib/xdot/libxdot.pc lib/topfish/Makefile lib/glcomp/Makefile macosx/Info.plist macosx/build/graphviz.pmdoc/01local.xml macosx/build/graphviz.pmdoc/02graphviz.xml plugin/Makefile plugin/core/Makefile plugin/devil/Makefile plugin/gd/Makefile plugin/gdk/Makefile plugin/gdiplus/Makefile plugin/gs/Makefile plugin/kitty/Makefile plugin/lasi/Makefile plugin/pango/Makefile plugin/poppler/Makefile plugin/quartz/Makefile plugin/rsvg/Makefile plugin/webp/Makefile plugin/xlib/Makefile plugin/dot_layout/Makefile plugin/neato_layout/Makefile plugin/vt/Makefile cmd/Makefile cmd/dot/Makefile cmd/tools/Makefile cmd/gvpr/Makefile cmd/gvpr/lib/Makefile cmd/smyrna/Makefile cmd/gvmap/Makefile cmd/mingle/Makefile cmd/edgepaint/Makefile cmd/gvedit/Makefile cmd/gvedit/gvedit.pro cmd/gvedit/ui/Makefile cmd/gvedit/images/Makefile tclpkg/Makefile tclpkg/tclstubs/Makefile tclpkg/gdtclft/Makefile tclpkg/gdtclft/demo/Makefile tclpkg/tcldot/Makefile tclpkg/tcldot/demo/Makefile tclpkg/tclpathplan/Makefile tclpkg/tclpathplan/demo/Makefile tclpkg/tclpathplan/demo/pathplan_data/Makefile tclpkg/gv/Makefile tclpkg/gv/demo/Makefile tclpkg/gv/META.gv tests/graphs/Makefile tests/linux.x86/Makefile tests/Makefile tests/regression_tests/Makefile tests/regression_tests/shapes/Makefile tests/regression_tests/shapes/reference/Makefile tests/regression_tests/vuln/Makefile tests/regression_tests/vuln/input/Makefile tests/regression_tests/vuln/reference/Makefile share/Makefile share/examples/Makefile share/gui/Makefile redhat/graphviz.spec.fedora redhat/graphviz.spec.rhel Doxyfile"
  23191. cat >confcache <<\_ACEOF
  23192. # This file is a shell script that caches the results of configure
  23193. # tests run on this system so they can be shared between configure
  23194. # scripts and configure runs, see configure's option --config-cache.
  23195. # It is not useful on other systems. If it contains results you don't
  23196. # want to keep, you may remove or edit it.
  23197. #
  23198. # config.status only pays attention to the cache file if you give it
  23199. # the --recheck option to rerun configure.
  23200. #
  23201. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23202. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23203. # following values.
  23204. _ACEOF
  23205. # The following way of writing the cache mishandles newlines in values,
  23206. # but we know of no workaround that is simple, portable, and efficient.
  23207. # So, we kill variables containing newlines.
  23208. # Ultrix sh set writes to stderr and can't be redirected directly,
  23209. # and sets the high bit in the cache file unless we assign to the vars.
  23210. (
  23211. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23212. eval ac_val=\$$ac_var
  23213. case $ac_val in #(
  23214. *${as_nl}*)
  23215. case $ac_var in #(
  23216. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23217. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23218. esac
  23219. case $ac_var in #(
  23220. _ | IFS | as_nl) ;; #(
  23221. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23222. *) { eval $ac_var=; unset $ac_var;} ;;
  23223. esac ;;
  23224. esac
  23225. done
  23226. (set) 2>&1 |
  23227. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23228. *${as_nl}ac_space=\ *)
  23229. # `set' does not quote correctly, so add quotes: double-quote
  23230. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23231. sed -n \
  23232. "s/'/'\\\\''/g;
  23233. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23234. ;; #(
  23235. *)
  23236. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23237. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23238. ;;
  23239. esac |
  23240. sort
  23241. ) |
  23242. sed '
  23243. /^ac_cv_env_/b end
  23244. t clear
  23245. :clear
  23246. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23247. t end
  23248. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23249. :end' >>confcache
  23250. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23251. if test -w "$cache_file"; then
  23252. if test "x$cache_file" != "x/dev/null"; then
  23253. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23254. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23255. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23256. cat confcache >"$cache_file"
  23257. else
  23258. case $cache_file in #(
  23259. */* | ?:*)
  23260. mv -f confcache "$cache_file"$$ &&
  23261. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23262. *)
  23263. mv -f confcache "$cache_file" ;;
  23264. esac
  23265. fi
  23266. fi
  23267. else
  23268. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23269. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23270. fi
  23271. fi
  23272. rm -f confcache
  23273. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23274. # Let make expand exec_prefix.
  23275. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23276. DEFS=-DHAVE_CONFIG_H
  23277. ac_libobjs=
  23278. ac_ltlibobjs=
  23279. U=
  23280. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23281. # 1. Remove the extension, and $U if already installed.
  23282. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23283. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23284. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23285. # will be set to the directory where LIBOBJS objects are built.
  23286. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23287. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23288. done
  23289. LIBOBJS=$ac_libobjs
  23290. LTLIBOBJS=$ac_ltlibobjs
  23291. if test -z "${WITH_WIN32_TRUE}" && test -z "${WITH_WIN32_FALSE}"; then
  23292. as_fn_error $? "conditional \"WITH_WIN32\" was never defined.
  23293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23294. fi
  23295. if test -z "${WITH_CYGWIN_TRUE}" && test -z "${WITH_CYGWIN_FALSE}"; then
  23296. as_fn_error $? "conditional \"WITH_CYGWIN\" was never defined.
  23297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23298. fi
  23299. if test -z "${WITH_MINGW_TRUE}" && test -z "${WITH_MINGW_FALSE}"; then
  23300. as_fn_error $? "conditional \"WITH_MINGW\" was never defined.
  23301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23302. fi
  23303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  23304. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  23305. if test -n "$am_sleep_pid"; then
  23306. # Hide warnings about reused PIDs.
  23307. wait $am_sleep_pid 2>/dev/null
  23308. fi
  23309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  23310. $as_echo "done" >&6; }
  23311. if test -n "$EXEEXT"; then
  23312. am__EXEEXT_TRUE=
  23313. am__EXEEXT_FALSE='#'
  23314. else
  23315. am__EXEEXT_TRUE='#'
  23316. am__EXEEXT_FALSE=
  23317. fi
  23318. if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  23319. as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
  23320. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23321. fi
  23322. if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
  23323. as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
  23324. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23325. fi
  23326. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  23327. as_fn_error $? "conditional \"AMDEP\" was never defined.
  23328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23329. fi
  23330. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  23331. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  23332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23333. fi
  23334. if test -z "${ENABLE_MAN_PDFS_TRUE}" && test -z "${ENABLE_MAN_PDFS_FALSE}"; then
  23335. as_fn_error $? "conditional \"ENABLE_MAN_PDFS\" was never defined.
  23336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23337. fi
  23338. if test -z "${INSTALL_DEMOS_TRUE}" && test -z "${INSTALL_DEMOS_FALSE}"; then
  23339. as_fn_error $? "conditional \"INSTALL_DEMOS\" was never defined.
  23340. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23341. fi
  23342. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  23343. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  23344. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23345. fi
  23346. if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
  23347. as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
  23348. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23349. fi
  23350. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  23351. as_fn_error $? "conditional \"DEBUG\" was never defined.
  23352. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23353. fi
  23354. if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  23355. as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
  23356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23357. fi
  23358. if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  23359. as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
  23360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23361. fi
  23362. LT_CONFIG_H=config.h
  23363. _ltdl_libobjs=
  23364. _ltdl_ltlibobjs=
  23365. if test -n "$_LT_LIBOBJS"; then
  23366. # Remove the extension.
  23367. _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
  23368. for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
  23369. _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
  23370. _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
  23371. done
  23372. fi
  23373. ltdl_LIBOBJS=$_ltdl_libobjs
  23374. ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
  23375. if test -z "${ENABLE_LTDL_TRUE}" && test -z "${ENABLE_LTDL_FALSE}"; then
  23376. as_fn_error $? "conditional \"ENABLE_LTDL\" was never defined.
  23377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23378. fi
  23379. if test -z "${WITH_X_TRUE}" && test -z "${WITH_X_FALSE}"; then
  23380. as_fn_error $? "conditional \"WITH_X\" was never defined.
  23381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23382. fi
  23383. if test -z "${WITH_SWIG_TRUE}" && test -z "${WITH_SWIG_FALSE}"; then
  23384. as_fn_error $? "conditional \"WITH_SWIG\" was never defined.
  23385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23386. fi
  23387. if test -z "${WITH_SWIG_PHP_DATA_TRUE}" && test -z "${WITH_SWIG_PHP_DATA_FALSE}"; then
  23388. as_fn_error $? "conditional \"WITH_SWIG_PHP_DATA\" was never defined.
  23389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23390. fi
  23391. if test -z "${WITH_SHARP_TRUE}" && test -z "${WITH_SHARP_FALSE}"; then
  23392. as_fn_error $? "conditional \"WITH_SHARP\" was never defined.
  23393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23394. fi
  23395. if test -z "${WITH_D_TRUE}" && test -z "${WITH_D_FALSE}"; then
  23396. as_fn_error $? "conditional \"WITH_D\" was never defined.
  23397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23398. fi
  23399. if test -z "${WITH_GO_TRUE}" && test -z "${WITH_GO_FALSE}"; then
  23400. as_fn_error $? "conditional \"WITH_GO\" was never defined.
  23401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23402. fi
  23403. if test -z "${WITH_GUILE_TRUE}" && test -z "${WITH_GUILE_FALSE}"; then
  23404. as_fn_error $? "conditional \"WITH_GUILE\" was never defined.
  23405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23406. fi
  23407. if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then
  23408. as_fn_error $? "conditional \"WITH_JAVA\" was never defined.
  23409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23410. fi
  23411. if test -z "${WITH_JAVASCRIPT_TRUE}" && test -z "${WITH_JAVASCRIPT_FALSE}"; then
  23412. as_fn_error $? "conditional \"WITH_JAVASCRIPT\" was never defined.
  23413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23414. fi
  23415. if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
  23416. as_fn_error $? "conditional \"WITH_LUA\" was never defined.
  23417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23418. fi
  23419. if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
  23420. as_fn_error $? "conditional \"WITH_PERL\" was never defined.
  23421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23422. fi
  23423. if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
  23424. as_fn_error $? "conditional \"WITH_PHP\" was never defined.
  23425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23426. fi
  23427. if test -z "${WITH_PYTHON3_TRUE}" && test -z "${WITH_PYTHON3_FALSE}"; then
  23428. as_fn_error $? "conditional \"WITH_PYTHON3\" was never defined.
  23429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23430. fi
  23431. if test -z "${WITH_R_TRUE}" && test -z "${WITH_R_FALSE}"; then
  23432. as_fn_error $? "conditional \"WITH_R\" was never defined.
  23433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23434. fi
  23435. if test -z "${WITH_RUBY_TRUE}" && test -z "${WITH_RUBY_FALSE}"; then
  23436. as_fn_error $? "conditional \"WITH_RUBY\" was never defined.
  23437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23438. fi
  23439. if test -z "${WITH_TCL_TRUE}" && test -z "${WITH_TCL_FALSE}"; then
  23440. as_fn_error $? "conditional \"WITH_TCL\" was never defined.
  23441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23442. fi
  23443. if test -z "${WITH_DEVIL_TRUE}" && test -z "${WITH_DEVIL_FALSE}"; then
  23444. as_fn_error $? "conditional \"WITH_DEVIL\" was never defined.
  23445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23446. fi
  23447. if test -z "${WITH_WEBP_TRUE}" && test -z "${WITH_WEBP_FALSE}"; then
  23448. as_fn_error $? "conditional \"WITH_WEBP\" was never defined.
  23449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23450. fi
  23451. if test -z "${WITH_POPPLER_TRUE}" && test -z "${WITH_POPPLER_FALSE}"; then
  23452. as_fn_error $? "conditional \"WITH_POPPLER\" was never defined.
  23453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23454. fi
  23455. if test -z "${WITH_RSVG_TRUE}" && test -z "${WITH_RSVG_FALSE}"; then
  23456. as_fn_error $? "conditional \"WITH_RSVG\" was never defined.
  23457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23458. fi
  23459. if test -z "${WITH_GS_TRUE}" && test -z "${WITH_GS_FALSE}"; then
  23460. as_fn_error $? "conditional \"WITH_GS\" was never defined.
  23461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23462. fi
  23463. if test -z "${WITH_PANGOCAIRO_TRUE}" && test -z "${WITH_PANGOCAIRO_FALSE}"; then
  23464. as_fn_error $? "conditional \"WITH_PANGOCAIRO\" was never defined.
  23465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23466. fi
  23467. if test -z "${WITH_LASI_TRUE}" && test -z "${WITH_LASI_FALSE}"; then
  23468. as_fn_error $? "conditional \"WITH_LASI\" was never defined.
  23469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23470. fi
  23471. if test -z "${WITH_GDK_TRUE}" && test -z "${WITH_GDK_FALSE}"; then
  23472. as_fn_error $? "conditional \"WITH_GDK\" was never defined.
  23473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23474. fi
  23475. if test -z "${WITH_GDK_PIXBUF_TRUE}" && test -z "${WITH_GDK_PIXBUF_FALSE}"; then
  23476. as_fn_error $? "conditional \"WITH_GDK_PIXBUF\" was never defined.
  23477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23478. fi
  23479. if test -z "${WITH_GTK_TRUE}" && test -z "${WITH_GTK_FALSE}"; then
  23480. as_fn_error $? "conditional \"WITH_GTK\" was never defined.
  23481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23482. fi
  23483. if test -z "${WITH_GTKGL_TRUE}" && test -z "${WITH_GTKGL_FALSE}"; then
  23484. as_fn_error $? "conditional \"WITH_GTKGL\" was never defined.
  23485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23486. fi
  23487. if test -z "${WITH_GTKGLEXT_TRUE}" && test -z "${WITH_GTKGLEXT_FALSE}"; then
  23488. as_fn_error $? "conditional \"WITH_GTKGLEXT\" was never defined.
  23489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23490. fi
  23491. if test -z "${WITH_GTS_TRUE}" && test -z "${WITH_GTS_FALSE}"; then
  23492. as_fn_error $? "conditional \"WITH_GTS\" was never defined.
  23493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23494. fi
  23495. if test -z "${WITH_ANN_TRUE}" && test -z "${WITH_ANN_FALSE}"; then
  23496. as_fn_error $? "conditional \"WITH_ANN\" was never defined.
  23497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23498. fi
  23499. if test -z "${WITH_GLADE_TRUE}" && test -z "${WITH_GLADE_FALSE}"; then
  23500. as_fn_error $? "conditional \"WITH_GLADE\" was never defined.
  23501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23502. fi
  23503. if test -z "${WITH_QT_TRUE}" && test -z "${WITH_QT_FALSE}"; then
  23504. as_fn_error $? "conditional \"WITH_QT\" was never defined.
  23505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23506. fi
  23507. if test -z "${WITH_QUARTZ_TRUE}" && test -z "${WITH_QUARTZ_FALSE}"; then
  23508. as_fn_error $? "conditional \"WITH_QUARTZ\" was never defined.
  23509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23510. fi
  23511. if test -z "${WITH_GDIPLUS_TRUE}" && test -z "${WITH_GDIPLUS_FALSE}"; then
  23512. as_fn_error $? "conditional \"WITH_GDIPLUS\" was never defined.
  23513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23514. fi
  23515. if test -z "${WITH_LIBGD_TRUE}" && test -z "${WITH_LIBGD_FALSE}"; then
  23516. as_fn_error $? "conditional \"WITH_LIBGD\" was never defined.
  23517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23518. fi
  23519. if test -z "${WITH_SFDP_TRUE}" && test -z "${WITH_SFDP_FALSE}"; then
  23520. as_fn_error $? "conditional \"WITH_SFDP\" was never defined.
  23521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23522. fi
  23523. if test -z "${WITH_SMYRNA_TRUE}" && test -z "${WITH_SMYRNA_FALSE}"; then
  23524. as_fn_error $? "conditional \"WITH_SMYRNA\" was never defined.
  23525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23526. fi
  23527. if test -z "${WITH_ORTHO_TRUE}" && test -z "${WITH_ORTHO_FALSE}"; then
  23528. as_fn_error $? "conditional \"WITH_ORTHO\" was never defined.
  23529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23530. fi
  23531. if test -z "${WITH_IPSEPCOLA_TRUE}" && test -z "${WITH_IPSEPCOLA_FALSE}"; then
  23532. as_fn_error $? "conditional \"WITH_IPSEPCOLA\" was never defined.
  23533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23534. fi
  23535. if test -z "${WITH_CGRAPH_TRUE}" && test -z "${WITH_CGRAPH_FALSE}"; then
  23536. as_fn_error $? "conditional \"WITH_CGRAPH\" was never defined.
  23537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23538. fi
  23539. : "${CONFIG_STATUS=./config.status}"
  23540. ac_write_fail=0
  23541. ac_clean_files_save=$ac_clean_files
  23542. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23543. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23544. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23545. as_write_fail=0
  23546. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23547. #! $SHELL
  23548. # Generated by $as_me.
  23549. # Run this file to recreate the current configuration.
  23550. # Compiler output produced by configure, useful for debugging
  23551. # configure, is in config.log if it exists.
  23552. debug=false
  23553. ac_cs_recheck=false
  23554. ac_cs_silent=false
  23555. SHELL=\${CONFIG_SHELL-$SHELL}
  23556. export SHELL
  23557. _ASEOF
  23558. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23559. ## -------------------- ##
  23560. ## M4sh Initialization. ##
  23561. ## -------------------- ##
  23562. # Be more Bourne compatible
  23563. DUALCASE=1; export DUALCASE # for MKS sh
  23564. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23565. emulate sh
  23566. NULLCMD=:
  23567. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23568. # is contrary to our usage. Disable this feature.
  23569. alias -g '${1+"$@"}'='"$@"'
  23570. setopt NO_GLOB_SUBST
  23571. else
  23572. case `(set -o) 2>/dev/null` in #(
  23573. *posix*) :
  23574. set -o posix ;; #(
  23575. *) :
  23576. ;;
  23577. esac
  23578. fi
  23579. as_nl='
  23580. '
  23581. export as_nl
  23582. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23583. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23584. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23585. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23586. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23587. # but without wasting forks for bash or zsh.
  23588. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23589. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23590. as_echo='print -r --'
  23591. as_echo_n='print -rn --'
  23592. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23593. as_echo='printf %s\n'
  23594. as_echo_n='printf %s'
  23595. else
  23596. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23597. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23598. as_echo_n='/usr/ucb/echo -n'
  23599. else
  23600. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23601. as_echo_n_body='eval
  23602. arg=$1;
  23603. case $arg in #(
  23604. *"$as_nl"*)
  23605. expr "X$arg" : "X\\(.*\\)$as_nl";
  23606. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23607. esac;
  23608. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23609. '
  23610. export as_echo_n_body
  23611. as_echo_n='sh -c $as_echo_n_body as_echo'
  23612. fi
  23613. export as_echo_body
  23614. as_echo='sh -c $as_echo_body as_echo'
  23615. fi
  23616. # The user is always right.
  23617. if test "${PATH_SEPARATOR+set}" != set; then
  23618. PATH_SEPARATOR=:
  23619. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23620. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23621. PATH_SEPARATOR=';'
  23622. }
  23623. fi
  23624. # IFS
  23625. # We need space, tab and new line, in precisely that order. Quoting is
  23626. # there to prevent editors from complaining about space-tab.
  23627. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23628. # splitting by setting IFS to empty value.)
  23629. IFS=" "" $as_nl"
  23630. # Find who we are. Look in the path if we contain no directory separator.
  23631. as_myself=
  23632. case $0 in #((
  23633. *[\\/]* ) as_myself=$0 ;;
  23634. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23635. for as_dir in $PATH
  23636. do
  23637. IFS=$as_save_IFS
  23638. test -z "$as_dir" && as_dir=.
  23639. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23640. done
  23641. IFS=$as_save_IFS
  23642. ;;
  23643. esac
  23644. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23645. # in which case we are not to be found in the path.
  23646. if test "x$as_myself" = x; then
  23647. as_myself=$0
  23648. fi
  23649. if test ! -f "$as_myself"; then
  23650. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23651. exit 1
  23652. fi
  23653. # Unset variables that we do not need and which cause bugs (e.g. in
  23654. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23655. # suppresses any "Segmentation fault" message there. '((' could
  23656. # trigger a bug in pdksh 5.2.14.
  23657. for as_var in BASH_ENV ENV MAIL MAILPATH
  23658. do eval test x\${$as_var+set} = xset \
  23659. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23660. done
  23661. PS1='$ '
  23662. PS2='> '
  23663. PS4='+ '
  23664. # NLS nuisances.
  23665. LC_ALL=C
  23666. export LC_ALL
  23667. LANGUAGE=C
  23668. export LANGUAGE
  23669. # CDPATH.
  23670. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23671. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23672. # ----------------------------------------
  23673. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23674. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23675. # script with STATUS, using 1 if that was 0.
  23676. as_fn_error ()
  23677. {
  23678. as_status=$1; test $as_status -eq 0 && as_status=1
  23679. if test "$4"; then
  23680. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23681. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23682. fi
  23683. $as_echo "$as_me: error: $2" >&2
  23684. as_fn_exit $as_status
  23685. } # as_fn_error
  23686. # as_fn_set_status STATUS
  23687. # -----------------------
  23688. # Set $? to STATUS, without forking.
  23689. as_fn_set_status ()
  23690. {
  23691. return $1
  23692. } # as_fn_set_status
  23693. # as_fn_exit STATUS
  23694. # -----------------
  23695. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23696. as_fn_exit ()
  23697. {
  23698. set +e
  23699. as_fn_set_status $1
  23700. exit $1
  23701. } # as_fn_exit
  23702. # as_fn_unset VAR
  23703. # ---------------
  23704. # Portably unset VAR.
  23705. as_fn_unset ()
  23706. {
  23707. { eval $1=; unset $1;}
  23708. }
  23709. as_unset=as_fn_unset
  23710. # as_fn_append VAR VALUE
  23711. # ----------------------
  23712. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23713. # advantage of any shell optimizations that allow amortized linear growth over
  23714. # repeated appends, instead of the typical quadratic growth present in naive
  23715. # implementations.
  23716. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23717. eval 'as_fn_append ()
  23718. {
  23719. eval $1+=\$2
  23720. }'
  23721. else
  23722. as_fn_append ()
  23723. {
  23724. eval $1=\$$1\$2
  23725. }
  23726. fi # as_fn_append
  23727. # as_fn_arith ARG...
  23728. # ------------------
  23729. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23730. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23731. # must be portable across $(()) and expr.
  23732. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23733. eval 'as_fn_arith ()
  23734. {
  23735. as_val=$(( $* ))
  23736. }'
  23737. else
  23738. as_fn_arith ()
  23739. {
  23740. as_val=`expr "$@" || test $? -eq 1`
  23741. }
  23742. fi # as_fn_arith
  23743. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23744. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23745. as_expr=expr
  23746. else
  23747. as_expr=false
  23748. fi
  23749. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23750. as_basename=basename
  23751. else
  23752. as_basename=false
  23753. fi
  23754. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23755. as_dirname=dirname
  23756. else
  23757. as_dirname=false
  23758. fi
  23759. as_me=`$as_basename -- "$0" ||
  23760. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23761. X"$0" : 'X\(//\)$' \| \
  23762. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23763. $as_echo X/"$0" |
  23764. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23765. s//\1/
  23766. q
  23767. }
  23768. /^X\/\(\/\/\)$/{
  23769. s//\1/
  23770. q
  23771. }
  23772. /^X\/\(\/\).*/{
  23773. s//\1/
  23774. q
  23775. }
  23776. s/.*/./; q'`
  23777. # Avoid depending upon Character Ranges.
  23778. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23779. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23780. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23781. as_cr_digits='0123456789'
  23782. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23783. ECHO_C= ECHO_N= ECHO_T=
  23784. case `echo -n x` in #(((((
  23785. -n*)
  23786. case `echo 'xy\c'` in
  23787. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23788. xy) ECHO_C='\c';;
  23789. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23790. ECHO_T=' ';;
  23791. esac;;
  23792. *)
  23793. ECHO_N='-n';;
  23794. esac
  23795. rm -f conf$$ conf$$.exe conf$$.file
  23796. if test -d conf$$.dir; then
  23797. rm -f conf$$.dir/conf$$.file
  23798. else
  23799. rm -f conf$$.dir
  23800. mkdir conf$$.dir 2>/dev/null
  23801. fi
  23802. if (echo >conf$$.file) 2>/dev/null; then
  23803. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23804. as_ln_s='ln -s'
  23805. # ... but there are two gotchas:
  23806. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23807. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23808. # In both cases, we have to default to `cp -pR'.
  23809. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23810. as_ln_s='cp -pR'
  23811. elif ln conf$$.file conf$$ 2>/dev/null; then
  23812. as_ln_s=ln
  23813. else
  23814. as_ln_s='cp -pR'
  23815. fi
  23816. else
  23817. as_ln_s='cp -pR'
  23818. fi
  23819. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23820. rmdir conf$$.dir 2>/dev/null
  23821. # as_fn_mkdir_p
  23822. # -------------
  23823. # Create "$as_dir" as a directory, including parents if necessary.
  23824. as_fn_mkdir_p ()
  23825. {
  23826. case $as_dir in #(
  23827. -*) as_dir=./$as_dir;;
  23828. esac
  23829. test -d "$as_dir" || eval $as_mkdir_p || {
  23830. as_dirs=
  23831. while :; do
  23832. case $as_dir in #(
  23833. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23834. *) as_qdir=$as_dir;;
  23835. esac
  23836. as_dirs="'$as_qdir' $as_dirs"
  23837. as_dir=`$as_dirname -- "$as_dir" ||
  23838. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23839. X"$as_dir" : 'X\(//\)[^/]' \| \
  23840. X"$as_dir" : 'X\(//\)$' \| \
  23841. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23842. $as_echo X"$as_dir" |
  23843. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23844. s//\1/
  23845. q
  23846. }
  23847. /^X\(\/\/\)[^/].*/{
  23848. s//\1/
  23849. q
  23850. }
  23851. /^X\(\/\/\)$/{
  23852. s//\1/
  23853. q
  23854. }
  23855. /^X\(\/\).*/{
  23856. s//\1/
  23857. q
  23858. }
  23859. s/.*/./; q'`
  23860. test -d "$as_dir" && break
  23861. done
  23862. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23863. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23864. } # as_fn_mkdir_p
  23865. if mkdir -p . 2>/dev/null; then
  23866. as_mkdir_p='mkdir -p "$as_dir"'
  23867. else
  23868. test -d ./-p && rmdir ./-p
  23869. as_mkdir_p=false
  23870. fi
  23871. # as_fn_executable_p FILE
  23872. # -----------------------
  23873. # Test if FILE is an executable regular file.
  23874. as_fn_executable_p ()
  23875. {
  23876. test -f "$1" && test -x "$1"
  23877. } # as_fn_executable_p
  23878. as_test_x='test -x'
  23879. as_executable_p=as_fn_executable_p
  23880. # Sed expression to map a string onto a valid CPP name.
  23881. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23882. # Sed expression to map a string onto a valid variable name.
  23883. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23884. exec 6>&1
  23885. ## ----------------------------------- ##
  23886. ## Main body of $CONFIG_STATUS script. ##
  23887. ## ----------------------------------- ##
  23888. _ASEOF
  23889. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23890. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23891. # Save the log message, to keep $0 and so on meaningful, and to
  23892. # report actual input values of CONFIG_FILES etc. instead of their
  23893. # values after options handling.
  23894. ac_log="
  23895. This file was extended by graphviz $as_me 12.2.1, which was
  23896. generated by GNU Autoconf 2.69. Invocation command line was
  23897. CONFIG_FILES = $CONFIG_FILES
  23898. CONFIG_HEADERS = $CONFIG_HEADERS
  23899. CONFIG_LINKS = $CONFIG_LINKS
  23900. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23901. $ $0 $@
  23902. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23903. "
  23904. _ACEOF
  23905. case $ac_config_files in *"
  23906. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23907. esac
  23908. case $ac_config_headers in *"
  23909. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23910. esac
  23911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23912. # Files that config.status was made for.
  23913. config_files="$ac_config_files"
  23914. config_headers="$ac_config_headers"
  23915. config_commands="$ac_config_commands"
  23916. _ACEOF
  23917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23918. ac_cs_usage="\
  23919. \`$as_me' instantiates files and other configuration actions
  23920. from templates according to the current configuration. Unless the files
  23921. and actions are specified as TAGs, all are instantiated by default.
  23922. Usage: $0 [OPTION]... [TAG]...
  23923. -h, --help print this help, then exit
  23924. -V, --version print version number and configuration settings, then exit
  23925. --config print configuration, then exit
  23926. -q, --quiet, --silent
  23927. do not print progress messages
  23928. -d, --debug don't remove temporary files
  23929. --recheck update $as_me by reconfiguring in the same conditions
  23930. --file=FILE[:TEMPLATE]
  23931. instantiate the configuration file FILE
  23932. --header=FILE[:TEMPLATE]
  23933. instantiate the configuration header FILE
  23934. Configuration files:
  23935. $config_files
  23936. Configuration headers:
  23937. $config_headers
  23938. Configuration commands:
  23939. $config_commands
  23940. Report bugs to <https://gitlab.com/graphviz/graphviz/-/issues>."
  23941. _ACEOF
  23942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23943. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23944. ac_cs_version="\\
  23945. graphviz config.status 12.2.1
  23946. configured by $0, generated by GNU Autoconf 2.69,
  23947. with options \\"\$ac_cs_config\\"
  23948. Copyright (C) 2012 Free Software Foundation, Inc.
  23949. This config.status script is free software; the Free Software Foundation
  23950. gives unlimited permission to copy, distribute and modify it."
  23951. ac_pwd='$ac_pwd'
  23952. srcdir='$srcdir'
  23953. INSTALL='$INSTALL'
  23954. MKDIR_P='$MKDIR_P'
  23955. AWK='$AWK'
  23956. test -n "\$AWK" || AWK=awk
  23957. _ACEOF
  23958. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23959. # The default lists apply if the user does not specify any file.
  23960. ac_need_defaults=:
  23961. while test $# != 0
  23962. do
  23963. case $1 in
  23964. --*=?*)
  23965. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23966. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23967. ac_shift=:
  23968. ;;
  23969. --*=)
  23970. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23971. ac_optarg=
  23972. ac_shift=:
  23973. ;;
  23974. *)
  23975. ac_option=$1
  23976. ac_optarg=$2
  23977. ac_shift=shift
  23978. ;;
  23979. esac
  23980. case $ac_option in
  23981. # Handling of the options.
  23982. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23983. ac_cs_recheck=: ;;
  23984. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23985. $as_echo "$ac_cs_version"; exit ;;
  23986. --config | --confi | --conf | --con | --co | --c )
  23987. $as_echo "$ac_cs_config"; exit ;;
  23988. --debug | --debu | --deb | --de | --d | -d )
  23989. debug=: ;;
  23990. --file | --fil | --fi | --f )
  23991. $ac_shift
  23992. case $ac_optarg in
  23993. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23994. '') as_fn_error $? "missing file argument" ;;
  23995. esac
  23996. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23997. ac_need_defaults=false;;
  23998. --header | --heade | --head | --hea )
  23999. $ac_shift
  24000. case $ac_optarg in
  24001. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24002. esac
  24003. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24004. ac_need_defaults=false;;
  24005. --he | --h)
  24006. # Conflict between --help and --header
  24007. as_fn_error $? "ambiguous option: \`$1'
  24008. Try \`$0 --help' for more information.";;
  24009. --help | --hel | -h )
  24010. $as_echo "$ac_cs_usage"; exit ;;
  24011. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24012. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24013. ac_cs_silent=: ;;
  24014. # This is an error.
  24015. -*) as_fn_error $? "unrecognized option: \`$1'
  24016. Try \`$0 --help' for more information." ;;
  24017. *) as_fn_append ac_config_targets " $1"
  24018. ac_need_defaults=false ;;
  24019. esac
  24020. shift
  24021. done
  24022. ac_configure_extra_args=
  24023. if $ac_cs_silent; then
  24024. exec 6>/dev/null
  24025. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24026. fi
  24027. _ACEOF
  24028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24029. if \$ac_cs_recheck; then
  24030. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24031. shift
  24032. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24033. CONFIG_SHELL='$SHELL'
  24034. export CONFIG_SHELL
  24035. exec "\$@"
  24036. fi
  24037. _ACEOF
  24038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24039. exec 5>>config.log
  24040. {
  24041. echo
  24042. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24043. ## Running $as_me. ##
  24044. _ASBOX
  24045. $as_echo "$ac_log"
  24046. } >&5
  24047. _ACEOF
  24048. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24049. #
  24050. # INIT-COMMANDS
  24051. #
  24052. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  24053. # The HP-UX ksh and POSIX shell print the target directory to stdout
  24054. # if CDPATH is set.
  24055. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24056. sed_quote_subst='$sed_quote_subst'
  24057. double_quote_subst='$double_quote_subst'
  24058. delay_variable_subst='$delay_variable_subst'
  24059. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24060. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24061. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24062. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24063. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24064. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24065. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  24066. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24067. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24068. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24069. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24070. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24071. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24072. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24073. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24074. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24075. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24076. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24077. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24078. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24079. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24080. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24081. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24082. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24083. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24084. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24085. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24086. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24087. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24088. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24089. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24090. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24091. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24092. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24093. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24094. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24095. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24096. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24097. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24098. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24099. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24100. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24101. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24102. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24103. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24104. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24105. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24106. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24107. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24108. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24109. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24110. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24111. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24112. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24113. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24114. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24115. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  24116. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24117. 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"`'
  24118. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  24119. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24120. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24121. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  24122. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24123. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24124. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24125. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24126. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24127. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24128. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24129. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24130. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24131. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24132. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24133. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24134. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24135. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24136. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24137. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24138. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24139. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24140. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24141. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24142. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24143. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24144. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24145. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24146. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24147. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24148. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24149. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24150. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24151. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24152. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24153. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24154. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24155. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24156. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24157. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24158. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24159. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24160. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24161. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24162. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24163. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24164. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24165. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24166. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24167. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24168. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24169. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24170. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24171. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24172. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24173. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24174. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24175. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24176. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24177. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24178. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24179. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24180. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24181. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24182. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24183. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24184. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24185. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24186. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24187. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24188. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24189. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24190. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24191. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24192. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24193. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24194. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24195. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24196. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24197. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24198. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24199. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24200. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24201. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24202. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24203. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24204. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24205. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24206. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24207. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24208. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24209. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24210. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24211. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24212. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24213. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24214. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24215. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24216. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24217. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24218. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24219. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24220. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24221. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24222. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24223. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24224. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24225. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24226. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24227. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24228. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24229. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24230. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24231. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24232. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24233. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24234. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24235. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24236. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24237. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24238. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24239. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24240. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24241. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24242. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24243. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24244. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24245. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24246. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24247. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24248. LTCC='$LTCC'
  24249. LTCFLAGS='$LTCFLAGS'
  24250. compiler='$compiler_DEFAULT'
  24251. # A function that is used when there is no print builtin or printf.
  24252. func_fallback_echo ()
  24253. {
  24254. eval 'cat <<_LTECHO_EOF
  24255. \$1
  24256. _LTECHO_EOF'
  24257. }
  24258. # Quote evaled strings.
  24259. for var in SHELL \
  24260. ECHO \
  24261. PATH_SEPARATOR \
  24262. SED \
  24263. GREP \
  24264. EGREP \
  24265. FGREP \
  24266. LD \
  24267. NM \
  24268. LN_S \
  24269. lt_SP2NL \
  24270. lt_NL2SP \
  24271. reload_flag \
  24272. OBJDUMP \
  24273. deplibs_check_method \
  24274. file_magic_cmd \
  24275. file_magic_glob \
  24276. want_nocaseglob \
  24277. DLLTOOL \
  24278. sharedlib_from_linklib_cmd \
  24279. AR \
  24280. AR_FLAGS \
  24281. archiver_list_spec \
  24282. STRIP \
  24283. RANLIB \
  24284. CC \
  24285. CFLAGS \
  24286. compiler \
  24287. lt_cv_sys_global_symbol_pipe \
  24288. lt_cv_sys_global_symbol_to_cdecl \
  24289. lt_cv_sys_global_symbol_to_import \
  24290. lt_cv_sys_global_symbol_to_c_name_address \
  24291. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24292. lt_cv_nm_interface \
  24293. nm_file_list_spec \
  24294. lt_cv_truncate_bin \
  24295. lt_prog_compiler_no_builtin_flag \
  24296. lt_prog_compiler_pic \
  24297. lt_prog_compiler_wl \
  24298. lt_prog_compiler_static \
  24299. lt_cv_prog_compiler_c_o \
  24300. need_locks \
  24301. MANIFEST_TOOL \
  24302. DSYMUTIL \
  24303. NMEDIT \
  24304. LIPO \
  24305. OTOOL \
  24306. OTOOL64 \
  24307. shrext_cmds \
  24308. export_dynamic_flag_spec \
  24309. whole_archive_flag_spec \
  24310. compiler_needs_object \
  24311. with_gnu_ld \
  24312. allow_undefined_flag \
  24313. no_undefined_flag \
  24314. hardcode_libdir_flag_spec \
  24315. hardcode_libdir_separator \
  24316. exclude_expsyms \
  24317. include_expsyms \
  24318. file_list_spec \
  24319. variables_saved_for_relink \
  24320. libname_spec \
  24321. library_names_spec \
  24322. soname_spec \
  24323. install_override_mode \
  24324. finish_eval \
  24325. old_striplib \
  24326. striplib \
  24327. compiler_lib_search_dirs \
  24328. predep_objects \
  24329. postdep_objects \
  24330. predeps \
  24331. postdeps \
  24332. compiler_lib_search_path \
  24333. LD_CXX \
  24334. reload_flag_CXX \
  24335. compiler_CXX \
  24336. lt_prog_compiler_no_builtin_flag_CXX \
  24337. lt_prog_compiler_pic_CXX \
  24338. lt_prog_compiler_wl_CXX \
  24339. lt_prog_compiler_static_CXX \
  24340. lt_cv_prog_compiler_c_o_CXX \
  24341. export_dynamic_flag_spec_CXX \
  24342. whole_archive_flag_spec_CXX \
  24343. compiler_needs_object_CXX \
  24344. with_gnu_ld_CXX \
  24345. allow_undefined_flag_CXX \
  24346. no_undefined_flag_CXX \
  24347. hardcode_libdir_flag_spec_CXX \
  24348. hardcode_libdir_separator_CXX \
  24349. exclude_expsyms_CXX \
  24350. include_expsyms_CXX \
  24351. file_list_spec_CXX \
  24352. compiler_lib_search_dirs_CXX \
  24353. predep_objects_CXX \
  24354. postdep_objects_CXX \
  24355. predeps_CXX \
  24356. postdeps_CXX \
  24357. compiler_lib_search_path_CXX; do
  24358. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24359. *[\\\\\\\`\\"\\\$]*)
  24360. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24361. ;;
  24362. *)
  24363. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24364. ;;
  24365. esac
  24366. done
  24367. # Double-quote double-evaled strings.
  24368. for var in reload_cmds \
  24369. old_postinstall_cmds \
  24370. old_postuninstall_cmds \
  24371. old_archive_cmds \
  24372. extract_expsyms_cmds \
  24373. old_archive_from_new_cmds \
  24374. old_archive_from_expsyms_cmds \
  24375. archive_cmds \
  24376. archive_expsym_cmds \
  24377. module_cmds \
  24378. module_expsym_cmds \
  24379. export_symbols_cmds \
  24380. prelink_cmds \
  24381. postlink_cmds \
  24382. postinstall_cmds \
  24383. postuninstall_cmds \
  24384. finish_cmds \
  24385. sys_lib_search_path_spec \
  24386. configure_time_dlsearch_path \
  24387. configure_time_lt_sys_library_path \
  24388. reload_cmds_CXX \
  24389. old_archive_cmds_CXX \
  24390. old_archive_from_new_cmds_CXX \
  24391. old_archive_from_expsyms_cmds_CXX \
  24392. archive_cmds_CXX \
  24393. archive_expsym_cmds_CXX \
  24394. module_cmds_CXX \
  24395. module_expsym_cmds_CXX \
  24396. export_symbols_cmds_CXX \
  24397. prelink_cmds_CXX \
  24398. postlink_cmds_CXX; do
  24399. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24400. *[\\\\\\\`\\"\\\$]*)
  24401. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24402. ;;
  24403. *)
  24404. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24405. ;;
  24406. esac
  24407. done
  24408. ac_aux_dir='$ac_aux_dir'
  24409. # See if we are running on zsh, and set the options that allow our
  24410. # commands through without removal of \ escapes INIT.
  24411. if test -n "\${ZSH_VERSION+set}"; then
  24412. setopt NO_GLOB_SUBST
  24413. fi
  24414. PACKAGE='$PACKAGE'
  24415. VERSION='$VERSION'
  24416. RM='$RM'
  24417. ofile='$ofile'
  24418. _ACEOF
  24419. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24420. # Handling of arguments.
  24421. for ac_config_target in $ac_config_targets
  24422. do
  24423. case $ac_config_target in
  24424. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24425. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24426. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24427. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24428. "debian/changelog") CONFIG_FILES="$CONFIG_FILES debian/changelog" ;;
  24429. "debian/libgv-php5.install") CONFIG_FILES="$CONFIG_FILES debian/libgv-php5.install" ;;
  24430. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  24431. "doc/info/Makefile") CONFIG_FILES="$CONFIG_FILES doc/info/Makefile" ;;
  24432. "doc/schema/Makefile") CONFIG_FILES="$CONFIG_FILES doc/schema/Makefile" ;;
  24433. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  24434. "contrib/prune/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/prune/Makefile" ;;
  24435. "contrib/diffimg/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/diffimg/Makefile" ;;
  24436. "graphs/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/Makefile" ;;
  24437. "graphs/directed/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/directed/Makefile" ;;
  24438. "graphs/undirected/Makefile") CONFIG_FILES="$CONFIG_FILES graphs/undirected/Makefile" ;;
  24439. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  24440. "lib/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/util/Makefile" ;;
  24441. "lib/cdt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cdt/Makefile" ;;
  24442. "lib/cdt/libcdt.pc") CONFIG_FILES="$CONFIG_FILES lib/cdt/libcdt.pc" ;;
  24443. "lib/cgraph/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cgraph/Makefile" ;;
  24444. "lib/cgraph/libcgraph.pc") CONFIG_FILES="$CONFIG_FILES lib/cgraph/libcgraph.pc" ;;
  24445. "lib/rbtree/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rbtree/Makefile" ;;
  24446. "lib/pathplan/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pathplan/Makefile" ;;
  24447. "lib/pathplan/libpathplan.pc") CONFIG_FILES="$CONFIG_FILES lib/pathplan/libpathplan.pc" ;;
  24448. "lib/ast/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ast/Makefile" ;;
  24449. "lib/sfio/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfio/Makefile" ;;
  24450. "lib/sfio/Sfio_f/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfio/Sfio_f/Makefile" ;;
  24451. "lib/vmalloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmalloc/Makefile" ;;
  24452. "lib/dotgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dotgen/Makefile" ;;
  24453. "lib/neatogen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/neatogen/Makefile" ;;
  24454. "lib/fdpgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/fdpgen/Makefile" ;;
  24455. "lib/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sparse/Makefile" ;;
  24456. "lib/mingle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mingle/Makefile" ;;
  24457. "lib/label/Makefile") CONFIG_FILES="$CONFIG_FILES lib/label/Makefile" ;;
  24458. "lib/sfdpgen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sfdpgen/Makefile" ;;
  24459. "lib/sfdpgen/libsfdp.pc") CONFIG_FILES="$CONFIG_FILES lib/sfdpgen/libsfdp.pc" ;;
  24460. "lib/osage/Makefile") CONFIG_FILES="$CONFIG_FILES lib/osage/Makefile" ;;
  24461. "lib/edgepaint/Makefile") CONFIG_FILES="$CONFIG_FILES lib/edgepaint/Makefile" ;;
  24462. "lib/gvpr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gvpr/Makefile" ;;
  24463. "lib/gvpr/libgvpr.pc") CONFIG_FILES="$CONFIG_FILES lib/gvpr/libgvpr.pc" ;;
  24464. "lib/circogen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/circogen/Makefile" ;;
  24465. "lib/twopigen/Makefile") CONFIG_FILES="$CONFIG_FILES lib/twopigen/Makefile" ;;
  24466. "lib/patchwork/Makefile") CONFIG_FILES="$CONFIG_FILES lib/patchwork/Makefile" ;;
  24467. "lib/pack/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pack/Makefile" ;;
  24468. "lib/ortho/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ortho/Makefile" ;;
  24469. "lib/expr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/expr/Makefile" ;;
  24470. "lib/expr/libexpr.pc") CONFIG_FILES="$CONFIG_FILES lib/expr/libexpr.pc" ;;
  24471. "lib/common/Makefile") CONFIG_FILES="$CONFIG_FILES lib/common/Makefile" ;;
  24472. "lib/vpsc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vpsc/Makefile" ;;
  24473. "lib/gvc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gvc/Makefile" ;;
  24474. "lib/gvc/libgvc.pc") CONFIG_FILES="$CONFIG_FILES lib/gvc/libgvc.pc" ;;
  24475. "lib/xdot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xdot/Makefile" ;;
  24476. "lib/xdot/libxdot.pc") CONFIG_FILES="$CONFIG_FILES lib/xdot/libxdot.pc" ;;
  24477. "lib/topfish/Makefile") CONFIG_FILES="$CONFIG_FILES lib/topfish/Makefile" ;;
  24478. "lib/glcomp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glcomp/Makefile" ;;
  24479. "macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES macosx/Info.plist" ;;
  24480. "macosx/build/graphviz.pmdoc/01local.xml") CONFIG_FILES="$CONFIG_FILES macosx/build/graphviz.pmdoc/01local.xml" ;;
  24481. "macosx/build/graphviz.pmdoc/02graphviz.xml") CONFIG_FILES="$CONFIG_FILES macosx/build/graphviz.pmdoc/02graphviz.xml" ;;
  24482. "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
  24483. "plugin/core/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/core/Makefile" ;;
  24484. "plugin/devil/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/devil/Makefile" ;;
  24485. "plugin/gd/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gd/Makefile" ;;
  24486. "plugin/gdk/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gdk/Makefile" ;;
  24487. "plugin/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gdiplus/Makefile" ;;
  24488. "plugin/gs/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/gs/Makefile" ;;
  24489. "plugin/kitty/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/kitty/Makefile" ;;
  24490. "plugin/lasi/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/lasi/Makefile" ;;
  24491. "plugin/pango/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/pango/Makefile" ;;
  24492. "plugin/poppler/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/poppler/Makefile" ;;
  24493. "plugin/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/quartz/Makefile" ;;
  24494. "plugin/rsvg/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/rsvg/Makefile" ;;
  24495. "plugin/webp/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/webp/Makefile" ;;
  24496. "plugin/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/xlib/Makefile" ;;
  24497. "plugin/dot_layout/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/dot_layout/Makefile" ;;
  24498. "plugin/neato_layout/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/neato_layout/Makefile" ;;
  24499. "plugin/vt/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/vt/Makefile" ;;
  24500. "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
  24501. "cmd/dot/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dot/Makefile" ;;
  24502. "cmd/tools/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/tools/Makefile" ;;
  24503. "cmd/gvpr/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvpr/Makefile" ;;
  24504. "cmd/gvpr/lib/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvpr/lib/Makefile" ;;
  24505. "cmd/smyrna/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/smyrna/Makefile" ;;
  24506. "cmd/gvmap/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvmap/Makefile" ;;
  24507. "cmd/mingle/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mingle/Makefile" ;;
  24508. "cmd/edgepaint/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/edgepaint/Makefile" ;;
  24509. "cmd/gvedit/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvedit/Makefile" ;;
  24510. "cmd/gvedit/gvedit.pro") CONFIG_FILES="$CONFIG_FILES cmd/gvedit/gvedit.pro" ;;
  24511. "cmd/gvedit/ui/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvedit/ui/Makefile" ;;
  24512. "cmd/gvedit/images/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/gvedit/images/Makefile" ;;
  24513. "tclpkg/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/Makefile" ;;
  24514. "tclpkg/tclstubs/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclstubs/Makefile" ;;
  24515. "tclpkg/gdtclft/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gdtclft/Makefile" ;;
  24516. "tclpkg/gdtclft/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gdtclft/demo/Makefile" ;;
  24517. "tclpkg/tcldot/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tcldot/Makefile" ;;
  24518. "tclpkg/tcldot/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tcldot/demo/Makefile" ;;
  24519. "tclpkg/tclpathplan/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/Makefile" ;;
  24520. "tclpkg/tclpathplan/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/demo/Makefile" ;;
  24521. "tclpkg/tclpathplan/demo/pathplan_data/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/tclpathplan/demo/pathplan_data/Makefile" ;;
  24522. "tclpkg/gv/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/Makefile" ;;
  24523. "tclpkg/gv/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/demo/Makefile" ;;
  24524. "tclpkg/gv/META.gv") CONFIG_FILES="$CONFIG_FILES tclpkg/gv/META.gv" ;;
  24525. "tests/graphs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/graphs/Makefile" ;;
  24526. "tests/linux.x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/linux.x86/Makefile" ;;
  24527. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  24528. "tests/regression_tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/Makefile" ;;
  24529. "tests/regression_tests/shapes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/shapes/Makefile" ;;
  24530. "tests/regression_tests/shapes/reference/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/shapes/reference/Makefile" ;;
  24531. "tests/regression_tests/vuln/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/vuln/Makefile" ;;
  24532. "tests/regression_tests/vuln/input/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/vuln/input/Makefile" ;;
  24533. "tests/regression_tests/vuln/reference/Makefile") CONFIG_FILES="$CONFIG_FILES tests/regression_tests/vuln/reference/Makefile" ;;
  24534. "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
  24535. "share/examples/Makefile") CONFIG_FILES="$CONFIG_FILES share/examples/Makefile" ;;
  24536. "share/gui/Makefile") CONFIG_FILES="$CONFIG_FILES share/gui/Makefile" ;;
  24537. "redhat/graphviz.spec.fedora") CONFIG_FILES="$CONFIG_FILES redhat/graphviz.spec.fedora" ;;
  24538. "redhat/graphviz.spec.rhel") CONFIG_FILES="$CONFIG_FILES redhat/graphviz.spec.rhel" ;;
  24539. "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
  24540. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24541. esac
  24542. done
  24543. # If the user did not use the arguments to specify the items to instantiate,
  24544. # then the envvar interface is used. Set only those that are not.
  24545. # We use the long form for the default assignment because of an extremely
  24546. # bizarre bug on SunOS 4.1.3.
  24547. if $ac_need_defaults; then
  24548. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24549. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24550. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24551. fi
  24552. # Have a temporary directory for convenience. Make it in the build tree
  24553. # simply because there is no reason against having it here, and in addition,
  24554. # creating and moving files from /tmp can sometimes cause problems.
  24555. # Hook for its removal unless debugging.
  24556. # Note that there is a small window in which the directory will not be cleaned:
  24557. # after its creation but before its name has been assigned to `$tmp'.
  24558. $debug ||
  24559. {
  24560. tmp= ac_tmp=
  24561. trap 'exit_status=$?
  24562. : "${ac_tmp:=$tmp}"
  24563. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24564. ' 0
  24565. trap 'as_fn_exit 1' 1 2 13 15
  24566. }
  24567. # Create a (secure) tmp directory for tmp files.
  24568. {
  24569. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24570. test -d "$tmp"
  24571. } ||
  24572. {
  24573. tmp=./conf$$-$RANDOM
  24574. (umask 077 && mkdir "$tmp")
  24575. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24576. ac_tmp=$tmp
  24577. # Set up the scripts for CONFIG_FILES section.
  24578. # No need to generate them if there are no CONFIG_FILES.
  24579. # This happens for instance with `./config.status config.h'.
  24580. if test -n "$CONFIG_FILES"; then
  24581. ac_cr=`echo X | tr X '\015'`
  24582. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24583. # But we know of no other shell where ac_cr would be empty at this
  24584. # point, so we can use a bashism as a fallback.
  24585. if test "x$ac_cr" = x; then
  24586. eval ac_cr=\$\'\\r\'
  24587. fi
  24588. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24589. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24590. ac_cs_awk_cr='\\r'
  24591. else
  24592. ac_cs_awk_cr=$ac_cr
  24593. fi
  24594. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24595. _ACEOF
  24596. {
  24597. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24598. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24599. echo "_ACEOF"
  24600. } >conf$$subs.sh ||
  24601. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24602. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24603. ac_delim='%!_!# '
  24604. for ac_last_try in false false false false false :; do
  24605. . ./conf$$subs.sh ||
  24606. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24607. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24608. if test $ac_delim_n = $ac_delim_num; then
  24609. break
  24610. elif $ac_last_try; then
  24611. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24612. else
  24613. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24614. fi
  24615. done
  24616. rm -f conf$$subs.sh
  24617. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24618. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24619. _ACEOF
  24620. sed -n '
  24621. h
  24622. s/^/S["/; s/!.*/"]=/
  24623. p
  24624. g
  24625. s/^[^!]*!//
  24626. :repl
  24627. t repl
  24628. s/'"$ac_delim"'$//
  24629. t delim
  24630. :nl
  24631. h
  24632. s/\(.\{148\}\)..*/\1/
  24633. t more1
  24634. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24635. p
  24636. n
  24637. b repl
  24638. :more1
  24639. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24640. p
  24641. g
  24642. s/.\{148\}//
  24643. t nl
  24644. :delim
  24645. h
  24646. s/\(.\{148\}\)..*/\1/
  24647. t more2
  24648. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24649. p
  24650. b
  24651. :more2
  24652. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24653. p
  24654. g
  24655. s/.\{148\}//
  24656. t delim
  24657. ' <conf$$subs.awk | sed '
  24658. /^[^""]/{
  24659. N
  24660. s/\n//
  24661. }
  24662. ' >>$CONFIG_STATUS || ac_write_fail=1
  24663. rm -f conf$$subs.awk
  24664. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24665. _ACAWK
  24666. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24667. for (key in S) S_is_set[key] = 1
  24668. FS = ""
  24669. }
  24670. {
  24671. line = $ 0
  24672. nfields = split(line, field, "@")
  24673. substed = 0
  24674. len = length(field[1])
  24675. for (i = 2; i < nfields; i++) {
  24676. key = field[i]
  24677. keylen = length(key)
  24678. if (S_is_set[key]) {
  24679. value = S[key]
  24680. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24681. len += length(value) + length(field[++i])
  24682. substed = 1
  24683. } else
  24684. len += 1 + keylen
  24685. }
  24686. print line
  24687. }
  24688. _ACAWK
  24689. _ACEOF
  24690. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24691. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24692. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24693. else
  24694. cat
  24695. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24696. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24697. _ACEOF
  24698. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24699. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24700. # trailing colons and then remove the whole line if VPATH becomes empty
  24701. # (actually we leave an empty line to preserve line numbers).
  24702. if test "x$srcdir" = x.; then
  24703. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24704. h
  24705. s///
  24706. s/^/:/
  24707. s/[ ]*$/:/
  24708. s/:\$(srcdir):/:/g
  24709. s/:\${srcdir}:/:/g
  24710. s/:@srcdir@:/:/g
  24711. s/^:*//
  24712. s/:*$//
  24713. x
  24714. s/\(=[ ]*\).*/\1/
  24715. G
  24716. s/\n//
  24717. s/^[^=]*=[ ]*$//
  24718. }'
  24719. fi
  24720. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24721. fi # test -n "$CONFIG_FILES"
  24722. # Set up the scripts for CONFIG_HEADERS section.
  24723. # No need to generate them if there are no CONFIG_HEADERS.
  24724. # This happens for instance with `./config.status Makefile'.
  24725. if test -n "$CONFIG_HEADERS"; then
  24726. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24727. BEGIN {
  24728. _ACEOF
  24729. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24730. # here-document in config.status, that substitutes the proper values into
  24731. # config.h.in to produce config.h.
  24732. # Create a delimiter string that does not exist in confdefs.h, to ease
  24733. # handling of long lines.
  24734. ac_delim='%!_!# '
  24735. for ac_last_try in false false :; do
  24736. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24737. if test -z "$ac_tt"; then
  24738. break
  24739. elif $ac_last_try; then
  24740. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24741. else
  24742. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24743. fi
  24744. done
  24745. # For the awk script, D is an array of macro values keyed by name,
  24746. # likewise P contains macro parameters if any. Preserve backslash
  24747. # newline sequences.
  24748. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24749. sed -n '
  24750. s/.\{148\}/&'"$ac_delim"'/g
  24751. t rset
  24752. :rset
  24753. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24754. t def
  24755. d
  24756. :def
  24757. s/\\$//
  24758. t bsnl
  24759. s/["\\]/\\&/g
  24760. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24761. D["\1"]=" \3"/p
  24762. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24763. d
  24764. :bsnl
  24765. s/["\\]/\\&/g
  24766. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24767. D["\1"]=" \3\\\\\\n"\\/p
  24768. t cont
  24769. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24770. t cont
  24771. d
  24772. :cont
  24773. n
  24774. s/.\{148\}/&'"$ac_delim"'/g
  24775. t clear
  24776. :clear
  24777. s/\\$//
  24778. t bsnlc
  24779. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24780. d
  24781. :bsnlc
  24782. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24783. b cont
  24784. ' <confdefs.h | sed '
  24785. s/'"$ac_delim"'/"\\\
  24786. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24788. for (key in D) D_is_set[key] = 1
  24789. FS = ""
  24790. }
  24791. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24792. line = \$ 0
  24793. split(line, arg, " ")
  24794. if (arg[1] == "#") {
  24795. defundef = arg[2]
  24796. mac1 = arg[3]
  24797. } else {
  24798. defundef = substr(arg[1], 2)
  24799. mac1 = arg[2]
  24800. }
  24801. split(mac1, mac2, "(") #)
  24802. macro = mac2[1]
  24803. prefix = substr(line, 1, index(line, defundef) - 1)
  24804. if (D_is_set[macro]) {
  24805. # Preserve the white space surrounding the "#".
  24806. print prefix "define", macro P[macro] D[macro]
  24807. next
  24808. } else {
  24809. # Replace #undef with comments. This is necessary, for example,
  24810. # in the case of _POSIX_SOURCE, which is predefined and required
  24811. # on some systems where configure will not decide to define it.
  24812. if (defundef == "undef") {
  24813. print "/*", prefix defundef, macro, "*/"
  24814. next
  24815. }
  24816. }
  24817. }
  24818. { print }
  24819. _ACAWK
  24820. _ACEOF
  24821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24822. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24823. fi # test -n "$CONFIG_HEADERS"
  24824. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24825. shift
  24826. for ac_tag
  24827. do
  24828. case $ac_tag in
  24829. :[FHLC]) ac_mode=$ac_tag; continue;;
  24830. esac
  24831. case $ac_mode$ac_tag in
  24832. :[FHL]*:*);;
  24833. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24834. :[FH]-) ac_tag=-:-;;
  24835. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24836. esac
  24837. ac_save_IFS=$IFS
  24838. IFS=:
  24839. set x $ac_tag
  24840. IFS=$ac_save_IFS
  24841. shift
  24842. ac_file=$1
  24843. shift
  24844. case $ac_mode in
  24845. :L) ac_source=$1;;
  24846. :[FH])
  24847. ac_file_inputs=
  24848. for ac_f
  24849. do
  24850. case $ac_f in
  24851. -) ac_f="$ac_tmp/stdin";;
  24852. *) # Look for the file first in the build tree, then in the source tree
  24853. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24854. # because $ac_f cannot contain `:'.
  24855. test -f "$ac_f" ||
  24856. case $ac_f in
  24857. [\\/$]*) false;;
  24858. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24859. esac ||
  24860. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24861. esac
  24862. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24863. as_fn_append ac_file_inputs " '$ac_f'"
  24864. done
  24865. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24866. # use $as_me), people would be surprised to read:
  24867. # /* config.h. Generated by config.status. */
  24868. configure_input='Generated from '`
  24869. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24870. `' by configure.'
  24871. if test x"$ac_file" != x-; then
  24872. configure_input="$ac_file. $configure_input"
  24873. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24874. $as_echo "$as_me: creating $ac_file" >&6;}
  24875. fi
  24876. # Neutralize special characters interpreted by sed in replacement strings.
  24877. case $configure_input in #(
  24878. *\&* | *\|* | *\\* )
  24879. ac_sed_conf_input=`$as_echo "$configure_input" |
  24880. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24881. *) ac_sed_conf_input=$configure_input;;
  24882. esac
  24883. case $ac_tag in
  24884. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24885. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24886. esac
  24887. ;;
  24888. esac
  24889. ac_dir=`$as_dirname -- "$ac_file" ||
  24890. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24891. X"$ac_file" : 'X\(//\)[^/]' \| \
  24892. X"$ac_file" : 'X\(//\)$' \| \
  24893. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24894. $as_echo X"$ac_file" |
  24895. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24896. s//\1/
  24897. q
  24898. }
  24899. /^X\(\/\/\)[^/].*/{
  24900. s//\1/
  24901. q
  24902. }
  24903. /^X\(\/\/\)$/{
  24904. s//\1/
  24905. q
  24906. }
  24907. /^X\(\/\).*/{
  24908. s//\1/
  24909. q
  24910. }
  24911. s/.*/./; q'`
  24912. as_dir="$ac_dir"; as_fn_mkdir_p
  24913. ac_builddir=.
  24914. case "$ac_dir" in
  24915. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24916. *)
  24917. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24918. # A ".." for each directory in $ac_dir_suffix.
  24919. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24920. case $ac_top_builddir_sub in
  24921. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24922. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24923. esac ;;
  24924. esac
  24925. ac_abs_top_builddir=$ac_pwd
  24926. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24927. # for backward compatibility:
  24928. ac_top_builddir=$ac_top_build_prefix
  24929. case $srcdir in
  24930. .) # We are building in place.
  24931. ac_srcdir=.
  24932. ac_top_srcdir=$ac_top_builddir_sub
  24933. ac_abs_top_srcdir=$ac_pwd ;;
  24934. [\\/]* | ?:[\\/]* ) # Absolute name.
  24935. ac_srcdir=$srcdir$ac_dir_suffix;
  24936. ac_top_srcdir=$srcdir
  24937. ac_abs_top_srcdir=$srcdir ;;
  24938. *) # Relative name.
  24939. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24940. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24941. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24942. esac
  24943. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24944. case $ac_mode in
  24945. :F)
  24946. #
  24947. # CONFIG_FILE
  24948. #
  24949. case $INSTALL in
  24950. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24951. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24952. esac
  24953. ac_MKDIR_P=$MKDIR_P
  24954. case $MKDIR_P in
  24955. [\\/$]* | ?:[\\/]* ) ;;
  24956. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  24957. esac
  24958. _ACEOF
  24959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24960. # If the template does not know about datarootdir, expand it.
  24961. # FIXME: This hack should be removed a few years after 2.60.
  24962. ac_datarootdir_hack=; ac_datarootdir_seen=
  24963. ac_sed_dataroot='
  24964. /datarootdir/ {
  24965. p
  24966. q
  24967. }
  24968. /@datadir@/p
  24969. /@docdir@/p
  24970. /@infodir@/p
  24971. /@localedir@/p
  24972. /@mandir@/p'
  24973. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24974. *datarootdir*) ac_datarootdir_seen=yes;;
  24975. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24977. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24978. _ACEOF
  24979. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24980. ac_datarootdir_hack='
  24981. s&@datadir@&$datadir&g
  24982. s&@docdir@&$docdir&g
  24983. s&@infodir@&$infodir&g
  24984. s&@localedir@&$localedir&g
  24985. s&@mandir@&$mandir&g
  24986. s&\\\${datarootdir}&$datarootdir&g' ;;
  24987. esac
  24988. _ACEOF
  24989. # Neutralize VPATH when `$srcdir' = `.'.
  24990. # Shell code in configure.ac might set extrasub.
  24991. # FIXME: do we really want to maintain this feature?
  24992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24993. ac_sed_extra="$ac_vpsub
  24994. $extrasub
  24995. _ACEOF
  24996. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24997. :t
  24998. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24999. s|@configure_input@|$ac_sed_conf_input|;t t
  25000. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25001. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25002. s&@srcdir@&$ac_srcdir&;t t
  25003. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25004. s&@top_srcdir@&$ac_top_srcdir&;t t
  25005. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25006. s&@builddir@&$ac_builddir&;t t
  25007. s&@abs_builddir@&$ac_abs_builddir&;t t
  25008. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25009. s&@INSTALL@&$ac_INSTALL&;t t
  25010. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  25011. $ac_datarootdir_hack
  25012. "
  25013. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25014. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25015. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25016. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25017. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25018. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25020. which seems to be undefined. Please make sure it is defined" >&5
  25021. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25022. which seems to be undefined. Please make sure it is defined" >&2;}
  25023. rm -f "$ac_tmp/stdin"
  25024. case $ac_file in
  25025. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25026. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25027. esac \
  25028. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25029. ;;
  25030. :H)
  25031. #
  25032. # CONFIG_HEADER
  25033. #
  25034. if test x"$ac_file" != x-; then
  25035. {
  25036. $as_echo "/* $configure_input */" \
  25037. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25038. } >"$ac_tmp/config.h" \
  25039. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25040. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25041. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25042. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  25043. else
  25044. rm -f "$ac_file"
  25045. mv "$ac_tmp/config.h" "$ac_file" \
  25046. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25047. fi
  25048. else
  25049. $as_echo "/* $configure_input */" \
  25050. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25051. || as_fn_error $? "could not create -" "$LINENO" 5
  25052. fi
  25053. # Compute "$ac_file"'s index in $config_headers.
  25054. _am_arg="$ac_file"
  25055. _am_stamp_count=1
  25056. for _am_header in $config_headers :; do
  25057. case $_am_header in
  25058. $_am_arg | $_am_arg:* )
  25059. break ;;
  25060. * )
  25061. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25062. esac
  25063. done
  25064. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  25065. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25066. X"$_am_arg" : 'X\(//\)[^/]' \| \
  25067. X"$_am_arg" : 'X\(//\)$' \| \
  25068. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  25069. $as_echo X"$_am_arg" |
  25070. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25071. s//\1/
  25072. q
  25073. }
  25074. /^X\(\/\/\)[^/].*/{
  25075. s//\1/
  25076. q
  25077. }
  25078. /^X\(\/\/\)$/{
  25079. s//\1/
  25080. q
  25081. }
  25082. /^X\(\/\).*/{
  25083. s//\1/
  25084. q
  25085. }
  25086. s/.*/./; q'`/stamp-h$_am_stamp_count
  25087. ;;
  25088. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25089. $as_echo "$as_me: executing $ac_file commands" >&6;}
  25090. ;;
  25091. esac
  25092. case $ac_file$ac_mode in
  25093. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  25094. # Older Autoconf quotes --file arguments for eval, but not when files
  25095. # are listed without --file. Let's play safe and only enable the eval
  25096. # if we detect the quoting.
  25097. # TODO: see whether this extra hack can be removed once we start
  25098. # requiring Autoconf 2.70 or later.
  25099. case $CONFIG_FILES in #(
  25100. *\'*) :
  25101. eval set x "$CONFIG_FILES" ;; #(
  25102. *) :
  25103. set x $CONFIG_FILES ;; #(
  25104. *) :
  25105. ;;
  25106. esac
  25107. shift
  25108. # Used to flag and report bootstrapping failures.
  25109. am_rc=0
  25110. for am_mf
  25111. do
  25112. # Strip MF so we end up with the name of the file.
  25113. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  25114. # Check whether this is an Automake generated Makefile which includes
  25115. # dependency-tracking related rules and includes.
  25116. # Grep'ing the whole file directly is not great: AIX grep has a line
  25117. # limit of 2048, but all sed's we know have understand at least 4000.
  25118. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  25119. || continue
  25120. am_dirpart=`$as_dirname -- "$am_mf" ||
  25121. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25122. X"$am_mf" : 'X\(//\)[^/]' \| \
  25123. X"$am_mf" : 'X\(//\)$' \| \
  25124. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  25125. $as_echo X"$am_mf" |
  25126. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25127. s//\1/
  25128. q
  25129. }
  25130. /^X\(\/\/\)[^/].*/{
  25131. s//\1/
  25132. q
  25133. }
  25134. /^X\(\/\/\)$/{
  25135. s//\1/
  25136. q
  25137. }
  25138. /^X\(\/\).*/{
  25139. s//\1/
  25140. q
  25141. }
  25142. s/.*/./; q'`
  25143. am_filepart=`$as_basename -- "$am_mf" ||
  25144. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  25145. X"$am_mf" : 'X\(//\)$' \| \
  25146. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  25147. $as_echo X/"$am_mf" |
  25148. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25149. s//\1/
  25150. q
  25151. }
  25152. /^X\/\(\/\/\)$/{
  25153. s//\1/
  25154. q
  25155. }
  25156. /^X\/\(\/\).*/{
  25157. s//\1/
  25158. q
  25159. }
  25160. s/.*/./; q'`
  25161. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  25162. && sed -e '/# am--include-marker/d' "$am_filepart" \
  25163. | $MAKE -f - am--depfiles" >&5
  25164. (cd "$am_dirpart" \
  25165. && sed -e '/# am--include-marker/d' "$am_filepart" \
  25166. | $MAKE -f - am--depfiles) >&5 2>&5
  25167. ac_status=$?
  25168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25169. (exit $ac_status); } || am_rc=$?
  25170. done
  25171. if test $am_rc -ne 0; then
  25172. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25173. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25174. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  25175. for automatic dependency tracking. Try re-running configure with the
  25176. '--disable-dependency-tracking' option to at least be able to build
  25177. the package (albeit without support for automatic dependency tracking).
  25178. See \`config.log' for more details" "$LINENO" 5; }
  25179. fi
  25180. { am_dirpart=; unset am_dirpart;}
  25181. { am_filepart=; unset am_filepart;}
  25182. { am_mf=; unset am_mf;}
  25183. { am_rc=; unset am_rc;}
  25184. rm -f conftest-deps.mk
  25185. }
  25186. ;;
  25187. "libtool":C)
  25188. # See if we are running on zsh, and set the options that allow our
  25189. # commands through without removal of \ escapes.
  25190. if test -n "${ZSH_VERSION+set}"; then
  25191. setopt NO_GLOB_SUBST
  25192. fi
  25193. cfgfile=${ofile}T
  25194. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25195. $RM "$cfgfile"
  25196. cat <<_LT_EOF >> "$cfgfile"
  25197. #! $SHELL
  25198. # Generated automatically by $as_me ($PACKAGE) $VERSION
  25199. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25200. # Provide generalized library-building support services.
  25201. # Written by Gordon Matzigkeit, 1996
  25202. # Copyright (C) 2014 Free Software Foundation, Inc.
  25203. # This is free software; see the source for copying conditions. There is NO
  25204. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25205. # GNU Libtool is free software; you can redistribute it and/or modify
  25206. # it under the terms of the GNU General Public License as published by
  25207. # the Free Software Foundation; either version 2 of of the License, or
  25208. # (at your option) any later version.
  25209. #
  25210. # As a special exception to the GNU General Public License, if you
  25211. # distribute this file as part of a program or library that is built
  25212. # using GNU Libtool, you may include this file under the same
  25213. # distribution terms that you use for the rest of that program.
  25214. #
  25215. # GNU Libtool is distributed in the hope that it will be useful, but
  25216. # WITHOUT ANY WARRANTY; without even the implied warranty of
  25217. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25218. # GNU General Public License for more details.
  25219. #
  25220. # You should have received a copy of the GNU General Public License
  25221. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  25222. # The names of the tagged configurations supported by this script.
  25223. available_tags='CXX '
  25224. # Configured defaults for sys_lib_dlsearch_path munging.
  25225. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  25226. # ### BEGIN LIBTOOL CONFIG
  25227. # Whether or not to build static libraries.
  25228. build_old_libs=$enable_static
  25229. # Whether or not to build shared libraries.
  25230. build_libtool_libs=$enable_shared
  25231. # Which release of libtool.m4 was used?
  25232. macro_version=$macro_version
  25233. macro_revision=$macro_revision
  25234. # What type of objects to build.
  25235. pic_mode=$pic_mode
  25236. # Whether or not to optimize for fast installation.
  25237. fast_install=$enable_fast_install
  25238. # Shared archive member basename,for filename based shared library versioning on AIX.
  25239. shared_archive_member_spec=$shared_archive_member_spec
  25240. # Shell to use when invoking shell scripts.
  25241. SHELL=$lt_SHELL
  25242. # An echo program that protects backslashes.
  25243. ECHO=$lt_ECHO
  25244. # The PATH separator for the build system.
  25245. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25246. # The host system.
  25247. host_alias=$host_alias
  25248. host=$host
  25249. host_os=$host_os
  25250. # The build system.
  25251. build_alias=$build_alias
  25252. build=$build
  25253. build_os=$build_os
  25254. # A sed program that does not truncate output.
  25255. SED=$lt_SED
  25256. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25257. Xsed="\$SED -e 1s/^X//"
  25258. # A grep program that handles long lines.
  25259. GREP=$lt_GREP
  25260. # An ERE matcher.
  25261. EGREP=$lt_EGREP
  25262. # A literal string matcher.
  25263. FGREP=$lt_FGREP
  25264. # A BSD- or MS-compatible name lister.
  25265. NM=$lt_NM
  25266. # Whether we need soft or hard links.
  25267. LN_S=$lt_LN_S
  25268. # What is the maximum length of a command?
  25269. max_cmd_len=$max_cmd_len
  25270. # Object file suffix (normally "o").
  25271. objext=$ac_objext
  25272. # Executable file suffix (normally "").
  25273. exeext=$exeext
  25274. # whether the shell understands "unset".
  25275. lt_unset=$lt_unset
  25276. # turn spaces into newlines.
  25277. SP2NL=$lt_lt_SP2NL
  25278. # turn newlines into spaces.
  25279. NL2SP=$lt_lt_NL2SP
  25280. # convert \$build file names to \$host format.
  25281. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25282. # convert \$build files to toolchain format.
  25283. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25284. # An object symbol dumper.
  25285. OBJDUMP=$lt_OBJDUMP
  25286. # Method to check whether dependent libraries are shared objects.
  25287. deplibs_check_method=$lt_deplibs_check_method
  25288. # Command to use when deplibs_check_method = "file_magic".
  25289. file_magic_cmd=$lt_file_magic_cmd
  25290. # How to find potential files when deplibs_check_method = "file_magic".
  25291. file_magic_glob=$lt_file_magic_glob
  25292. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25293. want_nocaseglob=$lt_want_nocaseglob
  25294. # DLL creation program.
  25295. DLLTOOL=$lt_DLLTOOL
  25296. # Command to associate shared and link libraries.
  25297. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25298. # The archiver.
  25299. AR=$lt_AR
  25300. # Flags to create an archive.
  25301. AR_FLAGS=$lt_AR_FLAGS
  25302. # How to feed a file listing to the archiver.
  25303. archiver_list_spec=$lt_archiver_list_spec
  25304. # A symbol stripping program.
  25305. STRIP=$lt_STRIP
  25306. # Commands used to install an old-style archive.
  25307. RANLIB=$lt_RANLIB
  25308. old_postinstall_cmds=$lt_old_postinstall_cmds
  25309. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25310. # Whether to use a lock for old archive extraction.
  25311. lock_old_archive_extraction=$lock_old_archive_extraction
  25312. # A C compiler.
  25313. LTCC=$lt_CC
  25314. # LTCC compiler flags.
  25315. LTCFLAGS=$lt_CFLAGS
  25316. # Take the output of nm and produce a listing of raw symbols and C names.
  25317. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25318. # Transform the output of nm in a proper C declaration.
  25319. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25320. # Transform the output of nm into a list of symbols to manually relocate.
  25321. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25322. # Transform the output of nm in a C name address pair.
  25323. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25324. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25325. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25326. # The name lister interface.
  25327. nm_interface=$lt_lt_cv_nm_interface
  25328. # Specify filename containing input files for \$NM.
  25329. nm_file_list_spec=$lt_nm_file_list_spec
  25330. # The root where to search for dependent libraries,and where our libraries should be installed.
  25331. lt_sysroot=$lt_sysroot
  25332. # Command to truncate a binary pipe.
  25333. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25334. # The name of the directory that contains temporary libtool files.
  25335. objdir=$objdir
  25336. # Used to examine libraries when file_magic_cmd begins with "file".
  25337. MAGIC_CMD=$MAGIC_CMD
  25338. # Must we lock files when doing compilation?
  25339. need_locks=$lt_need_locks
  25340. # Manifest tool.
  25341. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25342. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25343. DSYMUTIL=$lt_DSYMUTIL
  25344. # Tool to change global to local symbols on Mac OS X.
  25345. NMEDIT=$lt_NMEDIT
  25346. # Tool to manipulate fat objects and archives on Mac OS X.
  25347. LIPO=$lt_LIPO
  25348. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25349. OTOOL=$lt_OTOOL
  25350. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25351. OTOOL64=$lt_OTOOL64
  25352. # Old archive suffix (normally "a").
  25353. libext=$libext
  25354. # Shared library suffix (normally ".so").
  25355. shrext_cmds=$lt_shrext_cmds
  25356. # The commands to extract the exported symbol list from a shared archive.
  25357. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25358. # Variables whose values should be saved in libtool wrapper scripts and
  25359. # restored at link time.
  25360. variables_saved_for_relink=$lt_variables_saved_for_relink
  25361. # Do we need the "lib" prefix for modules?
  25362. need_lib_prefix=$need_lib_prefix
  25363. # Do we need a version for libraries?
  25364. need_version=$need_version
  25365. # Library versioning type.
  25366. version_type=$version_type
  25367. # Shared library runtime path variable.
  25368. runpath_var=$runpath_var
  25369. # Shared library path variable.
  25370. shlibpath_var=$shlibpath_var
  25371. # Is shlibpath searched before the hard-coded library search path?
  25372. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25373. # Format of library name prefix.
  25374. libname_spec=$lt_libname_spec
  25375. # List of archive names. First name is the real one, the rest are links.
  25376. # The last name is the one that the linker finds with -lNAME
  25377. library_names_spec=$lt_library_names_spec
  25378. # The coded name of the library, if different from the real name.
  25379. soname_spec=$lt_soname_spec
  25380. # Permission mode override for installation of shared libraries.
  25381. install_override_mode=$lt_install_override_mode
  25382. # Command to use after installation of a shared archive.
  25383. postinstall_cmds=$lt_postinstall_cmds
  25384. # Command to use after uninstallation of a shared archive.
  25385. postuninstall_cmds=$lt_postuninstall_cmds
  25386. # Commands used to finish a libtool library installation in a directory.
  25387. finish_cmds=$lt_finish_cmds
  25388. # As "finish_cmds", except a single script fragment to be evaled but
  25389. # not shown.
  25390. finish_eval=$lt_finish_eval
  25391. # Whether we should hardcode library paths into libraries.
  25392. hardcode_into_libs=$hardcode_into_libs
  25393. # Compile-time system search path for libraries.
  25394. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25395. # Detected run-time system search path for libraries.
  25396. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25397. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25398. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25399. # Whether dlopen is supported.
  25400. dlopen_support=$enable_dlopen
  25401. # Whether dlopen of programs is supported.
  25402. dlopen_self=$enable_dlopen_self
  25403. # Whether dlopen of statically linked programs is supported.
  25404. dlopen_self_static=$enable_dlopen_self_static
  25405. # Commands to strip libraries.
  25406. old_striplib=$lt_old_striplib
  25407. striplib=$lt_striplib
  25408. # The linker used to build libraries.
  25409. LD=$lt_LD
  25410. # How to create reloadable object files.
  25411. reload_flag=$lt_reload_flag
  25412. reload_cmds=$lt_reload_cmds
  25413. # Commands used to build an old-style archive.
  25414. old_archive_cmds=$lt_old_archive_cmds
  25415. # A language specific compiler.
  25416. CC=$lt_compiler
  25417. # Is the compiler the GNU compiler?
  25418. with_gcc=$GCC
  25419. # Compiler flag to turn off builtin functions.
  25420. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25421. # Additional compiler flags for building library objects.
  25422. pic_flag=$lt_lt_prog_compiler_pic
  25423. # How to pass a linker flag through the compiler.
  25424. wl=$lt_lt_prog_compiler_wl
  25425. # Compiler flag to prevent dynamic linking.
  25426. link_static_flag=$lt_lt_prog_compiler_static
  25427. # Does compiler simultaneously support -c and -o options?
  25428. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25429. # Whether or not to add -lc for building shared libraries.
  25430. build_libtool_need_lc=$archive_cmds_need_lc
  25431. # Whether or not to disallow shared libs when runtime libs are static.
  25432. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25433. # Compiler flag to allow reflexive dlopens.
  25434. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25435. # Compiler flag to generate shared objects directly from archives.
  25436. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25437. # Whether the compiler copes with passing no objects directly.
  25438. compiler_needs_object=$lt_compiler_needs_object
  25439. # Create an old-style archive from a shared archive.
  25440. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25441. # Create a temporary old-style archive to link instead of a shared archive.
  25442. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25443. # Commands used to build a shared archive.
  25444. archive_cmds=$lt_archive_cmds
  25445. archive_expsym_cmds=$lt_archive_expsym_cmds
  25446. # Commands used to build a loadable module if different from building
  25447. # a shared archive.
  25448. module_cmds=$lt_module_cmds
  25449. module_expsym_cmds=$lt_module_expsym_cmds
  25450. # Whether we are building with GNU ld or not.
  25451. with_gnu_ld=$lt_with_gnu_ld
  25452. # Flag that allows shared libraries with undefined symbols to be built.
  25453. allow_undefined_flag=$lt_allow_undefined_flag
  25454. # Flag that enforces no undefined symbols.
  25455. no_undefined_flag=$lt_no_undefined_flag
  25456. # Flag to hardcode \$libdir into a binary during linking.
  25457. # This must work even if \$libdir does not exist
  25458. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25459. # Whether we need a single "-rpath" flag with a separated argument.
  25460. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25461. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25462. # DIR into the resulting binary.
  25463. hardcode_direct=$hardcode_direct
  25464. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25465. # DIR into the resulting binary and the resulting library dependency is
  25466. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25467. # library is relocated.
  25468. hardcode_direct_absolute=$hardcode_direct_absolute
  25469. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25470. # into the resulting binary.
  25471. hardcode_minus_L=$hardcode_minus_L
  25472. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25473. # into the resulting binary.
  25474. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25475. # Set to "yes" if building a shared library automatically hardcodes DIR
  25476. # into the library and all subsequent libraries and executables linked
  25477. # against it.
  25478. hardcode_automatic=$hardcode_automatic
  25479. # Set to yes if linker adds runtime paths of dependent libraries
  25480. # to runtime path list.
  25481. inherit_rpath=$inherit_rpath
  25482. # Whether libtool must link a program against all its dependency libraries.
  25483. link_all_deplibs=$link_all_deplibs
  25484. # Set to "yes" if exported symbols are required.
  25485. always_export_symbols=$always_export_symbols
  25486. # The commands to list exported symbols.
  25487. export_symbols_cmds=$lt_export_symbols_cmds
  25488. # Symbols that should not be listed in the preloaded symbols.
  25489. exclude_expsyms=$lt_exclude_expsyms
  25490. # Symbols that must always be exported.
  25491. include_expsyms=$lt_include_expsyms
  25492. # Commands necessary for linking programs (against libraries) with templates.
  25493. prelink_cmds=$lt_prelink_cmds
  25494. # Commands necessary for finishing linking programs.
  25495. postlink_cmds=$lt_postlink_cmds
  25496. # Specify filename containing input files.
  25497. file_list_spec=$lt_file_list_spec
  25498. # How to hardcode a shared library path into an executable.
  25499. hardcode_action=$hardcode_action
  25500. # The directories searched by this compiler when creating a shared library.
  25501. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25502. # Dependencies to place before and after the objects being linked to
  25503. # create a shared library.
  25504. predep_objects=$lt_predep_objects
  25505. postdep_objects=$lt_postdep_objects
  25506. predeps=$lt_predeps
  25507. postdeps=$lt_postdeps
  25508. # The library search path used internally by the compiler when linking
  25509. # a shared library.
  25510. compiler_lib_search_path=$lt_compiler_lib_search_path
  25511. # ### END LIBTOOL CONFIG
  25512. _LT_EOF
  25513. cat <<'_LT_EOF' >> "$cfgfile"
  25514. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25515. # func_munge_path_list VARIABLE PATH
  25516. # -----------------------------------
  25517. # VARIABLE is name of variable containing _space_ separated list of
  25518. # directories to be munged by the contents of PATH, which is string
  25519. # having a format:
  25520. # "DIR[:DIR]:"
  25521. # string "DIR[ DIR]" will be prepended to VARIABLE
  25522. # ":DIR[:DIR]"
  25523. # string "DIR[ DIR]" will be appended to VARIABLE
  25524. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25525. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25526. # "DIRA[ DIRA]" will be appended to VARIABLE
  25527. # "DIR[:DIR]"
  25528. # VARIABLE will be replaced by "DIR[ DIR]"
  25529. func_munge_path_list ()
  25530. {
  25531. case x$2 in
  25532. x)
  25533. ;;
  25534. *:)
  25535. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25536. ;;
  25537. x:*)
  25538. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25539. ;;
  25540. *::*)
  25541. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25542. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25543. ;;
  25544. *)
  25545. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25546. ;;
  25547. esac
  25548. }
  25549. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25550. func_cc_basename ()
  25551. {
  25552. for cc_temp in $*""; do
  25553. case $cc_temp in
  25554. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25555. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25556. \-*) ;;
  25557. *) break;;
  25558. esac
  25559. done
  25560. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25561. }
  25562. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25563. _LT_EOF
  25564. case $host_os in
  25565. aix3*)
  25566. cat <<\_LT_EOF >> "$cfgfile"
  25567. # AIX sometimes has problems with the GCC collect2 program. For some
  25568. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25569. # vanish in a puff of smoke.
  25570. if test set != "${COLLECT_NAMES+set}"; then
  25571. COLLECT_NAMES=
  25572. export COLLECT_NAMES
  25573. fi
  25574. _LT_EOF
  25575. ;;
  25576. esac
  25577. ltmain=$ac_aux_dir/ltmain.sh
  25578. # We use sed instead of cat because bash on DJGPP gets confused if
  25579. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25580. # text mode, it properly converts lines to CR/LF. This bash problem
  25581. # is reportedly fixed, but why not run on old versions too?
  25582. sed '$q' "$ltmain" >> "$cfgfile" \
  25583. || (rm -f "$cfgfile"; exit 1)
  25584. mv -f "$cfgfile" "$ofile" ||
  25585. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25586. chmod +x "$ofile"
  25587. cat <<_LT_EOF >> "$ofile"
  25588. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25589. # The linker used to build libraries.
  25590. LD=$lt_LD_CXX
  25591. # How to create reloadable object files.
  25592. reload_flag=$lt_reload_flag_CXX
  25593. reload_cmds=$lt_reload_cmds_CXX
  25594. # Commands used to build an old-style archive.
  25595. old_archive_cmds=$lt_old_archive_cmds_CXX
  25596. # A language specific compiler.
  25597. CC=$lt_compiler_CXX
  25598. # Is the compiler the GNU compiler?
  25599. with_gcc=$GCC_CXX
  25600. # Compiler flag to turn off builtin functions.
  25601. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25602. # Additional compiler flags for building library objects.
  25603. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25604. # How to pass a linker flag through the compiler.
  25605. wl=$lt_lt_prog_compiler_wl_CXX
  25606. # Compiler flag to prevent dynamic linking.
  25607. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25608. # Does compiler simultaneously support -c and -o options?
  25609. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25610. # Whether or not to add -lc for building shared libraries.
  25611. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25612. # Whether or not to disallow shared libs when runtime libs are static.
  25613. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25614. # Compiler flag to allow reflexive dlopens.
  25615. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25616. # Compiler flag to generate shared objects directly from archives.
  25617. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25618. # Whether the compiler copes with passing no objects directly.
  25619. compiler_needs_object=$lt_compiler_needs_object_CXX
  25620. # Create an old-style archive from a shared archive.
  25621. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25622. # Create a temporary old-style archive to link instead of a shared archive.
  25623. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25624. # Commands used to build a shared archive.
  25625. archive_cmds=$lt_archive_cmds_CXX
  25626. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25627. # Commands used to build a loadable module if different from building
  25628. # a shared archive.
  25629. module_cmds=$lt_module_cmds_CXX
  25630. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25631. # Whether we are building with GNU ld or not.
  25632. with_gnu_ld=$lt_with_gnu_ld_CXX
  25633. # Flag that allows shared libraries with undefined symbols to be built.
  25634. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25635. # Flag that enforces no undefined symbols.
  25636. no_undefined_flag=$lt_no_undefined_flag_CXX
  25637. # Flag to hardcode \$libdir into a binary during linking.
  25638. # This must work even if \$libdir does not exist
  25639. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25640. # Whether we need a single "-rpath" flag with a separated argument.
  25641. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25642. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25643. # DIR into the resulting binary.
  25644. hardcode_direct=$hardcode_direct_CXX
  25645. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25646. # DIR into the resulting binary and the resulting library dependency is
  25647. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25648. # library is relocated.
  25649. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25650. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25651. # into the resulting binary.
  25652. hardcode_minus_L=$hardcode_minus_L_CXX
  25653. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25654. # into the resulting binary.
  25655. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25656. # Set to "yes" if building a shared library automatically hardcodes DIR
  25657. # into the library and all subsequent libraries and executables linked
  25658. # against it.
  25659. hardcode_automatic=$hardcode_automatic_CXX
  25660. # Set to yes if linker adds runtime paths of dependent libraries
  25661. # to runtime path list.
  25662. inherit_rpath=$inherit_rpath_CXX
  25663. # Whether libtool must link a program against all its dependency libraries.
  25664. link_all_deplibs=$link_all_deplibs_CXX
  25665. # Set to "yes" if exported symbols are required.
  25666. always_export_symbols=$always_export_symbols_CXX
  25667. # The commands to list exported symbols.
  25668. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25669. # Symbols that should not be listed in the preloaded symbols.
  25670. exclude_expsyms=$lt_exclude_expsyms_CXX
  25671. # Symbols that must always be exported.
  25672. include_expsyms=$lt_include_expsyms_CXX
  25673. # Commands necessary for linking programs (against libraries) with templates.
  25674. prelink_cmds=$lt_prelink_cmds_CXX
  25675. # Commands necessary for finishing linking programs.
  25676. postlink_cmds=$lt_postlink_cmds_CXX
  25677. # Specify filename containing input files.
  25678. file_list_spec=$lt_file_list_spec_CXX
  25679. # How to hardcode a shared library path into an executable.
  25680. hardcode_action=$hardcode_action_CXX
  25681. # The directories searched by this compiler when creating a shared library.
  25682. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25683. # Dependencies to place before and after the objects being linked to
  25684. # create a shared library.
  25685. predep_objects=$lt_predep_objects_CXX
  25686. postdep_objects=$lt_postdep_objects_CXX
  25687. predeps=$lt_predeps_CXX
  25688. postdeps=$lt_postdeps_CXX
  25689. # The library search path used internally by the compiler when linking
  25690. # a shared library.
  25691. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25692. # ### END LIBTOOL TAG CONFIG: CXX
  25693. _LT_EOF
  25694. ;;
  25695. esac
  25696. done # for ac_tag
  25697. as_fn_exit 0
  25698. _ACEOF
  25699. ac_clean_files=$ac_clean_files_save
  25700. test $ac_write_fail = 0 ||
  25701. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25702. # configure is writing to config.log, and then calls config.status.
  25703. # config.status does its own redirection, appending to config.log.
  25704. # Unfortunately, on DOS this fails, as config.log is still kept open
  25705. # by configure, so config.status won't be able to write to it; its
  25706. # output is simply discarded. So we exec the FD to /dev/null,
  25707. # effectively closing config.log, so it can be properly (re)opened and
  25708. # appended to by config.status. When coming back to configure, we
  25709. # need to make the FD available again.
  25710. if test "$no_create" != yes; then
  25711. ac_cs_success=:
  25712. ac_config_status_args=
  25713. test "$silent" = yes &&
  25714. ac_config_status_args="$ac_config_status_args --quiet"
  25715. exec 5>/dev/null
  25716. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25717. exec 5>>config.log
  25718. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25719. # would make configure fail if this is the last instruction.
  25720. $ac_cs_success || as_fn_exit 1
  25721. fi
  25722. #
  25723. # CONFIG_SUBDIRS section.
  25724. #
  25725. if test "$no_recursion" != yes; then
  25726. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  25727. # so they do not pile up.
  25728. ac_sub_configure_args=
  25729. ac_prev=
  25730. eval "set x $ac_configure_args"
  25731. shift
  25732. for ac_arg
  25733. do
  25734. if test -n "$ac_prev"; then
  25735. ac_prev=
  25736. continue
  25737. fi
  25738. case $ac_arg in
  25739. -cache-file | --cache-file | --cache-fil | --cache-fi \
  25740. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  25741. ac_prev=cache_file ;;
  25742. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  25743. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  25744. | --c=*)
  25745. ;;
  25746. --config-cache | -C)
  25747. ;;
  25748. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  25749. ac_prev=srcdir ;;
  25750. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  25751. ;;
  25752. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  25753. ac_prev=prefix ;;
  25754. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  25755. ;;
  25756. --disable-option-checking)
  25757. ;;
  25758. *)
  25759. case $ac_arg in
  25760. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25761. esac
  25762. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  25763. esac
  25764. done
  25765. # Always prepend --prefix to ensure using the same prefix
  25766. # in subdir configurations.
  25767. ac_arg="--prefix=$prefix"
  25768. case $ac_arg in
  25769. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25770. esac
  25771. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  25772. # Pass --silent
  25773. if test "$silent" = yes; then
  25774. ac_sub_configure_args="--silent $ac_sub_configure_args"
  25775. fi
  25776. # Always prepend --disable-option-checking to silence warnings, since
  25777. # different subdirs can have different --enable and --with options.
  25778. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  25779. ac_popdir=`pwd`
  25780. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  25781. # Do not complain, so a configure script can configure whichever
  25782. # parts of a large source tree are present.
  25783. test -d "$srcdir/$ac_dir" || continue
  25784. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  25785. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  25786. $as_echo "$ac_msg" >&6
  25787. as_dir="$ac_dir"; as_fn_mkdir_p
  25788. ac_builddir=.
  25789. case "$ac_dir" in
  25790. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25791. *)
  25792. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25793. # A ".." for each directory in $ac_dir_suffix.
  25794. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25795. case $ac_top_builddir_sub in
  25796. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25797. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25798. esac ;;
  25799. esac
  25800. ac_abs_top_builddir=$ac_pwd
  25801. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25802. # for backward compatibility:
  25803. ac_top_builddir=$ac_top_build_prefix
  25804. case $srcdir in
  25805. .) # We are building in place.
  25806. ac_srcdir=.
  25807. ac_top_srcdir=$ac_top_builddir_sub
  25808. ac_abs_top_srcdir=$ac_pwd ;;
  25809. [\\/]* | ?:[\\/]* ) # Absolute name.
  25810. ac_srcdir=$srcdir$ac_dir_suffix;
  25811. ac_top_srcdir=$srcdir
  25812. ac_abs_top_srcdir=$srcdir ;;
  25813. *) # Relative name.
  25814. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25815. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25816. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25817. esac
  25818. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25819. cd "$ac_dir"
  25820. # Check for guested configure; otherwise get Cygnus style configure.
  25821. if test -f "$ac_srcdir/configure.gnu"; then
  25822. ac_sub_configure=$ac_srcdir/configure.gnu
  25823. elif test -f "$ac_srcdir/configure"; then
  25824. ac_sub_configure=$ac_srcdir/configure
  25825. elif test -f "$ac_srcdir/configure.in"; then
  25826. # This should be Cygnus configure.
  25827. ac_sub_configure=$ac_aux_dir/configure
  25828. else
  25829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  25830. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  25831. ac_sub_configure=
  25832. fi
  25833. # The recursion is here.
  25834. if test -n "$ac_sub_configure"; then
  25835. # Make the cache file name correct relative to the subdirectory.
  25836. case $cache_file in
  25837. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  25838. *) # Relative name.
  25839. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  25840. esac
  25841. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  25842. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  25843. # The eval makes quoting arguments work.
  25844. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  25845. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  25846. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  25847. fi
  25848. cd "$ac_popdir"
  25849. done
  25850. fi
  25851. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25853. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25854. fi
  25855. if test "$use_tcl" != "Yes"; then
  25856. use_tcldot="No (tcl not available)"
  25857. use_gdtclft="No (tcl not available)"
  25858. use_tclpathplan="No (tcl not available)"
  25859. use_gv_tcl="No (tcl not available)"
  25860. else
  25861. use_tcldot="Yes"
  25862. use_tclpathplan="Yes"
  25863. if test "$use_swig" != "Yes"; then
  25864. use_gv_tcl="No (swig not available)"
  25865. else
  25866. use_gv_tcl="Yes"
  25867. fi
  25868. if test "$use_gd" != "Yes"; then
  25869. use_gdtclft="No (gd not available)"
  25870. else
  25871. use_gdtclft="Yes"
  25872. fi
  25873. fi
  25874. echo ""
  25875. echo "----------------------------------------------------------------"
  25876. echo ""
  25877. echo "graphviz-$VERSION will be compiled with the following:"
  25878. echo ""
  25879. echo "options:"
  25880. echo " cgraph: Yes (always enabled)"
  25881. echo " digcola: $use_digcola"
  25882. echo " expat: $use_expat"
  25883. echo " freetype: $use_freetype"
  25884. echo " glut: $use_glut"
  25885. echo " ann: $use_ann"
  25886. echo " gts: $use_gts"
  25887. echo " ipsepcola: $use_ipsepcola"
  25888. echo " ltdl: $use_ltdl"
  25889. echo " ortho: $use_ortho"
  25890. echo " sfdp: $use_sfdp"
  25891. echo " swig: $use_swig ( $SWIG_VERSION )"
  25892. echo " shared: $use_shared"
  25893. echo " static: $use_static"
  25894. echo " qt: $use_qt"
  25895. echo " x: $use_xlib"
  25896. echo ""
  25897. echo "commands:"
  25898. echo " dot: Yes (always enabled)"
  25899. echo " neato: Yes (always enabled)"
  25900. echo " fdp: Yes (always enabled)"
  25901. echo " circo: Yes (always enabled)"
  25902. echo " twopi: Yes (always enabled)"
  25903. echo " gvpr: Yes (always enabled)"
  25904. echo " gvmap: Yes (always enabled)"
  25905. echo " smyrna: $use_smyrna"
  25906. echo " gvedit: $use_qt"
  25907. echo ""
  25908. echo "plugin libraries:"
  25909. echo " dot_layout: Yes (always enabled)"
  25910. echo " neato_layout: Yes (always enabled)"
  25911. echo " core: Yes (always enabled)"
  25912. echo " devil: $use_devil"
  25913. echo " gd: $use_gd"
  25914. echo " gdiplus: $use_gdiplus"
  25915. echo " gdk: $use_gdk"
  25916. echo " gdk_pixbuf: $use_gdk_pixbuf"
  25917. echo " ghostscript: $use_ghostscript"
  25918. echo " gtk: $use_gtk"
  25919. echo " lasi: $use_lasi"
  25920. echo " pangocairo: $use_pangocairo"
  25921. echo " poppler: $use_poppler"
  25922. echo " quartz: $use_quartz"
  25923. echo " rsvg: $use_rsvg"
  25924. echo " webp: $use_webp"
  25925. echo " xlib: $use_xlib"
  25926. echo ""
  25927. echo "language extensions:"
  25928. echo " gv_sharp: $use_sharp"
  25929. echo " gv_d: $use_d"
  25930. echo " gv_go: $use_go"
  25931. echo " gv_guile: $use_guile"
  25932. echo " gv_java: $use_java"
  25933. echo " gv_javascript: $use_javascript"
  25934. echo " gv_lua: $use_lua"
  25935. echo " gv_perl: $use_perl"
  25936. echo " gv_php: $use_php"
  25937. echo " gv_python3: $use_python3"
  25938. echo " gv_R: $use_r"
  25939. echo " gv_ruby: $use_ruby"
  25940. echo " gv_tcl: $use_gv_tcl"
  25941. echo ""
  25942. echo " tcldot: $use_tcldot"
  25943. echo " tclpathplan: $use_tclpathplan"
  25944. echo " gdtclft: $use_gdtclft"